body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-red: #dc3545;
    --light-red: #f8d7da;
    --dark-grey: #343a40;
    --text-color: #333;
    --white: #fff;
}

.custom-red {
    color: var(--primary-red) !important;
}

.custom-bg-red {
    background-color: var(--primary-red) !important;
}

.custom-btn-red {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--white) !important;
}

.custom-btn-red:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.custom-btn-outline-red {
    color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
}

.custom-btn-outline-red:hover {
    background-color: var(--primary-red) !important;
    color: var(--white) !important;
}

.custom-link-red {
    color: var(--primary-red) !important;
    text-decoration: none;
}

.custom-link-red:hover {
    color: #c82333 !important;
    text-decoration: underline;
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
}

.navbar-brand .site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-grey);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red);
}

.cart-icon-button {
    position: relative;
    border: none;
    background: none;
    padding: 0;
    margin-left: 1rem;
}

.cart-icon-button i {
    color: var(--dark-grey);
}

.cart-icon-button:hover i {
    color: var(--primary-red);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.75rem;
    padding: 0.2em 0.5em;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

/* Product Cards (Featured) */
.product-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 0.75rem;
}

.product-card .product-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.product-card .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* Product Listing (Horizontal Cards) */
.product-item-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-item-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
}

.product-item-card .product-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.product-item-card .card-body {
    padding: 1.5rem;
}

.product-item-card .product-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.product-item-card .product-short-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.product-item-card .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
}

.product-item-card .product-full-description {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}

.product-item-card .product-full-description h6 {
    font-weight: 600;
    color: var(--primary-red);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.product-item-card .product-full-description ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.product-item-card .product-full-description ul li {
    margin-bottom: 0.4rem;
}

/* Articles Section */
.article-item-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.article-item-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
}

.article-item-card .article-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.article-item-card .card-body {
    padding: 1.5rem;
}

.article-item-card .article-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.article-item-card .article-short-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.article-item-card .article-full-description {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}

.article-item-card .article-full-description h6 {
    font-weight: 600;
    color: var(--primary-red);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.article-item-card .article-full-description ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.article-item-card .article-full-description ul li {
    margin-bottom: 0.4rem;
}

/* About Us Section */
#about-us .lead {
    font-size: 1.15rem;
    color: #555;
}

#about-us h5 {
    font-size: 1.25rem;
    color: var(--dark-grey);
}

#about-us p {
    color: #6c757d;
}

/* Footer */
.footer {
    background-color: var(--dark-grey) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-red) !important;
}

/* Chat Widget */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-toggle-btn:hover {
    background-color: #c82333 !important;
}

.chat-widget {
    z-index: 1051;
    width: 350px;
    bottom: 90px; /* Adjusted to be above the toggle button */
    right: 20px;
}

.chat-card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.chat-messages-container {
    height: 300px;
    overflow-y: auto;
    background-color: #f1f1f1;
    padding: 1rem;
}

.chat-messages .user-message {
    background-color: var(--primary-red);
    color: var(--white);
    align-self: flex-end;
    margin-left: auto;
    max-width: 80%;
}

.chat-messages .operator-message {
    background-color: var(--white);
    color: var(--text-color);
    align-self: flex-start;
    margin-right: auto;
    max-width: 80%;
}

.chat-messages > div {
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.chat-input::placeholder {
    color: #aaa;
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1060; /* Higher than chat widget */
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.cookie-banner p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    font-weight: 600;
}

/* Modals */
.modal-header.custom-bg-red {
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px); /* Adjust as needed */
    overflow-y: auto;
}

/* Cart Modal */
.cart-item {
    display: flex;
    align-items: center;
    overflow: auto;
    padding: 1rem .5rem;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--dark-grey);
}

.cart-item-price {
    font-size: 0.9rem;
    color: #6c757d;
}

.cart-item-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-subtotal {
    font-weight: 600;
    color: var(--primary-red);
    min-width: 80px;
    text-align: right;
}

.cart-remove-btn {
    color: var(--primary-red);
    border: none;
    background: none;
    padding: 0;
    font-size: 1.2rem;
    margin-left: 1rem;
}

.cart-remove-btn:hover {
    color: #c82333;
}

#checkoutButton:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Order Summary in Checkout Modal */
.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-summary-item .item-name {
    font-weight: 500;
    color: var(--dark-grey);
}

.order-summary-item .item-total {
    font-weight: 600;
    color: var(--primary-red);
}

/* Responsive Typography */
@media (min-width: 1024px) {
    .site-title { font-size: 2.2rem; }
    .hero-section h1 { font-size: 4.5rem; }
    .section-title { font-size: 3rem; }
    .product-item-card .product-title, .article-item-card .article-title { font-size: 1.5rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .site-title { font-size: 2rem; }
    .hero-section h1 { font-size: 3.8rem; }
    .section-title { font-size: 2.8rem; }
    .product-item-card .product-title, .article-item-card .article-title { font-size: 1.3rem; }
}

@media (max-width: 767px) {
    .site-title { font-size: 1.5rem; }
    .navbar-brand .logo-img { height: 30px; }
    .hero-section {
        min-height: 450px;
        padding: 60px 0;
    }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .product-item-card .product-img, .article-item-card .article-img {
        height: 180px;
        border-radius: 0.75rem 0.75rem 0 0 !important;
    }
    .product-item-card .row.g-0 > div:first-child, .article-item-card .row.g-0 > div:first-child {
        width: 100%;
    }
    .product-item-card .row.g-0 > div:last-child, .article-item-card .row.g-0 > div:last-child {
        width: 100%;
    }
    .product-item-card .card-body, .article-item-card .card-body {
        padding: 1rem;
    }
    .product-item-card .product-title, .article-item-card .article-title { font-size: 1.25rem; }
    .product-item-card .product-short-description, .article-item-card .article-short-description { font-size: 0.85rem; }
    .product-item-card .product-price { font-size: 1.1rem; }
    .footer .list-inline-item {
        display: block;
        margin-bottom: 0.5rem;
    }
    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
    .chat-widget {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 75px;
    }
    .cookie-banner {
        padding: 1rem;
    }
    .cookie-banner p {
        font-size: 0.8rem;
    }
    .cookie-banner .d-flex {
        width: 100%;
        justify-content: center;
    }
    .modal-dialog-scrollable .modal-body {
        max-height: calc(100vh - 150px);
    }
}

@media (max-width: 1100px) {
    .offcanvas-end {
        width: 250px !important;
    }
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-item:nth-of-type(6) {
        order: -1;
    }
    .navbar-toggler {
        display: block;
    }
    .navbar-collapse {
        display: none;
    }
}

@media (min-width: 1101px) {
    .navbar-toggler {
        display: none;
    }
    .offcanvas {
        visibility: hidden;
    }
    .offcanvas.show {
        visibility: hidden;
    }
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-nav {
        flex-direction: row;
    }
}
/* Container padding */
.consentTunnelGrid {
  padding: 30px 20px; /* Top/bottom 30px, left/right 20px */
}

/* Heading styles */
.consentTunnelGrid h1 {
  font-size: 1.75rem; /* ~28px based on 16px root */
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.2;
}

.consentTunnelGrid h2 {
  font-size: 1.5rem; /* ~24px */
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.consentTunnelGrid h3 {
  font-size: 1.25rem; /* ~20px */
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.consentTunnelGrid h4 {
  font-size: 1.1rem; /* ~17.6px */
  font-weight: 500;
  margin-top: 0.75em;
  margin-bottom: 0.4em;
  line-height: 1.35;
}

.consentTunnelGrid h5 {
  font-size: 1rem; /* ~16px */
  font-weight: 500;
  margin-top: 0.5em;
  margin-bottom: 0.3em;
  line-height: 1.4;
}

/* Paragraph styles */
.consentTunnelGrid p {
  font-size: 1rem; /* Base font size */
  line-height: 1.6;
  margin-bottom: 1em; /* Space between paragraphs */
}

/* List styles */
.consentTunnelGrid ul {
  list-style-type: disc;
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 20px; /* Space for bullet points */
}

.consentTunnelGrid li {
  font-size: 1rem; /* Base font size */
  line-height: 1.6;
  margin-bottom: 0.5em; /* Space between list items */
}
