:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F6F6F6;
    --text-primary: #1A1A1A;
    --accent-gold: #C5A059;
    --accent-sage: #9AB2A2;
    --border-color: #E5E5E5;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.category-section,
.featured-products,
.style-slider-section,
.manufacturing-video,
.brand-story,
.main-footer {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--text-primary);
    color: white;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 8px 0;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-wrapper {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.ticker-item,
.ticker-content span {
    display: inline-block;
    padding: 0 30px;
    font-weight: 500;
    /* Text alignment for seamless flow */
    white-space: nowrap;
}

.ticker-bar {
    background: #000;
    color: #fff;
    overflow: hidden;
    padding: 8px 0;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
}

.ticker-secondary {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    width: max-content;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Header */
.main-header {
    background: transparent;
    position: fixed;
    top: 36px;
    /* Below announcement bar */
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: white;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 20px 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    padding: 8px 15px;
    border-radius: 20px;
    width: 250px;
}

.search-container input {
    border: none;
    background: none;
    margin-left: 10px;
    outline: none;
    font-size: 13px;
    width: 100%;
}

.logo img {
    height: 60px;
    display: block;
    margin: 0 auto;
}

.header-utility {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    font-size: 18px;
}

.header-utility a {
    color: white;
    /* White at top */
    text-decoration: none;
    transition: all 0.3s;
}

.main-header.scrolled .header-utility a {
    color: var(--text-primary);
}

.header-utility a:hover {
    opacity: 0.6;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: white;
    /* White at top */
    color: var(--text-primary);
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.main-header.scrolled .cart-count {
    background: var(--text-primary);
    color: white;
}

/* Navigation */
.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding-bottom: 15px;
}

.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    /* White at top */
    transition: color 0.3s;
}

.main-header.scrolled .mobile-toggle {
    color: var(--text-primary);
}

.main-nav a {
    text-decoration: none;
    color: white;
    /* White at top */
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 0 20px;
    position: relative;
    transition: color 0.3s;
}

.main-header.scrolled .main-nav a {
    color: var(--text-primary);
}

.main-nav a:hover {
    color: var(--accent-gold);
}

.badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
}

.badge.luxe {
    background: #FDEEDC;
    color: #D48C45;
}

.badge.new {
    background: #E8F5E9;
    color: #4CAF50;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    background: #000; /* Taaki opacity ke waqt piche dark background dikhe */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 0.6; /* Opacity thodi aur kam kar di gayi hai */
    /* Slightly reduced for readability */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1) 30%, transparent);
    z-index: 2;
    /* Above slider, below text */
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    width: 100%;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
}

.hero-text-overlay h1 {
    font-family: var(--font-serif);
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 4px;
}

.hero-text-overlay p {
    font-size: 18px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: var(--text-primary);
    color: white;
}

/* Featured Products */
.featured-products {
    padding: 80px 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    letter-spacing: 3px;
    font-weight: 400;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-grid.dual-grid {
    max-width: 800px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
}

/* Category Section */
.category-section {
    padding: 60px 0;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 0 5%;
}

.category-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.03);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.category-overlay span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-overlay i {
    font-size: 14px;
}

/* Style Slider */
.style-slider-section {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.style-slider-header {
    max-width: 1440px;
    margin: 0 auto 50px;
    padding: 0 5%;
    text-align: center;
    display: block;
}

.style-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-slider-prev {
    left: 16px;
}

.style-slider-next {
    right: 16px;
}

.style-slider-btn:hover {
    background: var(--text-primary);
    color: #fff;
}

.style-slider-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.style-slider {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 18px 5% 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.style-slider::-webkit-scrollbar {
    display: none;
}

.style-slider-shell {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
}

.style-slider-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8%;
    z-index: 2;
    pointer-events: none;
}

.style-slider-fade--left {
    left: 5%;
    background: linear-gradient(90deg, #f8f4ee 10%, rgba(248, 244, 238, 0));
}

.style-slider-fade--right {
    right: 5%;
    background: linear-gradient(270deg, #f8f4ee 10%, rgba(248, 244, 238, 0));
}

.style-track {
    display: flex;
    gap: 22px;
    width: max-content;
    align-items: center;
}

.style-card {
    flex: 0 0 min(28vw, 420px);
    position: relative;
    display: block;
    aspect-ratio: 4 / 5.2;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    scroll-snap-align: start;
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.style-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.style-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.style-card:hover img {
    transform: scale(1.1);
}

.style-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

.style-card__overlay {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 1;
}

.style-card__kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 600;
}

.style-card__overlay h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    letter-spacing: 2px;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .style-card {
        flex-basis: min(42vw, 360px);
    }

    .style-slider-fade {
        width: 6%;
    }
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    transition: transform 0.22s ease;
}

.product-image-container {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .primary-image {
    opacity: 0;
}

.product-card:hover .secondary-image {
    opacity: 1;
    transform: scale(1.02);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 5px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-info {
    padding-top: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.price {
    font-weight: 600;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: 1px solid var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: var(--text-primary);
    color: white;
}

/* Manufacturing Video */
.manufacturing-video {
    padding: 90px 5%;
    background:
        radial-gradient(circle at top left, rgba(197, 160, 89, 0.18), transparent 32%),
        linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
}

.manufacturing-video__content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.manufacturing-video__intro h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 18px;
}

.manufacturing-video__intro p {
    color: #5d574d;
    font-size: 15px;
    max-width: 32ch;
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 600;
}

.manufacturing-video__player {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 16px 32px rgba(26, 26, 26, 0.14);
}

.manufacturing-video__player::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.manufacturing-video__player video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

/* Brand Story */
.brand-story {
    background: var(--bg-secondary);
    padding: 100px 10%;
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.brand-story h2 {
    font-family: var(--font-serif);
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 2px;
}

.secondary-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    padding-bottom: 5px;
}

/* Footer */
.main-footer {
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 50px;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 14px;
    letter-spacing: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.newsletter p {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    outline: none;
}

.newsletter-form button {
    padding: 0 30px;
    background: var(--text-primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-top {
        grid-template-columns: 1fr 2fr 1fr;
    }

    .search-container {
        width: 100%;
    }

    .style-card__overlay h3 {
        font-size: 26px;
    }

    .manufacturing-video__content {
        grid-template-columns: 1fr;
    }

    .manufacturing-video__intro p {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .announcement-bar {
        font-size: 9px;
    }

    .header-top {
        grid-template-columns: auto 1fr auto;
        padding: 15px 5%;
        gap: 15px;
    }

    .search-container {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .logo img {
        height: 40px;
    }

    .header-utility {
        gap: 15px;
        font-size: 16px;
        width: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 2000;
        transition: left 0.4s ease;
        padding: 80px 40px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav a {
        font-size: 18px;
        padding: 15px 0;
        display: block;
        border-bottom: 1px solid var(--bg-secondary);
        width: 100%;
        color: var(--text-primary) !important;
        /* Force dark color in mobile drawer */
    }

    .nav-close {
        display: block;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        display: none;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero {
        height: 100vh;
        aspect-ratio: auto;
    }

    .hero-text-overlay {
        left: 5%;
        right: 5%;
        text-align: center;
    }

    .hero-text-overlay h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .style-slider-section {
        padding: 70px 0;
    }

    .style-slider-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .style-slider-prev {
        left: 16px;
    }

    .style-slider-next {
        right: 16px;
    }

    .style-slider-fade {
        display: none;
    }

    .style-card {
        flex-basis: min(72vw, 320px);
    }

    .style-slider-btn {
        width: 48px;
        height: 48px;
    }

    .style-slider-prev {
        left: 10px;
    }

    .style-slider-next {
        right: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .brand-story h2 {
        font-size: 28px;
    }

    .manufacturing-video {
        padding: 70px 5%;
    }

    .manufacturing-video__intro h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .style-card {
        flex-basis: 84vw;
    }

    .style-slider-btn {
        width: 44px;
        height: 44px;
    }

    .style-card__overlay {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .style-card__overlay h3 {
        font-size: 22px;
    }

    .hero-text-overlay h1 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
