/* Global resets for body scroll lock */
.body-no-scroll {
    overflow: hidden !important;
}

.d-none {
    display: none !important;
}

/* ==========================================================================
   1. TOP PROMO BAR
   ========================================================================== */
.top-promo-bar {
    background-color: #9c8b7c;
    color: #ffffff;
    font-size: 13px;
    padding: 10px 0;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 400;
    height: 40px;
}

.top-promo-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-promo-center {
    width: 100%;
}

/* ==========================================================================
   2. MAIN SITE HEADER
   ========================================================================== */
.main-site-header {
    background-color: transparent;
    /* backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); */
    padding: 18px 0;

    width: 100%;
    left: 0;
    top: 40px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.classHome .main-site-header {
    position: fixed;
}

.header-main-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1790px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Affix / Sticky */
.main-site-header.header-affixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    animation: headerSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-affix-spacer {
    display: none;
}

.header-affix-spacer.active {
    display: block;
}

/* Left Group: Hamburger + Shop Text */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}

.menu-hamburger-trigger {
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    transition: opacity 0.25s ease;
}

.menu-hamburger-trigger span {
    font-size: 30px !important;
    font-weight: 300;
}

.header-shop-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    text-transform: capitalize;
    transition: color 0.25s ease;
    user-select: none;
}

/* Center Group: Logo */
.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 30px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

.main-site-header.header-affixed .logo-link img {
    height: 30px;
}

/* Right Group: Action Icons */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 22px;
    justify-content: flex-end;
}

.header-search-trigger {
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.25s ease;
}


.header-search-trigger span {
    font-size: 28px !important;
    font-weight: 300;
}

.action-item-wrap {
    display: flex;
    align-items: center;
}

.header-action-btn {
    display: flex;
    align-items: center;
    color: #1a1a1a !important;
    text-decoration: none;
    transition: color 0.25s ease;
}

.action-icon {
    font-size: 28px !important;
    font-weight: 300;
}

.action-btn-text {
    display: none !important;
}

/* Basket / Cart Indicator Customization */
.basket-icon-container {
    position: relative;
    display: flex;
    align-items: center;
}

.basket-badge-count {
    position: absolute;
    top: -5px;
    right: -7px;
    background-color: #9c8b7c;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   3. SLIDE-DOWN SEARCH DROPDOWN
   ========================================================================== */
.header-search-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(84, 78, 74, 0.95);
    /* Dark taupe background with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    /* Sits on top of the site header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-modal-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.85;
}

.search-modal-close-btn:hover {
    transform: rotate(90deg);
    opacity: 1;
}

.search-modal-close-btn span {
    font-size: 36px !important;
    font-weight: 300;
}

.search-dropdown-inner {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.search-modal-title {
    font-family: var(--font-family2), 'Playfair Display', serif;
    font-size: clamp(48px, 6vw, 60px);
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
    text-align: center;
}

.dropdown-search-form {
    position: relative;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding-bottom: 8px;
}

.dropdown-search-input {
    width: 100%;
    height: 50px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 45px 10px 0 !important;
    font-size: 20px;
    color: #ffffff !important;
    outline: none !important;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

/* Placeholder color styling */
.dropdown-search-input::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
    opacity: 1;
}

.dropdown-search-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

.dropdown-search-input::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

.dropdown-search-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.dropdown-search-btn:hover {
    background-color: transparent !important;
    opacity: 0.7;
}

.dropdown-search-btn span {
    font-size: 28px !important;
    font-weight: 300;
}

@media (max-width: 768px) {
    .search-dropdown-inner {
        padding: 0 24px;
    }

    .search-modal-title {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .dropdown-search-input {
        font-size: 16px;
        height: 40px;
    }

    .dropdown-search-btn span {
        font-size: 24px !important;
    }

    .search-modal-close-btn {
        top: 20px;
        right: 20px;
    }

    .search-modal-close-btn span {
        font-size: 28px !important;
    }
}

/* ==========================================================================
   4. SLIDE-OUT DRAWER MENU (Image 2 style)
   ========================================================================== */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    max-width: 85%;
    height: 100%;
    background-color: #9c8b7c;
    z-index: 9999;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

/* Drawer Header with Close Button */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 12px 0px;
}

.mobile-drawer-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.mobile-drawer-close-btn span {
    font-size: 24px !important;
    font-weight: 300;
}

/* Drawer Navigation List */
.mobile-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 20px 40px 20px;
}

/* Customize scrollbar in drawer for modern feel */
.mobile-drawer-body::-webkit-scrollbar {
    width: 4px;
}

.mobile-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.mobile-accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mobile-accordion-item,
.mobile-accordion-item-link {
    display: block;
    border: none;
    padding: 0;
    margin: 0;
}

.mobile-accordion-trigger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    cursor: pointer;
    user-select: none;
}

.accordion-title-link {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    text-transform: capitalize;
    display: block;
    transition: color 0.25s ease;
    flex: 1;
}

.accordion-title-link:hover {
    color: #d8cfc4;
}

.accordion-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: color 0.25s ease;
}

.accordion-toggle-btn:hover {
    color: #ffffff;
}

/* Unicode triangle arrow styling */
.accordion-arrow {
    font-size: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.accordion-arrow.rotated {
    transform: rotate(180deg);
}

.mobile-direct-link {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    text-transform: capitalize;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.mobile-direct-link:hover {
    color: #d8cfc4;
}

/* L2 Sublist (Indented underneath parent) */
.mobile-l2-list {
    list-style: none;
    padding: 10px 0 4px 18px;
    margin: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mobile-l2-item {
    display: block;
    border: none;
    padding: 0;
    margin: 0;
}

.mobile-l2-trigger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
    cursor: pointer;
}

.mobile-l2-title {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    transition: color 0.25s ease;
    flex: 1;
}

.mobile-l2-title:hover,
.mobile-l2-trigger-row.active-row .mobile-l2-title {
    color: #ffffff;
}

.accordion-toggle-btn-l2 {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.25s ease;
}

.accordion-toggle-btn-l2:hover {
    color: #ffffff;
}

.accordion-arrow-l2 {
    font-size: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.accordion-arrow-l2.rotated {
    transform: rotate(180deg);
}

/* L3 Sublist */
.mobile-l3-list {
    list-style: none;
    padding: 8px 0 4px 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-l3-item {
    display: block;
}

.mobile-l3-trigger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
}

.mobile-l3-title,
.mobile-l3-link {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    display: block;
    transition: color 0.25s ease;
    flex: 1;
}

.mobile-l3-title:hover,
.mobile-l3-link:hover,
.mobile-l3-trigger-row.active-row .mobile-l3-title {
    color: #ffffff;
}

.accordion-toggle-btn-l3 {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.accordion-arrow-l3 {
    font-size: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.accordion-arrow-l3.rotated {
    transform: rotate(180deg);
}

/* L4/L5 Lists (Rarely used, but styled for safety) */
.mobile-l4-list,
.mobile-l5-list {
    list-style: none;
    padding: 6px 0 4px 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-l4-link,
.mobile-l4-title,
.mobile-l5-link {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-l4-link:hover,
.mobile-l4-title:hover,
.mobile-l5-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media screen and (max-width: 992px) {
    .main-site-header {
        padding: 12px 0;
    }

    .header-main-content {
        padding: 0 10px;
    }

    .main-site-header.header-affixed .logo-link img {
        max-height: 44px;
    }

    .header-right-group {
        gap: 16px;
    }

    .mobile-nav-drawer {
        width: 320px;
    }

    .top-promo-bar {
        display: none;
    }

    .main-site-header {
        top: 0;
    }
}

@media screen and (max-width: 575px) {
    .top-promo-bar {
        font-size: 11.5px;
        padding: 8px 4px;
    }

    .main-site-header {
        padding: 10px 0;
    }

    .logo-link img {
        height: 25px;
    }

    .main-site-header.header-affixed .logo-link img {
        max-height: 38px;
    }

    .header-left-group {
        gap: 10px;
    }

    .header-shop-text {
        font-size: 15px;
        display: none;
    }

    .menu-hamburger-trigger span {
        font-size: 22px !important;
    }

    .header-right-group {
        gap: 7px;
    }

    .action-icon,
    .header-search-trigger span {
        font-size: 22px !important;
    }

    .basket-badge-count {
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .mobile-nav-drawer {
        width: 290px;
    }
}