@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Prata&display=swap');

:root {
    /* Tailwind Zinc Palette for Neutrals */
    --color-zinc-50: #fafafa;
    --color-zinc-100: #f4f4f5;
    --color-zinc-200: #e4e4e7;
    --color-zinc-300: #d4d4d8;
    --color-zinc-400: #a1a1aa;
    --color-zinc-500: #71717a;
    --color-zinc-600: #52525b;
    --color-zinc-700: #3f3f46;
    --color-zinc-800: #27272a;
    --color-zinc-900: #18181b;
    --color-zinc-950: #09090b;

    /* Primary Accent (Rose/Pink from original design) */
    --color-rose-500: #e55353;
    --color-rose-600: #d24343;
    --color-rose-700: #b83a3a;

    /* Semantic Colors */
    --bg-body: var(--color-zinc-50);
    --bg-secondary: var(--color-zinc-100);
    --bg-card: #ffffff;

    --text-main: var(--color-zinc-900);
    --text-muted: var(--color-zinc-500);
    --text-light: #ffffff;

    --accent: var(--color-rose-600);
    --accent-hover: var(--color-rose-700);
    --border-light: var(--color-zinc-200);

    /* Typography Scale */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */

    --font-heading: 'Signika Negative', sans-serif;
    --font-body: 'Signika', sans-serif;

    --container-width: 1280px;
    /* Tailwind xl container */
    --header-height: 80px;
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;

    /* Aesthetic Tokens */
    --neon-blue: #6366f1;
    --slate-text: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Premium Additions */
    --luxe-gold: #E9B040;
    --rich-black: #0A0A0A;
    --luxe-white: #FDFDFD;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Sanganeri Ethnic Palette */
    --sanganeri-indigo: #3B4A7A;
    --sanganeri-madder: #C83E4D;
    --sanganeri-saffron: #F4A521;
    --sanganeri-cream: #F5E6D3;
    --sanganeri-gold: #D4A574;
    --sanganeri-teal: #2C5F5D;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Ticker Animation */
@keyframes ticker {
    0% {
        transform: translateX(0);
    }

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

.ticker-wrap {
    overflow: hidden;
    background: var(--rich-black);
    color: var(--luxe-gold);
    padding: 0.75rem 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 4rem;
}

/* Editorial Hero */
.editorial-hero {
    height: 85vh;
    /* Reduced height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--rich-black);
    color: white;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    z-index: 1;
}

.hero-bg-media img,
.hero-bg-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 70%);
    z-index: 2;
}

.editorial-content {
    position: relative;
    z-index: 3;
    padding-left: clamp(2rem, 8vw, 8rem);
    /* Reduced from 10rem */
    max-width: 800px;
}

.editorial-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--luxe-gold);
    margin-bottom: 2rem;
    display: block;
}

/* Value Ribbon */
.value-ribbon {
    background: var(--rich-black);
    color: white;
    padding: 2rem 0;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.ribbon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

/* Bento Category Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 320px);
    /* Reduced height from 400px */
    gap: 1rem;
    /* Reduced gap */
}

.bento-item {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--bg-secondary);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-large {
    grid-column: span 8;
    grid-row: span 1;
}

.bento-medium {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-tall {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-small {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-content {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    /* Reduced from 3rem */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
}

/* Spotlight Section */
.spotlight-section {
    position: relative;
    height: 60vh;
    /* Reduced height from 80vh */
    border-radius: 4rem;
    overflow: hidden;
    margin: 4rem 1.5rem;
    /* Reduced margin from 8rem */
}

.spotlight-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Newsletter / Inner Circle */
.inner-circle {
    background: var(--bg-secondary);
    border-radius: 4rem;
    padding: 5rem 2rem;
    /* Reduced padding from 8rem */
    margin: 5rem 1.5rem;
    /* Reduced margin from 8rem */
    text-align: center;
}

.inner-circle input {
    background: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 99px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 2rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

/* Homepage Specific Grids */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stories-strip {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1.5rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stories-strip::-webkit-scrollbar {
    display: none;
}

.promo-phone-section {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: var(--bg-secondary);
    border-radius: 4rem;
    margin: 4rem 1.5rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 3.5rem;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 2.8rem;
    overflow: hidden;
}

.float-card {
    position: absolute;
    width: 200px;
    aspect-ratio: 3/4;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: transform 0.3s ease;
}

.float-left {
    left: 0;
    transform: rotate(-10deg);
}

.float-right {
    right: 0;
    transform: rotate(10deg);
}

.trend-tabs {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 3rem);
    margin-bottom: 4rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
}

.couple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.split-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .split-banner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6rem;
    }

    .couple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-frame {
        width: 280px;
        height: 560px;
    }

    .float-card {
        width: 140px;
    }

    .float-left {
        left: -20px;
    }

    .float-right {
        right: -20px;
    }
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    /* Tailwind Leading-normal */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Better text rendering */
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 600;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 500;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    /* px-6 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Utilities */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: #f8f8f8;
}

.product-image-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-image-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}


.product-card:hover .product-image-hover {
    opacity: 1;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.02);
}

.product-image-wrapper img {
    transition: transform 0.3s ease-in-out, opacity 0.5s ease-in-out !important;
}

.btn:hover {
    background: transparent;
    color: var(--color-zinc-900);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: 1rem;
}

/* Responsive Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .stack-mobile {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .grid-mobile-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .section-padding {
        padding: 4rem 0 !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-hide {
        display: none !important;
    }
}

.section-padding {
    padding: 56px 0;
}

/* Announcement Bar */
.announcement-bar {
    background: var(--color-rose-600);
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header */
header {
    height: auto;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-container {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    justify-self: center;
    display: flex;
    gap: 2.5rem;
}

.header-icons {
    justify-self: end;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-zinc-900);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--color-zinc-600);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-zinc-900);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-zinc-900);
    transition: width 0.3s ease;
}

.header-icons button,
.header-icons a {
    font-size: 1.25rem;
    color: var(--color-zinc-700);
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.header-icons button:hover,
.header-icons a:hover {
    color: var(--accent);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 2000;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
}

.search-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 1.5rem;
}

.search-input-group {
    position: relative;
    border-bottom: 2px solid var(--color-zinc-200);
}

.search-input-group input {
    width: 100%;
    padding: 1rem 3rem 1rem 0;
    font-size: var(--text-2xl);
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-zinc-900);
    font-family: var(--font-heading);
}

.search-input-group input::placeholder {
    color: var(--color-zinc-400);
}

.search-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-zinc-500);
    cursor: pointer;
    transition: color 0.2s;
}

.search-close:hover {
    color: var(--color-zinc-900);
}

.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.search-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-zinc-900);
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.product-card {
    text-align: left;
    transition: transform 0.3s ease;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133.33%;
    /* Force 3:4 Aspect Ratio (4/3 = 1.333) */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--color-zinc-100);
    border-radius: var(--radius-sm);
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-info h3 {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-zinc-900);
}

.product-category {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    display: block;
}

.product-price {
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--color-zinc-900);
}

/* Footer */
footer {
    background: var(--color-zinc-950);
    padding: 6rem 0 3rem;
    margin-top: 6rem;
    color: var(--color-zinc-400);
}

footer h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 1rem;
}

footer a {
    font-size: 0.95rem;
    color: var(--color-zinc-400);
    transition: all 0.3s;
}

footer a:hover {
    color: white;
}

footer input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.5rem;
    outline: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: flex;
}

@media (max-width: 900px) {
    header {
        height: 90px;
    }

    .header-icon {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        color: var(--color-zinc-700);
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 0.5rem;
    }

    .header-icons {
        gap: 1rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 450px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ribbon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .bento-item {
        height: 400px;
    }

    .editorial-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: white;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.sidebar-close {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-nav a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Category Page Optimization */
.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

.category-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Safe default, matches visual density */
    gap: 2rem;
    margin-top: 0;
}

@media (min-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-sidebar.mobile-hide {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        /* Tighter gap for mobile */
    }
}
/* Blur-up Optimization */
.blur-up {
    filter: blur(20px);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    opacity: 0.7;
    will-change: filter, opacity;
}

.blur-up.loaded {
    filter: blur(0);
    opacity: 1;
}
