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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    color: #000;
    min-height: 100vh;
}

/* ── LOGO HEADER ── */
.logo-header {
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
}
.logo-header img {
    max-height: 220px;
    max-width: 800px;
    object-fit: contain;
}
.logo-placeholder-text {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ccc;
    border: 1px dashed #ddd;
    padding: 18px 40px;
}

/* ── COUNTDOWN PAGE ── */
.countdown-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 110px);
    padding: 40px 20px;
}

#countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(8px, 2vw, 28px);
}
.time-block span {
    font-size: clamp(56px, 13vw, 130px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
    font-variant-numeric: tabular-nums;
}
.time-block label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-top: 12px;
}

.sep {
    font-size: clamp(44px, 10vw, 100px);
    font-weight: 300;
    line-height: 1;
    padding-top: 2px;
    color: #000;
    align-self: flex-start;
    padding-top: clamp(6px, 1vw, 14px);
}

.enter-wrapper {
    margin-top: 64px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.enter-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-primary {
    display: inline-block;
    padding: 16px 72px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, outline 0.2s;
    border-radius: 50px;
}
.btn-primary:hover {
    background: #fff;
    color: #000;
    outline: 1.5px solid #000;
}

/* ── SHOP HEADER ── */
.shop-header {
    width: 100%;
    padding: 24px 40px;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}
.shop-header .logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.logo-img {
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}
.shop-header .logo-placeholder-text {
    font-size: 10px;
}
.nav-back {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 1px;
    white-space: nowrap;
}
.nav-back:hover { color: #666; border-color: #666; }

/* ── SHOP GRID ── */
.shop-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}
.shop-section-title {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 48px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.product-card {
    text-decoration: none;
    color: #000;
    display: block;
    cursor: pointer;
}
.product-img-box {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 20px;
    transition: opacity 0.2s;
}
.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.product-card:hover .product-img-box {
    opacity: 0.8;
}

.shop-restock-title {
    margin-top: 88px;
    margin-bottom: 36px;
    color: #000;
    font-size: 12px;
    letter-spacing: 6px;
}

.product-name {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.product-price {
    font-size: 12px;
    font-weight: 400;
    color: #555;
}

/* ── PRODUCT DETAIL PAGE ── */
.product-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.product-details {
    padding-top: 8px;
    position: sticky;
    top: 40px;
}

/* ── PRODUCT GALLERY (carousel) ── */
.gallery {
    position: relative;
    width: 100%;
}
.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
}
.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    cursor: zoom-in;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
}
.gallery-arrow:hover { background: #fff; }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.gallery-arrow[disabled] { opacity: 0; pointer-events: none; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.gallery-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d4d4d4;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.gallery-dots button.active {
    background: #000;
    transform: scale(1.3);
}

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    overflow: auto;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 96px);
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.25s ease;
    transform-origin: center center;
}
.lightbox img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
    max-width: none;
    max-height: none;
}
.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
}
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
body.lightbox-open { overflow: hidden; }

.detail-label {
    display: none;
}
.detail-name {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.35;
    margin-bottom: 28px;
}
.detail-promo {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    border: 1px solid #000;
    padding: 9px 12px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.detail-price {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
/* Выбор размера */
.size-block {
    margin-bottom: 22px;
}
.size-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.size-options button {
    min-width: 52px;
    padding: 12px 0;
    border: 1px solid #d5d5d5;
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 1px;
    color: #000;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.size-options button:hover {
    border-color: #000;
}
.size-options button.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Описание товара */
.detail-desc {
    font-size: 12px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 22px;
}

.detail-delivery {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #777;
    padding-bottom: 32px;
    margin-bottom: 36px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-delivery::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000;
    flex-shrink: 0;
}
.btn-buy {
    display: block;
    width: 100%;
    padding: 18px 20px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, color 0.2s, outline 0.2s;
    position: relative;
}
.btn-buy::after {
    content: '→';
    margin-left: 12px;
    font-size: 16px;
    display: inline-block;
}
.btn-buy:hover {
    background: #fff;
    color: #000;
    outline: 1.5px solid #000;
}

.btn-buy {
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.btn-buy.size-warning {
    background: #fff;
    color: #000;
    outline: 1.5px solid #000;
}

.btn-buy.added {
    background: #fff;
    color: #000;
    outline: 1.5px solid #000;
}

/* ══════════ CART ══════════ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-cart {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    border-bottom: 1px solid #000;
    padding-bottom: 1px;
}
.nav-cart:hover { color: #666; border-color: #666; }
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 9px;
    letter-spacing: 0;
    border: none;
}
.cart-count.is-empty { background: #c9c9c9; }

.cart-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 40px 96px;
}
.cart-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 36px;
}
.cart-items { border-top: 1px solid #000; }
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto 100px 32px;
    align-items: center;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}
.cart-item-img img {
    width: 120px;
    height: auto;
    display: block;
}
.cart-item-name {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 6px;
}
.cart-item-name:hover { text-decoration: underline; }
.cart-item-size {
    display: inline-block;
    font-size: 10px;
    font-weight: 400;
    color: #888;
    border: 1px solid #ddd;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.cart-item-price { font-size: 11px; color: #888; }
.cart-item-sum {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}
.cart-item-gift {
    background: #fafafa;
}
.gift-badge {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    border: 1px solid #000;
    padding: 5px 10px;
    white-space: nowrap;
    justify-self: start;
}
.cart-item-gift .cart-item-name {
    font-weight: 600;
}
.cart-item-gift .cart-item-price {
    color: #000;
}

.cart-item-remove {
    border: none;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: #bbb;
    cursor: pointer;
    padding: 4px;
}
.cart-item-remove:hover { color: #000; }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
}
.qty button {
    width: 28px;
    height: 30px;
    border: none;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    color: #000;
    cursor: pointer;
}
.qty button:hover { background: #f4f4f4; }
.qty input {
    width: 34px;
    height: 30px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-family: inherit;
    font-size: 12px;
    color: #000;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-summary {
    margin-left: auto;
    max-width: 380px;
    margin-top: 32px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #777;
    padding: 8px 0;
}
.summary-row span:last-child { color: #000; white-space: nowrap; }
.summary-total {
    border-top: 1px solid #000;
    margin-top: 10px;
    padding-top: 14px;
    font-weight: 600;
}
.summary-total span { font-size: 14px; color: #000; }
.summary-empty { font-size: 12px; color: #888; padding: 20px 0; }
.summary-empty a { color: #000; }

.btn-checkout {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 17px 20px;
    border: none;
    background: #000;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, outline 0.2s;
}
.btn-checkout:hover:not(:disabled) {
    background: #fff;
    color: #000;
    outline: 1.5px solid #000;
}
.btn-checkout:disabled {
    background: #d8d8d8;
    color: #fff;
    cursor: not-allowed;
}
.cart-empty { padding: 50px 0; text-align: center; }
.cart-empty p { font-size: 13px; color: #888; margin-bottom: 24px; }
.cart-empty .btn-primary { display: inline-block; }

/* ══════════ CHECKOUT ══════════ */
.checkout-main {
    max-width: 540px;
    margin: 0 auto;
    padding: 56px 32px 96px;
}
.checkout-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 36px;
}
.field {
    display: block;
    margin-bottom: 22px;
}
.field > span {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}
.field input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: #000;
    border-radius: 0;
    transition: border-color 0.2s;
}
.field input:focus {
    outline: none;
    border-bottom-color: #000;
}
.field input.invalid { border-bottom-color: #e05a4f; }
.field input::placeholder { color: #c4c4c4; }
.field input[type="file"] {
    font-size: 11px;
    padding: 12px 0;
    color: #555;
    cursor: pointer;
}

.order-summary {
    margin: 34px 0 10px;
    border-top: 1px solid #000;
    padding-top: 16px;
}

.payment-box {
    border: 1px solid #000;
    padding: 26px 24px;
    margin-bottom: 30px;
}
.payment-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}
.payment-amount {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 26px;
}
.requisite {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    border: 1px dashed #000;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: background 0.2s;
}
.requisite:hover { background: #fafafa; }
.copy-hint {
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    white-space: nowrap;
}
.payment-bank { font-size: 11px; color: #666; margin-top: 12px; }

.upload-status {
    font-size: 11px;
    line-height: 1.7;
    color: #555;
    padding: 10px 0;
    white-space: pre-line;
}
.upload-status.error { color: #d0342c; }

.thanks { text-align: center; padding-top: 40px; }
.thanks-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 26px;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.thanks-text {
    font-size: 12px;
    line-height: 1.8;
    color: #777;
    margin-bottom: 30px;
}
.thanks .btn-primary { display: inline-block; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .logo-img { max-width: 200px; height: auto; }
    .logo-header { min-height: 80px; padding: 16px 20px; }
    .sep { padding-top: clamp(4px, 2vw, 8px); }
    .products-grid { grid-template-columns: 1fr; gap: 28px; }
    .product-main { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px 60px; }
    .product-details { position: static; }
    .gallery-slide { padding: 16px; }
    .lightbox img.zoomed { transform: scale(1.8); }
    .shop-main { padding: 36px 20px 60px; }
    .shop-header { padding: 16px 20px; }
    .nav-links { gap: 16px; }

    .cart-main { padding: 36px 20px 72px; }
    .cart-title { margin-bottom: 28px; }
    .cart-item {
        grid-template-columns: 80px 1fr 28px;
        grid-template-areas:
            "img info remove"
            "img qty  sum";
        gap: 10px 14px;
        padding: 18px 0;
    }
    .cart-item-img { grid-area: img; }
    .cart-item-img img { width: 80px; }
    .cart-item-info { grid-area: info; }
    .qty { grid-area: qty; justify-self: start; }
    .cart-item-sum { grid-area: sum; text-align: right; }
    .cart-item-remove { grid-area: remove; justify-self: end; }
    .cart-summary { max-width: none; }

    .checkout-main { padding: 32px 20px 72px; }
    .checkout-title { margin-bottom: 28px; }
    .payment-box { padding: 22px 18px; }
}
@media (max-width: 480px) {
    .logo-img { max-width: 160px; height: auto; }
    .time-block { padding: 0 5px; }
    .time-block label { letter-spacing: 1px; font-size: 9px; }
}

/* ── Добавление в корзину ── */
.btn-buy.added {
    background: #fff;
    color: #000;
    outline: 1.5px solid #000;
}
