:root {
    --forest: #334633;
    --forest-dark: #24321f;
    --brass: #C9A15D;
    --brass-light: #e6c98a;
    --ivory: #F6F3EC;
    --ink: #1a1a1a;
    --font-display: 'Cormorant Upright', 'Poppins', serif;
    --font-body: 'Poppins', sans-serif;
}


body {
    padding-top: 115px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    border-bottom: 1px solid #ece7da;
    box-shadow: 0 2px 14px rgba(51, 70, 51, 0.08);
}

/* ===================== TOPBAR ===================== */
.topbar {
    background: linear-gradient(90deg, var(--forest-dark), var(--forest) 55%, var(--forest-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 24px;
    position: relative;
    padding: 8px 24px;
    min-height: 37px;
}

.topbar-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.topbar p {
    background: transparent;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    color: var(--ivory);
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0 !important;
}

.topbar p i {
    color: var(--brass-light);
    font-size: 13px;
}

.topbar-code b {
    color: var(--brass-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.topbar-left.divider {
    color: var(--brass-light);
    opacity: 0.6;
    margin: 0 4px;
}

.topbar-right {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.topbar-right a {
    color: var(--ivory);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.2px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.topbar-right a:hover {
    color: var(--brass-light);
    text-decoration: none;
}

.topbar-right .divider {
    color: var(--ivory);
    opacity: 0.35;
}

.topbar-right i {
    font-size: 16px;
    color: var(--ivory);
    transition: color 0.2s ease;
}

.topbar-right a:hover i {
    color: var(--brass-light);
}

/* ===================== HEADER / MAIN NAV ===================== */
.header {
    background-color: #fff !important;
    border-bottom: 1px solid #ece7da;
    box-shadow: 0 2px 14px rgba(51, 70, 51, 0.05);
}

.main-header {
    padding: 16px 0;
    position: relative;
    gap: 10px;
}

.main-header .logo {
    display: flex;
    align-items: center;
}

.main-header .logo img {
    height: 42px;
}

.desktop-only-icon {
    display: inline-flex;
}

/* hamburger button (hidden on desktop) */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.hamburger-btn:hover {
    background: rgba(51, 70, 51, 0.06);
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger-lines .h-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--forest);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.hamburger-lines .l2 {
    width: 70%;
}

.hamburger-btn.active .l1 {
    transform: translateY(7px) rotate(45deg);
    width: 100%;
}

.hamburger-btn.active .l2 {
    opacity: 0;
}

.hamburger-btn.active .l3 {
    transform: translateY(-7px) rotate(-45deg);
    width: 100%;
}

.main_header-container {
    width: 100%;
    max-width: 1600px !important;
    margin: 0 auto;
    padding: 0 15px;
}

.main-header .navbar-nav {
    flex-direction: row;
    gap: 28px;
    align-items: center;
}

.main-header .navbar-nav>li {
    position: relative;
}

.main-header .navbar-nav .nav-link {
    color: var(--ink) !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 0 !important;
    position: relative;
}

.main-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--brass);
    transition: width 0.25s ease;
}

.main-header .navbar-nav .nav-link:hover {
    color: var(--forest) !important;
}

.main-header .navbar-nav .nav-link:hover::after {
    width: 100%;
}

.shop-dropdown a i {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.25s ease;
}


/* shop mega menu */
.shop-mega-menu {
    display: none;
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 20px 40px rgba(36, 50, 31, 0.14);
    border-radius: 4px;
    border-top: 3px solid var(--brass);
    padding: 28px 32px;
    gap: 36px;
    width: 680px;
    z-index: 20;
}

.shop-dropdown.active .shop-mega-menu {
    display: flex;
}

.shop-dropdown.active>.nav-link i {
    transform: rotate(180deg);
}

.shop-mega-col h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee5cf;
    padding-bottom: 8px;
}

.shop-mega-col a {
    display: block;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 400;
    text-transform: none;
    color: #565656 !important;
    padding: 6px 0;
    transition: 0.2s ease;
}

.shop-mega-col a:hover {
    color: var(--forest) !important;
    padding-left: 5px;
}

.shop-mega-banner {
    background: linear-gradient(160deg, var(--forest), var(--forest-dark));
    border-radius: 6px;
    padding: 20px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.banner-eyebrow {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brass-light);
    margin-bottom: 8px;
}

.banner-title {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
}

.banner-link {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brass-light) !important;
    text-decoration: none;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.banner-link::after {
    display: none;
}

.main-header .topbar-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* every icon anchor is a centred box so the cart (Bootstrap Icon) lines up
   with the FontAwesome search / wishlist / profile icons */
.main-header .topbar-icons > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.main-header .topbar-icons i {
    color: var(--ink);
    font-size: 19px;
    margin: 0;
    line-height: 1;
    display: block;
    cursor: pointer;
    transition: color 0.2s ease;
}

.main-header .topbar-icons a:hover i {
    color: var(--forest);
}

.main-header .cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Bootstrap Icons add a baseline nudge via vertical-align; cancel it so the
   cart glyph is vertically centred like the FontAwesome icons */
.main-header .topbar-icons .bi::before {
    display: block;
}

.main-header .cart-count {
    position: absolute;
    top: -10px;
    right: -8px;
    background-color: var(--brass);
    color: #fff;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-indent: 0;
    width: 17px;
    height: 17px;
    padding: 1px 0 0 0.5px;
    box-sizing: border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ===================== MOBILE SIDEBAR MODAL ===================== */
.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 20, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 1040;
}

.mobile-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

body.sidebar-lock {
    overflow: hidden;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(340px, 86vw);
    background: var(--ivory);
    z-index: 1050;
    transform: translateX(-105%);
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    border-right: 4px solid var(--brass);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.2);
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 10px;
    background-image: repeating-linear-gradient(to bottom,
            var(--forest) 0,
            var(--forest) 6px,
            transparent 6px,
            transparent 14px);
    opacity: 0.5;
}

.mobile-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 16px 26px;
    background: var(--forest);
}

.mobile-sidebar-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.brand-mark {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--brass-light);
    line-height: 1;
}

.brand-word {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #fff;
}

.mobile-sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-sidebar-close:hover {
    background: var(--brass);
    transform: rotate(90deg);
}

.mobile-sidebar-stamp {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 26px 6px;
    padding: 10px 14px;
    border: 1.5px dashed var(--brass);
    border-radius: 30px;
    color: var(--forest-dark);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14.5px;
    font-weight: 600;
}

.mobile-sidebar-stamp i {
    color: var(--brass);
    font-size: 16px;
}

.mobile-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 10px;
}

.m-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.m-nav-item {
    border-bottom: 1px solid #e9e2cf;
}

.m-nav-item>a,
.m-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 15px 26px;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 500;
    color: var(--forest-dark);
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.m-nav-item>a:hover,
.m-nav-toggle:hover {
    background: rgba(201, 161, 93, 0.14);
    color: var(--forest);
    padding-left: 32px;
}

.m-nav-idx {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--brass);
    margin-right: 12px;
    letter-spacing: 1px;
}

.m-nav-toggle i {
    font-size: 12px;
    color: var(--brass);
    transition: transform 0.3s ease;
}

.m-nav-item.open .m-nav-toggle i {
    transform: rotate(180deg);
}

.m-nav-item.open .m-nav-toggle {
    background: rgba(201, 161, 93, 0.14);
    color: var(--forest);
}

.m-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #fdfcf8;
    padding: 0 26px;
}

.m-nav-item.open .m-nav-submenu {
    max-height: 600px;
    padding: 6px 26px 16px;
}

.m-sub-col {
    padding: 10px 0;
    border-bottom: 1px dotted #ddd3b8;
}

.m-sub-col:last-child {
    border-bottom: none;
}

.m-sub-col h5 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--forest);
    margin-bottom: 8px;
}

.m-sub-col a {
    display: block;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: #5c5c52;
    padding: 5px 0 5px 4px;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.m-sub-col a:hover {
    color: var(--brass);
    padding-left: 10px;
}

.mobile-sidebar-quick {
    display: flex;
    gap: 8px;
    padding: 4px 26px 16px;
}

.m-quick-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: #fff;
    border: 1px solid #e9e2cf;
    border-radius: 10px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--forest-dark);
    letter-spacing: 0.2px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.m-quick-btn i {
    font-size: 16px;
    color: var(--brass);
}

.m-quick-btn:hover {
    background: rgba(201, 161, 93, 0.14);
    border-color: var(--brass);
    color: var(--forest);
    transform: translateY(-2px);
}

.mobile-sidebar-foot {
    padding: 18px 26px 24px;
    border-top: 1px solid #e9e2cf;
    background: #fdfcf8;
}

.m-foot-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.m-foot-links a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--forest-dark);
    text-decoration: none;
}

.m-foot-links a:hover {
    color: var(--brass);
}

.m-foot-social {
    display: flex;
    gap: 14px;
}

.m-foot-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.m-foot-social a:hover {
    background: var(--brass);
    transform: translateY(-2px);
}

.navbar-toggler {
    display: none !important;
}

/* ===================== SEARCH — CENTER POPUP MODAL ===================== */
/* Search no icon click karta a center ma popup modal tarike khule che,
   inline expand thato nathi have. */

.search-input {
    /* base <div class="search-input"> hidden by default; JS toggles .active */
    position: fixed;
    top: 115px;
    left: 0;
    width: 100%;
    height: auto;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 0;
    box-sizing: border-box;
}

.search-input.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* dropdown panel background (below the header, like a shadowed sheet) */
.search-input::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    box-shadow: 0 18px 40px rgba(36, 50, 31, 0.18);
    border-bottom: 1px solid #ece7da;
}

.search-input > * {
    position: relative;
    z-index: 1;
}

.search-input {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 22px 20px;
}

/* the actual search input inside the dropdown */
.search-input input {
    width: 100%;
    max-width: 560px;
    height: 50px;
    border: 1.5px solid #e4e0d6;
    border-radius: 30px;
    padding: 0 48px 0 22px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 15px;
    color: #1a1a1a;
    background: #fdfcf8;
    outline: none;
    margin: 0 auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.search-input input::placeholder {
    color: #a8a196;
}

.search-input input:focus {
    border-color: var(--brass, #C9A15D);
    box-shadow: 0 0 0 3px rgba(201, 161, 93, 0.15);
    background: #fff;
}

/* search icon inside the input, right side */
.search-input::after {
    content: '\f002';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 22px;
    right: 50%;
    margin-right: calc(min(560px, 100% - 40px) / -2 + 44px);
    transform: translateY(17px);
    color: var(--brass, #C9A15D);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.search-input .autocom-box {
    width: 100%;
    max-width: 560px;
    margin: 10px auto 0;
}

.autocom-box {
    position: relative;
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(36, 50, 31, 0.2);
    list-style: none;
    padding: 8px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.search-input.active .autocom-box:not(:empty) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.autocom-box li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.autocom-box li:hover {
    background: rgba(201, 161, 93, 0.12);
}

.autocom-box li img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.autocom-box li span {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.35;
}

.mobile-sidebar,
.mobile-sidebar-overlay {
    position: fixed !important;
    z-index: 999999 !important;
}

/* 2) Khatri karો ke translateX bara j chhe (no interference) */
.mobile-sidebar {
    will-change: transform;
}

/* ===== Large desktop (1400px+) ===== */
@media (min-width: 1400px) {
    .main-header .navbar-nav {
        gap: 42px;
    }

    .main-header .navbar-nav .nav-link {
        font-size: 15px;
    }

    .main-header .logo img {
        height: 48px;
    }
}

/* ===== Tablet / small desktop (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    .main-header .navbar-nav {
        gap: 18px;
    }

    .main-header .navbar-nav .nav-link {
        font-size: 13px;
    }

    .shop-mega-menu {
        width: 560px;
        gap: 24px;
    }
}

/* ===== Below full desktop: topbar flows inline so the promo text and the
   Track Order / Help / social links can never overlap ===== */
@media (max-width: 1299px) {
    .topbar {
        justify-content: space-between;
        gap: 6px 16px;
        padding: 8px 16px;
    }

    .topbar-right {
        position: static;
        transform: none;
        right: auto;
        gap: 6px 14px;
    }

    .topbar-right a {
        font-size: 12.5px;
    }

    .topbar-right i {
        font-size: 15px;
    }
}

/* ===== Below 991px: mobile nav ===== */
@media (max-width: 991px) {
    .topbar {
        justify-content: center;
        row-gap: 4px;
    }

    .topbar-right {
        gap: 6px 12px;
    }

    .topbar p {
        font-size: 12px;
    }

    .main-header {
        justify-content: space-between;
        padding: 12px 0;
    }

    .main-header .logo {
        order: 1;
    }

    .main-header .logo img {
        height: 32px;
    }

    .main-header nav.navbar {
        display: none;
    }

    .main-header .topbar-icons {
        order: 2;
        gap: 14px;
        margin-left: auto;
    }

    .main-header .topbar-icons i {
        font-size: 20px;
    }

    .hamburger-btn {
        display: flex;
        order: 3;
    }

    /* Only cart stays on the mobile top bar; search/wishlist/login move into the sidebar */
    .desktop-only-icon {
        display: none;
    }

    .search-input {
        top: 96px;
    }

    /* ---- Mobile sidebar navbar list: tighter, cleaner spacing so items
       don't look bunched together ---- */
    .mobile-sidebar-nav {
        padding: 6px 0;
    }

    .m-nav-item>a,
    .m-nav-toggle {
        padding: 16px 22px;
        font-size: 15px;
    }

    .m-nav-idx {
        margin-right: 10px;
        font-size: 11px;
    }

    .m-nav-submenu {
        padding: 0 22px;
    }

    .m-nav-item.open .m-nav-submenu {
        padding: 8px 22px 18px;
    }

    .m-sub-col {
        padding: 12px 0;
    }

    .m-sub-col h5 {
        margin-bottom: 10px;
    }

    .m-sub-col a {
        padding: 6px 0 6px 4px;
        font-size: 14px;
    }
}

/* ===== Small mobile (<=575px) ===== */
@media (max-width: 575px) {
    .topbar {
        padding: 7px 12px;
        row-gap: 3px;
        min-height: 0;
    }
    body {
        padding-top: 112px;
    }
    .top-bar {
        flex-wrap: wrap;
        white-space: normal;
        text-align: center;
        font-size: 11px;
        padding: 6px 10px;
        gap: 4px;
    }
    .topbar-track {
        gap: 2px 10px;
        flex-wrap: wrap;
    }

    .topbar p {
        font-size: 11px;
    }

    /* the promo "|" separator gets in the way once the two lines stack */
    .topbar-left.divider {
        display: none;
    }

    .topbar-right {
        gap: 4px 12px;
    }

    .topbar-right a {
        font-size: 11.5px;
    }

    .topbar-right i {
        font-size: 14px;
    }

    .topbar span.divider {
        margin: 0 4px;
    }

    .main-header .logo img {
        height: 30px;
    }

    .main-header .topbar-icons {
        gap: 12px;
    }

    .main-header .topbar-icons i {
        font-size: 17px;
    }

    .mobile-sidebar {
        width: 70vw;
    }

    .search-input {
        top: 78px;
        padding: 16px 14px;
    }

    .search-input::after {
        top: 16px;
    }

    .m-nav-item>a,
    .m-nav-toggle {
        padding: 14px 18px;
        font-size: 14.5px;
    }

    .m-nav-submenu {
        padding: 0 18px;
    }

    .m-nav-item.open .m-nav-submenu {
        padding: 6px 18px 16px;
    }
}