/* ============ MATE Shop - Dark Minimal Design ============ */

:root {
    /* Dark Palette Only */
    --color-bg: #0A0A0A;
    --color-bg-alt: #111111;
    --color-surface: #151515;
    --color-surface-hover: #1a1a1a;
    
    --color-text: #F5F5F5;
    --color-text-secondary: #A0A0A0;
    --color-text-muted: #666666;
    
    --color-border: #222222;
    --color-border-light: #2a2a2a;
    
    --color-accent: #C4A77D;
    --color-sale: #C45C5C;
    --color-success: #5C9A6B;
    
    --color-white: #FFFFFF;
    --color-black: #000000;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Layout */
    --header-height: 56px;
    --nav-height: 64px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    
    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea {
    font-family: inherit;
    font-size: 16px;
    border: none;
    outline: none;
    background: var(--color-bg-alt);
    color: var(--color-text);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ============ App Container ============ */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============ Header ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-bg);
    height: calc(var(--header-height) + var(--safe-top));
    padding-top: var(--safe-top);
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text);
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: opacity var(--transition);
}

.header-btn:active { opacity: 0.6; }

.back-btn {
    position: absolute;
    left: var(--space-md);
}

.cart-btn { position: relative; }

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search */
.search-bar {
    display: none;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    background: var(--color-bg);
}

.search-bar input {
    flex: 1;
    height: 44px;
    padding: 0 var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    color: var(--color-text);
}

.search-bar input::placeholder { color: var(--color-text-muted); }
.search-close { padding: var(--space-sm); color: var(--color-text-muted); }

/* ============ Main Content ============ */
.main-content {
    flex: 1;
    padding-top: calc(var(--header-height) + var(--safe-top));
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

.page {
    display: none;
    animation: pageIn 0.3s ease;
}

.page.active { display: block; }

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

.page-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: var(--space-lg) var(--space-md) var(--space-md);
}

/* ============ Hero Banner ============ */
.hero-banner {
    position: relative;
    height: 70vh;
    max-height: 500px;
    min-height: 380px;
    margin-bottom: var(--space-xl);
    background: var(--color-bg);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        var(--color-bg) 100%
    );
    z-index: 1;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #151515 0%, #0a0a0a 100%);
    overflow: hidden;
}

.hero-image::before {
    content: 'M';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-family: 'Playfair Display', serif;
    font-size: 280px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.hero-decoration {
    position: absolute;
    bottom: 30%;
    left: 8%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.85);
    text-indent: 0.3em;
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl) var(--space-lg);
    z-index: 2;
    color: var(--color-text);
}

.hero-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    max-width: 280px;
    color: var(--color-text);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.hero-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ============ Stories / Quick Access ============ */
.stories-section {
    padding: 0 var(--space-md) var(--space-lg);
}

.stories-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-xs) 0;
}

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

.story-item {
    flex: 0 0 72px;
    scroll-snap-align: start;
    text-align: center;
}

.story-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
    /* Белая окантовка для лучшего визуального выделения кружков категорий */
    border: 1px solid rgba(255, 255, 255, 0.85);
    transition: all var(--transition);
    color: var(--color-text-secondary);
}

.story-circle svg {
    width: 32px;
    height: 32px;
    transition: all var(--transition);
}

.story-item:hover .story-circle,
.story-item:active .story-circle {
    border-color: var(--color-text);
    background: var(--color-border);
    color: var(--color-text);
}

.story-item:hover .story-circle svg,
.story-item:active .story-circle svg {
    transform: scale(1.1);
}

.story-item:active .story-circle {
    border-color: var(--color-text-secondary);
}

.story-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* ============ Sections ============ */
.section {
    padding: var(--space-lg) var(--space-md);
}

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

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
}

.see-all {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============ Categories Grid ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.category-card {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: all var(--transition);
}

.category-card:active { 
    transform: scale(0.98);
    border-color: var(--color-border-light);
}

.category-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    color: var(--color-text-secondary);
    opacity: 0.6;
    transition: all var(--transition);
}

.category-icon svg {
    width: 56px;
    height: 56px;
    transition: all var(--transition);
}

.category-card:hover .category-icon,
.category-card:active .category-icon {
    opacity: 1;
    color: var(--color-text);
}

.category-card:hover .category-icon svg,
.category-card:active .category-icon svg {
    transform: scale(1.15);
}

.category-name {
    position: relative;
    width: 100%;
    padding: var(--space-md);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    background: linear-gradient(to top, var(--color-surface) 60%, transparent);
}

/* ============ Products ============ */
.products-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--space-md));
    padding: 0 var(--space-md);
}

.products-scroll::-webkit-scrollbar { display: none; }
.products-scroll .product-card { flex: 0 0 160px; scroll-snap-align: start; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.product-card:active { 
    transform: scale(0.98);
    border-color: var(--color-border-light);
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--color-bg-alt);
    overflow: hidden;
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    /* Monochrome */
    filter: grayscale(100%);
}

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-text);
}

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

.product-badge.new { 
    background: var(--color-text-secondary);
    color: var(--color-bg);
}

.product-wishlist {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 50%;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.product-content {
    padding: var(--space-sm) 0;
}

.product-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.product-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.product-old-price {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* ============ MATE CARD - Loyalty Program ============ */
.mate-card {
    margin: var(--space-lg) var(--space-md);
    padding: 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1.6 / 1;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Тонкий визуальный разделитель на главной странице */
.home-divider {
    margin: calc(var(--space-xl) * 1.1) var(--space-md);
    height: 2px;
    background: radial-gradient(circle at 0%, rgba(255, 255, 255, 0.0), transparent 55%),
                linear-gradient(
                    to right,
                    transparent 0%,
                    rgba(255, 255, 255, 0.18) 20%,
                    rgba(255, 255, 255, 0.24) 50%,
                    rgba(255, 255, 255, 0.18) 80%,
                    transparent 100%
                );
    opacity: 1;
}

/* Loyalty page */
.loyalty-page {
    padding-bottom: var(--space-xl);
}

.loyalty-summary {
    padding: 0 var(--space-md) var(--space-md);
}

.loyalty-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.loyalty-progress {
    background: var(--color-surface);
    border-radius: 12px;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
}

.loyalty-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.loyalty-progress-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.loyalty-progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #C9A962 0%, #F1C75B 50%, #FFE08A 100%);
    transition: width 0.4s ease;
}

.loyalty-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.loyalty-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
}

.loyalty-card {
    margin: 0;
}

.loyalty-card-bronze {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
}

.loyalty-card-silver {
    background: linear-gradient(135deg, #25272c 0%, #1a1c20 50%, #25272c 100%);
}

.loyalty-card-gold {
    background: linear-gradient(135deg, #3b2810 0%, #2a1a07 45%, #4a2f0e 100%);
    border-color: rgba(241, 199, 91, 0.6);
}

.loyalty-card[data-active="true"] {
    box-shadow:
        0 16px 45px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 30px rgba(241, 199, 91, 0.3);
}

.mate-card:active {
    transform: scale(0.98);
}

.mate-card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mate-card-pattern {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(201, 169, 98, 0.05) 0%, transparent 40%);
}

.mate-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mate-card-chip {
    opacity: 0.9;
}

.mate-card-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: #C9A962;
    text-shadow: 0 2px 10px rgba(201, 169, 98, 0.3);
}

.mate-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.mate-card-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.mate-card-bonus {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.mate-card-bonus-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.02em;
}

.mate-card-bonus-currency {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
}

.mate-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.mate-card-cashback {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(201, 169, 98, 0.15);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 20px;
}

.cashback-percent {
    font-size: 0.9rem;
    font-weight: 600;
    color: #C9A962;
}

.cashback-label {
    font-size: 0.7rem;
    color: rgba(201, 169, 98, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mate-card-member {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.mate-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: skewX(-20deg);
    animation: cardShine 8s ease-in-out infinite;
}

@keyframes cardShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ============ Filters ============ */
.filters {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    overflow-x: auto;
    border-bottom: 1px solid var(--color-border);
}

.filters::-webkit-scrollbar { display: none; }

.filter-btn {
    flex-shrink: 0;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.filter-btn.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
}

/* ============ Product Detail ============ */
.product-gallery {
    background: var(--color-bg-alt);
}

.gallery-main {
    aspect-ratio: 3/4;
    background: var(--color-surface);
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-text-muted);
    filter: grayscale(100%);
}

.gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    overflow-x: auto;
    background: var(--color-bg);
}

.gallery-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 72px;
    overflow: hidden;
    opacity: 0.4;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.gallery-thumb.active { 
    opacity: 1;
    border-color: var(--color-text);
}

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

.product-info {
    padding: var(--space-lg) var(--space-md);
}

.product-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.badge {
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.badge.new { 
    color: var(--color-text);
}

.badge.bestseller { 
    color: var(--color-accent);
}

.product-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.current-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.old-price {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.product-details {
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--color-text-muted); }
.detail-value { font-weight: 500; color: var(--color-text); }

/* Size Selector */
.size-selector { margin-bottom: var(--space-lg); }

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

.size-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
}

.size-guide-btn {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.size-btn {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.size-btn:active:not(.disabled) { transform: scale(0.95); }

.size-btn.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
}

.size-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.size-btn {
    position: relative;
}

.size-stock {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-sale);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + var(--nav-height) + var(--safe-bottom));
    background: var(--color-bg);
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--color-border);
}

.add-to-cart-btn {
    flex: 1;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.add-to-cart-btn:active { opacity: 0.8; }
.add-to-cart-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.favorite-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all var(--transition);
}

.favorite-btn.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
}

.favorite-btn.active svg { fill: var(--color-bg); }

/* ============ Cart ============ */
.cart-items { padding: var(--space-md); }

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    background: var(--color-surface);
    overflow: hidden;
}

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

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

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.cart-item-size {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.cart-item-remove {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    padding: var(--space-xs);
}

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

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-text);
}

.quantity-value {
    min-width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Empty States */
.cart-empty,
.favorites-empty,
.orders-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
}

.cart-empty p,
.favorites-empty p,
.orders-empty p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

/* Cart Summary */
.cart-summary {
    padding: var(--space-lg) var(--space-md);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.summary-row.total {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.checkout-btn {
    width: 100%;
    height: 52px;
    margin-top: var(--space-lg);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity var(--transition);
}

.checkout-btn:active { opacity: 0.8; }

/* ============ Checkout ============ */
.checkout-form { padding-bottom: var(--space-xl); }

.form-section {
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.form-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.form-group { margin-bottom: var(--space-md); }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-surface);
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    transition: border-color var(--transition);
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-text);
}

.form-group textarea { min-height: 80px; resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

/* Options */
.delivery-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.option-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-align: left;
    transition: all var(--transition);
}

.option-btn.active {
    border-color: var(--color-text);
}

.option-icon { 
    font-size: 1.5rem;
}

.option-info { flex: 1; }

.option-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.option-price {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    position: relative;
}

.option-btn.active .option-radio {
    border-color: var(--color-text);
}

.option-btn.active .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-text);
    border-radius: 50%;
}

/* Bonus */
.bonus-section .bonus-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.bonus-balance {
    font-weight: 600;
    color: var(--color-accent);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--color-text);
}

.checkbox-label input { display: none; }

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-border);
    position: relative;
    transition: all var(--transition);
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--color-text);
    border-color: var(--color-text);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-bg);
    font-size: 0.7rem;
}

.bonus-use input[type="number"] {
    width: 70px;
    padding: var(--space-sm);
    text-align: center;
    font-weight: 500;
}

/* Order Summary */
.order-summary {
    margin: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.bonus-row { color: var(--color-success); }

.submit-order-btn {
    width: calc(100% - var(--space-md) * 2);
    height: 52px;
    margin: var(--space-md);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.submit-order-btn:active { opacity: 0.8; }

/* ============ Orders ============ */
.orders-list { padding: var(--space-md); }

.order-card {
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    transition: border-color 0.2s;
}

.order-card:active {
    border-color: var(--color-text-muted);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.order-id {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    flex-shrink: 0;
}

.order-status {
    padding: 4px 10px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.order-status.pending { color: var(--color-accent); border-color: var(--color-accent); }
.order-status.confirmed, .order-status.paid { color: #6B9BDB; border-color: #6B9BDB; }
.order-status.shipped { color: #9B7BDB; border-color: #9B7BDB; }
.order-status.delivered { color: var(--color-success); border-color: var(--color-success); }
.order-status.cancelled { color: var(--color-sale); border-color: var(--color-sale); }

.order-date {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-items-count {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.order-total {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ============ Order Detail ============ */
.order-detail {
    padding: var(--space-md);
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.order-detail-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.order-detail-date {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.order-detail-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.order-detail-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.order-detail-section p {
    color: var(--color-text);
    font-size: 0.95rem;
}

.order-address {
    margin-top: var(--space-sm);
    color: var(--color-text-secondary) !important;
    font-size: 0.85rem !important;
}

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

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

.order-item-image {
    width: 60px;
    height: 80px;
    background: var(--color-border);
    flex-shrink: 0;
    overflow: hidden;
}

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

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
}

.order-item-size,
.order-item-qty {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.order-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.order-item.clickable {
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.order-item.clickable:active {
    background: var(--color-surface);
    transform: scale(0.98);
}

.order-item-arrow {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-left: var(--space-sm);
}

.order-item-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    font-size: 1.5rem;
    opacity: 0.3;
}

.order-detail-summary {
    background: var(--color-surface);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
}

.order-detail-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.order-detail-summary .summary-row.bonus span:last-child {
    color: var(--color-success);
}

.order-detail-summary .summary-row.total {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ============ Success ============ */
.success-content {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.success-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.success-order-id {
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.success-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ============ Profile ============ */
.profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background: var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-bg);
}

.profile-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.profile-info p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.profile-section {
    margin: 0 var(--space-md) var(--space-md);
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.profile-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.profile-section-badge {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(201, 169, 98, 0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C9A962;
    background: rgba(201, 169, 98, 0.08);
}

.profile-section-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-md);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.profile-section-label {
    color: var(--color-text-muted);
}

.profile-section-value {
    font-weight: 500;
    color: var(--color-text);
    text-align: right;
}

.profile-section-text {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.profile-section-text.muted {
    color: var(--color-text-muted);
}

.profile-section-link {
    margin-top: var(--space-sm);
    padding: 0;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-align: left;
}

.profile-section-link:active {
    opacity: 0.7;
}

.profile-help-row .profile-section-value {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.bonus-card {
    margin: var(--space-md);
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    text-align: center;
}

.bonus-card-header {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.bonus-card-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.bonus-card-info {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.profile-menu { border-top: 1px solid var(--color-border); }

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.menu-item:last-child { border-bottom: none; }
.menu-icon { font-size: 1.2rem; color: var(--color-text-secondary); }

.menu-item span:nth-child(2) {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.menu-arrow {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ============ Bottom Navigation ============ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom));
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    display: flex;
    padding-bottom: var(--safe-bottom);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--color-text); }
.nav-item.active svg path, .nav-item.active svg circle { stroke: var(--color-text); }

/* ============ Buttons ============ */
.primary-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity var(--transition);
}

.primary-btn:active { opacity: 0.8; }

.secondary-btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.secondary-btn:active {
    background: var(--color-text);
    color: var(--color-bg);
}

/* ============ Loading ============ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active { display: flex; }

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Toast ============ */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--space-lg) + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: var(--color-bg);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: calc(100% - 32px);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============ Modal Overlay ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: var(--space-lg);
}

/* ============ Size Guide Modal ============ */
.size-guide-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.size-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.size-tab.active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-md);
}

.size-table th,
.size-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.size-table th {
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.size-table td {
    color: var(--color-text);
}

.size-table tr:nth-child(even) td {
    background: var(--color-surface);
}

.size-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.size-guide-help {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.size-guide-help h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.size-guide-help ul {
    list-style: none;
}

.size-guide-help li {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    position: relative;
}

.size-guide-help li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

.size-guide-help li strong {
    color: var(--color-text);
}

/* ============ Zoom Modal ============ */
.zoom-modal {
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
}

.zoom-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.zoom-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.zoom-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.zoom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-lg);
}

.zoom-prev,
.zoom-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-prev:active,
.zoom-next:active {
    background: rgba(255, 255, 255, 0.2);
}

.zoom-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============ Product Gallery Swipe ============ */
.product-gallery {
    position: relative;
    overflow: hidden;
}

.gallery-slides {
    display: flex;
    transition: transform 0.3s ease;
}

.gallery-slide {
    flex: 0 0 100%;
    aspect-ratio: 3/4;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.gallery-dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ============ Skeleton Loading ============ */
.skeleton {
    background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-border) 50%, var(--color-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

.skeleton-card {
    background: var(--color-surface);
    padding: var(--space-sm);
}

.skeleton-image {
    aspect-ratio: 3/4;
    background: var(--color-border);
    margin-bottom: var(--space-sm);
}

.skeleton-text {
    height: 14px;
    background: var(--color-border);
    margin-bottom: var(--space-xs);
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-price {
    height: 18px;
    width: 40%;
    background: var(--color-border);
}

/* ============ Similar Products ============ */
.similar-section {
    padding: var(--space-lg) 0;
    margin-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.similar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    padding: 0 var(--space-md);
}

/* ============ Promo Code ============ */
.promo-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.promo-input-wrapper {
    display: flex;
    gap: var(--space-sm);
}

.promo-input {
    flex: 1;
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.promo-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-text-muted);
}

.promo-apply-btn {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.promo-applied-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.promo-applied-code {
    font-weight: 600;
    color: var(--color-success);
    text-transform: uppercase;
}

.promo-applied-discount {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.promo-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.promo-error {
    color: var(--color-sale);
    font-size: 0.8rem;
    margin-top: var(--space-sm);
}

/* ============ Recently Viewed ============ */
.recently-viewed {
    margin-top: var(--space-xl);
}

/* ============ Filter Modal ============ */
.filter-modal .modal-content {
    max-height: 80vh;
}

.filter-section {
    margin-bottom: var(--space-xl);
}

.filter-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.filter-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-size-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 44px;
    transition: all 0.2s;
}

.filter-size-btn.active {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.filter-colors {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.filter-color-btn.active {
    border-color: var(--color-text);
}

.filter-color-btn::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0;
}

.filter-color-btn.active::after {
    opacity: 1;
}

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

.price-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.9rem;
}

.price-separator {
    color: var(--color-text-muted);
}

.filter-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.filter-reset-btn {
    flex: 1;
    padding: var(--space-md);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-apply-btn {
    flex: 2;
    padding: var(--space-md);
    background: var(--color-text);
    border: none;
    color: var(--color-bg);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

/* ============ Stock Warning ============ */
.stock-warning {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-sale);
    font-size: 0.8rem;
    margin-top: var(--space-md);
}

/* ============ Phone Input Mask ============ */
.phone-input-wrapper {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* ============ Active Filters ============ */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: 0 var(--space-md) var(--space-md);
    align-items: center;
}

.filter-tag {
    padding: 6px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text);
}

.filter-clear {
    padding: 6px 12px;
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: underline;
}

.filter-advanced-btn {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-advanced-btn svg {
    flex-shrink: 0;
}

/* ============ Saved Addresses ============ */
.saved-addresses {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    align-items: center;
}

.saved-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.saved-address-btn {
    padding: 6px 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-address-btn:active {
    background: var(--color-border);
}

/* ============ Promo Row ============ */
.promo-row span:last-child {
    color: var(--color-success);
}
