/* UAE Dirham symbol (U+20C3). Most devices don't ship this glyph yet, so it
   is served from a tiny bundled font. unicode-range means the font is only
   ever used for this one character. */
@font-face {
    font-family: 'DirhamSymbol';
    src: url('../fonts/dirham-sans.woff2') format('woff2'),
        url('../fonts/dirham-sans.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20C3;
}

.woocommerce-Price-currencySymbol {
    font-family: 'DirhamSymbol', sans-serif;
    font-weight: inherit;
}

/* ========================================
   Global Reset
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#shop-categories,
.shop-products-section[id^="category-"] {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Avenir Next', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #faf8f3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   WordPress Admin Bar Fix
   ======================================== */

.admin-bar {
    --wpab-offset: 32px;
}

.admin-bar .main-navbar {
    top: calc(var(--wpab-offset) + var(--mytheme-shipping-bar-height, 0px)) !important;
}

@media (max-width: 782px) {
    .admin-bar .main-navbar {
        position: sticky;
        top: var(--mytheme-shipping-bar-height, 0px) !important;
    }

    body.admin-bar {
        padding-top: 0 !important;
    }

    .admin-bar .site-main {
        padding-top: 0 !important;
    }
}

/* ========================================
   Main Navigation Bar - WHITE THEME
   ======================================== */

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(10, 61, 46, 0.08);
    box-shadow: 0 4px 24px rgba(10, 61, 46, 0.06);
}

.nav-container {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 12px 32px;
    height: auto;
}

/* --- LEFT: Nav Links --- */

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: start;
    min-width: 0;
}

/* --- CENTER: Logo --- */

.nav-logo {
    justify-self: center;
    text-align: center;
    flex-shrink: 0;
    overflow: visible;
}

.nav-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: none;
}

.nav-logo .logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 800;
    color: #0a3d2e;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: none;
}

.nav-logo .logo-text span {
    color: #c9a227;
}

.nav-logo img {
    max-height: 80px;
    width: auto;
    margin-top: -12px;
    margin-bottom: -12px;
}

/* --- RIGHT: Icons --- */

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    flex-shrink: 0;
}

/* --- Desktop Nav Links --- */

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-desktop li {
    position: relative;
}

.nav-links-desktop li a {
    display: inline-block;
    padding: 8px 16px;
    color: #0a3d2e !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    border-radius: 50px;
    background: transparent;
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
    text-shadow: none;
    cursor: pointer;
}

.nav-links-desktop li a:hover,
.nav-links-desktop li a.active {
    color: #ffffff !important;
    background: #0a3d2e !important;
    border-color: #0a3d2e !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 61, 46, 0.25);
}

.nav-links-desktop li a::after {
    display: none !important;
}

/* --- Desktop category hover dropdown (categories + sub-category image) --- */

.nav-dropdown-desktop {
    position: relative;
}

.nav-cat-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1100;
    display: flex;
    gap: 20px;
    min-width: 380px;
    padding: 18px;
    margin-top: 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(10, 61, 46, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Invisible bridge so the mouse can travel from the link down into the
   panel without the hover state dropping in the gap between them. */
.nav-dropdown-desktop::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.nav-dropdown-desktop:hover .nav-cat-dropdown-panel,
.nav-dropdown-desktop:focus-within .nav-cat-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-cat-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 170px;
    list-style: none;
    margin: 0;
    /* Pushed right by --mytheme-flyout-shift (set in navbar.js) for as
       long as one of this list's own sub-categories has its flyout
       open, so the preview image after it always ends up outside the
       flyout instead of underneath it. 0px when nothing is open. */
    margin-right: var(--mytheme-flyout-shift, 0px);
    padding: 0;
    transition: margin-right 0.15s ease;
}

.nav-cat-dropdown-link {
    display: block;
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 10px;
    color: #0a3d2e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-cat-dropdown-link:hover,
.nav-cat-dropdown-link.is-active {
    background: rgba(10, 61, 46, 0.08);
    color: #0a3d2e;
}

/* Sub-category that is currently open on the sale page. !important on
   both properties so this always wins - matching how the top-level
   active nav button (.nav-links-desktop li a.active) already protects
   itself - in case something else on the page (WooCommerce's own
   styles, a plugin, etc.) also targets this link and would otherwise
   repaint just the text color, leaving invisible dark-on-dark text. */
.nav-cat-dropdown-link.is-current,
.nav-cat-dropdown-link.is-current:hover {
    background: #0a3d2e !important;
    color: #ffffff !important;
}

.nav-cat-dropdown-image {
    flex-shrink: 0;
    width: 180px;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    background: #f2efe6;
}

.nav-cat-dropdown-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease;
}

/* --- Cascading flyout for sub-categories that have their own
     sub-categories (3rd level, 4th level, ...). Hovering a category
     link that carries ".has-flyout" floats a new panel to its right
     showing that category's children, positioned absolutely so it
     never changes the height of the row it hangs off - it overlays
     the page instead of pushing sibling categories down. The same
     rule applies again inside that flyout, so it keeps cascading
     however many levels deep the category tree goes. --- */

/* The row itself stays a normal, single-line list item (no extra
   height) no matter whether its flyout is open. The flyout panel is
   positioned absolutely against this row (see .nav-cat-flyout-panel
   below), so opening it floats a new panel to the right instead of
   growing this row's height - which is what used to push every
   sibling category below it further down the list. */
.nav-cat-flyout-item.has-flyout {
    position: relative;
}

/* Invisible bridge so the mouse can travel from the link across the
   gap into the flyout panel without the hover state dropping. */
.nav-cat-flyout-item.has-flyout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 6px;
    height: 100%;
}

/* Small arrow after the name of any link that opens a further flyout,
   so it reads as "has more" before the person even hovers it. */
.nav-cat-dropdown-link.has-children-arrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-cat-dropdown-link.has-children-arrow::after {
    content: '\203A';
    /* "›" */
    font-size: 16px;
    line-height: 1;
    opacity: 0.5;
}

.nav-cat-flyout-panel {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1200;
    min-width: 170px;
    margin-left: 6px;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(10, 61, 46, 0.18);
}

/* Hovering (or, via keyboard, focusing) the row reveals its own
   flyout right there in the flow - not the row's parent's flyout and
   not a sibling row's, since ">" only matches this row's direct
   child. */
.nav-cat-flyout-item.has-flyout:hover>.nav-cat-flyout-panel,
.nav-cat-flyout-item.has-flyout:focus-within>.nav-cat-flyout-panel {
    display: block;
}

.nav-cat-flyout-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- Icon Buttons --- */

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    color: #0a3d2e;
    background: #ffffff;
    border: 1.5px solid rgba(10, 61, 46, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-icon svg {
    width: 19px;
    height: 19px;
    transition: transform 0.3s ease;
}

.nav-icon:hover {
    background: #0a3d2e;
    border-color: #0a3d2e;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 61, 46, 0.28);
}

.nav-icon:hover svg {
    transform: scale(1.1);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #0a3d2e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(10, 61, 46, 0.2), 0 0 0 3px #ffffff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: transform 0.2s ease;
    z-index: 2;
}

.cart-count.mytheme-cart-count-pulse {
    transform: scale(1.4);
}

/* ========================================
   Mini-Cart Preview
   ======================================== */

.nav-cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mini-cart-preview {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 320px;
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1002;
    pointer-events: none;
}

@media (min-width: 993px) and (hover: hover) and (pointer: fine) {
    .nav-cart-wrapper:hover .mini-cart-preview {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
}

.nav-cart-wrapper:focus-within .mini-cart-preview,
.mini-cart-preview.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-cart-wrapper.mini-cart-dismissed .mini-cart-preview {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mini-cart-preview-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(10, 61, 46, 0.2), 0 4px 14px rgba(10, 61, 46, 0.08);
    overflow: hidden;
}

.mini-cart-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f9fafb;
    color: #0a3d2e;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.mini-cart-preview-close:hover {
    background: #0a3d2e;
    color: #ffffff;
}

.mini-cart-arrow {
    position: absolute;
    top: -7px;
    right: 22px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -3px -3px 8px rgba(0, 0, 0, 0.03);
}

.mini-cart-preview-inner {
    position: relative;
    padding: 18px;
    max-height: 420px;
    overflow-y: auto;
}

.mini-cart-empty {
    text-align: center;
    padding: 26px 10px 14px;
}

.mini-cart-empty svg {
    color: #e5e7eb;
    margin-bottom: 12px;
}

.mini-cart-empty p {
    font-size: 14px;
    font-weight: 700;
    color: #0a3d2e;
    margin-bottom: 4px;
}

.mini-cart-empty span {
    font-size: 12.5px;
    color: #6b7280;
}

.mini-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-cart-item-thumb {
    flex-shrink: 0;
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
}

.mini-cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mini-cart-item:hover .mini-cart-item-thumb img {
    transform: scale(1.08);
}

.mini-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mini-cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #0a3d2e;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.mini-cart-item-name:hover {
    color: #c9a227;
}

.mini-cart-item-meta {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.mini-cart-more {
    font-size: 12px;
    color: #c9a227;
    font-weight: 600;
    text-align: center;
    padding-top: 4px;
}

.mini-cart-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f9fafb;
}

.mini-cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 13px;
    color: #1f2937;
}

.mini-cart-subtotal strong {
    font-size: 15px;
    color: #c9a227;
    font-weight: 700;
}

.mini-cart-actions {
    display: flex;
    gap: 10px;
}

.mini-cart-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.mini-cart-btn-outline {
    background: #ffffff;
    color: #0a3d2e !important;
    border: 2px solid #0a3d2e;
}

.mini-cart-btn-outline:hover {
    background: #0a3d2e;
    color: #ffffff !important;
}

.mini-cart-btn-solid {
    background: #c9a227;
    color: #0a3d2e !important;
    border: 2px solid #c9a227;
}

.mini-cart-btn-solid:hover {
    background: #0a3d2e;
    color: #ffffff !important;
    border-color: #0a3d2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 61, 46, 0.35);
}

@media (max-width: 992px) {
    .mini-cart-preview {
        position: fixed;
        top: 90px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: 360px;
        margin-left: auto;
        padding-top: 0;
        z-index: 10000;
    }

    .mini-cart-arrow {
        display: none;
    }
}

/* ========================================
   Mobile Sidebar Top Bar
   ======================================== */

.mobile-menu-topbar {
    display: none;
}

.menu-close {
    display: none;
}

/* ========================================
   Mobile Toggle Button
   ======================================== */

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1.5px solid rgba(10, 61, 46, 0.2);
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0a3d2e;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-toggle:hover {
    background: #0a3d2e;
    border-color: #0a3d2e;
}

.mobile-toggle:hover span {
    background: #ffffff;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Mobile Slide-Out Menu
   ======================================== */

@media (max-width: 992px) {
    .nav-menu {
        --mytheme-nav-btn-h: 47px;
        /* same height for Home, parent categories and sub-categories */
        --mytheme-nav-btn-gap: 8px;
        /* same gap between all sidebar buttons */
        position: fixed;
        top: var(--mytheme-shipping-bar-height, 0px);
        left: -100%;
        width: 75%;
        max-width: 350px;
        height: calc(100vh - var(--mytheme-shipping-bar-height, 0px));
        height: calc(100dvh - var(--mytheme-shipping-bar-height, 0px));
        background: #ffffff !important;
        padding: 0;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 10px 0 40px rgba(10, 61, 46, 0.15);
        overflow: hidden;
        /* only .nav-menu-scroll scrolls, below the top bar */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 9999;
    }

    .admin-bar .nav-menu {
        padding-top: 42px;
    }

    .nav-menu.open {
        left: 0;
    }

    .mobile-menu-topbar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        margin: 0 0 10px;
        /* empty space between the X bar and the scrolling list */
        padding: 14px 24px;
        flex-shrink: 0;
        position: relative;
        z-index: 20;
        background: #ffffff;
    }

    /* Scrolling area: starts below the top bar, so items disappear at
       that edge instead of scrolling up behind / around the close button. */
    .nav-menu-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 4px 24px 30px;
    }

    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: transparent;
        border: 1.5px solid rgba(10, 61, 46, 0.15);
        color: #0a3d2e;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .menu-close:hover {
        background: #0a3d2e;
        border-color: #0a3d2e;
        color: #ffffff;
        transform: rotate(90deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: var(--mytheme-nav-btn-gap, 8px);
        background: transparent;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        padding: 14px 24px;
        font-size: 18px;
        font-weight: 600;
        color: #0a3d2e;
        text-align: left;
        border-radius: 12px;
        background: transparent;
        border: 1.5px solid rgba(10, 61, 46, 0.15);
        text-decoration: none;
    }

    /* Home button: fixed height, identical to the parent category buttons. */
    .nav-links>li:not(.nav-dropdown)>a {
        box-sizing: border-box;
        height: var(--mytheme-nav-btn-h, 47px);
        padding-top: 0;
        padding-bottom: 0;
    }

    /* No hover effect on the sidebar buttons (Home included) - only the
       "active" (current page) state is highlighted. */
    .nav-links li a.active {
        color: #ffffff;
        background: #0a3d2e;
        border-color: #0a3d2e;
    }

    /* --- Category buttons: round thumbnail + name in one row (matching
         the "Home" button's rectangular, theme-outline design), name
         links to the category page, a separate arrow button expands
         the sub-categories. No hover fill on mobile; the category that
         is open on the sale page is filled with the theme green. --- */

    .nav-menu .nav-cat-row {
        display: flex;
        align-items: stretch;
        box-sizing: border-box;
        height: var(--mytheme-nav-btn-h, 47px);
        width: 100%;
        border: 1.5px solid rgba(10, 61, 46, 0.25);
        border-radius: 12px;
        overflow: hidden;
    }

    .nav-menu .nav-cat-toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
        width: 100%;
        padding: 12px 14px;
        font-family: inherit;
        font-size: 16px;
        font-weight: 600;
        color: #0a3d2e;
        text-align: left;
        text-decoration: none;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    /* Leaf category (no sub-categories): its own full outline box,
       same rectangular shape as the Home button. */
    .nav-menu li.nav-dropdown:not(.has-children)>.nav-cat-toggle {
        box-sizing: border-box;
        height: var(--mytheme-nav-btn-h, 47px);
        border: 1.5px solid rgba(10, 61, 46, 0.25);
        border-radius: 12px;
    }

    /* Active states: category open on the sale page */
    .nav-menu .nav-cat-row.is-active,
    .nav-menu li.nav-dropdown:not(.has-children)>.nav-cat-toggle.is-active {
        background: #0a3d2e;
        border-color: #0a3d2e;
    }

    .nav-menu .nav-cat-row.is-active .nav-cat-toggle,
    .nav-menu .nav-cat-row.is-active .nav-cat-arrow-btn,
    .nav-menu li.nav-dropdown:not(.has-children)>.nav-cat-toggle.is-active {
        color: #ffffff;
    }

    /* Parent of the open sub-category: softer highlight */
    .nav-menu .nav-cat-row.is-parent-active {
        border-color: #0a3d2e;
        background: rgba(10, 61, 46, 0.07);
    }

    .nav-menu .nav-cat-arrow-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        flex-shrink: 0;
        padding: 0;
        border: 0;
        /* no divider line before the arrow */
        background: transparent;
        color: #0a3d2e;
        cursor: pointer;
    }

    .nav-cat-thumb {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        overflow: hidden;
        background: rgba(10, 61, 46, 0.08);
    }

    .nav-cat-thumb img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .nav-cat-label {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-cat-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .nav-cat-arrow svg {
        transition: transform 0.3s ease;
    }

    /* Scoped to the row that belongs directly to this expanded category -
       not to any nested category further down the tree - so a parent
       being open doesn't also spin the arrows of its still-closed
       children/grandchildren. */
    .nav-dropdown.expanded>.nav-cat-row .nav-cat-arrow svg {
        transform: rotate(180deg);
    }

    .nav-dropdown-menu {
        list-style: none;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0 0 0 26px;
        /* indent so sub-categories read as children */
        border: 0;
        box-shadow: none;
        background: transparent;
        transition: max-height 0.35s ease;
    }

    .nav-dropdown-menu li {
        padding: var(--mytheme-nav-btn-gap, 8px) 0 0;
    }

    .nav-menu .nav-cat-sub-link {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        height: var(--mytheme-nav-btn-h, 47px);
        gap: 10px;
        width: 100%;
        min-width: 0;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 600;
        color: #0a3d2e;
        text-decoration: none;
        background: transparent;
        border: 1.5px solid rgba(10, 61, 46, 0.15);
        border-radius: 12px;
    }

    .nav-cat-sub-link .nav-cat-thumb {
        width: 28px;
        height: 28px;
    }

    .nav-menu .nav-cat-sub-link.is-active {
        color: #ffffff;
        background: #0a3d2e;
        border-color: #0a3d2e;
    }

    .nav-sidebar-extra-links {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        width: 100%;
        padding: 18px 24px 24px;
        border-top: 1px solid rgba(10, 61, 46, 0.1);
        background: #ffffff;
    }

    .nav-track-order-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 13px 20px;
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
        text-decoration: none;
        border-radius: 12px;
        background: #0a3d2e;
        border: 2px solid #0a3d2e;
        box-shadow: 0 4px 14px rgba(10, 61, 46, 0.25);
        transition: all 0.3s ease;
    }

    .nav-track-order-btn:hover {
        background: #c9a227;
        border-color: #c9a227;
        color: #0a3d2e;
        transform: translateY(-2px);
    }

    .nav-links-desktop {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        grid-template-columns: auto 1fr auto;
        padding: 10px 20px;
        height: auto;
    }

    .nav-logo {
        justify-self: center;
    }

    .nav-logo .logo-text {
        font-size: 28px;
    }

    .nav-logo img {
        max-height: 68px;
        margin-top: -10px;
        margin-bottom: -10px;
    }

    .nav-right .profile-icon {
        display: none;
    }

    .nav-icon {
        width: 38px;
        height: 38px;
    }

    .nav-icon svg {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 782px) {
    .admin-bar .nav-menu {
        padding-top: 56px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 8px 14px;
        height: auto;
    }

    .nav-logo .logo-text {
        font-size: 23px;
    }

    .nav-logo img {
        max-height: 60px;
        margin-top: -9px;
        margin-bottom: -9px;
    }

    .nav-icon {
        width: 36px;
        height: 36px;
    }

    .nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 9px;
        top: -4px;
        right: -4px;
    }

    .mobile-toggle {
        padding: 8px 10px;
    }

    .mobile-toggle span {
        width: 20px;
    }

    .nav-menu {
        width: 75%;
        max-width: 75%;
        padding: 0;
    }

    .nav-menu-scroll {
        padding: 4px 20px 30px;
    }

    .nav-sidebar-extra-links {
        padding: 18px 20px 24px;
    }

    .nav-links li a {
        font-size: 16px;
        padding: 12px 20px;
    }

    .mobile-menu-topbar {
        width: 100%;
        margin: 0 0 10px;
        padding: 12px 20px;
    }

    .menu-close {
        width: 36px;
        height: 36px;
    }

    .menu-close svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 400px) {
    .nav-logo .logo-text {
        font-size: 20px;
    }

    .nav-logo img {
        max-height: 54px;
        margin-top: -8px;
        margin-bottom: -8px;
    }

    .nav-container {
        padding: 8px 10px;
    }

    .nav-icon {
        width: 34px;
        height: 34px;
    }

    .nav-icon svg {
        width: 15px;
        height: 15px;
    }

    .cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .mobile-toggle {
        padding: 6px 8px;
    }

    .mobile-toggle span {
        width: 18px;
    }
}

/* ========================================
   Old Header Override
   ======================================== */

.site-header {
    display: none;
}

/* ========================================
   Main Content
   ======================================== */

.site-main {
    padding-top: var(--mytheme-navbar-height, 72px);
    min-height: 60vh;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: #0a3d2e;
    color: rgba(247, 243, 233, 0.74);
    font-size: 14px;
    margin-top: 0;
    border-top: 8px solid #c9a227;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.footer-brand-name {
    color: #faf8f3;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

.footer-logo img {
    max-height: 45px;
    width: auto;
}

.footer-title {
    color: #faf8f3;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-text {
    color: rgba(247, 243, 233, 0.6);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    color: rgba(247, 243, 233, 0.7);
    border: 2px solid rgba(247, 243, 233, 0.25);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: #c9a227;
    color: #c9a227;
    transform: translateY(-3px);
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list a {
    color: rgba(247, 243, 233, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #c9a227;
    transform: translateX(4px);
}

.footer-newsletter {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(247, 243, 233, 0.24);
}

.footer-newsletter:focus-within {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.footer-newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: #faf8f3;
    font-size: 14px;
    outline: none;
}

.footer-newsletter-input::placeholder {
    color: rgba(247, 243, 233, 0.4);
}

.footer-newsletter-btn {
    padding: 12px 18px;
    background: #c9a227;
    border: none;
    color: #0a3d2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.footer-newsletter-btn:hover {
    background: #e8c547;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a {
    color: rgba(247, 243, 233, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #c9a227;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-copyright {
    color: rgba(247, 243, 233, 0.4);
    font-size: 13px;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 45px 0 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-top>.footer-col:last-child {
        grid-column: 1 / -1;
    }

    .footer-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding: 35px 0 25px;
    }

    .footer-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-top {
        gap: 22px;
        padding: 28px 0 20px;
    }

    .footer-brand-name {
        font-size: 20px;
    }

    .footer-text {
        font-size: 13px;
    }

    .footer-list a {
        font-size: 13px;
    }

    .footer-newsletter-input {
        font-size: 13px;
        padding: 10px 14px;
    }

    .footer-newsletter-btn {
        padding: 10px 14px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

/* ========================================
   Floating WhatsApp Button
   ======================================== */

.whatsapp-wrapper {
    position: fixed;
    bottom: 60px;
    right: 28px;
    z-index: 1001;
    display: block;
}

.whatsapp-float {
    position: relative;
    width: 60px;
    height: 60px;
    background: #25d366;
    border: 3px solid #faf8f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.6);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    background: #20bd5a;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: none;
}

.whatsapp-preview {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 260px;
    padding-bottom: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

.whatsapp-wrapper:hover .whatsapp-preview,
.whatsapp-wrapper:focus-within .whatsapp-preview,
.whatsapp-wrapper.is-open .whatsapp-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.whatsapp-wrapper.whatsapp-preview-force-closed .whatsapp-preview {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.whatsapp-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: none;
    border-radius: 50%;
    color: #1f2937;
    cursor: pointer;
    padding: 0;
    z-index: 1;
}

.whatsapp-preview-name {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    cursor: pointer;
}

.whatsapp-preview-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px 18px 18px;
}

.whatsapp-preview-arrow {
    position: absolute;
    bottom: -7px;
    right: 24px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.06);
}

.whatsapp-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-preview-logo {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #c9a227, #0a3d2e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(10, 61, 46, 0.3);
}

.whatsapp-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.whatsapp-preview-initial {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.whatsapp-preview-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #1a5c45;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.whatsapp-preview-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.whatsapp-preview-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-preview-info em {
    font-size: 11.5px;
    font-style: normal;
    color: #1a5c45;
    font-weight: 600;
}

.whatsapp-preview-text {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 12px;
    border-top-left-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #1f2937;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.55);
    }

    70% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-wrapper {
        bottom: 48px;
        right: 20px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 400px) {
    .whatsapp-wrapper {
        bottom: 40px;
        right: 16px;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ========================================
   Growhub Visual System
   ======================================== */

:root {
    --growhub-forest: #0a3d2e;
    --growhub-leaf: #1a5c45;
    --growhub-sage: #f9fafb;
    --growhub-cream: #faf8f3;
    --growhub-paper: #ffffff;
    --growhub-ink: #1f2937;
    --growhub-muted: #6b7280;
    --growhub-line: #e5e7eb;
    --growhub-gold: #c9a227;
    --growhub-coral: #f59e0b;
    --growhub-shadow: 0 18px 60px rgba(10, 61, 46, 0.1);
}

body {
    color: var(--growhub-ink);
    background: var(--growhub-cream);
}

a {
    color: var(--growhub-leaf);
}

button,
input,
select,
textarea {
    font: inherit;
}

.btn,
.button,
button[type="submit"],
input[type="submit"] {
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.business-callout {
    padding: 28px 0 72px;
    background: var(--growhub-sage);
    border-top: 1px solid var(--growhub-line);
}

.business-callout-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Mobile sidebar drawer — hidden entirely on desktop.
   It only appears as a slide-out panel below the 992px breakpoint
   (see the @media (max-width: 992px) block above). Scoped to
   min-width: 993px here so it no longer clobbers that block's
   `display: flex` (same specificity, later in the file = it was
   winning even on mobile, which is why the drawer never opened). */
@media (min-width: 993px) {
    .nav-menu {
        display: none;
    }
}

/* Navbar over the hero: kept as the same plain white style used on
   every other page (no transparent or cream variant). */

.business-callout h2 {
    max-width: 620px;
    margin: 4px 0 8px;
    color: #0a3d2e;
    font-family: Georgia, serif;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

.business-callout p {
    max-width: 620px;
    margin: 0;
    color: #6b7280;
}

.business-callout .btn-primary {
    flex-shrink: 0;
    display: inline-flex;
    padding: 14px 22px;
    background: #0a3d2e;
    color: #faf8f3;
    text-decoration: none;
    border-radius: 50px;
}

@media (max-width: 992px) {
    .business-callout-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .business-callout {
        padding-bottom: 48px;
    }
}