/* ============================================
   ĐẦM HOA - Premium Women's Fashion
   Modern E-commerce CSS Framework
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Colors - BEM Orange Theme */
    --primary: #E94E1B;
    --primary-dark: #C73E14;
    --primary-light: #FEF0EB;
    --secondary: #2c2c2c;
    --accent: #E94E1B;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #faf9f7;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --medium-gray: #777777;
    --dark-gray: #555555;
    --charcoal: #333333;
    --black: #1a1a1a;
    
    /* Typography */
    --font-primary: 'Cormorant Garamond', Georgia, serif;
    --font-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Playfair Display', serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Tết Background - Hoa Mai Đào nhẹ nhàng */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        /* Hoa đào hồng nhạt */
        radial-gradient(circle at 5% 15%, rgba(255, 182, 193, 0.3) 0%, transparent 8px),
        radial-gradient(circle at 8% 18%, rgba(255, 182, 193, 0.25) 0%, transparent 6px),
        radial-gradient(circle at 3% 12%, rgba(255, 182, 193, 0.2) 0%, transparent 5px),
        radial-gradient(circle at 6% 20%, rgba(255, 182, 193, 0.15) 0%, transparent 4px),
        radial-gradient(circle at 4% 16%, rgba(255, 192, 203, 0.2) 0%, transparent 7px),
        
        radial-gradient(circle at 95% 25%, rgba(255, 182, 193, 0.28) 0%, transparent 9px),
        radial-gradient(circle at 92% 22%, rgba(255, 182, 193, 0.22) 0%, transparent 6px),
        radial-gradient(circle at 97% 28%, rgba(255, 182, 193, 0.18) 0%, transparent 5px),
        radial-gradient(circle at 93% 30%, rgba(255, 192, 203, 0.15) 0%, transparent 4px),
        
        radial-gradient(circle at 10% 45%, rgba(255, 182, 193, 0.2) 0%, transparent 7px),
        radial-gradient(circle at 7% 48%, rgba(255, 182, 193, 0.15) 0%, transparent 5px),
        radial-gradient(circle at 12% 42%, rgba(255, 192, 203, 0.12) 0%, transparent 4px),
        
        radial-gradient(circle at 88% 55%, rgba(255, 182, 193, 0.22) 0%, transparent 8px),
        radial-gradient(circle at 91% 52%, rgba(255, 182, 193, 0.18) 0%, transparent 6px),
        radial-gradient(circle at 85% 58%, rgba(255, 192, 203, 0.14) 0%, transparent 5px),
        
        radial-gradient(circle at 15% 75%, rgba(255, 182, 193, 0.25) 0%, transparent 8px),
        radial-gradient(circle at 12% 78%, rgba(255, 182, 193, 0.2) 0%, transparent 6px),
        radial-gradient(circle at 18% 72%, rgba(255, 192, 203, 0.15) 0%, transparent 5px),
        
        radial-gradient(circle at 85% 85%, rgba(255, 182, 193, 0.23) 0%, transparent 7px),
        radial-gradient(circle at 88% 82%, rgba(255, 182, 193, 0.18) 0%, transparent 5px),
        radial-gradient(circle at 82% 88%, rgba(255, 192, 203, 0.13) 0%, transparent 4px),
        
        /* Hoa mai vàng nhạt */
        radial-gradient(circle at 20% 8%, rgba(255, 215, 0, 0.2) 0%, transparent 6px),
        radial-gradient(circle at 23% 11%, rgba(255, 215, 0, 0.15) 0%, transparent 4px),
        radial-gradient(circle at 18% 6%, rgba(255, 223, 0, 0.12) 0%, transparent 5px),
        
        radial-gradient(circle at 75% 12%, rgba(255, 215, 0, 0.18) 0%, transparent 7px),
        radial-gradient(circle at 78% 15%, rgba(255, 215, 0, 0.14) 0%, transparent 5px),
        radial-gradient(circle at 72% 10%, rgba(255, 223, 0, 0.1) 0%, transparent 4px),
        
        radial-gradient(circle at 25% 35%, rgba(255, 215, 0, 0.15) 0%, transparent 5px),
        radial-gradient(circle at 22% 38%, rgba(255, 215, 0, 0.12) 0%, transparent 4px),
        
        radial-gradient(circle at 70% 40%, rgba(255, 215, 0, 0.16) 0%, transparent 6px),
        radial-gradient(circle at 73% 43%, rgba(255, 215, 0, 0.12) 0%, transparent 4px),
        
        radial-gradient(circle at 30% 65%, rgba(255, 215, 0, 0.14) 0%, transparent 5px),
        radial-gradient(circle at 27% 68%, rgba(255, 215, 0, 0.1) 0%, transparent 4px),
        
        radial-gradient(circle at 65% 70%, rgba(255, 215, 0, 0.17) 0%, transparent 6px),
        radial-gradient(circle at 68% 73%, rgba(255, 215, 0, 0.13) 0%, transparent 4px),
        
        radial-gradient(circle at 35% 92%, rgba(255, 215, 0, 0.15) 0%, transparent 5px),
        radial-gradient(circle at 60% 95%, rgba(255, 215, 0, 0.12) 0%, transparent 4px),
        
        /* Cánh hoa rơi nhẹ */
        radial-gradient(ellipse 3px 5px at 50% 30%, rgba(255, 182, 193, 0.15) 0%, transparent 100%),
        radial-gradient(ellipse 2px 4px at 30% 50%, rgba(255, 215, 0, 0.12) 0%, transparent 100%),
        radial-gradient(ellipse 3px 5px at 70% 60%, rgba(255, 182, 193, 0.13) 0%, transparent 100%),
        radial-gradient(ellipse 2px 4px at 45% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    
    background-color: #fffcf8;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.section-title p {
    color: var(--dark-gray);
    margin-top: var(--space-md);
    font-size: 1.1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-xl);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Announcement Bar - Marquee Effect */
.announcement-bar {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: var(--white);
    padding: var(--space-sm) 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.announcement-bar .marquee-wrapper {
    display: flex;
    width: fit-content;
    animation: marquee 25s linear infinite;
}

.announcement-bar .marquee-content {
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.announcement-bar .marquee-content span {
    display: inline-flex;
    align-items: center;
}

.announcement-bar .marquee-content span::after {
    content: '✦';
    margin: 0 30px;
    color: var(--primary);
    font-size: 0.7rem;
}

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

.announcement-bar:hover .marquee-wrapper {
    animation-play-state: paused;
}

.announcement-bar a {
    color: var(--primary);
    text-decoration: underline;
}

/* Main Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    max-width: 1600px;
    margin: 0 auto;
}

/* Logo */
.logo {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--black);
}

.logo span {
    color: var(--primary);
}

/* Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-main a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition-normal);
}

.nav-main a:hover::after,
.nav-main a.active::after {
    width: 100%;
}

/* SALE Navigation Link */
.nav-sale {
    color: #E94E1B !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    animation: salePulse 2s infinite;
}

.nav-sale::after {
    display: none !important;
}

.sale-badge {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgeBounce 1s infinite;
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.4);
}

@keyframes salePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.header-action-btn:hover {
    background: var(--light-gray);
}

.header-action-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--charcoal);
    stroke-width: 1.5;
    fill: none;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE MENU SIDEBAR
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-menu-logo span {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--primary);
    color: #fff;
}

.mobile-menu-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: linear-gradient(90deg, rgba(233, 78, 27, 0.08) 0%, transparent 100%);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mobile-menu-nav a svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.mobile-nav-sale {
    position: relative;
    background: linear-gradient(90deg, rgba(255, 65, 108, 0.1) 0%, transparent 100%) !important;
    color: #ff416c !important;
}

.mobile-sale-badge {
    position: absolute;
    right: 20px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: mobileBadgePulse 1.5s ease-in-out infinite;
}

@keyframes mobileBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mobile-menu-contact {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.mobile-menu-contact-title {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 15px;
}

.mobile-menu-phone:hover {
    color: var(--primary-dark);
}

.mobile-menu-social {
    display: flex;
    gap: 12px;
}

.mobile-menu-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.mobile-menu-social a svg {
    width: 20px;
    height: 20px;
}

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Old Search Overlay - Removed, using new search modal styles */

.old-search-close-placeholder {
    /* Placeholder to maintain CSS structure */
    display: none;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

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

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

/* Hero Wrapper - Split Layout */
.hero-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-2xl);
}

.hero-content {
    flex: 1;
    max-width: 500px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

/* Hero Gallery - Right Side Carousel */
.hero-gallery {
    position: relative;
    width: 580px;
    height: 520px;
    overflow: hidden;
}

.hero-gallery-track {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md);
    height: 100%;
    align-items: center;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-gallery-track:active {
    cursor: grabbing;
}

.hero-gallery-track img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.hero-gallery-item {
    flex: 0 0 180px;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.2);
}

.hero-gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(233, 78, 27, 0.4);
    border-color: var(--primary);
    z-index: 3;
}

.hero-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-gallery-item:hover img {
    transform: scale(1.15);
}

.hero-gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg) var(--space-md);
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.hero-gallery-item:hover .hero-gallery-info {
    transform: translateY(0);
}

.hero-gallery-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.hero-gallery-price {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

/* Hero Gallery Navigation */
.hero-gallery-nav {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-md);
    z-index: 20;
}

.hero-gallery-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.95);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--charcoal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-gallery-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 78, 27, 0.4);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 10px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-secondary:hover {
    background: var(--charcoal);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-outline-dark {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn-outline-dark:hover {
    background: var(--black);
    color: var(--white);
}

.btn-sm {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-3xl);
    font-size: 0.9rem;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
    padding: var(--space-4xl) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-normal);
}

.category-card:hover .category-overlay {
    transform: translateY(0);
    opacity: 1;
}

.category-name {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
    padding: var(--space-4xl) 0;
    background: var(--off-white);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.products-tabs {
    display: flex;
    gap: var(--space-xl);
}

.products-tab {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--medium-gray);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid transparent;
    transition: var(--transition-normal);
    cursor: pointer;
}

.products-tab:hover,
.products-tab.active {
    color: var(--black);
    border-bottom-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* Product Card */
.product-card {
    background: var(--white);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    border-radius: 16px;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    border-radius: 16px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    border-radius: 16px;
}

.product-image img.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

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

.product-card:hover .product-image img.main-img {
    opacity: 0;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.product-badge {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-new {
    background: var(--black);
    color: var(--white);
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
}

.badge-bestseller {
    background: var(--primary);
    color: var(--white);
}

/* Product Actions */
.product-actions {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-normal);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.product-action-btn:hover {
    background: var(--black);
}

.product-action-btn:hover svg {
    stroke: var(--white);
}

.product-action-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--charcoal);
    stroke-width: 1.5;
    fill: none;
}

/* Quick Add */
.quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: rgba(255,255,255,0.95);
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.product-card:hover .quick-add {
    transform: translateY(0);
}

.quick-add-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--black);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.quick-add-btn:hover {
    background: var(--primary);
}

/* Product Info */
.product-info {
    padding: var(--space-lg);
    text-align: center;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--dark-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.product-name {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
}

.product-name a {
    color: var(--charcoal);
    transition: var(--transition-normal);
}

.product-name a:hover {
    color: var(--primary);
}

.product-price {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 1rem;
}

.price-current {
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    color: var(--medium-gray);
    text-decoration: line-through;
}

.product-colors {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray);
    cursor: pointer;
}

/* ============================================
   FEATURED BANNER
   ============================================ */

.featured-banner {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.featured-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    text-align: right;
    max-width: 500px;
}

.featured-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.featured-title {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.featured-description {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: var(--space-2xl);
}

/* ============================================
   INSTAGRAM FEED
   ============================================ */

.instagram-section {
    padding: var(--space-4xl) 0;
}

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

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
    padding: var(--space-4xl) 0;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.newsletter-description {
    color: var(--medium-gray);
    margin-bottom: var(--space-2xl);
}

.newsletter-form {
    display: flex;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: 1px solid var(--dark-gray);
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-normal);
}

.newsletter-form input::placeholder {
    color: var(--medium-gray);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    padding: var(--space-md) var(--space-2xl);
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--off-white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--gray);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
}

.footer-description {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--black);
    border-color: var(--black);
}

.footer-social a:hover svg {
    fill: var(--white);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--charcoal);
}

.footer-heading {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: var(--black);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    color: var(--dark-gray);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--dark-gray);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
}

.footer-copyright {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.footer-payments {
    display: flex;
    gap: var(--space-sm);
}

.footer-payments img {
    height: 30px;
    opacity: 0.7;
}

/* ============================================
   PRODUCT PAGE
   ============================================ */

.product-page {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.product-breadcrumb {
    margin-bottom: var(--space-2xl);
    font-size: 0.85rem;
    color: #E94E1B;
}

.product-breadcrumb a {
    color: #E94E1B;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.product-breadcrumb a:hover {
    opacity: 0.7;
}

.product-breadcrumb span {
    color: #E94E1B;
}

.product-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.product-gallery-main {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: var(--space-md);
    border-radius: 16px;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.product-gallery-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out;
    cursor: grab;
    will-change: transform;
}

.product-gallery-slider.dragging {
    cursor: grabbing;
    transition: none !important;
}

.product-gallery-slider img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.product-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.product-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    pointer-events: none;
    user-select: none;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Gallery Navigation Dots */
.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.gallery-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-gallery-main:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.gallery-arrow:hover {
    background: var(--primary);
    color: white;
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-thumb {
    aspect-ratio: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-thumb img {
    border-radius: 8px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.product-details {
    position: sticky;
    top: 120px;
}

.product-detail-brand {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--medium-gray);
    margin-bottom: var(--space-sm);
}

.product-detail-title {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: #E94E1B;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray);
}

.detail-price-current {
    font-size: 1.5rem;
    font-weight: 600;
}

.detail-price-original {
    font-size: 1.1rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.product-detail-description {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

/* Size Selector */
.product-options {
    margin-bottom: var(--space-2xl);
}

.option-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.size-guide-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.size-options {
    display: flex;
    gap: var(--space-sm);
}

.size-option {
    width: 50px;
    height: 50px;
    border: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.size-option:hover,
.size-option.active {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray);
}

.quantity-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.quantity-btn:hover {
    background: var(--light-gray);
}

.quantity-input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray);
    border-right: 1px solid var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

/* Add to Cart Button */
.add-to-cart-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: var(--space-2xl);
}

.btn-add-cart {
    width: 100%;
    padding: 16px 24px;
    background: var(--black);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-add-cart:hover {
    background: #333;
}

.btn-buy-now {
    width: 100%;
    padding: 16px 24px;
    background: #E94E1B;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(233, 78, 27, 0.35);
    border: 2px solid #E94E1B;
    cursor: pointer;
}

.btn-buy-now:hover {
    background: #fff;
    color: #E94E1B;
    border-color: #E94E1B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 78, 27, 0.25);
}

.btn-buy-now:hover svg {
    stroke: #E94E1B;
}

.btn-buy-now:active {
    transform: translateY(0);
    background: #fff5f2;
}

.btn-wishlist {
    width: 55px;
    height: 55px;
    border: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.btn-wishlist:hover {
    border-color: var(--black);
}

.btn-wishlist svg {
    width: 22px;
    height: 22px;
    stroke: var(--charcoal);
    fill: none;
}

/* Product Meta */
.product-meta {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray);
}

.meta-item {
    display: flex;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.meta-label {
    width: 120px;
    color: var(--medium-gray);
}

.meta-value {
    color: var(--charcoal);
}

/* Product Tabs */
.product-tabs {
    margin-top: var(--space-4xl);
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--gray);
    margin-bottom: var(--space-2xl);
}

.tab-btn {
    padding: var(--space-md) var(--space-2xl);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition-normal);
}

.tab-btn:hover,
.tab-btn.active {
    color: #000;
    border-bottom-color: #E94E1B;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.specs-table {
    width: 100%;
    max-width: 600px;
}

.specs-table tr {
    border-bottom: 1px solid var(--light-gray);
}

.specs-table td {
    padding: var(--space-md) 0;
    font-size: 0.95rem;
}

.specs-table td:first-child {
    width: 40%;
    color: var(--medium-gray);
}

/* ============================================
   CART SIDEBAR
   ============================================ */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 3000;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar * {
    box-sizing: border-box;
}

/* ============================================
   SEARCH MODAL STYLES
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.search-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: var(--white);
    z-index: 4001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border-radius: 20px;
    overflow: hidden;
}

.search-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-gray);
    background: var(--white);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    display: none;
}

.search-input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(233, 78, 27, 0.1);
}

.search-input::placeholder {
    color: #888;
    font-weight: 400;
}

.search-clear {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: #ddd;
    border-radius: 50%;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #ccc;
    color: #333;
}

.search-close {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.search-close:hover {
    opacity: 0.7;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: calc(80vh - 80px);
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    text-align: center;
}

.search-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-empty p {
    font-size: 0.95rem;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.search-no-results svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-code {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 6px;
}

.search-result-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.search-results-header {
    padding: 12px 20px;
    background: #f8f8f8;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

/* Search Modal Mobile Styles */
@media (max-width: 768px) {
    .search-modal {
        width: 95%;
        max-width: none;
        max-height: 80vh;
        border-radius: 16px;
    }
    
    .search-header {
        padding: 12px 16px;
    }
    
    .search-input {
        padding: 12px 40px 12px 16px;
        font-size: 0.95rem;
    }
    
    .search-results {
        max-height: calc(80vh - 70px);
    }
    
    .search-result-item {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .search-result-image {
        width: 60px;
        height: 60px;
    }
    
    .search-result-name {
        font-size: 0.95rem;
    }
    
    .search-result-code {
        font-size: 0.8rem;
    }
    
    .search-result-price {
        font-size: 0.9rem;
    }
}

/* ============================================
   CART STYLES
   ============================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--gray);
    width: 100%;
    box-sizing: border-box;
}

.cart-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
}

.cart-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--light-gray);
}

.cart-item-image {
    width: 100px;
    aspect-ratio: 3/4;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.cart-item-variant {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-sm);
}

.cart-item-price {
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.cart-item-remove {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-decoration: underline;
    margin-top: var(--space-sm);
    cursor: pointer;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.cart-footer {
    padding: 16px;
    border-top: 1px solid var(--gray);
    background: var(--white);
    margin-top: auto;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.cart-footer * {
    box-sizing: border-box;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-size: 1rem;
    gap: 10px;
}

.cart-subtotal span:first-child {
    flex-shrink: 0;
}

.cart-subtotal-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    text-align: right;
    word-break: break-word;
}

.cart-shipping-note {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-md);
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b35 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    margin: 0 0 var(--space-md) 0;
    transition: var(--transition-normal);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(232, 119, 34, 0.35);
    box-sizing: border-box;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #ff6b35 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 119, 34, 0.45);
}

.btn-view-cart {
    width: 100%;
    padding: var(--space-lg);
    background: transparent;
    border: 1px solid var(--black);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.btn-view-cart:hover {
    background: var(--black);
    color: var(--white);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   TẾT - HOA MAI ĐÀO RƠI
   ============================================ */

@keyframes petalFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(15px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(20px) rotate(270deg);
    }
    100% {
        transform: translateY(105vh) translateX(-5px) rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes petalSway {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(10px) rotate(5deg);
    }
    75% {
        transform: translateX(-10px) rotate(-5deg);
    }
}

.tet-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0.7;
    animation: petalFall linear infinite;
}

.petal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50% 0 50% 50%;
    transform: rotate(-45deg);
}

/* Hoa đào - hồng */
.petal.dao::before {
    background: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 50%, #ffb6c1 100%);
    box-shadow: 0 0 3px rgba(255, 105, 180, 0.3);
}

/* Hoa mai - vàng */
.petal.mai::before {
    background: linear-gradient(135deg, #ffd700 0%, #ffec8b 50%, #ffd700 100%);
    box-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Cánh hoa với các vị trí và thời gian khác nhau */
.petal:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; width: 10px; height: 10px; }
.petal:nth-child(2) { left: 15%; animation-duration: 15s; animation-delay: 2s; width: 8px; height: 8px; }
.petal:nth-child(3) { left: 25%; animation-duration: 11s; animation-delay: 4s; width: 12px; height: 12px; }
.petal:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 1s; width: 9px; height: 9px; }
.petal:nth-child(5) { left: 45%; animation-duration: 13s; animation-delay: 3s; width: 11px; height: 11px; }
.petal:nth-child(6) { left: 55%; animation-duration: 16s; animation-delay: 5s; width: 7px; height: 7px; }
.petal:nth-child(7) { left: 65%; animation-duration: 12s; animation-delay: 2.5s; width: 10px; height: 10px; }
.petal:nth-child(8) { left: 75%; animation-duration: 14s; animation-delay: 1.5s; width: 13px; height: 13px; }
.petal:nth-child(9) { left: 85%; animation-duration: 11s; animation-delay: 4.5s; width: 8px; height: 8px; }
.petal:nth-child(10) { left: 95%; animation-duration: 15s; animation-delay: 0.5s; width: 11px; height: 11px; }
.petal:nth-child(11) { left: 10%; animation-duration: 13s; animation-delay: 6s; width: 9px; height: 9px; }
.petal:nth-child(12) { left: 30%; animation-duration: 17s; animation-delay: 7s; width: 10px; height: 10px; }
.petal:nth-child(13) { left: 50%; animation-duration: 12s; animation-delay: 8s; width: 12px; height: 12px; }
.petal:nth-child(14) { left: 70%; animation-duration: 14s; animation-delay: 9s; width: 8px; height: 8px; }
.petal:nth-child(15) { left: 90%; animation-duration: 16s; animation-delay: 10s; width: 11px; height: 11px; }

/* Giảm số lượng cánh hoa trên mobile */
@media (max-width: 768px) {
    .petal:nth-child(n+10) {
        display: none;
    }
    .petal {
        width: 8px;
        height: 8px;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

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

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-main {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-wrapper {
        flex-direction: column;
        justify-content: center;
        padding: var(--space-xl);
        gap: var(--space-xl);
    }
    
    .hero-content {
        text-align: center;
        max-width: none;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-gallery {
        width: 100%;
        max-width: 100%;
        height: 320px;
        margin-top: var(--space-lg);
    }
    
    .hero-gallery-track {
        gap: var(--space-md);
    }
    
    .hero-gallery-item {
        flex: 0 0 140px;
        height: 220px;
    }
    
    .hero-gallery-nav {
        display: none;
    }
    
    .product-main-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .product-details {
        position: static;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .products-header {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg) var(--space-md);
        padding-bottom: var(--space-lg);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
        margin-bottom: var(--space-sm);
    }
    
    .footer-logo {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }
    
    .footer-description {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
    }
    
    .footer-heading {
        font-size: 0.8rem;
        margin-bottom: var(--space-sm);
    }
    
    .footer-links {
        gap: 6px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
    }
    
    .footer-contact p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        padding-top: var(--space-md);
    }
    
    .footer-copyright {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cart-sidebar {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
        overflow-x: hidden;
        left: auto;
    }
    
    .cart-sidebar.active {
        right: 0;
    }
    
    .cart-header {
        padding: 15px;
    }
    
    .cart-items {
        padding: 15px;
    }
    
    .cart-footer {
        padding: 15px;
        width: 100%;
    }
    
    .cart-subtotal {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }
    
    .cart-subtotal-value {
        font-size: 1rem;
    }
    
    .btn-checkout {
        padding: 14px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .header-main {
        padding: var(--space-md);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }
    
    /* Cart mobile optimization */
    .cart-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
        right: -100vw;
    }
    
    .cart-sidebar.active {
        right: 0 !important;
    }
    
    .cart-header {
        padding: 12px;
    }
    
    .cart-items {
        padding: 12px;
    }
    
    .cart-item {
        gap: 10px;
    }
    
    .cart-item-image {
        width: 70px;
        flex-shrink: 0;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .cart-item-details {
        min-width: 0;
        overflow: hidden;
        flex: 1;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    .cart-footer {
        padding: 12px;
        width: 100%;
    }
    
    .cart-subtotal {
        font-size: 0.85rem;
    }
    
    .cart-subtotal-value {
        font-size: 0.9rem;
    }
    
    .cart-shipping-note {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .btn-checkout {
        padding: 12px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin: 0;
        width: 100%;
        border-radius: 8px;
    }
}

/* ============================================
   MOBILE FIXES - PRODUCT DETAIL PAGE
   ============================================ */

@media (max-width: 768px) {
    /* Product Tabs - Allow horizontal scroll */
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
    }
    
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Add to Cart Section */
    .add-to-cart-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.85rem;
    }
    
    .btn-wishlist {
        display: none;
    }
    
    /* Search Modal Fix */
    .search-empty svg,
    .search-no-results svg {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    /* Product Tabs Mobile */
    .tabs-nav {
        gap: 0;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    /* Buttons Mobile */
    .btn-add-cart,
    .btn-buy-now {
        padding: 12px 16px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .btn-add-cart svg,
    .btn-buy-now svg {
        width: 16px;
        height: 16px;
        margin-right: 6px !important;
    }
}

/* ============================================
   FIXED CONTACT BAR
   ============================================ */

.fixed-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DC 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    box-shadow: 0 -2px 15px rgba(233, 78, 27, 0.15);
    z-index: 2000;
    border-top: 1px solid #FFDDD0;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.contact-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Maps - Red */
.contact-maps {
    color: #EA4335;
}

/* Phone - Green */
.contact-phone {
    color: #34A853;
}

/* Facebook - Blue */
.contact-facebook {
    color: #1877F2;
}

/* Zalo - Blue */
.contact-zalo {
    color: #0068FF;
}

/* Hover effect - Orange background */
.contact-btn:hover {
    background: #E94E1B;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(233, 78, 27, 0.4);
}

.contact-btn:hover svg {
    stroke: #fff;
    fill: #fff;
}

/* Desktop: Vertical bar on right side */
@media (min-width: 769px) {
    .fixed-contact-bar {
        top: 50%;
        bottom: auto;
        left: auto;
        right: 0;
        transform: translateY(-50%);
        flex-direction: column;
        width: auto;
        padding: 12px 8px;
        border-radius: 12px 0 0 12px;
        border-top: none;
        border-left: 1px solid #FFDDD0;
        box-shadow: -2px 0 15px rgba(233, 78, 27, 0.15);
    }
    
    .contact-btn {
        padding: 10px 8px;
        min-width: auto;
    }
    
    .contact-btn svg {
        width: 22px;
        height: 22px;
        margin-bottom: 3px;
    }
    
    .contact-btn span {
        font-size: 0.6rem;
    }
}

/* Mobile: Horizontal bar at bottom */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .contact-btn {
        padding: 4px 8px;
        min-width: 50px;
    }
    
    .contact-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-btn span {
        font-size: 0.6rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

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

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mt-4 { margin-top: var(--space-3xl); }

.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.mb-4 { margin-bottom: var(--space-3xl); }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ============================================
   LOGO IMAGE
   ============================================ */

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-icon {
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-icon {
    transform: rotate(15deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text-main {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 3px;
    transition: var(--transition-normal);
}

.logo-link:hover .logo-text-main {
    color: var(--primary);
}

.logo-text-sub {
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--dark-gray);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ============================================
   PRODUCT CODE DISPLAY
   ============================================ */

.product-code {
    font-size: 0.75rem;
    color: #1a1a1a;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-xs);
    font-family: var(--font-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.product-info .product-code {
    margin-top: var(--space-xs);
}

/* ============================================
   PRODUCT FILTERS
   ============================================ */

.products-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 auto var(--space-2xl) auto;
    flex-wrap: nowrap;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255,252,248,0.9) 0%, rgba(255,245,238,0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: fit-content;
    max-width: 100%;
}

.filter-btn {
    padding: 12px 22px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: var(--cream);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 119, 34, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b35 100%);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 119, 34, 0.35);
    transform: translateY(-2px);
}

/* ============================================
   FILTER BAR & SORT OPTIONS
   ============================================ */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray);
}

.product-count {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.product-count span {
    font-weight: 600;
    color: var(--primary);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.sort-options label {
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
}

.sort-select {
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--gray);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--charcoal);
    background: var(--white);
    cursor: pointer;
    min-width: 180px;
    transition: var(--transition-normal);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

.sort-select:hover {
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .products-filters {
        padding: 12px 16px;
        gap: 8px;
        width: fit-content;
        margin: 0 auto var(--space-2xl) auto;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ============================================
   RELATED PRODUCTS SECTION
   ============================================ */

.related-products {
    padding: var(--space-4xl) 0;
    background: var(--off-white);
}

.related-products .section-title {
    margin-bottom: var(--space-2xl);
}

.related-products .section-title h2 {
    font-family: var(--font-accent);
    font-size: 2rem;
}

.related-products .section-title p {
    font-size: 0.95rem;
    color: var(--medium-gray);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

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

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .products-filters {
        gap: 8px;
        padding: 12px 16px;
        width: fit-content;
        margin: 0 auto var(--space-2xl) auto;
    }
    
    .filter-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-filters {
        gap: 6px;
        padding: 10px 12px;
        width: fit-content;
        margin: 0 auto var(--space-xl) auto;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CLICKABLE PRODUCT IMAGE
   ============================================ */

.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    border-radius: 16px;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    border-radius: 16px;
}

.product-image-link img.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

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

.product-card:hover .product-image-link img.main-img {
    opacity: 0;
}
