:root {
    --brand-primary: #2f7d32;
    --brand-secondary: #1f5d29;
    --brand-accent: #8fbf62;
    --brand-gold: #d4af37;
    --brand-gold-dark: #b88e21;
    --brand-dark: #1d3124;
    --surface-soft: #f4f8f2;
    --surface-card: #ffffff;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #fbfdf9;
    color: var(--brand-dark);
    font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 84px;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.01em;
    line-height: 1.2;
}

p {
    line-height: 1.68;
}

.navbar {
    background: #ffffffcc !important;
    backdrop-filter: blur(8px);
    --bs-navbar-padding-y: 0.7rem;
    box-shadow: 0 6px 18px rgba(24, 58, 33, 0.08);
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar .container {
    gap: 0.6rem;
}

.navbar-nav {
    --bs-nav-link-padding-x: 0.8rem;
    --bs-nav-link-padding-y: 0.35rem;
    gap: 0.1rem;
}

.navbar .nav-link {
    border-radius: 999px;
    font-weight: 600;
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(24, 58, 33, 0.12);
    border-bottom-color: rgba(27, 94, 32, 0.16) !important;
    --bs-navbar-padding-y: 0.45rem;
}

.navbar-brand,
.navbar-brand img,
.navbar .btn,
.navbar .nav-link {
    transition: all 0.25s ease;
}

.navbar-brand span {
    font-size: 1.12rem;
}

.navbar.navbar-scrolled .navbar-brand img {
    max-height: 48px;
    max-width: 220px;
    width: auto;
    height: auto;
}

.navbar.navbar-scrolled .navbar-brand span {
    font-size: 1.04rem;
}

.navbar.navbar-scrolled .btn {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 0.9rem;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand-primary) !important;
}

.navbar .nav-link.active {
    background: rgba(47, 125, 50, 0.12);
}

.navbar .nav-link:focus-visible,
.navbar .btn:focus-visible,
.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(47, 125, 50, 0.25);
}

.btn-success {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    border-radius: 0.7rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(31, 93, 41, 0.22);
}

.btn-outline-success {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    border-radius: 0.7rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline-success:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31, 93, 41, 0.18);
}

.btn-outline-dark {
    border-radius: 0.7rem;
    font-weight: 600;
}

.ayur-hero-section {
    padding: 7rem 0;
    color: #f5fff0;
    background-color: #1f4d2e;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(20, 56, 32, 0.9), rgba(20, 56, 32, 0.52)), url('https://images.unsplash.com/photo-1471193945509-9ad0617afabf?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-search-form {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-form .form-control {
    border: 0;
}

.search-autocomplete {
    min-width: 220px;
}

.search-autocomplete-compact {
    width: min(100%, 290px);
}

.search-suggestions {
    margin-top: 0.35rem;
    padding: 0.35rem;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #d9e6d2;
    box-shadow: 0 12px 24px rgba(21, 52, 30, 0.12);
}

.search-suggestion-item {
    border-radius: 0.6rem;
    padding: 0.45rem 0.5rem;
}

.search-suggestion-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 0.45rem;
    border: 1px solid #dbe8d6;
}

.search-suggestion-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card {
    display: block;
    background: var(--surface-card);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #deead9;
    box-shadow: 0 10px 22px rgba(29, 49, 36, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(29, 49, 36, 0.14);
}

.category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-content {
    padding: 1rem;
}

.trust-strip {
    background: linear-gradient(180deg, #f0f8ea 0%, #e7f2df 100%);
}

.trust-badge {
    height: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid #d7e6d2;
    border-radius: 0.85rem;
    font-weight: 600;
    color: #2e5c30;
}

.trust-badge i {
    color: var(--brand-primary);
    font-size: 1.05rem;
}

.ayur-product-card {
    border-radius: 1.05rem;
    overflow: hidden;
    background: var(--surface-card);
    border: 1px solid #e1eadc;
    box-shadow: 0 10px 22px rgba(24, 53, 33, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ayur-product-card:hover {
    transform: translateY(-5px);
    border-color: #cfe0c8;
    box-shadow: 0 18px 32px rgba(29, 49, 36, 0.15) !important;
}

.ayur-product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: contain;
    background: #edf5e8;
}

.product-card-body {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.products-grid-compact .ayur-product-image {
    aspect-ratio: 16 / 9;
}

.products-grid-compact .product-card-body {
    padding: 0.72rem 0.75rem 0.82rem;
}

.products-grid-compact .product-title {
    min-height: 2.3em;
    font-size: 0.98rem;
    margin-bottom: 0.35rem !important;
}

.products-grid-compact .product-card-price {
    font-size: 1rem;
    margin-bottom: 0.4rem !important;
}

.products-grid-compact .btn {
    --bs-btn-padding-y: 0.34rem;
    --bs-btn-padding-x: 0.55rem;
    --bs-btn-font-size: 0.86rem;
}

@media (max-width: 575.98px) {
    .products-grid-compact .ayur-product-image {
        aspect-ratio: 4 / 3;
    }

    .products-grid-compact .product-title {
        font-size: 0.95rem;
    }
}

.about-hero {
    padding: 6rem 0 5rem;
    color: #f3ffef;
    background: #1f4d2e;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(20, 56, 32, 0.9), rgba(20, 56, 32, 0.45));
}

.about-panel {
    background: #ffffff;
    border: 1px solid #deead9;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(29, 49, 36, 0.08);
    padding: 1.5rem;
}

.about-list {
    margin: 0;
    padding-left: 1.2rem;
}

.about-list li {
    margin-bottom: 0.6rem;
}

.about-list li:last-child {
    margin-bottom: 0;
}

.about-band {
    background: linear-gradient(180deg, #f0f8ea 0%, #e7f2df 100%);
}

.about-card {
    background: #ffffff;
    border: 1px solid #d7e6d2;
    border-radius: 1rem;
    padding: 1.5rem;
}

.contact-hero {
    padding: 5.5rem 0 4.5rem;
    color: #f3ffef;
    background: #1f4d2e;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(20, 56, 32, 0.92), rgba(20, 56, 32, 0.6));
}

.contact-panel {
    background: #ffffff;
    border: 1px solid #deead9;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(29, 49, 36, 0.08);
    padding: 1.5rem;
}

.contact-divider {
    height: 1px;
    background: #deead9;
}

.contact-link {
    color: var(--brand-primary);
    text-decoration: none;
}

.contact-link:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

.map-placeholder {
    background: linear-gradient(180deg, #f0f8ea 0%, #e7f2df 100%);
    border: 1px dashed #b9d3b5;
}

.map-icon {
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.product-placeholder {
    height: 180px;
    background-color: var(--surface-soft);
    color: #6c757d;
    font-size: 0.95rem;
}

.product-detail-placeholder {
    min-height: 420px;
    background-color: var(--surface-soft);
}

.product-detail-card {
    border-radius: 1.15rem;
    box-shadow: 0 14px 30px rgba(24, 53, 33, 0.09) !important;
}

.product-description-richtext {
    white-space: pre-line;
    line-height: 1.7;
}

.product-main-image-wrap {
    border: 1px solid #dbe8d6;
    border-radius: 1rem;
    overflow: hidden;
    background: #f6fbf3;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.product-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.55rem;
}

.product-thumb-btn {
    padding: 0;
    border: 1px solid #d7e6d1;
    border-radius: 0.6rem;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-thumb-btn:hover {
    border-color: #c7d9bf;
    transform: translateY(-2px);
}

.product-thumb-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.product-price {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 700;
    color: var(--brand-primary);
}

.special-offers-wrap {
    border: 1px solid #dbe8d6;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #fcfefb 0%, #f6fbf3 100%);
    padding: 0.9rem;
}

.offer-card {
    display: block;
    position: relative;
    cursor: pointer;
    margin: 0;
    height: 100%;
}

.offer-choice-input {
    display: none !important;
    pointer-events: none;
}

.offer-card-body {
    height: 100%;
    border: 1px solid #d6e4d1;
    border-radius: 0.85rem;
    background: #ffffff;
    padding: 0.82rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.offer-card:hover .offer-card-body {
    border-color: #b9d3ad;
    transform: translateY(-1px);
}

.offer-choice-input:checked + .offer-card-body {
    border-color: #2f7d32;
    box-shadow: 0 0 0 0.18rem rgba(47, 125, 50, 0.16);
    background: #f4fbf2;
}

.offer-qty {
    color: #224e28;
    font-size: 0.98rem;
}

.offer-total {
    font-size: 1.1rem;
}

.product-key-info {
    border: 1px solid #dbe8d6;
    border-left: 4px solid var(--brand-gold);
    border-radius: 0.85rem;
    background: #f8fcf5;
    padding: 0.9rem 1rem;
}

.product-key-info p:last-child {
    margin-bottom: 0;
}

.qty-selector {
    max-width: 180px;
}

.qty-selector .form-control {
    max-width: 68px;
}

.btn-buy-now {
    background-color: #fff;
    border: 1px solid var(--brand-gold);
    color: #8d6b1a;
    border-radius: 0.7rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-buy-now:hover,
.btn-buy-now:focus {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #1b5e20;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(108, 81, 17, 0.2);
}

.trust-highlights .trust-mini-card {
    height: 100%;
    min-height: 88px;
    border: 1px solid #d8e5d2;
    border-radius: 0.9rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2c5b2f;
    box-shadow: 0 6px 16px rgba(25, 57, 34, 0.06);
}

.trust-highlights .trust-mini-card i {
    color: var(--brand-gold);
}

.premium-tabs .nav-link {
    color: #2f5d32;
    border-radius: 0.6rem 0.6rem 0 0;
    font-weight: 600;
}

.premium-tabs .nav-link.active {
    color: #1b5e20;
    border-color: #d7e4d0 #d7e4d0 #fff;
}

.navbar-brand img {
    max-height: 62px;
    max-width: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-premium {
    background: #1b5e20;
    color: #ffffff;
    border-top: 1px solid rgba(212, 175, 55, 0.45);
}

.footer-brand span,
.footer-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: var(--brand-gold);
}

.footer-brand img {
    max-height: 72px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-text {
    max-width: 340px;
    color: #f3f6f3;
}

.footer-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-gold);
    padding-left: 0.2rem;
}

.footer-contact {
    color: #ffffff;
    font-size: 0.95rem;
}

.footer-contact i {
    width: 18px;
    margin-right: 0.25rem;
    color: var(--brand-gold);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.7);
    color: var(--brand-gold);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background-color: var(--brand-gold);
    color: #163e25;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

.footer-bottom small {
    color: var(--brand-gold);
}

.footer-col {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 1.2rem;
    padding-bottom: 0.2rem;
}

.footer-links li:last-child,
.footer-contact li:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .ayur-hero-section {
        padding: 5rem 0;
    }

    .ayur-product-image {
        aspect-ratio: 5 / 4;
    }

    .about-hero {
        padding: 4.5rem 0;
    }

    .contact-hero {
        padding: 4.5rem 0 4rem;
    }

    .search-autocomplete-compact {
        width: 100%;
    }

    .footer-col {
        border-left: 0;
        padding-left: 0.75rem;
    }

    .navbar.navbar-scrolled {
        --bs-navbar-padding-y: 0.6rem;
    }

    .navbar.navbar-scrolled .navbar-brand img {
        max-height: 40px;
        max-width: 180px;
    }

    .navbar.navbar-scrolled .navbar-brand span {
        font-size: 1.08rem;
    }

    .product-main-image {
        aspect-ratio: 5 / 4;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-height: 46px;
        max-width: 170px;
    }

    .navbar.navbar-scrolled .navbar-brand img {
        max-height: 38px;
        max-width: 150px;
    }

    .ayur-hero-section {
        padding: 4rem 0;
    }

    .hero-tag {
        font-size: 0.75rem;
    }

    .category-image {
        height: 140px;
    }

    .product-card-body {
        padding: 0.95rem 0.95rem 1rem;
    }

    .footer-brand span {
        font-size: 1.35rem;
    }

    body {
        padding-top: 78px;
    }

    h1, .h1 {
        font-size: calc(1.35rem + 1.15vw);
    }

    h2, .h2 {
        font-size: calc(1.2rem + 0.9vw);
    }

    .hero-search-form .input-group {
        flex-direction: column;
    }

    .hero-search-form .btn {
        width: 100%;
    }
}

.btn,
.form-control,
.form-select {
    min-height: 44px;
}

.btn-sm {
    min-height: 36px;
}

.input-group-sm > .btn,
.input-group-sm > .form-control,
.input-group-sm > .form-select {
    min-height: 38px;
}

.cart-qty-group .btn {
    min-width: 34px;
}

.cart-total-box {
    min-width: 220px;
    padding: 0.8rem 1rem;
    border: 1px solid #d8e5d2;
    border-radius: 0.9rem;
    background: #fbfef8;
}

.legal-page {
    background: linear-gradient(180deg, #fbfdf9 0%, #f3f8ef 100%);
}

.legal-card {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dce8d6;
    border-radius: 1rem;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    box-shadow: 0 12px 28px rgba(24, 53, 33, 0.08);
}

.legal-title {
    margin-bottom: 1.25rem;
    color: var(--brand-dark);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
}

.legal-updated {
    color: #5d6b5d;
    font-size: 0.95rem;
    font-style: italic;
}

.legal-content {
    color: #384638;
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.legal-content b,
.legal-content strong {
    color: #1f4d2e;
}

.legal-content .MsoNormal {
    font-family: inherit !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
}

@media (max-width: 991.98px) {
    .cart-total-box {
        width: 100%;
    }
}