/* ==================== Сброс и базовые стили ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #151515;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --accent: #FF3B30;
    --accent-hover: #ff5248;
    --border: #2a2a2a;
    --bg-image: #1f1f1f; /* Темно-графитовый фон для изображений */
    --success: #34c759;
    --danger: #ff3b30;
    --radius: 16px; /* Увеличено с 12px для более премиального вида */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3); /* Мягкая тень */
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Учитываем тему Telegram */
body.dark {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
}

.view {
    display: none;
    min-height: 100vh;
    padding-bottom: 80px;
}

.view.active {
    display: block;
}

/* ==================== Hero-экран ==================== */
#hero-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none; /* Не блокируем клики */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px 24px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
    opacity: 0.95;
}

.hero-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.hero-cta-btn {
    position: relative;
    z-index: 3;
    background-color: var(--accent);
    color: var(--text-primary);
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
    pointer-events: auto;
}

.hero-cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.4);
}

.hero-cta-btn:active {
    transform: translateY(0);
}

/* ==================== Header ==================== */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 19px; /* Чуть больше для главенства */
    font-weight: 700; /* Больший вес для выделения */
    color: var(--text-primary);
    flex: 1;
    letter-spacing: 0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.show-hero-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
    border-radius: 8px;
}

.show-hero-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

.search-input {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    width: 140px;
    transition: var(--transition);
    opacity: 0.9; /* Немного менее контрастный для вторичности */
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    width: 180px;
    background-color: var(--bg-secondary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 8px;
    transition: var(--transition);
    border-radius: 8px;
}

.back-btn:hover {
    background-color: var(--bg-card);
    opacity: 0.8;
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    letter-spacing: 0.3px;
}

.cart-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    padding: 6px;
    transition: transform 120ms ease-out, background-color 150ms ease-out;
    border-radius: 8px;
}

.cart-btn:hover {
    background-color: var(--bg-card);
}

.cart-btn:active {
    transform: scale(0.95);
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .cart-btn {
        transition: none;
    }
    
    .cart-btn:active {
        transform: none;
    }
}

.cart-btn::after {
    content: attr(data-count);
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.cart-btn[data-count]:not([data-count="0"])::after {
    display: block;
}

/* ==================== Фильтры ==================== */
.filters {
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.filter-select {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.9; /* Немного менее контрастный для вторичности */
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-secondary);
}

/* ==================== Каталог ==================== */
.catalog-container {
    padding: 20px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow); /* Мягкая тень по умолчанию */
    opacity: 0;
    animation: fadeInCard 160ms ease-out forwards;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--border);
    box-shadow: var(--shadow-hover);
}

.product-card:active {
    transform: translateY(0) scale(0.99);
}

@keyframes fadeInCard {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .product-card {
        transition: none;
        animation: none;
        opacity: 1;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: none;
    }
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background-color: var(--bg-image); /* Темно-графитовый фон вместо черного */
    padding: 16px;
    display: block;
}

.product-info {
    padding: 20px; /* Увеличено с 16px для большего воздуха */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5; /* Улучшена читаемость */
    min-height: 2.8em;
}

.product-brand {
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary); /* Сдержанный цвет вместо яркого белого */
    background-color: var(--bg-secondary);
    padding: 6px 10px; /* Унифицированные паддинги */
    border-radius: 8px; /* Унифицированный радиус */
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    height: 24px; /* Фиксированная высота для единообразия */
    align-items: center;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7; /* Менее контрастный вторичный текст */
}

.product-price {
    font-size: 19px; /* Увеличено с 17px для большей заметности */
    font-weight: 700; /* Увеличено с 600 для большего веса */
    color: var(--text-primary);
    margin-top: auto;
    letter-spacing: 0.3px;
}

.product-stock {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7; /* Еще менее контрастный */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Skeleton loading */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.skeleton-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    animation: shimmer 1400ms ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
    background-size: 200% 100%;
}

.skeleton-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, #222 50%, var(--bg-secondary) 100%);
    background-size: 200% 100%;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.price {
    height: 19px;
    width: 50%;
    margin-top: auto;
}

.skeleton-line.stock {
    height: 11px;
    width: 40%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Улучшенная pulse анимация для совместимости */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .skeleton-card,
    .skeleton-item,
    .skeleton-image,
    .skeleton-line {
        animation: none;
        background: var(--bg-secondary);
    }
}

/* ==================== Карточка товара ==================== */
.item-container {
    padding: 20px;
}

.item-image-carousel {
    position: relative;
    margin-bottom: 24px;
}

.item-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--bg-card);
    position: relative;
    border: 1px solid var(--border);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 12px;
}

.carousel-nav.next {
    right: 12px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--accent);
    width: 24px;
    border-radius: 4px;
}

.item-details {
    margin-bottom: 24px;
}

.item-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.item-brand {
    display: inline-block;
    font-size: 11px; /* Унифицированный размер */
    font-weight: 600;
    color: var(--text-secondary); /* Сдержанный цвет вместо яркого белого */
    background-color: var(--bg-secondary);
    padding: 6px 10px; /* Унифицированные паддинги */
    border-radius: 8px; /* Унифицированный радиус */
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    height: 24px; /* Фиксированная высота для единообразия */
    display: inline-flex;
    align-items: center;
}

.item-category {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.item-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    margin-bottom: 24px;
}

.item-description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 8px;
    transition: var(--transition);
}

.show-more-btn:hover {
    opacity: 0.8;
}

.variants-section {
    margin-bottom: 24px;
}

.variants-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.variant-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 120ms ease-out, border-color 120ms ease-out, background-color 120ms ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-item:hover {
    border-color: var(--accent);
    background-color: var(--bg-secondary);
}

.variant-item:active {
    transform: scale(0.98);
}

.variant-item.selected {
    border-color: var(--accent);
    background-color: rgba(255, 59, 48, 0.1);
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .variant-item {
        transition: none;
    }
    
    .variant-item:active {
        transform: none;
    }
}

.variant-info {
    flex: 1;
}

.variant-options {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.variant-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.variant-stock {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms ease-out, opacity 120ms ease-out, box-shadow 120ms ease-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
}

.add-to-cart-btn:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.4);
}

.add-to-cart-btn:active:not(:disabled) {
    transform: scale(0.97);
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .add-to-cart-btn {
        transition: none;
    }
    
    .add-to-cart-btn:hover:not(:disabled) {
        transform: none;
    }
    
    .add-to-cart-btn:active:not(:disabled) {
        transform: none;
    }
}

.add-to-cart-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.skeleton-item {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    aspect-ratio: 1;
    animation: shimmer 1400ms ease-in-out infinite;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
    background-size: 200% 100%;
}

/* ==================== Корзина ==================== */
.cart-container {
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-cart p {
    font-size: 16px;
}

.cart-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background-color: var(--bg-primary);
    border-radius: var(--radius);
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.cart-item-variant {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    margin-top: auto;
    letter-spacing: 0.3px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out;
    color: var(--text-primary);
}

.qty-btn:hover:not(:disabled) {
    background-color: var(--bg-card);
    border-color: var(--accent);
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .qty-btn {
        transition: none;
    }
    
    .qty-btn:active:not(:disabled) {
        transform: none;
    }
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-value {
    min-width: 44px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
    padding: 4px;
    margin-left: auto;
    transition: color 150ms ease-out, transform 120ms ease-out;
    line-height: 1;
}

.remove-btn:hover {
    color: var(--accent);
}

.remove-btn:active {
    transform: scale(0.9);
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .remove-btn {
        transition: none;
    }
    
    .remove-btn:active {
        transform: none;
    }
}

.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms ease-out, opacity 120ms ease-out, box-shadow 120ms ease-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.3);
}

.checkout-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 59, 48, 0.4);
}

.checkout-btn:active {
    transform: scale(0.97);
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .checkout-btn {
        transition: none;
    }
    
    .checkout-btn:hover {
        transform: none;
    }
    
    .checkout-btn:active {
        transform: none;
    }
}

/* ==================== Оформление заказа ==================== */
.checkout-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.checkout-summary {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.checkout-items {
    margin-bottom: 16px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 12px;
}

.checkout-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-item-title {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.checkout-item-variant {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
}

.checkout-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-item-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.checkout-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
    padding: 4px;
    margin-left: auto;
    transition: color 150ms ease-out, transform 120ms ease-out, background-color 150ms ease-out;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.checkout-remove-btn:hover {
    color: var(--accent);
    background-color: var(--bg-secondary);
}

.checkout-remove-btn:active {
    transform: scale(0.9);
}

/* Отключение анимаций при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .checkout-remove-btn {
        transition: none;
    }
    
    .checkout-remove-btn:active {
        transform: none;
    }
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #30b350;
    transform: translateY(-2px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Сообщение об успехе ==================== */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 32px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h2 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.success-message p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==================== Кнопка "Поделиться" ==================== */
.share-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.share-btn:active {
    transform: scale(1.05);
}

/* ==================== Доставка СДЭК ==================== */
.delivery-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.delivery-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.suggestions-list {
    position: absolute;
    z-index: 1000;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: var(--shadow);
    display: none;
}

.suggestions-list.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-secondary);
}

.suggestion-item.selected {
    background-color: rgba(255, 59, 48, 0.1);
    border-left: 3px solid var(--accent);
}

.suggestion-city-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.suggestion-city-region {
    font-size: 12px;
    color: var(--text-muted);
}

.pvz-info {
    margin-top: 12px;
    padding: 12px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pvz-info-address {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.pvz-info-time {
    font-size: 12px;
    color: var(--text-muted);
}

.delivery-type-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-card);
}

.toggle-option:hover:not(.disabled) {
    border-color: var(--accent);
    background-color: var(--bg-secondary);
}

.toggle-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.toggle-option input[type="radio"]:checked + span {
    color: var(--accent);
    font-weight: 600;
}

.toggle-option:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background-color: rgba(255, 59, 48, 0.1);
}

.toggle-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delivery-price-free {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.pvz-search-container {
    position: relative;
    margin-bottom: 12px;
}

.pvz-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.pvz-search-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-secondary);
}

.pvz-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}

.pvz-search-clear:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.pvz-search-results-count {
    font-size: 12px;
    margin-top: 6px;
    padding: 4px 8px;
    text-align: right;
    color: var(--text-muted);
}

.pvz-search-input::placeholder {
    color: var(--text-muted);
}

.retry-btn {
    transition: var(--transition);
}

.retry-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.retry-btn:active {
    transform: translateY(0);
}

/* ==================== Адаптивность ==================== */
@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .search-input {
        width: 120px;
    }
    
    .search-input:focus {
        width: 160px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta-btn {
        padding: 14px 36px;
        font-size: 14px;
    }
}

/* ==================== V2 DESIGN - PREMIUM DARK HOCKEY STORE ==================== */

/* Общий фон страницы V2 - уже установлен выше в body */

/* Header V2 - Премиальный градиентный фон */
.header--v2 {
    background: radial-gradient(
        800px circle at 50% -200px,
        #2f2f2f 0%,
        #1c1c1c 40%,
        #0f0f0f 75%,
        #0a0a0a 100%
    );
    border-bottom: none;
    padding: calc(14px + env(safe-area-inset-top)) 16px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.menu-btn--v2 {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.2s ease;
    border-radius: 8px;
    line-height: 1;
    margin-right: 4px;
    flex-shrink: 0;
}

.menu-btn--v2:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-btn--v2:active {
    transform: scale(0.95);
}

.header-brand {
    flex: 1;
}

.logo--v2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 12px;
    color: #b0b0b0;
    margin: 4px 0 0 0;
    font-weight: 400;
    line-height: 1.3;
}

.cart-btn--v2 {
    margin-top: 0;
}

/* Search V2 */
.search-wrapper--v2 {
    width: 100%;
    margin-bottom: 16px;
}

.search-input--v2 {
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 15px;
    transition: all 0.2s ease;
}

.search-input--v2::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input--v2:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Filters V2 - Пилюли */
.filters--v2 {
    background: transparent;
    border-bottom: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill--v2 {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-pill--v2:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.filter-pill--v2.active {
    background-color: rgba(200, 220, 255, 0.15);
    border-color: rgba(200, 220, 255, 0.25);
    color: #c8dcff;
    box-shadow: 0 0 8px rgba(200, 220, 255, 0.2);
}

/* Brand Chips V2 */
.brand-chips--v2 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-chip--v2 {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-chip--v2:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.brand-chip--v2.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.brand-chip--new {
    background-color: #FF3B30 !important;
    border-color: #FF3B30 !important;
    color: #ffffff !important;
}

.brand-chip--new:hover {
    background-color: #ff5248 !important;
    border-color: #ff5248 !important;
}

/* Product Card V2 */
.product-card--v2 {
    background-color: #141414;
    border: none;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 150ms ease-out, box-shadow 150ms ease-out;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    padding: 12px;
    gap: 12px;
}

.product-card--v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.product-card--v2:active {
    transform: translateY(0) scale(0.98);
}

/* Image Container V2 */
.product-card--v2 .product-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 12px;
    display: block;
}

/* Badge V2 - Последние размеры */
.product-card--v2 .product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #FF3B30;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
}

/* Product Info V2 */
.product-card--v2 .product-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card--v2 .product-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
    margin: 0;
}

.product-card--v2 .product-brand {
    display: inline-flex;
    font-size: 10px;
    font-weight: 600;
    color: #b0b0b0;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    height: 20px;
    align-items: center;
    margin: 0;
}

.product-card--v2 .product-category {
    font-size: 11px;
    color: #707070;
    opacity: 0.7;
    margin: 0;
}

.product-card--v2 .product-price {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-top: auto;
    letter-spacing: 0.3px;
    margin: 0;
}

.product-card--v2 .product-stock {
    font-size: 11px;
    color: #707070;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Action Button V2 - Круглая красная кнопка */
.product-card--v2::after {
    content: '↗';
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: #FF3B30;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 5;
    pointer-events: none;
}

.product-card--v2:active::after {
    transform: scale(0.95);
}

/* Catalog Container V2 */
.catalog-container {
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.catalog-grid {
    gap: 14px;
}

/* Адаптивность V2 */
@media (max-width: 480px) {
    .header--v2 {
        padding: calc(12px + env(safe-area-inset-top)) 14px 14px;
    }
    
    .logo--v2 {
        font-size: 24px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
    
    .search-input--v2 {
        height: 44px;
        font-size: 14px;
    }
    
    .catalog-container {
        padding: 12px 14px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    
    .catalog-grid {
        gap: 12px;
    }
    
    .product-card--v2 .product-image {
        height: 150px;
    }
    
    .product-card--v2::after {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 14px;
        right: 14px;
    }
}
