/* =============================================
   ROOT VARIABLES & BASE STYLES
   ============================================= */
:root {
    --primary-color: #ff0066;
    --primary-dark: #cc0052;
    --primary-light: #ff4d94;
    --primary-glow: rgba(255, 0, 102, 0.18);
    --primary-glow-strong: rgba(255, 0, 102, 0.32);
    --secondary-color: #1a1a2e;
    --accent-gold: #f5a623;
    --accent-gold-light: #ffd166;
    --text-dark: #1a1a2e;
    --text-medium: #3d3d5c;
    --text-light: #7b7b9d;
    --light-gray: #f4f4f9;
    --light-gray-2: #ededf5;
    --medium-gray: #dcdce8;
    --dark-gray: #4a4a6a;
    --white: #ffffff;
    --success: #00c48c;
    --warning: #ffbb00;
    --danger: #ff3355;
    --star: #ffbb00;
    --border-light: #e0e0ef;
    --border-mid: #c8c8e0;

    /* Shadows — layered for depth */
    --shadow-xs: 0 1px 3px rgba(26, 26, 46, 0.07), 0 1px 2px rgba(26, 26, 46, 0.04);
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.08), 0 1px 4px rgba(26, 26, 46, 0.05);
    --shadow-md: 0 6px 20px rgba(26, 26, 46, 0.1), 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow-lg: 0 14px 40px rgba(26, 26, 46, 0.13), 0 4px 16px rgba(26, 26, 46, 0.07);
    --shadow-xl: 0 24px 60px rgba(26, 26, 46, 0.16), 0 8px 24px rgba(26, 26, 46, 0.09);
    --shadow-primary: 0 8px 28px rgba(255, 0, 102, 0.28);
    --shadow-primary-lg: 0 16px 44px rgba(255, 0, 102, 0.36);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;

    /* Font sizes */
    --text-xs: clamp(0.72rem, 1.2vw, 0.8rem);
    --text-sm: clamp(0.82rem, 1.5vw, 0.9rem);
    --text-base: clamp(0.9rem, 1.8vw, 1rem);
    --text-md: clamp(1rem, 2vw, 1.1rem);
    --text-lg: clamp(1.1rem, 2.5vw, 1.3rem);
    --text-xl: clamp(1.3rem, 3.5vw, 1.7rem);
    --text-2xl: clamp(1.6rem, 4.5vw, 2.2rem);
    --text-3xl: clamp(2rem, 6vw, 3rem);
}

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    padding-top: 80px;
    color: var(--text-dark);
    line-height: 1.65;
    background-color: var(--light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Scrollbar — webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-gray-2);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Focus states for accessibility */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 28px);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-medium);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    transition: var(--transition);
}

/* =============================================
   HEADER — PREMIUM STICKY NAV
   ============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: var(--transition-slow);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(224, 224, 239, 0.6);
    box-shadow: 0 2px 24px rgba(26, 26, 46, 0.06);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.97);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}

/* Logo */
.logo {
    font-weight: 800;
    font-size: clamp(20px, 3.5vw, 26px);
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: var(--transition-spring);
    position: relative;
    z-index: 1001;
    letter-spacing: -0.04em;
}

.logo::after {
    content: '';
    position: absolute;
    inset: -4px -8px;
    border-radius: var(--radius-sm);
    background: var(--primary-glow);
    opacity: 0;
    transition: var(--transition);
}

.logo:hover::after {
    opacity: 1;
}

.logo:hover {
    transform: scale(1.03);
    color: var(--primary-dark);
}

.logo i {
    font-size: 1.15em;
    transition: var(--transition-spring);
    position: relative;
    z-index: 1;
}

.logo:hover i {
    transform: rotate(-8deg) scale(1.1);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(2px, 1.5vw, 8px);
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: var(--transition);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-link i {
    font-size: 15px;
    transition: var(--transition-spring);
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--primary-glow);
    transform: translateY(-1px);
}

.nav-link:hover i {
    transform: scale(1.15);
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
    border-radius: var(--radius-pill);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-glow);
}

/* Cart Badge */
.cart-count {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius-pill);
    min-width: 19px;
    height: 19px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 2px;
    right: 2px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(255, 0, 102, 0.4);
    transition: var(--transition-spring);
    padding: 0 3px;
    animation: cartPulse 2.5s ease-in-out infinite;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255, 0, 102, 0.4); }
    50% { transform: scale(1.12); box-shadow: 0 4px 14px rgba(255, 0, 102, 0.55); }
}

.nav-link:hover .cart-count {
    transform: scale(1.15);
    animation: none;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    background: none;
    border: 2px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    color: var(--text-medium);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.user-profile-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: var(--primary-glow);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.user-profile-btn i:last-child {
    transition: transform 0.25s var(--ease-out);
    font-size: 12px;
    opacity: 0.7;
}

.user-profile-btn:hover i:last-child,
.user-profile-btn.open i:last-child {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: var(--white);
    min-width: 230px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    z-index: 1100;
    padding: 8px;
    border: 1px solid var(--border-light);
    transform-origin: top right;
}

.dropdown-content.show {
    display: block;
    animation: dropdownIn 0.22s var(--ease-out) both;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: scale(0.92) translateY(-8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.dropdown-link {
    color: var(--text-medium);
    padding: 11px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.dropdown-link i {
    width: 20px;
    text-align: center;
    color: var(--text-light);
    transition: var(--transition-spring);
    font-size: 14px;
}

.dropdown-link:hover {
    background-color: var(--primary-glow);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-link:hover i {
    color: var(--primary-color);
    transform: scale(1.15);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 8px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 9px;
    border-radius: var(--radius-sm);
    transition: var(--transition-spring);
    z-index: 1001;
    line-height: 1;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
    background-color: var(--primary-glow);
    transform: scale(1.1);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.55);
    z-index: 999;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.no-scroll {
    overflow: hidden;
}

/* =============================================
   FILTER SECTION — HERO BANNER STYLE
   ============================================= */
.filter-section {
    margin: clamp(16px, 3vw, 28px) 0 clamp(32px, 5vw, 52px);
    background:
        linear-gradient(135deg, rgba(26, 26, 46, 0.82) 0%, rgba(255, 0, 102, 0.5) 100%),
        url('https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
    padding: clamp(44px, 8vw, 88px) clamp(16px, 4vw, 40px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--white);
    position: relative;
    overflow: hidden;
    animation: heroFadeIn 0.9s var(--ease-out) both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Decorative shimmer stripe */
.filter-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 148, 0.25) 0%, transparent 70%);
    animation: floatBlob 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.filter-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 102, 0.15) 0%, transparent 70%);
    animation: floatBlob 6s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

@keyframes floatBlob {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(20px, 20px) scale(1.08); }
}

/* Optional: small heading above the filter */
.filter-section .filter-heading {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 36px);
    position: relative;
    z-index: 2;
}

.filter-section .filter-heading h1 {
    font-size: var(--text-3xl);
    color: var(--white);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.filter-section .filter-heading p {
    color: rgba(255,255,255,0.8);
    font-size: var(--text-base);
}

.filter-form {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: clamp(12px, 2.5vw, 20px);
    align-items: end;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 0;
    animation: slideUpIn 0.5s var(--ease-out) both;
}

.form-group:nth-child(1) { animation-delay: 0.07s; }
.form-group:nth-child(2) { animation-delay: 0.14s; }
.form-group:nth-child(3) { animation-delay: 0.21s; }
.form-group:nth-child(4) { animation-delay: 0.28s; }
.form-group:nth-child(5) { animation-delay: 0.35s; }

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.filter-section label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.filter-section .form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    background: rgba(255, 255, 255, 0.94);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    -webkit-appearance: none;
    appearance: none;
}

.filter-section .form-control:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.5);
}

.filter-section .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 102, 0.28);
}

.filter-section select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* =============================================
   BUTTONS — PREMIUM INTERACTIONS
   ============================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 2px solid transparent;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    box-shadow: 0 4px 16px rgba(255, 0, 102, 0.35);
    -webkit-tap-highlight-color: transparent;
}

/* Shimmer sweep */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 160%;
}

/* Ripple burst */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    transform: translate(-50%, -50%);
    transition: width 0.55s ease, height 0.55s ease, opacity 0.55s ease;
    opacity: 0;
    pointer-events: none;
}

.btn-primary:hover::after {
    width: 340px;
    height: 340px;
    opacity: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary-lg);
    border-color: rgba(255,255,255,0.2);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: var(--shadow-primary);
}

.btn-primary i {
    transition: var(--transition-spring);
    position: relative;
    z-index: 1;
}

.btn-primary:hover i {
    transform: scale(1.2) rotate(-5deg);
}

/* Secondary/ghost variant */
.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 11px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: clamp(18px, 3vw, 28px);
    padding: 0 4px;
}

.section-header h2 {
    font-size: var(--text-xl);
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.03em;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 40px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-pill);
    margin-top: 6px;
    position: absolute;
    bottom: -8px;
    left: 0;
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 1.1em;
    transition: var(--transition-spring);
}

.section-header h2:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.section-subheader {
    color: var(--text-light);
    font-size: var(--text-xs);
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.08), rgba(255, 77, 148, 0.12));
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 0, 102, 0.15);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.08), rgba(255, 77, 148, 0.12));
    font-size: var(--text-sm);
    border: 1px solid rgba(255, 0, 102, 0.18);
    letter-spacing: 0.02em;
}

.view-all i {
    font-size: 11px;
    transition: var(--transition-spring);
}

.view-all:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: translateX(4px);
    box-shadow: var(--shadow-primary);
    border-color: transparent;
}

.view-all:hover i {
    transform: translateX(5px);
}

/* =============================================
   FLASH SALES — HORIZONTAL SCROLL CAROUSEL
   ============================================= */
.flash-sales-section {
    margin: clamp(28px, 5vw, 52px) 0;
    padding: 0 4px;
}

.flash-sales-container {
    position: relative;
    overflow: hidden;
    /* Fade edges for scroll hint */
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.flash-sales-scroller {
    display: flex;
    gap: clamp(14px, 2.5vw, 22px);
    overflow-x: auto;
    padding: 16px 20px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray-2);
}

.flash-sales-scroller::-webkit-scrollbar {
    height: 5px;
}

.flash-sales-scroller::-webkit-scrollbar-track {
    background: var(--light-gray-2);
    border-radius: var(--radius-pill);
}

.flash-sales-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-pill);
}

/* Flash Sale Card */
.flash-sale-card {
    flex: 0 0 clamp(195px, 24vw, 255px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    scroll-snap-align: start;
    border: 1.5px solid var(--border-light);
    transform-origin: center bottom;
    will-change: transform;
}

.flash-sale-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255,0,102,0.06), transparent);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.flash-sale-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow: var(--shadow-xl), 0 0 0 2px var(--primary-light);
    border-color: var(--primary-light);
}

.flash-sale-card:hover::after {
    opacity: 1;
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--danger) 0%, #ff6b6b 100%);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 800;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(255, 51, 85, 0.38);
    letter-spacing: 0.04em;
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.flash-sale-image {
    width: 100%;
    height: clamp(140px, 18vw, 185px);
    object-fit: contain;
    padding: 16px;
    background: linear-gradient(145deg, #fafafa, var(--white));
    transition: var(--transition-slow);
    display: block;
}

.flash-sale-card:hover .flash-sale-image {
    transform: scale(1.1) rotate(1deg);
}

.flash-sale-body {
    padding: clamp(14px, 2.5vw, 20px);
    border-top: 1px solid var(--border-light);
}

.flash-sale-title {
    font-size: var(--text-sm);
    color: var(--text-dark);
    margin: 0 0 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.flash-sale-card:hover .flash-sale-title {
    color: var(--primary-color);
}

.price-container {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.old-price {
    font-size: var(--text-xs);
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.new-price {
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    animation: priceEntry 0.5s var(--ease-spring) both;
}

@keyframes priceEntry {
    from { opacity: 0; transform: scale(0.85) translateY(4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.countdown {
    font-family: 'Courier New', 'Lucida Console', monospace;
    background: linear-gradient(135deg, #fff0f5, #fff);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    text-align: center;
    margin-bottom: 13px;
    color: var(--primary-color);
    font-weight: 800;
    font-size: var(--text-base);
    box-shadow: inset 0 2px 6px rgba(255,0,102,0.08);
    border: 1.5px solid rgba(255, 0, 102, 0.15);
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.flash-sale-card:hover .countdown {
    background: linear-gradient(135deg, #ffe6ef, #fff);
    border-color: rgba(255, 0, 102, 0.28);
}

/* Shop Now Button */
.shop-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 0;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px rgba(255, 0, 102, 0.28);
}

.shop-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
}

.shop-now-btn:hover::before {
    left: 160%;
}

.shop-now-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
    color: var(--white);
}

.shop-now-btn i {
    transition: var(--transition-spring);
}

.shop-now-btn:hover i {
    transform: translateX(5px);
}

/* =============================================
   PRODUCTS SECTION — MAIN GRID
   ============================================= */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: clamp(20px, 3vw, 32px);
    padding: 0 4px;
}

.products-header h2 {
    font-size: var(--text-xl);
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.03em;
}

.products-header div {
    color: var(--text-light);
    font-size: var(--text-sm);
    background: var(--white);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
    border: 1.5px solid var(--border-light);
    font-weight: 500;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 20vw, 210px), 1fr));
    gap: clamp(14px, 2.5vw, 26px);
    padding: 0 4px;
    margin-bottom: clamp(28px, 5vw, 48px);
}

/* Product Card — the centerpiece */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
    border: 1.5px solid var(--border-light);
    position: relative;
    animation: cardReveal 0.5s var(--ease-out) both;
    transform-origin: center bottom;
    will-change: transform;
}

.product-card:nth-child(1)  { animation-delay: 0.05s; }
.product-card:nth-child(2)  { animation-delay: 0.10s; }
.product-card:nth-child(3)  { animation-delay: 0.15s; }
.product-card:nth-child(4)  { animation-delay: 0.20s; }
.product-card:nth-child(5)  { animation-delay: 0.25s; }
.product-card:nth-child(6)  { animation-delay: 0.30s; }

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Accent top bar */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
    z-index: 2;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Overlay shimmer */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,0,102,0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow: var(--shadow-xl), 0 0 0 2px var(--primary-light);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    height: clamp(150px, 22vw, 210px);
    object-fit: contain;
    padding: clamp(14px, 3vw, 22px);
    background: linear-gradient(145deg, #fafafa, #fff);
    transition: var(--transition-slow);
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.12) rotate(1.5deg);
}

.product-body {
    padding: clamp(13px, 2.5vw, 18px);
    border-top: 1px solid var(--border-light);
}

.product-title {
    font-size: var(--text-sm);
    color: var(--text-dark);
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-price {
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 9px;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.product-card:hover .product-price {
    transform: scale(1.04);
    color: var(--primary-dark);
}

.product-rating {
    color: var(--star);
    font-size: clamp(12px, 2vw, 15px);
    margin-bottom: 6px;
    letter-spacing: 2px;
    transition: var(--transition-spring);
    display: block;
}

.product-card:hover .product-rating {
    transform: scale(1.08) translateX(2px);
    letter-spacing: 3px;
}

/* Wishlist / Quick action overlay (hover) */
.product-card .product-action-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(12px);
    transition: var(--transition);
    z-index: 3;
}

.product-card:hover .product-action-overlay {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: clamp(44px, 8vw, 72px) 20px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    max-width: 480px;
    margin: 40px auto;
    border: 1.5px solid var(--border-light);
    animation: emptyFade 0.5s var(--ease-out) both;
}

@keyframes emptyFade {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1);    }
}

.empty-state i {
    font-size: clamp(3rem, 7vw, 4.5rem);
    color: var(--medium-gray);
    margin-bottom: 20px;
    display: block;
    animation: emptyBounce 2.5s ease-in-out infinite;
}

@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.empty-state h3 {
    font-size: var(--text-lg);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin: 0;
}

/* =============================================
   CATEGORY SECTION — HORIZONTAL SCROLL
   ============================================= */
.category-section {
    margin: clamp(36px, 6vw, 60px) auto clamp(28px, 5vw, 48px);
    max-width: 1400px;
    padding: 0 clamp(12px, 3vw, 28px);
}

.category-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: clamp(18px, 3vw, 28px);
}

.category-products-container {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.category-products-scroller {
    display: flex;
    gap: clamp(14px, 2.5vw, 22px);
    overflow-x: auto;
    padding: 14px 20px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray-2);
}

.category-products-scroller::-webkit-scrollbar {
    height: 5px;
}

.category-products-scroller::-webkit-scrollbar-track {
    background: var(--light-gray-2);
    border-radius: var(--radius-pill);
}

.category-products-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-pill);
}

.category-product-card {
    flex: 0 0 clamp(175px, 22vw, 225px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    scroll-snap-align: start;
    border: 1.5px solid var(--border-light);
    position: relative;
    will-change: transform;
}

.category-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
    z-index: 2;
}

.category-product-card:hover::before {
    transform: scaleX(1);
}

.category-product-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow: var(--shadow-xl), 0 0 0 2px var(--primary-light);
    border-color: var(--primary-light);
}

.category-product-image {
    width: 100%;
    height: clamp(140px, 18vw, 190px);
    object-fit: contain;
    padding: 15px;
    background: linear-gradient(145deg, #fafafa, var(--white));
    transition: var(--transition-slow);
    display: block;
}

.category-product-card:hover .category-product-image {
    transform: scale(1.12) rotate(1.5deg);
}

.category-product-body {
    padding: clamp(13px, 2.5vw, 18px);
    border-top: 1px solid var(--border-light);
}

.category-product-title {
    font-size: var(--text-sm);
    color: var(--text-dark);
    margin: 0 0 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.category-product-card:hover .category-product-title {
    color: var(--primary-color);
}

.category-product-price {
    font-size: var(--text-md);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 9px;
    letter-spacing: -0.02em;
}

.category-product-rating {
    color: var(--star);
    font-size: clamp(11px, 1.8vw, 14px);
    margin-bottom: 13px;
    letter-spacing: 2px;
    display: block;
    transition: var(--transition-spring);
}

.category-product-card:hover .category-product-rating {
    letter-spacing: 3px;
}

.category-product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 11px 0;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(255, 0, 102, 0.24);
}

.category-product-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
}

.category-product-link:hover::before {
    left: 160%;
}

.category-product-link:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
    color: var(--white);
}

/* =============================================
   PAGINATION — REFINED CONTROLS
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    margin: clamp(36px, 6vw, 60px) 0;
    flex-wrap: wrap;
    padding: 0 8px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(40px, 8vw, 46px);
    height: clamp(40px, 8vw, 46px);
    padding: 0 10px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-light);
    background: var(--white);
    box-shadow: var(--shadow-xs);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.page-link:hover::before {
    opacity: 1;
}

.page-link i,
.page-link span {
    position: relative;
    z-index: 1;
}

.page-link i {
    font-size: 13px;
    transition: var(--transition-spring);
}

.page-link:hover i {
    transform: scale(1.2);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-primary);
    pointer-events: none;
}

.page-link.active::before {
    opacity: 0;
}

/* =============================================
   FOOTER — ENHANCED DARK PREMIUM
   ============================================= */
footer {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0f0;
    padding: 4rem 0 0;
    margin-top: clamp(3rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold), var(--primary-light));
}

footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 102, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 28px);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-pill);
    transition: width 0.35s var(--ease-out);
}

.footer-section:hover h3::after {
    width: 48px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: #9090b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-section a:hover::before {
    content: '›';
    color: var(--primary-color);
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #9090b8;
    font-size: 1.15rem;
    transition: var(--transition-spring);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(144, 144, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
}

.social-links a:hover {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255,0,102,0.35);
}

.newsletter p {
    margin-bottom: 0.7rem;
    color: #9090b8;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid rgba(144, 144, 184, 0.25);
    background: rgba(255,255,255,0.05);
    transition: var(--transition);
}

.newsletter-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,0,102,0.15);
}

.newsletter-form input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    background: transparent;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    min-width: 0;
}

.newsletter-form input::placeholder {
    color: #7070a0;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    padding-right: 22px;
}

.footer-bottom {
    border-top: 1px solid rgba(144, 144, 184, 0.15);
    padding: 1.8rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.payment-methods {
    display: flex;
    gap: 14px;
    font-size: 1.6rem;
    color: #7070a0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-methods i {
    transition: var(--transition-spring);
}

.payment-methods i:hover {
    color: var(--white);
    transform: scale(1.18) translateY(-3px);
}

.copyright {
    color: #7070a0;
    font-size: 0.82rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Large screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .flash-sale-card {
        flex: 0 0 280px;
    }
    .category-product-card {
        flex: 0 0 260px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 18px;
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .flash-sale-card {
        flex: 0 0 210px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }

    /* Header */
    .header-container {
        height: 64px;
        padding: 0 16px;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
    }

    .logo {
        order: 1;
        font-size: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        gap: 6px;
        transition: right 0.35s var(--ease-out);
        z-index: 1000;
        box-shadow: -8px 0 40px rgba(26, 26, 46, 0.14);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 13px 16px;
        justify-content: flex-start;
        border-radius: var(--radius-sm);
        font-size: 15px;
    }

    .nav-link::after {
        display: none;
    }

    .user-profile-dropdown {
        width: 100%;
    }

    .user-profile-btn {
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--radius-sm);
        border: none;
        padding: 13px 16px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
        padding: 6px;
        background: var(--light-gray);
        margin-top: 6px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-light);
    }

    /* Layout */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-image {
        height: 150px;
        padding: 14px;
    }

    .product-body {
        padding: 14px;
    }

    .filter-section {
        padding: 44px 16px;
        border-radius: var(--radius-lg);
        background-attachment: scroll;
    }

    .filter-form {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .flash-sales-section,
    .category-section {
        margin: 28px 0;
    }

    .pagination {
        gap: 5px;
    }

    .page-link {
        min-width: 38px;
        height: 38px;
        font-size: var(--text-sm);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 11px;
        padding: 0 2px;
    }

    .product-image {
        height: 130px;
        padding: 12px;
    }

    .product-body {
        padding: 12px;
    }

    .product-title {
        font-size: 0.82rem;
    }

    .flash-sale-card {
        flex: 0 0 168px;
    }

    .flash-sale-image {
        height: 125px;
    }

    .flash-sale-body {
        padding: 14px;
    }

    .category-product-card {
        flex: 0 0 165px;
    }

    .category-product-image {
        height: 125px;
    }

    .category-product-body {
        padding: 14px;
    }

    .products-header,
    .section-header {
        padding: 0 2px;
    }
}

@media (max-width: 380px) {
    .products-grid {
        gap: 8px;
    }

    .product-image {
        height: 115px;
        padding: 10px;
    }

    .product-body {
        padding: 10px;
    }

    .flash-sale-card {
        flex: 0 0 148px;
    }

    .category-product-card {
        flex: 0 0 148px;
    }

    .page-link {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

/* Landscape phone */
@media (max-height: 600px) and (orientation: landscape) {
    .nav-links {
        padding: 68px 16px 20px;
        gap: 4px;
    }

    .nav-link {
        padding: 9px 14px;
        font-size: 14px;
    }
}

/* Print */
@media print {
    header,
    footer,
    .filter-section,
    .pagination,
    .btn-primary,
    .shop-now-btn,
    .view-all {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: #fff;
    }

    .product-card,
    .flash-sale-card,
    .category-product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        transform: none !important;
    }
}

/* Reduced motion */
@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;
    }
}

/* High-contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-light: #888;
        --text-light: #555;
    }
}