/**
 * ============================================
 * DSCARF Digital - Main Stylesheet
 * Футуристичный монохромный стиль с неоновыми акцентами
 * ============================================
 */

/* ============================================
   CSS Variables & Root
   ============================================ */

/* Скрыть контент до загрузки стилей */
body {
    visibility: hidden;
    opacity: 0;
}

/* Показать после загрузки */
body.loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

:root {
    /* Основные цвета - монохромная палитра */
    --primary: #000000;
    --secondary: #111111;
    --accent: #222222;
    --bg: #000000;
    --surface: #0F0F0F;
    --surface-light: #1A1A1A;
    --surface-glass: rgba(15, 15, 15, 0.85);

    /* Текст */
    --text: #FFFFFF;
    --text-light: #AAAAAA;
    --text-muted: #666666;

    /* Границы */
    --border: #333333;
    --border-light: #222222;

    /* Неоновые эффекты */
    --neon: #FFFFFF;
    --neon-glow: rgba(255, 255, 255, 0.3);
    --glow-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    --glow-intense: 0 0 40px rgba(255, 255, 255, 0.2);

    /* Состояния */
    --success: #00FF88;
    --success-glow: rgba(0, 255, 136, 0.3);
    --error: #FF0044;
    --error-glow: rgba(255, 0, 68, 0.3);
    --warning: #FFAA00;
    --warning-glow: rgba(255, 170, 0, 0.3);
    --info: #00AAFF;
    --info-glow: rgba(0, 170, 255, 0.3);

    /* Анимации */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.1);

    /* Шрифты */
    --font-heading: 'Orbitron', monospace;
    --font-body: 'Inter', sans-serif;

    /* Размеры */
    --max-width: 1440px;
    --container-padding: 20px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    font-weight: 400;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.12em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.1em;
}

h4 {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
}

p {
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
}

a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

a:hover {
    color: var(--text);
    text-shadow: var(--glow-shadow);
}

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

/* ============================================
   Layout
   ============================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text), transparent);
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s var(--ease-out);
    width: 100vw;
    max-width: 100%;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    z-index: 1001;
}

.logo span {
    color: var(--text-muted);
    font-weight: 300;
}

.logo:hover {
    text-shadow: var(--glow-shadow);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--glow-shadow);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Cart icon */
.cart-icon {
    position: relative;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    z-index: 1001;
}

.cart-icon:hover {
    color: var(--text);
    box-shadow: var(--glow-shadow);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--text);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
    box-shadow: var(--glow-shadow);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease-out);
    border-radius: 1px;
}

/* Desktop cart - скрываем на мобильных */
.desktop-cart {
    display: flex;
}

.mobile-cart {
    display: none;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
    z-index: -1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    width: 100%;
    padding: 0 var(--container-padding);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: var(--glow-shadow);
    }

    50% {
        box-shadow: var(--glow-intense);
    }
}

.hero-title {
    margin-bottom: 20px;
    animation: fadeInUp 1s var(--ease-out) 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

.hero-cta {
    animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s var(--ease-out);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--text);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--text);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text);
    box-shadow: var(--glow-shadow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--glow-shadow);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--surface);
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--text);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
}

.card-badge-new {
    background: var(--success);
}

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

.card-content {
    padding: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
}

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

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 24px;
    width: 100%;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s var(--ease-out);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: var(--glow-shadow);
    background: var(--surface-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================================
   Product Grid
   ============================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

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

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

.container img {
  width: 100%; /* Картинки растягиваются по ширине колонки */
  height: auto; /* Сохранение пропорций */
}

/* ============================================
   Filters
   ============================================ */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.filter-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.filter-select {
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    min-width: 0;
    width: 100%;
}

.filter-select:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: var(--glow-shadow);
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    width: 100%;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
}

.page-link:hover {
    background: var(--surface-light);
    border-color: var(--text);
    box-shadow: var(--glow-shadow);
}

.page-link.active {
    background: var(--text);
    color: var(--primary);
    border-color: var(--text);
}

.page-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-link.disabled:hover {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: none;
}

/* ============================================
   Cart
   ============================================ */

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--bg);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 500;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

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

.quantity-input {
    width: 40px;
    height: 32px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-heading);
}

.quantity-input:focus {
    outline: none;
}

.cart-item-remove {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.cart-item-remove:hover {
    background: var(--error);
    color: var(--text);
    box-shadow: 0 0 20px var(--error-glow);
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
}

.cart-summary-row:last-child {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 500;
}

.cart-summary-label {
    color: var(--text-light);
}

.cart-summary-value {
    font-family: var(--font-heading);
}

/* ============================================
   Product Detail
   ============================================ */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

.product-gallery {
    position: relative;
    width: 100%;
}

.gallery-main {
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
}

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

.gallery-thumbs {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--text);
    box-shadow: var(--glow-shadow);
}

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

.product-info {
    position: sticky;
    top: 100px;
    width: 100%;
}

.product-title {
    margin-bottom: 12px;
}

.product-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-price-detail {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 24px;
}

.product-description {
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.product-features {
    margin-bottom: 30px;
}

.features-title {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.features-list {
    display: grid;
    gap: 12px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    width: 100%;
}

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

.feature-value {
    color: var(--text);
    font-weight: 400;
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s var(--ease-out);
    z-index: 2000;
    max-width: 400px;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-color: var(--success);
    box-shadow: 0 0 30px var(--success-glow);
}

.toast-error {
    border-color: var(--error);
    box-shadow: 0 0 30px var(--error-glow);
}

.toast-warning {
    border-color: var(--warning);
    box-shadow: 0 0 30px var(--warning-glow);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    width: 100%;
    overflow-x: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out);
}

.footer-link:hover {
    color: var(--text);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

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

/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s var(--ease-out);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s var(--ease-out);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--neon-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    pointer-events: none;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* ============================================
   Admin Styles
   ============================================ */

.admin-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    width: 100%;
}

.admin-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-nav-link {
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    transition: all 0.3s var(--ease-out);
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--surface-light);
    border-color: var(--text);
    box-shadow: var(--glow-shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Table */
.table-container {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--surface-light);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-light);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-confirmed {
    background: rgba(0, 170, 255, 0.2);
    color: var(--info);
    border: 1px solid var(--info);
}

.status-shipped {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

/* ============================================
   Mobile Menu - Sidebar Style
   ============================================ */

/* Mobile menu active states */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--text);
}

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

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

/* Mobile menu navigation - Sidebar from right */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -320px;
        /* Скрыто за правым краем */
        width: 300px;
        height: 100vh;
        background: var(--surface-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        padding: 120px 30px 30px;
        /* Отступ сверху для хедера */
        gap: 0;
        overflow-y: auto;
        z-index: 999;
        border-left: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        transition: right 0.4s var(--ease-out);
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: 18px 16px;
        margin: 4px 0;
        font-size: 1rem;
        background: transparent;
        border: 1px solid transparent;
        border-radius: var(--border-radius);
        justify-content: flex-start;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgb(18 18 18);
        border-color: var(--border);
        box-shadow: var(--glow-shadow);
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Overlay for mobile menu */
    .nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--ease-out);
        z-index: -1;
    }

    .nav.active::before {
        opacity: 1;
        visibility: visible;
    }

    .mobile-cart {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 16px;
        margin-top: 20px;
        border-top: 1px solid var(--border-light);
        border-radius: var(--border-radius);
        background: rgb(18 18 18);
    }

    .mobile-cart .cart-count {
        top: 8px;
        right: 8px;
    }
}

/* Desktop menu */
@media (min-width: 769px) {
    .nav {
        display: flex !important;
        flex-direction: row;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

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

    .desktop-cart {
        display: flex !important;
    }

    .desktop-cart:hover {
        background: rgb(35 35 35);
    }
}

/* ============================================
   Fixes for about.php page
   ============================================ */

/* General fixes for sections with negative margins */
@media (max-width: 768px) {

    section[style*="margin: 0 -20px"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Fix for grid layouts in about.php */
    .grid.grid-cols-2,
    .grid.grid-cols-3,
    .grid.grid-cols-4,
    .grid.grid-cols-5 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
    }

    /* Fix for inline grid styles */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix for team section */
    div[style*="display: inline-grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        gap: 15px !important;
    }

    /* Fix for stats boxes */
    div[style*="padding: 40px 20px"] {
        padding: 30px 15px !important;
    }

    /* Fix for mission section icons */
    div[style*="width: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }

    /* Fix for partner logos */
    div[style*="padding: 20px"] {
        padding: 15px 10px !important;
        font-size: 0.7rem !important;
    }

    /* Fix for hero image in about.php */
    div[style*="aspect-ratio: 21/9"] {
        aspect-ratio: 16/9 !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {

    /* Fix for team section */
    div[style*="display: inline-grid"] {
        gap: 20px !important;
    }

    /* Fix for stats boxes */
    div[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }

    /* Fix for partner logos */
    .grid.grid-cols-5 {
        gap: 15px !important;
    }

    /* Fix for technology sections */
    .grid.grid-cols-2 {
        gap: 40px !important;
    }

    /* Fix for hero title in about.php */
    h2[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }

    p[style*="letter-spacing: 0.3em"] {
        font-size: 0.8rem !important;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* ============================================
   Улучшенные стили Modal для выбора размера
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    margin: auto;
    padding: 40px;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s var(--ease-out);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.modal.active .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

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

.modal-header h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.modal-close {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text);
    box-shadow: var(--glow-shadow);
    transform: rotate(90deg);
}

.modal-body {
    margin-bottom: 30px;
}

.product-info-modal {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.product-info-modal img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-details h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text);
}

.product-details .price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
}

.size-options-container {
    margin-bottom: 30px;
}

.size-options-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-align: center;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.size-option {
    padding: 20px 15px;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 90px;
    height: 90px;
    text-align: center;
    transition: all 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.size-option:hover:not(.disabled):not(.selected) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
    transform: translateY(-4px);
    box-shadow: var(--glow-shadow);
}

.size-option.selected {
    background: var(--text);
    color: var(--primary);
    border-color: var(--text);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

.size-option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--surface);
    color: var(--text-muted);
    border-color: var(--border);
    transform: none;
    box-shadow: none;
}

.size-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.size-quantity {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.modal-footer {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    margin-top: 30px;
}

.modal-footer .btn {
    min-width: 180px;
    padding: 16px 30px;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading state for modal */
.modal-content.loading .size-options {
    opacity: 0.5;
    pointer-events: none;
}

.modal-content.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.7);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-content.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

/* ============================================
   Responsive Modal - Compact Mobile Version
   ============================================ */

/* Tablet and smaller (768px and below) */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px 15px;
        width: 92%;
        max-width: 400px;
        max-height: 80vh;
    }

    .modal-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .modal-header h3 {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .modal-body {
        margin-bottom: 15px;
    }

    .product-info-modal {
        flex-direction: row;
        gap: 12px;
        padding: 12px;
        margin-bottom: 15px;
    }

    .product-info-modal img {
        width: 60px;
        height: 60px;
    }

    .product-details h4 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .product-details .price {
        font-size: 1.1rem;
    }

    .size-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 15px;
    }

    .size-option {
        min-width: auto;
        height: 55px;
        padding: 8px 5px;
        font-size: 0.85rem;
        gap: 4px;
    }

    .size-label {
        font-size: 0.9rem;
    }

    .size-quantity {
        font-size: 0.65rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
    }

    .modal-footer .btn {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    .modal-content {
        padding: 15px 12px;
        width: 95%;
        max-width: 340px;
        max-height: 75vh;
        border-radius: 10px;
    }

    .modal-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .modal-header h3 {
        font-size: 0.9rem;
    }

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .product-info-modal {
        gap: 10px;
        padding: 10px;
        margin-bottom: 12px;
    }

    .product-info-modal img {
        width: 50px;
        height: 50px;
    }

    .product-details h4 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .product-details .price {
        font-size: 1rem;
    }

    .size-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 12px;
    }

    .size-option {
        height: 48px;
        padding: 6px 4px;
        font-size: 0.8rem;
        gap: 3px;
    }

    .size-label {
        font-size: 0.85rem;
    }

    .size-quantity {
        font-size: 0.6rem;
    }

    .modal-footer {
        gap: 8px;
        padding-top: 12px;
    }

    .modal-footer .btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
}

/* Extra small phones (360px and below) */
@media (max-width: 360px) {
    .modal-content {
        padding: 12px 10px;
        width: 96%;
        max-width: 300px;
    }

    .modal-header h3 {
        font-size: 0.85rem;
    }

    .product-info-modal img {
        width: 45px;
        height: 45px;
    }

    .product-details h4 {
        font-size: 0.75rem;
    }

    .product-details .price {
        font-size: 0.9rem;
    }

    .size-options {
        gap: 5px;
    }

    .size-option {
        height: 42px;
        padding: 5px 3px;
        font-size: 0.75rem;
    }

    .size-label {
        font-size: 0.8rem;
    }

    .size-quantity {
        font-size: 0.55rem;
    }

    .modal-footer .btn {
        padding: 8px 14px;
        font-size: 0.7rem;
    }
}

/* ============================================
   Responsive Design - Clean Version
   ============================================ */

/* Tablet: 768px+ */
@media (min-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-info {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
        justify-items: left;
    }

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

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .section {
        padding: 80px 0;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 30px;
    }

    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* Large Desktop: 1440px+ */
@media (min-width: 1440px) {
    .container {
        padding: 0 40px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile: max 767px */
@media (max-width: 767px) {
    :root {
        --header-height: 70px;
        --container-padding: 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .hero {
        min-height: 80vh;
    }

    .cart-item {
        flex-direction: column;
        gap: 16px;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .filters {
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile: max 480px */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .pagination {
        gap: 4px;
    }

    .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .nav {
        width: 100%;
        right: -100%;
    }
}

/* ============================================
   Collections Grid - Mobile Fix
   ============================================ */

.collections-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 767px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collections-grid .card {
        padding: 30px 15px;
        min-height: auto;
    }

    .collections-grid .card h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .collections-grid .card p {
        font-size: 0.7rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .collections-grid .card span {
        font-size: 0.65rem;
    }
}

/* ============================================
   Product Grid - Mobile Optimizations
   ============================================ */

@media (max-width: 767px) {
    .product-grid .card {
        border-radius: var(--border-radius-sm);
    }

    .product-grid .card-image {
        aspect-ratio: 3/4;
    }

    .product-grid .card-content {
        padding: 12px;
    }

    .product-grid .card-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-grid .card-category {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .product-grid .card-content p {
        font-size: 0.75rem;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-grid .card-price {
        margin-bottom: 10px;
        gap: 6px;
    }

    .product-grid .price-current {
        font-size: 0.95rem;
    }

    .product-grid .price-old {
        font-size: 0.75rem;
    }

    .product-grid .card-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 0.6rem;
    }

    .product-grid .btn-sm {
        padding: 8px 12px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        gap: 12px;
    }

    .product-grid .card-content {
        padding: 10px;
    }

    .product-grid .card-title {
        font-size: 0.8rem;
    }

    .product-grid .price-current {
        font-size: 0.85rem;
    }

    .collections-grid {
        gap: 12px;
    }

    .collections-grid .card {
        padding: 20px 12px;
    }

    .collections-grid .card h3 {
        font-size: 0.85rem;
    }
}
/* ============================================
   Стили для встроенного выбора размера на product.php
   ============================================ */

/* Кнопки выбора размера на странице товара */
.size-option-btn {
    padding: 14px 20px;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    min-width: 70px;
    height: 60px;
    text-align: center;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Состояние при наведении */
.size-option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

/* ВЫБРАННЫЙ РАЗМЕР */
.size-option-btn.active {
    background: var(--text);
    color: var(--primary);
    border-color: var(--text);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Отключенная кнопка (нет в наличии) */
.size-option-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--surface);
    color: var(--text-muted);
    border-color: var(--border);
    transform: none;
    box-shadow: none;
}

/* Принудительные стили для активной кнопки */
.size-option-btn.active,
.size-option-btn.active:hover,
.size-option-btn.active:focus {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

/* Анимация для выбора размера на странице товара */
@keyframes sizeSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.size-option-btn.active {
    animation: sizeSelect 0.3s var(--ease-out);
}

/* Стили для контейнера кнопок размеров */
#size-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

/* Стили для индикатора доступного количества */
#size-available {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--success);
    font-size: 0.9rem;
}

/* ============================================
   Mobile Product Cards - 2 per row
   ============================================ */

@media (max-width: 768px) {
    /* Сетка товаров - 2 карточки в ряд */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Уменьшенные карточки */
    .product-grid .card {
        border-radius: var(--border-radius-sm);
    }

    /* Уменьшенное изображение */
    .product-grid .card-image {
        aspect-ratio: 3/4;
    }

    /* Уменьшенный контент */
    .product-grid .card-content {
        padding: 12px;
    }

    /* Уменьшенный заголовок */
    .product-grid .card-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Уменьшенная категория */
    .product-grid .card-category {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    /* Уменьшенное описание */
    .product-grid .card-content p {
        font-size: 0.75rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    /* Уменьшенные цены */
    .product-grid .card-price {
        margin-bottom: 10px;
        gap: 6px;
    }

    .product-grid .price-current {
        font-size: 0.95rem;
    }

    .product-grid .price-old {
        font-size: 0.75rem;
    }

    /* Уменьшенный бейдж */
    .product-grid .card-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 0.6rem;
    }

    /* Уменьшенная кнопка */
    .product-grid .btn-sm {
        padding: 8px 12px;
        font-size: 0.65rem;
    }

    /* ============================================
       Category Cards on Homepage - 2 per row
       ============================================ */

    /* Сетка категорий на главной - 2 карточки в ряд */
    section .product-grid[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Уменьшенные карточки категорий */
    section .product-grid[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] .card {
        padding: 30px 15px !important;
        min-height: auto;
    }

    /* Уменьшенный заголовок категории */
    section .product-grid[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] .card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    /* Уменьшенное описание категории */
    section .product-grid[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] .card p {
        font-size: 0.75rem;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Уменьшенный счетчик товаров */
    section .product-grid[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] .card span {
        font-size: 0.65rem;
    }
}

/* ============================================
   Extra Small Devices - further optimizations
   ============================================ */

@media (max-width: 480px) {
    .product-grid {
        gap: 10px !important;
    }

    .product-grid .card-content {
        padding: 10px;
    }

    .product-grid .card-title {
        font-size: 0.8rem;
    }

    .product-grid .price-current {
        font-size: 0.85rem;
    }

    /* Карточки категорий */
    section .product-grid[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] {
        gap: 10px !important;
    }

    section .product-grid[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] .card {
        padding: 20px 12px !important;
    }

    section .product-grid[style*="grid-template-columns:repeat(auto-fit,minmax(300px,1fr))"] .card h3 {
        font-size: 0.9rem;
    }
}

/* ============================================
   Tablet - 3 cards per row
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ============================================
   Анимация открытия модального окна
   ============================================ */

@keyframes modalAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.active .modal-content {
    animation: modalAppear 0.4s var(--ease-out);
}

/* Анимация для кнопок размера */
@keyframes sizePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.size-option.selected {
    animation: sizePulse 2s infinite;
}

/* ============================================
   Preorder Styles - Стили для предзаказа
   ============================================ */

/* Preorder Badge */
.preorder-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--text);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
}

/* Cart Item Preorder */
.cart-item-preorder {
    border-left: 2px solid var(--text) !important;
}

.cart-item-image {
    position: relative;
}

.cart-item-image .preorder-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
}

/* Preorder Notice */
.preorder-notice {
    margin: 20px 0;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

.preorder-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.preorder-notice-icon {
    color: var(--text-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.preorder-notice-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.preorder-notice-text strong {
    color: var(--text);
}

/* Size Option Preorder */
.size-option-btn.size-out-of-stock {
    border-style: dashed;
    border-color: var(--text-light);
    color: var(--text-light);
    position: relative;
    flex-direction: column;
    padding: 8px 10px;
}

.size-option-btn.size-out-of-stock:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text);
}

.size-option-btn.size-out-of-stock.active {
    background: var(--text);
    color: var(--primary);
    border-style: solid;
}

.size-preorder-label {
    display: block;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
    opacity: 0.9;
}

/* Size Option in Modal - Preorder */
.size-option.size-preorder {
    border-style: dashed;
    border-color: var(--text-light);
    color: var(--text-light);
}

.size-option.size-preorder:hover:not(.selected) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text);
}

.size-option.size-preorder.selected {
    background: var(--text);
    color: var(--primary);
    border-color: var(--text);
}

/* Preorder Row in Admin */
.preorder-row {
    border-left: 2px solid var(--text) !important;
}

.preorder-row td:first-child {
    position: relative;
}

.preorder-row .preorder-badge {
    margin-left: 8px;
}

/* Preorder Stats Card */
.stat-card-small.preorder {
    border-color: var(--text);
}

.stat-card-small.preorder .stat-value-small {
    color: var(--text);
}

/* Toast Warning for Preorder */
.toast-warning {
    border-color: var(--warning);
    box-shadow: 0 0 30px var(--warning-glow);
}

/* Preorder Button States */
.btn-preorder {
    background: var(--text);
    color: var(--primary);
}

.btn-preorder:hover {
    background: var(--text);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Order Summary Preorder Item */
.order-summary-item.preorder {
    background: rgba(255, 255, 255, 0.02);
}

.order-summary-item.preorder .preorder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-summary-item.preorder .preorder-overlay span {
    font-size: 0.55rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

/* Product Page Preorder Notice */
.product-preorder-notice {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

.product-preorder-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.product-preorder-notice-icon {
    color: var(--text-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.product-preorder-notice-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.product-preorder-notice-text strong {
    color: var(--text);
}

/* Cart Summary Preorder Warning */
.cart-summary-preorder-warning {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    margin: 16px 0;
}

.cart-summary-preorder-warning-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cart-summary-preorder-warning-icon {
    color: var(--text-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.cart-summary-preorder-warning-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.stock-status.in-stock {
    color: var(--success);
}

.stock-status.out-of-stock {
    color: var(--text-light);
}

.stock-status-icon {
    width: 16px;
    height: 16px;
}

.stock-status-text {
    font-size: 0.85rem;
}

/* Size Preorder Notice */
#size-preorder-notice {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Preorder Animation */
@keyframes preorderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.preorder-badge {
    animation: preorderPulse 2s infinite;
}

/* Responsive Preorder Styles */
@media (max-width: 768px) {
    .preorder-notice {
        padding: 12px 16px;
    }
    
    .preorder-notice-text {
        font-size: 0.85rem;
    }
    
    .size-option-btn.size-out-of-stock {
        padding: 6px 8px;
    }
    
    .size-preorder-label {
        font-size: 0.5rem;
    }
    
    .cart-summary-preorder-warning {
        padding: 10px;
    }
    
    .cart-summary-preorder-warning-text {
        font-size: 0.8rem;
    }
}

/* ============================================
   Size Chart Modal Styles
   ============================================ */

/* Кнопка таблицы размеров */
.size-chart-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.size-chart-btn:hover {
    border-color: var(--text);
    color: var(--text);
    background: var(--surface-light);
    box-shadow: var(--glow-shadow);
}

/* Модальное окно */
.size-chart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.size-chart-modal.active {
    opacity: 1;
    visibility: visible;
}

.size-chart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.size-chart-modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.size-chart-modal.active .size-chart-modal-content {
    transform: scale(1) translateY(0);
}

.size-chart-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    z-index: 10;
}

.size-chart-modal-close:hover {
    border-color: var(--error);
    color: var(--error);
    background: var(--surface-light);
}

.size-chart-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface);
    flex-shrink: 0;
}

.size-chart-modal-header h3 {
    font-size: 1rem;
    margin: 0;
    padding-right: 50px;
    color: var(--text);
    letter-spacing: 0.05em;
}

.size-chart-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(85vh - 90px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg);
}

.size-chart-modal-body::-webkit-scrollbar {
    width: 6px;
}

.size-chart-modal-body::-webkit-scrollbar-track {
    background: var(--surface);
}

.size-chart-modal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.size-chart-modal-body img {
    max-width: 100%;
    max-height: calc(85vh - 130px);
    width: auto;
    height: auto;
    border-radius: var(--border-radius-sm);
    display: block;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Специальные стили для вертикальных изображений 9:16 */
.size-chart-modal-body img[src*="size_chart"] {
    min-width: 280px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .size-chart-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .size-chart-modal-content {
        max-height: 90vh;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        max-width: 100%;
        animation: slideUp 0.3s var(--ease-out);
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .size-chart-modal-header {
        padding: 16px 16px 12px;
        flex-shrink: 0;
    }

    .size-chart-modal-header h3 {
        font-size: 0.95rem;
        padding-right: 45px;
    }

    .size-chart-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .size-chart-modal-body {
        padding: 16px;
        max-height: calc(90vh - 70px);
    }

    .size-chart-modal-body img {
        max-height: calc(90vh - 110px);
        min-width: 200px;
    }

    .size-chart-btn {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* ============================================
   PRODUCT PAGE - CSS FIX FOR MOBILE IMAGES
   Исправление бага с изображениями на мобильных
   ============================================ */

/* Базовые стили для галереи (десктоп) */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

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

.gallery-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--text);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.gallery-thumb:hover {
    border-color: var(--text-muted);
}

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

/* ============================================
   Mobile Product Page - Enhanced Styles
   ============================================ */

@media (max-width: 768px) {
    /* Секция товара */
    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Галерея на мобильных - КРИТИЧЕСКИ ВАЖНЫЕ ФИКСЫ */
    .product-gallery {
        order: -1;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .gallery-main {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: var(--border-radius);
        overflow: hidden;
        flex-shrink: 0;
    }

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

    /* Миниатюры - горизонтальный скролл с фиксом */
    .gallery-thumbs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-top: 12px;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .gallery-thumb {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
        border-radius: var(--border-radius-sm);
        border: 2px solid var(--border);
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .gallery-thumb.active {
        border-color: var(--text);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }

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

    /* Информация о товаре */
    .product-info {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .product-category {
        font-size: 0.75rem !important;
        margin-bottom: 8px !important;
    }

    .product-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .product-sku {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .product-price-detail {
        font-size: 1.5rem !important;
        margin-bottom: 16px;
    }

    .product-price-detail span {
        font-size: 1rem !important;
        margin-left: 8px !important;
    }

    /* Описание */
    .product-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Характеристики */
    .product-features {
        margin-bottom: 20px;
    }

    .features-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .features-list {
        gap: 8px;
    }

    .feature-item {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    /* Кнопки размеров */
    .size-option-btn {
        min-width: 55px;
        height: 48px;
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    #size-buttons-container {
        gap: 8px;
    }

    /* Кнопки действий */
    .product-actions {
        flex-direction: column;
        gap: 12px;
    }

    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .product-actions .btn-lg {
        padding: 16px 24px;
        font-size: 0.9rem;
    }

    /* Социальные кнопки */
    .product-info > div:last-child {
        margin-top: 24px;
        padding-top: 24px;
    }

    /* Похожие товары */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }
}

/* ============================================
   Extra Small Devices (480px and below)
   ============================================ */

@media (max-width: 480px) {
    .product-title {
        font-size: 1.3rem !important;
    }

    .product-price-detail {
        font-size: 1.3rem !important;
    }

    .gallery-thumb {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .size-option-btn {
        min-width: 50px;
        height: 44px;
        font-size: 0.85rem;
    }

    .product-actions .btn-lg {
        padding: 14px 20px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Touch-friendly improvements
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .gallery-thumb:active {
        transform: scale(0.95);
    }

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

/* ============================================
   Size Button Styles (без желтого выделения)
   ============================================ */
.size-option-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 50px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-option-btn:hover {
    border-color: var(--text-muted);
}

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

.size-preorder-label {
    display: block;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
    opacity: 0.7;
    color: var(--text-muted);
}

.size-option-btn.active .size-preorder-label {
    color: var(--primary);
    opacity: 0.9;
}

/* Disabled size button styles */
.size-option-btn.size-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-muted);
    pointer-events: none;
}

.size-option-btn.size-disabled:hover {
    border-color: var(--border);
    background: var(--surface);
}

/* ============================================
   Preorder Notice Styles (белый текст)
   ============================================ */
.preorder-notice {
    margin-top: 20px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

.preorder-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.preorder-notice-content svg {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.preorder-notice-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.preorder-notice-text strong {
    color: var(--text);
    font-weight: 600;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .preorder-notice {
        padding: 12px;
    }
    
    .preorder-notice-text {
        font-size: 0.8rem;
    }
}

/* ============================================
   Size Chart Modal Styles
   ============================================ */
.size-chart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.size-chart-modal.active {
    display: flex;
}

.size-chart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.size-chart-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    z-index: 1;
    padding: 24px;
}

.size-chart-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    z-index: 2;
}

.size-chart-modal-header {
    margin-bottom: 20px;
    padding-right: 40px;
}

.size-chart-modal-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.size-chart-modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .size-chart-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 16px;
    }
    
    .size-chart-modal-header h3 {
        font-size: 1rem;
    }
}
