/* ===== БАЗА ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0a0a0f;
    color: #d8d8dc;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   ===== 3D / ЖИВЫЕ ЭФФЕКТЫ ===================================
   ============================================================ */

/* ОБЩИЕ ПЕРЕХОДЫ */
.advantage,
.product-card,
.tile,
.co-form-block,
.co-summary,
.cart-item,
.category-btn,
.hero-btn,
.product-btn,
.btn {
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

/* ===== ПРЕДЗАКАЗ: КАТЕГОРИЯ, ОСТАТКИ ===== */
.po-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(160, 80, 220, 0.12);
    border: 1px solid rgba(160, 80, 220, 0.4);
    border-radius: 999px;
    color: #c79ae8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.po-flavor-row-out {
    opacity: 0.5;
    cursor: not-allowed;
}
.po-flavor-row-out:hover {
    transform: none;
    border-color: #23232e;
    background: linear-gradient(90deg, #0d0d14 0%, #12121a 100%);
}

.po-flavor-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.po-flavor-stock {
    color: #6ee7a8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.po-flavor-stock-out {
    color: #6a6a78;
}

/* если выбрано (чекбокс) — можно подсветить остаток */
.po-flavor-row:has(.po-flavor-cb:checked) .po-flavor-stock {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(160, 80, 220, 0.6);
}

@media (max-width: 500px) {
    .po-flavor-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    .po-flavor-stock {
        font-size: 11px;
    }
}

/* ============================================================
   ===== КРАСИВЫЙ ВЫБОР ВАРИАНТОВ В ПРЕДЗАКАЗЕ ================
   ============================================================ */

.po-flavors-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1f1f28;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.po-flavors-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #a050dc, #7b3fb8);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(160, 80, 220, 0.8);
}

.po-flavor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

/* Карточка одного вкуса */
.po-flavor-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 14px 20px;
    background: linear-gradient(90deg, #0d0d14 0%, #12121a 100%);
    border: 1.5px solid #23232e;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    user-select: none;
    overflow: hidden;
}

/* Декоративная левая полоска */
.po-flavor-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #a050dc;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px rgba(160, 80, 220, 0.8);
}

.po-flavor-row:hover {
    border-color: #3a2a52;
    background: linear-gradient(90deg, #12101a 0%, #16141e 100%);
    transform: translateX(2px);
}

/* Выбранная карточка */
.po-flavor-row:has(.po-flavor-cb:checked) {
    border-color: #a050dc;
    background: linear-gradient(90deg, rgba(160, 80, 220, 0.12) 0%, rgba(123, 63, 184, 0.06) 100%);
    box-shadow:
        0 8px 30px rgba(160, 80, 220, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateX(0);
}

.po-flavor-row:has(.po-flavor-cb:checked)::before {
    transform: scaleY(1);
}

/* Чекбокс + название */
.po-flavor-check {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.po-flavor-cb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #3a3a48;
    border-radius: 6px;
    background: #0a0a0f;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.po-flavor-cb:hover {
    border-color: #a050dc;
}

.po-flavor-cb:checked {
    background: linear-gradient(135deg, #a050dc, #7b3fb8);
    border-color: #a050dc;
    box-shadow: 0 0 15px rgba(160, 80, 220, 0.7);
}

.po-flavor-cb:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.po-flavor-name {
    color: #d8d8dc;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.po-flavor-row:hover .po-flavor-name {
    color: #ffffff;
}

.po-flavor-row:has(.po-flavor-cb:checked) .po-flavor-name {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(160, 80, 220, 0.5);
}

/* Контрол количества */
.po-flavor-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #23232e;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    height: 38px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.po-flavor-row:has(.po-flavor-cb:checked) .po-flavor-qty {
    border-color: #a050dc;
    box-shadow: 0 0 15px rgba(160, 80, 220, 0.4);
}

.po-qty-btn {
    width: 34px;
    height: 100%;
    background: transparent;
    border: none;
    color: #a0a0b0;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po-qty-btn:hover {
    background: #a050dc;
    color: #fff;
}

.po-qty-btn:active {
    transform: scale(0.92);
}

.po-qty-input {
    width: 46px;
    height: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
}

.po-flavor-row:has(.po-flavor-cb:checked) .po-qty-input {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(160, 80, 220, 0.6);
}

.po-qty-input::-webkit-outer-spin-button,
.po-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Адаптив */
@media (max-width: 500px) {
    .po-flavor-row {
        padding: 12px 12px 12px 16px;
        gap: 8px;
    }
    .po-flavor-name {
        font-size: 14px;
    }
    .po-qty-btn {
        width: 30px;
    }
    .po-qty-input {
        width: 38px;
    }
    .po-flavor-qty {
        height: 34px;
    }
}

/* ===== КРЕПОСТЬ (МГ) — ЦВЕТОВАЯ ИНДИКАЦИЯ ===== */
.product-detail-mg {
    transition: all 0.3s ease;
}

/* Зелёный — 0–35 МГ */
.product-detail-mg.mg-green {
    background: rgba(46, 160, 67, 0.15);
    border-color: #2ea043;
    color: #6ee7a8;
    box-shadow: 0 0 20px rgba(46, 160, 67, 0.25);
}
.product-detail-mg.mg-green strong {
    color: #a8f0c0;
}

/* Оранжевый — 36–50 МГ */
.product-detail-mg.mg-orange {
    background: rgba(255, 165, 0, 0.15);
    border-color: #ffa500;
    color: #ffc966;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.25);
}
.product-detail-mg.mg-orange strong {
    color: #ffdca0;
}

/* Красный — 51+ МГ */
.product-detail-mg.mg-red {
    background: rgba(184, 50, 62, 0.18);
    border-color: #b8323e;
    color: #ff8a9a;
    box-shadow: 0 0 20px rgba(184, 50, 62, 0.35);
}
.product-detail-mg.mg-red strong {
    color: #ffb8c0;
}

/* ===== ХЕДЕР С «СТЕКЛОМ» ПРИ СКРОЛЛЕ ===== */
header {
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
    background: rgba(15, 15, 21, 0.75) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(184, 50, 62, 0.25) !important;
}

/* ===== HERO — ПАРАЛЛАКС + ЧАСТИЦЫ ===== */
.hero-section {
    transform: translate(var(--hero-x, 0), var(--hero-y, 0));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.hero-section::before {
    transform: translate(calc(var(--hero-x, 0) * -1.5), calc(var(--hero-y, 0) * -1.5));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Частицы в hero */
.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(184, 50, 62, 0.8), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(1px);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-350px) scale(1.6);
        opacity: 0;
    }
}

/* ===== ПРЕИМУЩЕСТВА — ЖИВЫЕ ===== */
.advantage {
    position: relative;
    overflow: hidden;
}

.advantage::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
                rgba(184, 50, 62, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.advantage:hover::before {
    opacity: 1;
}

.advantage:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(184, 50, 62, 0.25),
        0 0 40px rgba(184, 50, 62, 0.15);
    border-color: #b8323e;
}

/* ============================================================
   ===== ПРЕДЗАКАЗЫ (на главной) ==============================
   ============================================================ */

/* Кнопка "Предзаказ" в списке категорий */
.category-btn-preorder {
    border-color: rgba(160, 80, 220, 0.4);
    background: rgba(160, 80, 220, 0.06);
}

.category-btn-preorder:hover {
    border-color: #a050dc;
    box-shadow: 0 8px 25px rgba(160, 80, 220, 0.35);
}

.category-btn-preorder.active {
    background: linear-gradient(135deg, #7b3fb8, #5a2a8c);
    border-color: #a050dc;
    box-shadow: 0 8px 25px rgba(160, 80, 220, 0.6);
}

/* Секция предзаказов */
.preorder-section {
    margin-bottom: 60px;
    scroll-margin-top: 30px;
}

.preorder-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(160, 80, 220, 0.08) 0%, transparent 100%);
    border: 1px solid rgba(160, 80, 220, 0.25);
    border-radius: 20px;
}

.preorder-title {
    font-size: 36px;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(160, 80, 220, 0.5);
}

.preorder-subtitle {
    color: #a0a0b0;
    font-size: 15px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Кнопки категорий предзаказа */
.preorder-cat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.preorder-cat-btn {
    padding: 12px 22px;
    background: #14141c;
    border: 1.5px solid #26262e;
    border-radius: 999px;
    color: #d8d8dc;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}

.preorder-cat-btn:hover {
    border-color: #a050dc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 80, 220, 0.3);
}

.preorder-cat-btn.active {
    background: linear-gradient(135deg, #7b3fb8, #5a2a8c);
    border-color: #a050dc;
    color: #fff;
    box-shadow: 0 8px 25px rgba(160, 80, 220, 0.5);
}

/* Сетка карточек предзаказов */
.preorder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.preorder-loading,
.preorder-error {
    grid-column: 1 / -1;
    text-align: center;
    color: #a0a0b0;
    font-size: 15px;
    padding: 40px 20px;
}

.preorder-error {
    color: #d65562;
}

/* Карточка предзаказа */
.preorder-card {
    position: relative;
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preorder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7b3fb8, #a050dc, #7b3fb8);
    opacity: 0.7;
}

.preorder-card:hover {
    border-color: #a050dc;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(160, 80, 220, 0.3);
}

/* Бейдж ПРЕДЗАКАЗ */
.preorder-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: linear-gradient(135deg, #7b3fb8, #5a2a8c);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(160, 80, 220, 0.5);
    text-transform: uppercase;
}

.preorder-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preorder-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s;
}

.preorder-card:hover .preorder-image img {
    transform: scale(1.05);
}

.preorder-image-empty {
    font-size: 56px;
    opacity: 0.3;
}

.preorder-card-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    min-height: 42px;
    flex: 1;
    line-height: 1.3;
}

.preorder-card-price {
    color: #a050dc;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 10px;
}

.preorder-card-flavors {
    color: #8b93a7;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    padding: 0 4px;
}

.preorder-card-date {
    color: #6ee7a8;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 6px 10px;
    background: rgba(46, 160, 67, 0.1);
    border-radius: 8px;
    display: inline-block;
    align-self: center;
}

.preorder-btn {
    display: inline-block;
    padding: 11px 20px;
    background: linear-gradient(135deg, #7b3fb8, #5a2a8c);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.25s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preorder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 80, 220, 0.6);
    background: linear-gradient(135deg, #a050dc, #7b3fb8);
}

/* ============================================================
   ===== СТРАНИЦА ОФОРМЛЕНИЯ ПРЕДЗАКАЗА (/preorder/<id>) ======
   ============================================================ */

.po-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.po-back {
    display: inline-block;
    color: #6b9abe;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 25px;
    transition: color 0.2s;
}
.po-back:hover { color: #a050dc; }

.po-card {
    background: linear-gradient(180deg, #14141c 0%, #0f0f15 100%);
    border: 1px solid #26262e;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.po-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7b3fb8, #a050dc, #7b3fb8);
    box-shadow: 0 0 20px rgba(160, 80, 220, 0.6);
}

.po-head {
    padding: 30px 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid #1f1f28;
    flex-wrap: wrap;
}

.po-head-left { flex: 1; min-width: 200px; }

.po-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #7b3fb8, #5a2a8c);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    border-radius: 6px;
    margin-bottom: 14px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(160, 80, 220, 0.5);
}

.po-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.2;
}

.po-price {
    color: #a050dc;
    font-size: 32px;
    font-weight: 900;
}

.po-arrival {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(46, 160, 67, 0.12);
    border: 1.5px solid rgba(46, 160, 67, 0.4);
    border-radius: 12px;
    color: #6ee7a8;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.po-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px 40px 40px;
}

.po-image-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: #0a0a0f;
    border: 1px solid #26262e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.po-image-empty {
    font-size: 80px;
    opacity: 0.3;
}

.po-right { display: flex; flex-direction: column; gap: 20px; }

.po-desc {
    color: #a0a0b0;
    font-size: 15px;
    line-height: 1.6;
}

.po-flavors-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1f1f28;
    display: flex;
    align-items: center;
    gap: 10px;
}

.po-flavors-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #a050dc;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(160, 80, 220, 0.7);
}

.po-flavor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.po-flavor-item {
    padding: 8px 16px;
    background: #0f0f15;
    border: 1.5px solid #26262e;
    border-radius: 999px;
    color: #d8d8dc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.po-flavor-item:hover {
    border-color: #a050dc;
    color: #fff;
}

.po-flavor-item.selected {
    background: linear-gradient(135deg, #7b3fb8, #5a2a8c);
    border-color: #a050dc;
    color: #fff;
    box-shadow: 0 4px 15px rgba(160, 80, 220, 0.5);
}

.po-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.po-field label {
    color: #a0a0b0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.po-field input,
.po-field textarea {
    padding: 13px 16px;
    background: #0a0a0f;
    border: 1.5px solid #26262e;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.po-field input:focus,
.po-field textarea:focus {
    border-color: #a050dc;
    background: #0d0d12;
    box-shadow: 0 0 0 4px rgba(160, 80, 220, 0.15);
}

.po-field input::placeholder,
.po-field textarea::placeholder { color: #40404c; }

.po-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #7b3fb8, #5a2a8c);
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 10px 30px rgba(160, 80, 220, 0.4);
    margin-top: 8px;
}

.po-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 45px rgba(160, 80, 220, 0.6);
    background: linear-gradient(135deg, #a050dc, #7b3fb8);
}

.po-error {
    padding: 12px 16px;
    background: rgba(184, 50, 62, 0.12);
    border: 1.5px solid #b8323e;
    border-radius: 12px;
    color: #f0a0a8;
    font-size: 14px;
    margin-bottom: 16px;
}

.po-success {
    text-align: center;
    padding: 60px 30px;
}

.po-success-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.po-success-title {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 14px;
}

.po-success-text {
    color: #a0a0b0;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Адаптив */
@media (max-width: 700px) {
    .po-body { grid-template-columns: 1fr; padding: 20px; }
    .po-head { padding: 20px; }
    .po-title { font-size: 22px; }
    .po-price { font-size: 26px; }
    .preorder-title { font-size: 26px; }
    .preorder-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .preorder-image { height: 140px; }
}

/* ===== КАРТОЧКИ ТОВАРОВ — 3D ===== */
.product-card {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 50%,
        rgba(184, 50, 62, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    box-shadow:
        0 25px 60px rgba(184, 50, 62, 0.3),
        0 0 40px rgba(184, 50, 62, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: #b8323e;
}

.product-card .product-image img {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1) translateZ(20px);
}

/* ===== ПЛИТКИ ВКУСОВ ===== */
.tile {
    transform-style: preserve-3d;
    will-change: transform;
}

.tile:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(184, 50, 62, 0.2);
}

/* ===== КНОПКИ С RIPPLE ===== */
.hero-btn,
.product-btn,
.co-submit,
.tile-add,
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rippleAnim 0.7s ease-out forwards;
}

@keyframes rippleAnim {
    from {
        width: 0;
        height: 0;
        opacity: 1;
    }
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.hero-btn:hover,
.co-submit:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 20px 45px rgba(184, 50, 62, 0.6),
        0 0 30px rgba(184, 50, 62, 0.35);
}

.product-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

/* ===== КАТЕГОРИИ ===== */
.category-btn {
    position: relative;
    overflow: hidden;
}

.category-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 15px 35px rgba(74, 122, 158, 0.4),
        0 0 20px rgba(74, 122, 158, 0.2);
}

.category-btn.active {
    box-shadow:
        0 15px 35px rgba(184, 50, 62, 0.6),
        0 0 30px rgba(184, 50, 62, 0.4);
}

/* ===== ПЛИТКИ ВЫБОРА ВКУСА ===== */
.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%,
                rgba(184, 50, 62, 0.12) 0%,
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 12px;
}

.tile:hover::after {
    opacity: 1;
}

/* ===== ФОРМА ОФОРМЛЕНИЯ ===== */
.co-form-block {
    position: relative;
    overflow: hidden;
}

.co-form-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
                rgba(184, 50, 62, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.co-form-block:hover::before {
    opacity: 1;
}

/* ===== КОРЗИНА ===== */
.cart-item:hover {
    transform: translateX(6px);
    box-shadow:
        0 10px 30px rgba(74, 122, 158, 0.25),
        0 0 20px rgba(74, 122, 158, 0.15);
}

/* ===== 3D-КАРТА РЕКВИЗИТА УСИЛЕННАЯ ===== */
.co-receipt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.co-receipt-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 16px;
    background: linear-gradient(120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 4;
}

.co-receipt-card:hover::after {
    opacity: 1;
    animation: shineSweep 1.2s ease-in-out;
}

@keyframes shineSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== КНОПКИ-ТАБЛЕТКИ ===== */
.co-delivery-card,
.co-pay-method-card {
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.co-delivery-card:hover,
.co-pay-method-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(74, 122, 158, 0.25);
}

/* ===== ХЕДЕР-ССЫЛКИ ===== */
.nav-links a,
.nav-cart {
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover {
    transform: translateY(-1px);
    text-shadow: 0 0 12px rgba(216, 216, 220, 0.4);
}

.nav-cart:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(184, 50, 62, 0.8));
}

/* ===== ЛОГОТИП — ЖИВОЙ ===== */
.logo .relax,
.logo .shop {
    transition: all 0.3s ease;
}

.logo:hover .relax {
    text-shadow: 0 0 15px rgba(216, 216, 220, 0.5);
}

.logo:hover .shop {
    text-shadow: 0 0 15px rgba(184, 50, 62, 0.8);
    letter-spacing: 6px;
}

/* ===== ОГЛАВЛЕНИЯ С ЛЁГКИМ СВЕЧЕНИЕМ ===== */
.hero-title {
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.co-title,
.cart-title,
.products-title {
    text-shadow: 0 2px 20px rgba(184, 50, 62, 0.15);
}

/* ===== ПЛАВНЫЙ ФОКУС ИНПУТОВ ===== */
.co-field input:focus,
.co-field textarea:focus {
    transform: scale(1.01);
    box-shadow:
        0 0 0 4px rgba(184, 50, 62, 0.15),
        0 0 25px rgba(184, 50, 62, 0.2);
}

/* ===== УВЕЛИЧЕНИЕ ФОТО ПРИ HOVER НА DETAIL ===== */
.gallery-main img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-main:hover img {
    transform: scale(1.05) rotate(0.5deg);
}

/* ===== АДАПТИВ — ОТКЛЮЧАЕМ ТЯЖЁЛОЕ НА ТЕЛЕФОНЕ ===== */
@media (max-width: 700px) {
    .hero-particle { display: none; }
    .product-card,
    .tile,
    .advantage,
    .co-receipt-card {
        transform: none !important;
    }
    .product-card:hover,
    .tile:hover,
    .advantage:hover {
        transform: translateY(-3px) !important;
    }
}

/* ===== ОТКЛЮЧАЕМ НА prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== МОДАЛКА 18+ ===== */
.age-page { background: #0a0a0f; }

.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.age-modal-content {
    background: linear-gradient(180deg, #1a1a22 0%, #0f0f15 100%);
    border: 2px solid #b8323e;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(184, 50, 62, 0.3);
}

.age-icon { margin-bottom: 20px; display: flex; justify-content: center; }

.age-modal-content h2 {
    font-size: 32px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.age-desc {
    color: #787888;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.age-warning {
    background: rgba(184, 50, 62, 0.12);
    border: 1.5px solid #b8323e;
    border-radius: 12px;
    padding: 16px 20px;
    color: #d65562;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 35px;
}

.age-buttons { display: flex; gap: 15px; justify-content: center; }

.age-btn {
    padding: 16px 28px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    line-height: 1.2;
}

.age-btn-yes {
    background: linear-gradient(135deg, #b8323e, #8a2029);
    color: white;
    box-shadow: 0 6px 25px rgba(184, 50, 62, 0.4);
}
.age-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(184, 50, 62, 0.6);
}

.age-btn-no {
    background: transparent;
    color: #787888;
    border: 1.5px solid #2a2a35;
}
.age-btn-no:hover {
    border-color: #b8323e;
    color: #d65562;
}

.age-btn .check { font-size: 20px; font-weight: 900; }
.age-btn .cross { font-size: 18px; font-weight: 900; }

/* ===== ЭКРАН ОТКАЗА ===== */
.age-denied {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #b8323e 0%, #8a2029 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 20px;
    text-align: center;
    color: white;
}
.age-denied h1 { font-size: 42px; margin-bottom: 20px; font-weight: 900; }
.age-denied p { font-size: 18px; margin-bottom: 30px; }

.btn-reset {
    padding: 14px 32px;
    background: white;
    color: #8a2029;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* ===== СПОСОБ ОПЛАТЫ ===== */
.co-pay-method {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.co-pay-method-option input { display: none; }

.co-pay-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #0a0a0f;
    border: 1.5px solid #26262e;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.co-pay-method-card:hover {
    border-color: #4a7a9e;
    transform: translateY(-1px);
}

.co-pay-method-option input:checked + .co-pay-method-card {
    border-color: #b8323e;
    background: rgba(184, 50, 62, 0.12);
    box-shadow: 0 0 20px rgba(184, 50, 62, 0.25);
}

.co-pay-method-ico { font-size: 26px; flex-shrink: 0; }

.co-pay-method-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 3px;
}

.co-pay-method-desc { color: #787888; font-size: 12px; }

.co-pay-cash-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 16px;
    padding: 18px 20px;
    background: rgba(46, 160, 67, 0.08);
    border: 1.5px solid rgba(46, 160, 67, 0.4);
    border-radius: 14px;
}

.co-pay-cash-ico { font-size: 30px; flex-shrink: 0; }

.co-pay-cash-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.co-pay-cash-desc {
    color: #a8c8b0;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 500px) {
    .co-pay-method { grid-template-columns: 1fr; }
}

/* ===== HEADER ===== */
header {
    background: #0f0f15;
    padding: 12px 40px;
    border-bottom: 1px solid #26262e;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 60px;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}

.logo .relax {
    color: #d8d8dc;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo .shop {
    color: #b8323e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-top: 2px;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #787888;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}
.nav-links a:hover { color: #d8d8dc; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #787888;
    font-size: 13px;
}

.nav-city { white-space: nowrap; }

.nav-cart {
    position: relative;
    font-size: 22px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
}
.nav-cart:hover { transform: scale(1.15); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #b8323e;
    color: white;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(184, 50, 62, 0.6);
}

/* ===== MAIN ===== */
main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    padding: 70px 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(58, 127, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(74, 122, 158, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(184, 50, 62, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 22px;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 15px;
    color: #787888;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 450px;
}

.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; }
.stat { display: flex; flex-direction: column; }

.stat-num {
    font-size: 34px;
    font-weight: 900;
    color: #4a7a9e;
    line-height: 1;
}
.stat-plus { font-size: 22px; color: #4a7a9e; }
.stat-label { font-size: 12px; color: #5a5a6a; margin-top: 6px; }

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: linear-gradient(135deg, #b8323e, #8a2029);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(184, 50, 62, 0.35);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(184, 50, 62, 0.55);
}

.hero-section-center {
    justify-content: center;
    text-align: center;
    padding: 100px 0 100px;
}

.hero-center { max-width: 700px; z-index: 2; }

.hero-section-center .hero-title { font-size: 64px; margin-bottom: 25px; }

.hero-section-center .hero-subtitle {
    margin: 0 auto 45px;
    font-size: 17px;
    max-width: 550px;
}

.hero-stats-center { justify-content: center; gap: 60px; margin-bottom: 50px; }

.hero-section-center .hero-btn { padding: 18px 40px; font-size: 17px; }

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.advantage {
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s;
}
.advantage:hover {
    border-color: #b8323e;
    box-shadow: 0 0 30px rgba(184, 50, 62, 0.15);
}

.advantage-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.advantage-link:hover {
    border-color: #4a7a9e;
    box-shadow: 0 0 30px rgba(74, 122, 158, 0.25);
    transform: translateY(-3px);
}

.advantage-link .adv-icon { transition: transform 0.25s; }
.advantage-link:hover .adv-icon { transform: scale(1.15); }

.adv-icon { font-size: 32px; margin-bottom: 12px; }

.advantage h3 { color: #ffffff; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.advantage p { color: #5a5a6a; font-size: 13px; }

/* ===== БАННЕР ===== */
.promo-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 16px;
    padding: 22px 30px;
    margin-bottom: 30px;
    transition: border-color 0.2s;
}
.promo-banner:hover { border-color: #4a7a9e; }

.promo-left { display: flex; align-items: center; gap: 16px; }
.promo-icon { font-size: 24px; }
.promo-text { color: #d8d8dc; font-size: 15px; font-weight: 500; }

.promo-btn {
    padding: 10px 22px;
    background: transparent;
    border: 1.5px solid #4a7a9e;
    color: #6b9abe;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}
.promo-btn:hover { background: #4a7a9e; color: white; }

/* ===== ПОИСК ===== */
.search-section { margin-bottom: 25px; }

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 14px 22px;
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 999px;
    color: #d8d8dc;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: #4a7a9e; }
.search-input::placeholder { color: #3a3a48; }

/* ===== ВЫБОР КАТЕГОРИИ ===== */
.category-selector {
    margin: 60px 0 40px;
    text-align: center;
    padding: 40px 20px;
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 20px;
}

.category-selector-title {
    font-size: 36px;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-selector-subtitle {
    color: #787888;
    font-size: 15px;
    margin-bottom: 35px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #0a0a0f;
    border: 1.5px solid #26262e;
    border-radius: 999px;
    color: #d8d8dc;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}

.category-btn:hover {
    border-color: #4a7a9e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 122, 158, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, #b8323e, #8a2029);
    border-color: #b8323e;
    color: white;
    box-shadow: 0 8px 25px rgba(184, 50, 62, 0.5);
}

.category-btn.active .cat-emoji { filter: brightness(1.3); }

.cat-emoji { font-size: 20px; }
.cat-name { white-space: nowrap; }

/* ===== БЛОК ТОВАРОВ ===== */
.products-section { margin-bottom: 60px; scroll-margin-top: 30px; }

.products-title {
    font-size: 32px;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 30px;
    padding-left: 5px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 20px;
    margin-top: 20px;
}

.no-products-icon { font-size: 64px; margin-bottom: 15px; opacity: 0.4; }
.no-products p { color: #787888; font-size: 16px; }

/* ===== ТОВАРЫ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: #b8323e;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(184, 50, 62, 0.15);
}

.product-card-link { text-decoration: none; color: inherit; display: block; }

.product-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-image-empty { font-size: 64px; opacity: 0.3; }

.product-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 42px;
    flex: 1;
}

.product-price {
    color: #4a7a9e;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 16px;
}

.product-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #b8323e, #8a2029);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s;
    width: 100%;
}
.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 50, 62, 0.5);
}

.product-card .product-btn[href*="/product/"] {
    background: linear-gradient(135deg, #4a7a9e, #2e5470);
    box-shadow: 0 4px 15px rgba(74, 122, 158, 0.3);
}

.product-card .product-btn[href*="/product/"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 122, 158, 0.5);
}

/* ===== КОРЗИНА ===== */
.cart-section { padding: 60px 0; max-width: 800px; margin: 0 auto; }

.cart-title {
    font-size: 36px;
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 35px;
}

.cart-items { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 16px;
    padding: 20px 25px;
    transition: border-color 0.2s;
}
.cart-item:hover { border-color: #4a7a9e; }

.cart-item-photo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0a0a0f;
}

.cart-item-photo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.cart-item-emoji { font-size: 40px; flex-shrink: 0; width: 60px; text-align: center; }

.cart-item-info { flex: 1; }

.cart-item-info h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-flavor { color: #6b9abe; font-size: 13px; margin-bottom: 4px; }
.cart-item-price { color: #787888; font-size: 13px; }

.cart-item-subtotal {
    color: #4a7a9e;
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
}

.cart-remove {
    color: #5a5a6a;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.cart-remove:hover { color: #b8323e; background: rgba(184, 50, 62, 0.15); }

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #14141c;
    border: 1px solid #b8323e;
    border-radius: 16px;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 700;
    color: #d8d8dc;
}

.cart-total-price { color: #4a7a9e; font-size: 26px; font-weight: 900; }

.cart-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cart-btn-secondary {
    padding: 15px 28px;
    background: transparent;
    border: 1.5px solid #26262e;
    color: #787888;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}
.cart-btn-secondary:hover { border-color: #4a7a9e; color: #6b9abe; }
.cart-btn-clear:hover { border-color: #b8323e; color: #d65562; }

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 20px;
}

.cart-empty-icon { font-size: 64px; margin-bottom: 20px; opacity: 0.4; }
.cart-empty h2 { color: #ffffff; font-size: 24px; margin-bottom: 12px; }
.cart-empty p { color: #787888; margin-bottom: 30px; }

/* ===== СТРАНИЦА ТОВАРА ===== */
.breadcrumbs { padding: 20px 0; color: #787888; font-size: 14px; }
.breadcrumbs a { color: #6b9abe; text-decoration: none; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-detail-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-detail-price {
    font-size: 42px;
    font-weight: 900;
    color: #4a7a9e;
    margin-bottom: 15px;
}

.product-detail-mg {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(74, 122, 158, 0.15);
    border: 1px solid #4a7a9e;
    border-radius: 999px;
    color: #6b9abe;
    font-size: 15px;
    margin-bottom: 25px;
}
.product-detail-mg strong { color: #ffffff; }

.product-detail-desc {
    color: #787888;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.flavors-section { margin-bottom: 30px; }

.flavors-section h3 {
    color: #d8d8dc;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.flavors-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.flavors-title-line {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #b8323e;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(184, 50, 62, 0.7);
}

.tile-flavors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.tile {
    display: flex;
    flex-direction: column;
    background: #0f0f15;
    border: 1.5px solid #26262e;
    border-radius: 12px;
    padding: 14px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #b8323e;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s ease;
}

.tile:hover {
    border-color: #3a3a48;
    background: #14141c;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tile:hover::before { transform: scaleY(1); }

.tile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.tile-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.tile-stock {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    background: rgba(184, 50, 62, 0.9);
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.tile-stock-out { background: #2a2a35; color: #6a6a78; }

.tile-body {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.tile-body-out { justify-content: center; padding: 6px 0; }
.tile-body-out span {
    color: #50505a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tile-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #26262e;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    height: 34px;
    flex-shrink: 0;
    width: 96px;
}

.tile-qty-btn {
    width: 28px;
    height: 100%;
    background: transparent;
    border: none;
    color: #a0a0b0;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    line-height: 1;
}
.tile-qty-btn:hover { background: #b8323e; color: #fff; }

.tile-qty-input {
    width: 36px;
    height: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
}

.tile-qty-input::-webkit-outer-spin-button,
.tile-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tile-add {
    flex: 1;
    height: 34px;
    min-width: 115px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    color: #0a0a0f;
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.2s;
    white-space: nowrap;
    padding: 0 12px;
}

.tile-add:hover {
    background: #b8323e;
    color: #fff;
    box-shadow: 0 0 20px rgba(184, 50, 62, 0.6);
}

.tile-add:active { transform: scale(0.96); }

.tile-add:disabled {
    background: #b8323e;
    color: #fff;
    cursor: default;
    box-shadow: 0 0 20px rgba(184, 50, 62, 0.6);
}

.tile-out { opacity: 0.45; }
.tile-out:hover { transform: none; box-shadow: none; }
.tile-out:hover::before { transform: scaleY(0); }

.tile-added {
    border-color: #b8323e;
    box-shadow: 0 0 25px rgba(184, 50, 62, 0.4);
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery { position: relative; width: 100%; }

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: #14141c;
    border: 1px solid #26262e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(20, 20, 28, 0.9);
    border: 1.5px solid #4a7a9e;
    border-radius: 50%;
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    backdrop-filter: blur(10px);
    padding-bottom: 4px;
    font-family: inherit;
}

.gallery-arrow:hover {
    background: #b8323e;
    border-color: #b8323e;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 5px 25px rgba(184, 50, 62, 0.6);
}

.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }

.gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(20, 20, 28, 0.9);
    border-radius: 999px;
    color: #d8d8dc;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    z-index: 5;
}

/* ===== УСПЕШНЫЙ ЗАКАЗ ===== */
.success-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    min-height: 60vh;
}

.success-card {
    background: #14141c;
    border: 1px solid #26262e;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.success-icon-big {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: rgba(46, 160, 67, 0.15);
    border: 2px solid #2ea043;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #2ea043;
    font-weight: 900;
}

.success-card h1 { color: #ffffff; font-size: 28px; margin-bottom: 12px; }
.success-card p { color: #787888; margin-bottom: 25px; }

/* ===== ОФОРМЛЕНИЕ ЗАКАЗА ===== */
.co-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 0 80px;
}

.co-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.co-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5a5a6a;
    font-size: 13px;
    font-weight: 600;
}

.co-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a1a22;
    border: 1.5px solid #2a2a35;
    font-size: 13px;
    font-weight: 800;
    color: #6a6a78;
}

.co-step-done .co-step-num {
    background: rgba(74, 122, 158, 0.2);
    border-color: #4a7a9e;
    color: #6b9abe;
}
.co-step-done .co-step-label { color: #6b9abe; }

.co-step-active .co-step-num {
    background: linear-gradient(135deg, #b8323e, #8a2029);
    border-color: #b8323e;
    color: #fff;
    box-shadow: 0 0 15px rgba(184, 50, 62, 0.6);
}
.co-step-active .co-step-label { color: #fff; }

.co-step-line { width: 40px; height: 1.5px; background: #26262e; }

.co-title {
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
}

.co-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(184, 50, 62, 0.12);
    border: 1.5px solid #b8323e;
    border-radius: 14px;
    padding: 16px 20px;
    color: #f0a0a8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    white-space: pre-line;
}
.co-error-icon { font-size: 20px; line-height: 1; }

.co-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 25px;
    align-items: start;
}

.co-form { display: flex; flex-direction: column; gap: 20px; }

.co-form-block {
    background: #12121a;
    border: 1px solid #26262e;
    border-radius: 18px;
    padding: 24px 26px;
    transition: border-color 0.25s;
}
.co-form-block:hover { border-color: #3a3a48; }

.co-form-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1f1f28;
}
.co-form-block-ico { font-size: 18px; }

.co-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.co-field:last-child { margin-bottom: 0; }

.co-field label {
    color: #a0a0b0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.co-req { color: #b8323e; }

.co-field input,
.co-field textarea {
    padding: 13px 16px;
    background: #0a0a0f;
    border: 1.5px solid #26262e;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    resize: vertical;
}
.co-field input::placeholder,
.co-field textarea::placeholder { color: #40404c; }

.co-field input:focus,
.co-field textarea:focus {
    border-color: #b8323e;
    background: #0d0d12;
    box-shadow: 0 0 0 4px rgba(184, 50, 62, 0.12);
}

.co-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #b8323e, #8a2029);
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 10px 30px rgba(184, 50, 62, 0.35);
    margin-top: 4px;
}
.co-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(184, 50, 62, 0.55);
}
.co-submit:active { transform: translateY(0); }

.co-submit-arrow { font-size: 20px; transition: transform 0.2s; }
.co-submit:hover .co-submit-arrow { transform: translateX(4px); }

.co-back {
    text-align: center;
    color: #6a6a78;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}
.co-back:hover { color: #6b9abe; }

.co-summary {
    background: linear-gradient(180deg, #14141c 0%, #0f0f15 100%);
    border: 1px solid #26262e;
    border-radius: 18px;
    padding: 24px 24px 20px;
    position: sticky;
    top: 20px;
}

.co-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 1px solid #1f1f28;
    margin-bottom: 18px;
}

.co-summary-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.co-summary-count { color: #5a5a6a; font-size: 12px; font-weight: 600; }

.co-summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 18px;
    padding-right: 4px;
}
.co-summary-items::-webkit-scrollbar { width: 4px; }
.co-summary-items::-webkit-scrollbar-thumb {
    background: #26262e;
    border-radius: 2px;
}

.co-summary-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
}

.co-summary-photo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #0a0a0f;
    border: 1px solid #1f1f28;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.co-summary-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}
.co-summary-photo span { font-size: 18px; opacity: 0.5; }

.co-summary-info { min-width: 0; }

.co-summary-name {
    color: #d8d8dc;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-summary-flavor { color: #6b9abe; font-size: 11px; margin-top: 2px; }
.co-summary-qty { color: #5a5a6a; font-size: 11px; margin-top: 2px; }

.co-summary-price {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.co-summary-divider { height: 1px; background: #1f1f28; margin: 8px 0 14px; }

.co-summary-row {
    display: flex;
    justify-content: space-between;
    color: #787888;
    font-size: 13px;
    margin-bottom: 8px;
}

.co-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1.5px solid #b8323e;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}
.co-summary-total strong {
    color: #4a7a9e;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.co-summary-note {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #1f1f28;
    color: #5a5a6a;
    font-size: 11px;
    text-align: center;
    line-height: 1.5;
}

/* ===== СПОСОБ ПОЛУЧЕНИЯ ===== */
.co-delivery-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.co-delivery-option input { display: none; }

.co-delivery-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #0a0a0f;
    border: 1.5px solid #26262e;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.co-delivery-card:hover {
    border-color: #4a7a9e;
    transform: translateY(-1px);
}

.co-delivery-option input:checked + .co-delivery-card {
    border-color: #b8323e;
    background: rgba(184, 50, 62, 0.12);
    box-shadow: 0 0 20px rgba(184, 50, 62, 0.25);
}

.co-delivery-ico { font-size: 28px; flex-shrink: 0; }
.co-delivery-title { color: #ffffff; font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.co-delivery-desc { color: #787888; font-size: 12px; }

/* ===== АДРЕС САМОВЫВОЗА ===== */
.co-pickup-address {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(74, 122, 158, 0.1);
    border: 1.5px solid #4a7a9e;
    border-radius: 12px;
    margin-bottom: 16px;
}

.co-pickup-address-icon { font-size: 22px; flex-shrink: 0; }
.co-pickup-address-text { color: #ffffff; font-size: 15px; font-weight: 700; line-height: 1.4; }

/* ===== КАРТА ===== */
.co-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #26262e;
    background: #0a0a0f;
    margin-bottom: 12px;
    line-height: 0;
}

.co-map iframe { display: block; border: 0; }
.co-map-delivery { margin: 12px 0 0; }

.co-map-hint {
    color: #6b9abe;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(74, 122, 158, 0.08);
    border-radius: 8px;
    border: 1px dashed rgba(74, 122, 158, 0.3);
    font-weight: 600;
}

.co-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.co-map-link {
    flex: 1;
    min-width: 130px;
    text-align: center;
    padding: 10px 14px;
    background: #0a0a0f;
    border: 1.5px solid #26262e;
    border-radius: 10px;
    color: #d8d8dc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.co-map-link:hover {
    transform: translateY(-2px);
    border-color: #4a7a9e;
    background: #14141c;
}

.co-map-link-ya:hover {
    border-color: #fc3f1d;
    color: #ff8a73;
    box-shadow: 0 6px 20px rgba(252, 63, 29, 0.25);
}

.co-map-link-2gis:hover {
    border-color: #00b956;
    color: #4ee08e;
    box-shadow: 0 6px 20px rgba(0, 185, 86, 0.25);
}

.co-pickup-note {
    color: #787888;
    font-size: 12px;
    text-align: center;
    padding: 10px 0 0;
    border-top: 1px dashed #1f1f28;
}

/* ===== ДОСТАВКА ===== */
.co-delivery-note {
    padding: 12px 14px;
    background: rgba(74, 122, 158, 0.1);
    border-left: 3px solid #4a7a9e;
    border-radius: 8px;
    color: #a0c0d8;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 12px;
}

.co-delivery-calc {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(46, 160, 67, 0.1);
    border: 1.5px solid #2ea043;
    border-radius: 12px;
}

.co-delivery-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a8e0b8;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.co-delivery-calc-row strong { color: #ffffff; font-size: 18px; }
.co-delivery-calc-zone { color: #6a9a78; font-size: 12px; }

.co-delivery-unknown {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255, 165, 0, 0.1);
    border: 1.5px solid rgba(255, 165, 0, 0.4);
    border-radius: 12px;
    color: #ffc966;
    font-size: 13px;
    line-height: 1.5;
}

.co-delivery-calc-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(184, 50, 62, 0.08);
    border: 1.5px solid rgba(184, 50, 62, 0.4);
    border-radius: 10px;
    color: #e0a0a8;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.co-addr-ico { font-size: 18px; flex-shrink: 0; }

/* ===== TELEGRAM-ИНПУТ ===== */
.co-tg-input {
    display: flex;
    align-items: center;
    background: #0a0a0f;
    border: 1.5px solid #26262e;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.co-tg-input:focus-within {
    border-color: #b8323e;
    background: #0d0d12;
    box-shadow: 0 0 0 4px rgba(184, 50, 62, 0.12);
}

.co-tg-prefix {
    padding: 0 10px 0 14px;
    color: #6a6a78;
    font-size: 15px;
    font-weight: 700;
    user-select: none;
}

.co-tg-input input {
    flex: 1;
    padding: 13px 16px 13px 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.co-field-hint {
    color: #5a5a6a;
    font-size: 11px;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* ===== SELECT ПОДЪЕЗДА ===== */
.co-select {
    width: 100%;
    padding: 13px 40px 13px 16px;
    background: #0a0a0f;
    border: 1.5px solid #26262e;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.co-select:focus {
    border-color: #b8323e;
    background-color: #0d0d12;
    box-shadow: 0 0 0 4px rgba(184, 50, 62, 0.12);
}

.co-select option { background: #0a0a0f; color: #ffffff; padding: 10px; }

/* ============================================================
   ===== БЛОК ОПЛАТЫ — 3D-КАРТА + КОПИРОВАНИЕ =================
   ============================================================ */

.co-form-block-pay {
    position: relative;
    overflow: hidden;
}

.co-form-block-pay::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 50, 62, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.co-pay-note {
    color: #a0a0b0;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.co-pay-note b { color: #fff; font-weight: 800; }

/* 3D-КАРТОЧКА */
.co-receipt-card {
    position: relative;
    padding: 4px;
    border-radius: 20px;
    background: linear-gradient(135deg, #b8323e 0%, #8a2029 50%, #b8323e 100%);
    box-shadow:
        0 20px 60px rgba(184, 50, 62, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-bottom: 8px;
    animation: receiptAppear 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.co-receipt-card:hover {
    transform: translateY(-4px) rotateX(2deg);
    box-shadow:
        0 30px 80px rgba(184, 50, 62, 0.55),
        0 10px 25px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.co-receipt-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 3;
}

.co-receipt-inner {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, #1a1a22 0%, #0f0f15 100%);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.co-receipt-inner::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 14px;
    width: 40px;
    height: 26px;
    background: linear-gradient(135deg, #f5c542 0%, #d4a017 100%);
    border-radius: 4px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    opacity: 0.85;
}

.co-receipt-inner::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 22px;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.5), 0 8px 0 rgba(255, 255, 255, 0.5);
    border-radius: 1px;
    z-index: 1;
}

.co-receipt-bank {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.85;
}

.co-receipt-phone-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.co-receipt-phone {
    flex: 1;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(184, 50, 62, 0.5);
    word-break: break-all;
}

.co-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(184, 50, 62, 0.2);
    border: 1.5px solid rgba(184, 50, 62, 0.6);
    border-radius: 12px;
    color: #ffffff;
    font-size: 20px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.co-copy-btn:hover {
    background: rgba(184, 50, 62, 0.4);
    border-color: #b8323e;
    box-shadow: 0 0 20px rgba(184, 50, 62, 0.6);
    transform: translateY(-1px);
}

.co-copy-btn:active { transform: translateY(0) scale(0.96); }

.co-copy-btn.copied {
    background: rgba(46, 160, 67, 0.25);
    border-color: #2ea043;
    box-shadow: 0 0 20px rgba(46, 160, 67, 0.6);
}

.copy-icon { font-size: 20px; display: block; }

.co-receipt-name {
    color: #b8b8c8;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.co-receipt-hint {
    color: #5a5a6a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

@keyframes receiptAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Поле загрузки чека */
.co-file {
    padding: 12px 14px !important;
    background: #0a0a0f !important;
    border: 1.5px dashed #3a3a48 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s;
}

.co-file:hover {
    border-color: #b8323e !important;
    background: rgba(184, 50, 62, 0.05) !important;
}

.co-pay-warn {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 165, 0, 0.08);
    border-left: 3px solid #ffa500;
    border-radius: 8px;
    color: #ffc966;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ============================================================
   ===== СТРАНИЦА "ЗАКАЗ ОФОРМЛЕН" ============================
   ============================================================ */

.ok-section {
    padding: 70px 20px 100px;
    display: flex;
    justify-content: center;
    min-height: 60vh;
}

.ok-card {
    background: linear-gradient(180deg, #14141c 0%, #0f0f15 100%);
    border: 1px solid #26262e;
    border-radius: 24px;
    padding: 50px 45px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ok-card::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(184, 50, 62, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.ok-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}
.ok-icon svg {
    background: rgba(184, 50, 62, 0.12);
    border: 2px solid #b8323e;
    border-radius: 50%;
    padding: 18px;
    box-shadow: 0 0 40px rgba(184, 50, 62, 0.4);
    animation: okPulse 2s ease-in-out infinite;
}

@keyframes okPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(184, 50, 62, 0.4); }
    50% { box-shadow: 0 0 60px rgba(184, 50, 62, 0.7); }
}

.ok-title {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.ok-order-num {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(184, 50, 62, 0.15);
    border: 1.5px solid #b8323e;
    border-radius: 999px;
    color: #f0a0a8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.ok-text {
    color: #a0a0b0;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.ok-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.ok-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ok-btn-primary {
    background: linear-gradient(135deg, #b8323e, #8a2029);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(184, 50, 62, 0.4);
}
.ok-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(184, 50, 62, 0.6);
}

.ok-note {
    color: #4a4a58;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .co-grid { grid-template-columns: 1fr; }
    .co-summary { position: static; }
    .co-title { font-size: 30px; }
    .co-form-block { padding: 20px; }
    .ok-card { padding: 40px 28px; }
    .ok-title { font-size: 24px; }
    .co-steps { gap: 6px; }
    .co-step-line { width: 20px; }
    .co-step-label { display: none; }
    .co-delivery-toggle { grid-template-columns: 1fr; }
    .co-map-links { flex-direction: column; }
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    header { padding: 12px 20px; }
    main { padding: 0 20px; }
    .hero-section-center .hero-title { font-size: 40px; }
    .hero-stats { gap: 25px; }
    .advantage { padding: 20px; }
    .nav-links { position: absolute; left: 40%; transform: translateX(-50%); display: flex; gap: 6px; margin: 0; padding: 0; }
    .nav-links a { font-size: 13px; white-space: nowrap; }
    .nav-city { font-size: 9px; white-space: nowrap; }
    .nav-right { gap: 8px; position: relative; z-index: 2; }
}

@media (max-width: 500px) {
    .co-receipt-phone { font-size: 20px; letter-spacing: 1px; }
    .co-receipt-inner { padding: 22px 20px; }
    .co-copy-btn { width: 40px; height: 40px; font-size: 18px; }
    .copy-icon { font-size: 18px; }
}
