/* =========================================================================
   Satva Gold — Modern header refresh
   Layered on top of existing header.php markup. Touches only visual presentation;
   every existing ID, dropdown trigger, search behaviour, JS hook and menu
   structure stays untouched.
   ========================================================================= */

:root {
    --hdr-gold: #b58b44;
    --hdr-gold-soft: #d4a84b;
    --hdr-gold-deep: #8a6932;
    --hdr-gold-tint: #faf6ed;
    --hdr-cream: #fcfaf5;
    --hdr-charcoal: #1a1a1a;
    --hdr-ink: #2b2620;
    --hdr-text: #4a4540;
    --hdr-muted: #8c857c;
    --hdr-border: #ece4d2;
    --hdr-divider: #f1ebde;
    --hdr-radius-pill: 999px;
}

/* ---- Wrapper + base ---- */
.header.headery-style-1 {
    background: linear-gradient(180deg, #fff 0%, var(--hdr-cream) 100%) !important;
    font-family: 'Mulish', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    position: relative;
}

/* Editorial gold accent line under the entire header */
.header.headery-style-1::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(181, 139, 68, 0.15) 12%,
            var(--hdr-gold) 50%,
            rgba(181, 139, 68, 0.15) 88%,
            transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.header.headery-style-1 .header-middle {
    background:
        radial-gradient(1200px 200px at 20% 0%, rgba(181, 139, 68, 0.05) 0%, transparent 60%),
        radial-gradient(1000px 200px at 90% 100%, rgba(181, 139, 68, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #fffdf8 0%, var(--hdr-cream) 100%) !important;
    border-bottom: 1px solid var(--hdr-divider) !important;
    padding: 16px 0 !important;
    position: relative;
}

/* Subtle inner top hairline (gold) */
.header.headery-style-1 .header-middle::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(181, 139, 68, 0.35), transparent);
    pointer-events: none;
}

.header.headery-style-1 .header-middle .container-fluid,
.header.headery-style-1 .header-bottom .container-fluid {
    max-width: none !important;
    width: 100% !important;
    padding: 0 40px !important;
}

@media (max-width: 1100px) {

    .header.headery-style-1 .header-middle .container-fluid,
    .header.headery-style-1 .header-bottom .container-fluid {
        padding: 0 24px !important;
    }
}

@media (max-width: 600px) {

    .header.headery-style-1 .header-middle .container-fluid,
    .header.headery-style-1 .header-bottom .container-fluid {
        padding: 0 16px !important;
    }

    .header.headery-style-1 .header-middle {
        padding: 10px 0 !important;
    }
}

/* ---- Logo ---- */
.header.headery-style-1 .header-middle .logo-box {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.header.headery-style-1 .header-middle .logo-box:hover {
    opacity: 0.85;
}

.header.headery-style-1 .header-middle .col-lg-3 a.logo-box img,
.header.headery-style-1 .header-middle .logo-box img {
    height: 56px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 768px) {

    .header.headery-style-1 .header-middle .col-lg-3 a.logo-box img,
    .header.headery-style-1 .header-middle .logo-box img {
        height: 44px !important;
    }
}

/* ---- Search input (pill, polished) ---- */
.header.headery-style-1 .header-search-container {
    padding: 0 12px;
}

.header.headery-style-1 .header-search-input {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 22px 0 22px;
    background: var(--hdr-cream) !important;
    border: 1px solid var(--hdr-border) !important;
    border-radius: var(--hdr-radius-pill) !important;
    color: var(--hdr-muted) !important;
    cursor: text;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-size: 14px !important;
    text-align: left !important;
    box-shadow: inset 0 1px 0 rgba(40, 30, 10, 0.02);
    overflow: hidden;
}

.header.headery-style-1 .header-search-input:hover,
.header.headery-style-1 .header-search-input:focus-within {
    border-color: var(--hdr-gold) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(181, 139, 68, 0.10);
}

.header.headery-style-1 .header-search-input .fa-search {
    color: var(--hdr-gold) !important;
    font-size: 14px !important;
    flex-shrink: 0;
}

.header.headery-style-1 .header-search-input #rotatingPlaceholder {
    color: var(--hdr-muted) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.2px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---- Toolbar layout ---- */
.header.headery-style-1 .header-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    flex-wrap: nowrap;
}

/* ---- My Account dropdown ---- */
.header.headery-style-1 .header-toolbar .user-info {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.header.headery-style-1 .header-toolbar .user-info .dropdown {
    margin: 0;
    padding: 0;
}

.header.headery-style-1 .header-toolbar .user-info .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 2px 28px !important;
    background: #fff !important;
    border: 1px solid var(--hdr-border) !important;
    border-radius: var(--hdr-radius-pill) !important;
    color: var(--hdr-ink) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 3px rgba(40, 30, 10, 0.05);
    text-decoration: none !important;
}

.header.headery-style-1 .header-toolbar .user-info .dropdown-toggle:hover {
    border-color: var(--hdr-gold) !important;
    background: var(--hdr-gold-tint) !important;
    color: var(--hdr-gold-deep) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(181, 139, 68, 0.18);
}

.header.headery-style-1 .header-toolbar .user-info .dropdown-toggle .fa-angle-down {
    font-size: 11px !important;
    margin-left: 2px !important;
    transition: transform 0.2s ease;
}

.header.headery-style-1 .header-toolbar .user-info .dropdown.show .dropdown-toggle .fa-angle-down,
.header.headery-style-1 .header-toolbar .user-info .dropdown-toggle[aria-expanded="true"] .fa-angle-down {
    transform: rotate(180deg);
}

/* Dropdown menu */
.header.headery-style-1 .header-toolbar .user-info .dropdown-menu {
    margin-top: 10px !important;
    padding: 8px !important;
    background: #fff !important;
    border: 1px solid var(--hdr-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(40, 30, 10, 0.12) !important;
    min-width: 220px !important;
    animation: hdrFadeDown 0.18s ease-out;
}

@keyframes hdrFadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header.headery-style-1 .header-toolbar .user-info .dropdown-menu .dropdown-item {
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--hdr-text) !important;
    letter-spacing: 0.2px;
    transition: background 0.12s ease, color 0.12s ease;
    text-decoration: none !important;
    display: block;
}

.header.headery-style-1 .header-toolbar .user-info .dropdown-menu .dropdown-item:hover {
    background: var(--hdr-gold-tint) !important;
    color: var(--hdr-gold-deep) !important;
}

/* ---- Social icons (kept, refined, hidden on tablet/mobile) ---- */
.header.headery-style-1 .header-toolbar .social.social-round {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 0 4px !important;
    padding: 0 0 0 14px !important;
    list-style: none;
    border-left: 1px solid var(--hdr-divider) !important;
}

.header.headery-style-1 .header-toolbar .social.social-round .social__item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.header.headery-style-1 .header-toolbar .social.social-round .social__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: background 0.18s ease, transform 0.18s ease;
}

.header.headery-style-1 .header-toolbar .social.social-round .social__link:hover {
    background: var(--hdr-gold-tint) !important;
    transform: translateY(-1px);
}

.header.headery-style-1 .header-toolbar .social.social-round .social__link img {
    width: 20px !important;
    height: 20px !important;
    opacity: 0.7;
    transition: opacity 0.18s ease;
}

.header.headery-style-1 .header-toolbar .social.social-round .social__link:hover img {
    opacity: 1;
}

@media (max-width: 1100px) {
    .header.headery-style-1 .header-toolbar .social.social-round {
        display: none !important;
    }
}

/* ---- Bottom navigation strip (color-only refresh — keep layout untouched so megamenu hover stays intact) ---- */
.header.headery-style-1 .header-bottom.fixed-header {
    background: #fcfaf4 !important;
    border-top: 1px solid var(--hdr-divider) !important;
    border-bottom: 1px solid var(--hdr-divider) !important;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

/* When sticky-active, give it a soft shadow */
.header.headery-style-1 .header-bottom.fixed-header.is-sticky,
.header.headery-style-1 .header-bottom.fixed-header.scroll {
    box-shadow: 0 4px 18px rgba(40, 30, 10, 0.06) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: saturate(140%) blur(8px);
}

/* ---- Main menu — color-only refresh (layout/positions untouched so megamenu hover keeps working) ---- */
.header.headery-style-1 .mainmenu .mainmenu__item>a {
    color: var(--hdr-ink) !important;
    transition: color 0.2s ease;
}

.header.headery-style-1 .mainmenu .mainmenu__item:hover>a,
.header.headery-style-1 .mainmenu .mainmenu__item.active>a,
.header.headery-style-1 .mainmenu .mainmenu__item.menu-item-has-children:hover>a {
    color: var(--hdr-gold-deep) !important;
}

/* ---- Search overlay button (mobile/tablet trigger) ---- */
.header.headery-style-1 #searchBtn {
    color: var(--hdr-ink) !important;
    transition: color 0.2s ease;
}

.header.headery-style-1 #searchBtn:hover {
    color: var(--hdr-gold) !important;
}

/* ---- Promo banner (top-most, when active) ---- */
.header.headery-style-1 .header-top.flashSale_top {
    background: linear-gradient(90deg, var(--hdr-charcoal) 0%, #2a2a2a 50%, var(--hdr-charcoal) 100%) !important;
    border-bottom: 1px solid var(--hdr-gold) !important;
}

.header.headery-style-1 .header-top.flashSale_top .header-text {
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
}

.header.headery-style-1 .header-top.flashSale_top .header-text span {
    color: var(--hdr-gold-soft) !important;
    font-weight: 800;
}