html, body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --background: #F9F9F7;
    --foreground: #333333;
    --accent: #D4AF37;
    --secondary: #C2B8B2;
    --text-muted: #666666;
    --white: #FFFFFF;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --header-height: 65px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
}

.premium-gold {
    color: var(--accent);
}

.bg-premium-gold {
    background-color: var(--accent);
}

.premium-btn {
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 32px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    border: none;
    transition: var(--transition-smooth);
}

.premium-btn:hover {
    background-color: #b8932d;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.secondary-btn {
    padding: 12px 32px;
    border: 1px solid var(--foreground);
    background: transparent;
    color: var(--foreground);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.secondary-btn:hover {
    background-color: var(--foreground);
    color: var(--white);
}

/* Header Styles */
.navbar-brand {
    letter-spacing: 0.15em;
    font-weight: 700;
    font-family: var(--font-serif);
    transition: var(--transition-smooth);
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground) !important;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.sticky-header {
    height: var(--header-height);
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
    z-index: 1050;
    background-color: var(--background);
}

.scrolled {
    background-color: rgba(249, 249, 247, 0.98) !important;
    backdrop-filter: blur(10px);
    height: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Header UI Fixes */
.no-caret::after {
    display: none;
}

.bg-gold-badge {
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
}

.dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.05);
    color: var(--accent);
}

.italic {
    font-style: italic;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(249, 249, 247, 0.8) 0%, rgba(249, 249, 247, 0.2) 50%, rgba(249, 249, 247, 0) 100%);
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--accent);
    font-style: italic;
}

/* Collections Grid */
.collection-card {
    position: relative;
    overflow: hidden;
    height: 450px;
    margin-bottom: 30px;
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    color: var(--white);
    z-index: 3;
}

/* Section Padding */
.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    :root {
        --header-height: 60px;
    }

    .py-100 {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
        letter-spacing: 0.1em;
    }

    .hero-title {
        font-size: 3rem !important;
        line-height: 1.2;
    }

    .display-1 {
        font-size: 3.5rem !important;
    }

    .display-3 {
        font-size: 2.2rem !important;
    }

    .display-4 {
        font-size: 2.5rem !important;
    }

    .hero-content {
        text-align: center;
        padding: 0 15px;
    }

    .hero-section {
        height: auto !important;
        min-height: 90vh !important;
        padding: 100px 0 60px;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(249, 249, 247, 0.4) 0%, rgba(249, 249, 247, 0.9) 100%) !important;
    }

    .hero-section .hero-content .d-flex.hero-btns-wrapper,
    .hero-section .hero-content .d-flex,
    .hero-section .d-flex.gap-3 {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 1.5rem !important;
        display: flex !important;
    }

    .hero-section .hero-btns-wrapper .btn,
    .hero-section .btn {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0.5rem auto !important;
    }

    .collection-card {
        height: 350px !important;
    }

    .collection-overlay {
        padding: 25px !important;
    }

    .product-card {
        width: 100% !important;
    }

    /* Fixed overlaps in header */
    .header-icons-gap {
        gap: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
        /* Slightly reduced padding for more content space */
    }

    .navbar-brand {
        font-size: 0.9rem !important;
        /* Smaller for very small mobile */
        max-width: 60%;
        line-height: 1.2;
    }

    .header-icons-gap {
        gap: 0.4rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .collection-card {
        height: 250px !important;
    }

    .display-5 {
        font-size: 1.6rem;
    }

    /* Force 2 Columns for Products */
    .col-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
}

@media (max-width: 380px) {
    .navbar-brand {
        font-size: 0.75rem !important;
        letter-spacing: 0.02em !important;
        left: 45% !important;
        transform: translate(-50%, -50%) !important;
        white-space: nowrap;
    }

    .header-icons-gap {
        gap: 0.25rem !important;
    }
}

@media (max-width: 340px) {
    .navbar-brand {
        font-size: 0.725rem !important;
        left: 42% !important;
    }
}

/* Premium Mobile Menu Styles */
.ls-1 {
    letter-spacing: 0.1em;
}

.ls-2 {
    letter-spacing: 0.2em;
}

/* Premium Mobile Menu & Offcanvas */
.offcanvas {
    background-color: var(--background);
    z-index: 9999 !important;
    /* Much higher to be sure */
    top: 0 !important;
    height: 100dvh !important;
    visibility: visible !important;
    border: none !important;
}

.offcanvas-start {
    width: 90% !important;
    max-width: 320px;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15);
}

.offcanvas-header {
    padding: 2.5rem 1.5rem 1.5rem;
    /* More top padding for announcement bar */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas-body {
    padding: 0 !important;
    overflow-y: auto;
}

.list-group-item {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    padding: 1.25rem 1.5rem !important;
    color: var(--foreground);
    text-decoration: none;
    display: block;
}

.list-group-item:hover,
.list-group-item:active {
    padding-left: 2rem !important;
    background-color: rgba(212, 175, 55, 0.05);
    color: var(--accent);
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.img-shimmer {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: inline-block;
    position: relative;
    animation-duration: 1.2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
}

/* Page Level Transition */
.page-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Premium Entrance Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.reveal-fade.active {
    opacity: 1;
}

/* Staggered Delay Utilities */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Product Card Micro-interactions */
.product-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover img {
    transform: scale(1.08);
}

/* Search Overlay - ensuring mobile centered */
.search-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    display: none !important;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    backdrop-filter: blur(15px);
}

.search-overlay.active {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: transform 0.3s;
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-input-group {
    border-bottom: 2px solid #333;
    background: transparent;
}

.search-input-group .form-control {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #333;
    padding: 20px 0;
    font-family: 'Playfair Display', serif;
}

.search-input-group .form-control:focus {
    box-shadow: none;
}

.trending-tag {
    padding: 8px 20px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.trending-tag:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

@media (max-width: 768px) {
    .search-input-group .form-control {
        font-size: 1.5rem;
    }

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

/* Offcanvas Filter Fix */
.offcanvas-filter {
    width: 100% !important;
    max-width: 400px;
}

.filter-toggle-btn {
    position: sticky;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
    .d-lg-block {
        display: none !important;
    }
}

.max-w-lg {
    max-width: 600px;
}

/* Premium Footer Marquee Strip */
.premium-marquee-wrap {
    overflow: hidden;
    width: 100%;
    background: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%) !important;
    border-top: 2px solid rgba(212, 175, 55, 0.3) !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important;
    padding: 1.5rem 0;
    position: relative;
}

.premium-marquee-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(212, 175, 55, 0.05) 0%,
            transparent 20%,
            transparent 80%,
            rgba(212, 175, 55, 0.05) 100%);
    pointer-events: none;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: marquee-infinite 35s linear infinite;
}

.marquee-content span {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.95);
    padding: 0 2rem;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.marquee-content .dot {
    width: 10px !important;
    height: 10px !important;
    background: radial-gradient(circle, var(--accent) 0%, rgba(212, 175, 55, 0.6) 100%) !important;
    border-radius: 50%;
    margin: 0 1.5rem;
    display: inline-block;
    box-shadow: 0 0 15px var(--accent), 0 0 30px rgba(212, 175, 55, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes marquee-infinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.mt-0 {
    margin-top: 0 !important;
}
/* --- Homepage Redesign Styles --- */

/* Hero Slider */
.hero-slider {
    height: 100vh;
    min-height: 600px;
}

.hero-slide-wrap {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slide-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s ease;
}

.carousel-item.active .hero-slide-wrap img {
    transform: scale(1.1);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content-inner {
    position: relative;
    z-index: 2;
    color: white;
}

.slide-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.slide-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.1s;
}

.slide-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.5s;
}

.slide-btns {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.7s;
}

.active .slide-title, 
.active .slide-subtitle, 
.active .slide-description, 
.active .slide-btns {
    opacity: 1;
    transform: translateY(0);
}

/* Category Showcase */
.category-card {
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #000;
}

.category-img-wrapper {
    height: 450px;
    overflow: hidden;
}

.category-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.1);
    opacity: 0.6;
}

.category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    transition: all 0.4s ease;
}

.shop-now-btn {
    display: inline-block;
    padding-bottom: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.category-card:hover .shop-now-btn {
    opacity: 1;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* Trending Products */
.product-card-premium {
    border: 1px solid rgba(0,0,0,0.05);
}

.product-img-wrap {
    height: 320px;
    background: #f9f9f9;
}

.product-img-wrap img {
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-actions {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card-premium:hover .product-actions {
    opacity: 1;
    visibility: visible;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.premium-btn-outline {
    background: transparent;
    border: 1px solid #333;
    color: #333;
    transition: all 0.3s ease;
}

.premium-btn-outline:hover {
    background: #333;
    color: #fff;
}

/* Features Section */
.feature-icon-wrap {
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrap i {
    width: 24px;
    height: 24px;
}

.feature-card:hover .feature-icon-wrap {
    background: var(--accent);
    color: #fff;
    transform: rotateY(360deg);
    transition: all 0.6s ease;
}

.header-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Custom Scroll Indicators for Mobile */
.trending-products .row::-webkit-scrollbar {
    display: none;
}

/* Adjustments for Existing Content */
.py-100 {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .py-100 {
        padding: 60px 0;
    }
    .hero-slider, .hero-slide-wrap {
        height: 80vh;
        min-height: 400px;
    }
    .slide-title {
        font-size: 2.5rem !important;
    }
    .category-img-wrapper {
        height: 300px;
    }
}

/* --- End Homepage Redesign Styles --- */
