/* ==========================================================================
   Shopify-Style Luxury Jewellery Header & Navigation
   ========================================================================== */
html, body {
    height: auto;
    min-height: 100%;
}

:root {
    --sf-gold: #d4af37;
    --sf-gold-dark: #b8902d;
    --sf-gold-light: #fbf5e8;
    --sf-dark: #121212;
    --sf-text: #222222;
    --sf-border: #ece5d8;
    --sf-bg-cream: #faf7f2;
}

/* Shared container */
.sf-wrap {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Top Announcement Bar (Shopify Minimalist Luxury)
   -------------------------------------------------------------------------- */
.announcement-bar {
    background: var(--gold, #1b3052);
    color: var(--theme-secondary, #f2e8d5);
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.8px;
    line-height: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.announcement-bar .announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
}
.announcement-bar .announcement-left,
.announcement-bar .announcement-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.announcement-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.announcement-bar a:hover {
    color: var(--theme-secondary, #f2e8d5);
    text-decoration: underline;
}
.announcement-bar .announcement-text {
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-align: center;
    flex-grow: 1;
    color: var(--theme-secondary, #f2e8d5);
}

/* --------------------------------------------------------------------------
   Main Sticky Header (Shopify Layout: Logo | Nav | Action Icons)
   -------------------------------------------------------------------------- */
.lux-header.sf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #ebe5dc;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.lux-header.sf-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Override old fixed header classes if any */
.header-bottom-luxury,
.header-bottom-luxury.sticky-header {
    position: static !important;
    animation: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto;
}

/* Header inner flex bar */
.sf-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

/* Brand Logo */
.brand-logo-text {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--sf-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none !important;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.brand-logo-text:hover {
    opacity: 0.88;
}
.brand-logo-text span {
    font-family: 'Outfit', sans-serif;
    color: var(--sf-gold-dark);
    font-size: 9.5px;
    letter-spacing: 3.5px;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
}

.brand-logo-img {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    width: auto;
    height: auto;
    max-height: 80px;
    max-width: 320px;
    transition: transform 0.2s ease;
}
.brand-logo-text:hover .brand-logo-img {
    transform: scale(1.02);
}
@media (min-width: 1200px) {
    .brand-logo-img {
        max-height: 86px;
        max-width: 350px;
    }
}
@media (min-width: 1400px) {
    .brand-logo-img {
        max-height: 90px;
        max-width: 380px;
    }
}
@media (max-width: 991px) {
    .brand-logo-img {
        max-height: 40px;
        max-width: 165px;
        margin: 0 auto;
    }
}

/* Desktop Navigation */
.sf-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 12px;
    overflow: visible;
}
.sf-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: clamp(2px, 0.8vw, 10px);
    white-space: nowrap;
}
.sf-nav-list > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.sf-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 0 8px;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}
.sf-nav-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--sf-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sf-nav-list > li:hover > a {
    color: var(--sf-gold-dark);
}
.sf-nav-list > li:hover > a::after {
    transform: scaleX(1);
}
.sf-caret {
    transition: transform 0.25s ease;
    stroke: currentColor;
}
.sf-nav-list > li:hover .sf-caret {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Luxury Agarbatti Standard Dropdown Menu
   -------------------------------------------------------------------------- */
.sf-nav-list > li.has-dropdown {
    position: relative;
}
.sf-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    border: 1px solid #ebe5dc;
    border-top: 2px solid var(--gold, #1b3052);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1002;
    text-align: left;
}
.sf-nav-list > li.has-dropdown:hover .sf-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sf-dropdown li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}
.sf-dropdown li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 18px;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #2c2d30;
    text-decoration: none !important;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: all 0.18s ease;
    white-space: nowrap;
    box-sizing: border-box;
}
.sf-dropdown li a:hover {
    background: var(--gold-subtle, rgba(27,48,82,0.08));
    color: var(--gold-dark, #101e35) !important;
    padding-left: 22px;
}
.dropdown-divider-line {
    height: 1px;
    background: #f0ebe1;
    margin: 6px 12px;
}

/* --------------------------------------------------------------------------
   Shopify Full-Width / Large Dropdown Mega Menu
   -------------------------------------------------------------------------- */
.sf-nav-list > li.has-mega {
    position: static;
}
.lux-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #ebe5dc;
    border-bottom: 3px solid #5A0C1A;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1001;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(85vh - 65px);
}
.sf-nav-list > li.has-mega:hover .lux-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lux-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 26px 32px;
    padding: 26px 0 22px;
    max-width: 100%;
    box-sizing: border-box;
}
.lux-mega-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}
.lux-mega-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #5A0C1A;
    text-transform: uppercase;
    text-decoration: none !important;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid #f1e7d8;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word;
    line-height: 1.35;
    display: block;
}
.lux-mega-title:hover {
    color: #C5A059;
    border-color: #5A0C1A;
}
.lux-mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lux-mega-col li a {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none !important;
    padding: 3px 0;
    transition: color 0.2s ease, transform 0.2s ease;
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
}
.lux-mega-col li a:hover {
    color: #5A0C1A;
    transform: translateX(4px);
    font-weight: 600;
}
.lux-mega-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--sf-bg-cream);
    border-top: 1px solid #eee8dc;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #666;
}
.lux-mega-foot a {
    color: #111;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.lux-mega-foot a:hover {
    color: var(--sf-gold-dark);
}

/* --------------------------------------------------------------------------
   Header Action Icons (Shopify Minimalist SVG Icons)
   -------------------------------------------------------------------------- */
.sf-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0 !important;
    margin-left: auto;
}
.header-dealership-btn {
    background: var(--sf-gold, #1b3052);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 11.5px;
    padding: 7px 12px;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0 !important;
}
.header-dealership-btn:hover {
    background: var(--sf-gold-dark, #101e35);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sf-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #1a1a1a;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.sf-icon-btn:hover {
    background: var(--sf-bg-cream);
    color: var(--sf-gold-dark);
}
.sf-icon-btn:active {
    transform: scale(0.94);
}
.sf-icon-btn svg {
    display: block;
    transition: transform 0.2s ease;
}
.sf-icon-btn .counter-badge {
    position: absolute;
    top: 3px;
    right: 2px;
    background: #5A0C1A;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 10px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.wishlist-count-badge,
.cart-count-badge {
    color: #ffffff !important;
}

/* User dropdown */
.user-menu-dropdown {
    position: relative;
}
.user-menu-dropdown:hover .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    min-width: 210px;
    border: 1px solid #ebe5dc;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1002;
}
.user-dropdown-content .ud-head {
    padding: 10px 16px;
    border-bottom: 1px solid #f2ede5;
    font-size: 12px;
    color: #666;
}
.user-dropdown-content a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    color: #222;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.user-dropdown-content a:hover {
    background: var(--sf-bg-cream);
    color: var(--sf-gold-dark);
    padding-left: 22px;
}

/* --------------------------------------------------------------------------
   Shopify Slide-Down Search Panel
   -------------------------------------------------------------------------- */
.sf-search-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #ffffff;
    border-top: 1px solid transparent;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, border-color 0.25s ease, padding 0.3s ease;
    padding: 0 25px;
}
.sf-search-panel.active {
    max-height: 100px;
    opacity: 1;
    padding: 16px 25px;
    border-top-color: #ebe5dc;
    border-bottom: 1px solid #ebe5dc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.sf-search-panel .search-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}
.sf-search-panel .live-search-input {
    width: 100%;
    height: 46px;
    padding: 0 50px 0 20px;
    border: 1px solid #ddd6c8;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    background: #faf8f5;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}
.sf-search-panel .live-search-input:focus {
    border-color: var(--sf-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}
.sf-search-panel .search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.sf-search-panel .search-btn:hover {
    color: var(--sf-gold-dark);
}
.sf-search-panel .search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ece5dc;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1005;
    display: none;
}

/* --------------------------------------------------------------------------
   Shopify Product Card Component Styling (.sf-card)
   -------------------------------------------------------------------------- */
.sf-card {
    background: #ffffff;
    border: 1px solid #eee8df;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.sf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.sf-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    background: #fbf9f6 url('../img/product-card-bg.jpg') no-repeat center bottom / cover;
    overflow: hidden;
}
.sf-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.sf-img-1,
.sf-img-2 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
}
.sf-img-2 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.sf-card:hover .sf-img-1 {
    transform: scale(1.05);
}
.sf-card:hover .sf-img-2 {
    opacity: 1;
    transform: scale(1.05);
}

/* Badges */
.sf-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
    pointer-events: none;
}
.sf-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #111;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
}
.sf-badge.sf-badge-sale {
    background: var(--sf-gold);
    color: #111;
    font-weight: 700;
}
.sf-badge.sf-badge-dark {
    background: #555;
}

/* Floating Wishlist Button */
.sf-wish {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, color 0.2s ease;
}
.sf-wish:hover {
    transform: scale(1.1);
    color: #d32f2f;
}

/* Slide-up Quick Action Overlay */
.sf-quick {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 6;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95) 40%);
}
.sf-card:hover .sf-quick {
    opacity: 1;
    transform: translateY(0);
}
.sf-quick-btn {
    flex: 1;
    padding: 8px 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sf-quick-btn:hover {
    background: #111;
    color: #fff;
}
.sf-quick-btn.sf-quick-add {
    background: #111;
    color: #fff;
    border-color: #111;
}
.sf-quick-btn.sf-quick-add:hover {
    background: var(--sf-gold);
    border-color: var(--sf-gold);
    color: #111;
}

/* Card Info */
.sf-card-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-grow: 1;
}
.sf-card-vendor {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #888;
    margin-bottom: 4px;
}
.sf-card-title {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
}
.sf-card-title a {
    color: #111;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sf-card-title a:hover {
    color: var(--sf-gold-dark);
}
.sf-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    font-family: 'Outfit', sans-serif;
}
.sf-price-now {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.sf-price-now.is-sale {
    color: var(--sf-gold-dark);
}
.sf-price-compare {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   Slider Overlay Eradication (Zero Overlap on Banner Images)
   -------------------------------------------------------------------------- */
.slider-area .preview-1 .nivo-caption,
.slider-area .nivo-caption,
.nivo-caption,
.slider-direction,
.slider-area .slider-direction,
[id^="slider-direction-"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* --------------------------------------------------------------------------
   Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 1300px) {
    .hide-md-down {
        display: none !important;
    }
    .dealership-full-text {
        display: none !important;
    }
    .header-dealership-btn {
        padding: 6px 9px !important;
        font-size: 11px !important;
    }
    .sf-nav-list > li > a {
        padding: 0 5px;
        font-size: 11.5px;
        letter-spacing: 0.4px;
    }
    .lux-mega-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 20px 22px;
    }
}
@media (max-width: 1150px) {
    .sf-nav-list > li.nav-item-story {
        display: none !important;
    }
    .sf-nav-list > li > a {
        padding: 0 4px;
        font-size: 11px;
        letter-spacing: 0.2px;
    }
    .brand-logo-text {
        font-size: 17px;
    }
}
@media (max-width: 1040px) {
    .sf-nav-list > li.nav-item-contact {
        display: none !important;
    }
}
@media (max-width: 991px) {
    .sf-nav,
    .sf-nav-list,
    .header-dealership-btn,
    .user-menu-dropdown {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    .sf-bar {
        height: 56px;
    }
    .brand-logo-text {
        font-size: 15px !important;
        flex: 1 1 auto;
        text-align: center;
    }
    .brand-logo-text span {
        font-size: 7.5px;
        letter-spacing: 1.5px;
    }
}
