/* === Переменные === */
:root {
    --color-bg: #fdf4f7;
    --color-bg-soft: #fbe7ee;
    --color-surface: #ffffff;
    --color-surface-light: #fff0f5;
    --color-accent: #ea8aa6;
    --color-accent-hover: #d96c8c;
    --color-text: #4a2c39;
    --color-text-muted: #8b6b76;
    --color-on-accent: #ffffff;
    --color-hot: #e23f73;
    --color-hot-hover: #cc3868;
    --color-ring: #f2a93c;
    --font-sans: 'Outfit', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --radius: 20px;
    --radius-lg: 28px;
    --transition: 0.3s ease;
}

/* === Сброс и базовые стили === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 30%, var(--color-surface) 100%);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

main {
    padding-bottom: 4rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Шапка === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 44, 57, 0.08);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #2a1620;
    color: #fff;
    font-size: 0.75rem;
}

.top-bar-label {
    opacity: 0.8;
}

.top-bar-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    font-weight: 700;
}

.top-bar-contact svg {
    color: #34b0e8;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #1877f2;
    background: none;
    transition: transform var(--transition), opacity var(--transition);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.mobile-menu {
    display: none;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border: 2px solid var(--color-ring);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: var(--color-on-accent);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    padding: 0.6rem 1.25rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background var(--transition), transform var(--transition);
}

.cart-btn-icon-wrap {
    position: relative;
    display: inline-flex;
}

.cart-btn .cart-btn-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.cart-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--color-hot);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--color-surface);
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

/* Hero promo (1+1=3 + countdown) */
.hero-promo .hero-content {
    max-width: 100%;
    text-align: center;
}

.hero-promo-content {
    width: 100%;
}

.hero-promo-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--color-hot);
    text-shadow: 0 0 40px rgba(226, 63, 115, 0.3), 0 0 16px rgba(226, 63, 115, 0.18);
}

.hero-promo-text {
    color: var(--color-text);
    font-size: clamp(1.20rem, 2.6vw, 1.8rem);
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-promo-title--hot {
    color: var(--color-hot);
    text-shadow: 0 0 44px rgba(226, 63, 115, 0.35), 0 0 18px rgba(226, 63, 115, 0.2);
}

.hero-promo-text--hot {
    color: var(--color-hot);
    font-size: clamp(1.05rem, 2.5vw, 1.45rem);
    font-weight: 600;
    margin-bottom: 1.9rem;
}

/* Довший заголовок у hero (не як коротке «1+1=3») */
.hero-promo-title--long {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    line-height: 1.15;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-timer-text {
    color: var(--color-text-muted);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin: -0.5rem auto 1.5rem;
    max-width: 520px;
    line-height: 1.45;
}

.hero-countdown {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-value {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
    display: block;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.hero-cta-glow {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%) !important;
    color: var(--color-on-accent) !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(234, 138, 166, 0.45), 0 0 40px rgba(234, 138, 166, 0.25);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: cta-pulse 2.5s ease-in-out infinite;
}

.hero-cta-glow:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(234, 138, 166, 0.55), 0 0 50px rgba(234, 138, 166, 0.35);
}

.hero-cta-glow:active {
    transform: translateY(-1px) scale(1);
}

.hero-trust-strip {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin: 1.25rem 0 0;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(234, 138, 166, 0.45), 0 0 40px rgba(234, 138, 166, 0.25); }
    50% { box-shadow: 0 4px 25px rgba(234, 138, 166, 0.55), 0 0 55px rgba(234, 138, 166, 0.35); }
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(234, 138, 166, 0.15);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--color-accent);
}

.hero-text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: 600;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Фігура зліва в один ряд зі счётчиком */
.hero-figure {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(210px, 26vw, 320px);
    max-height: 75vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-figure-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(74, 44, 57, 0.18));
    animation: figure-float 4s ease-in-out infinite;
}

.hero-figure picture {
    display: contents;
}

.hero-figure-img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 40px rgba(74, 44, 57, 0.15));
    animation: figure-float 4s ease-in-out infinite;
}

@keyframes figure-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 500px;
}

.hero-shape {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(234, 138, 166, 0.25) 0%, rgba(234, 138, 166, 0.06) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 8rem 1.5rem 3rem;
    }
    .hero-figure {
        display: none;
    }
    .hero-visual {
        display: none;
    }
}

/* === Секция товаров === */
.products {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

.product-section {
    margin-bottom: 3rem;
}

.product-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(74, 44, 57, 0.08);
    box-shadow: 0 4px 16px rgba(74, 44, 57, 0.06);
    transition: transform var(--transition), border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 138, 166, 0.35);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--color-surface-light) 0%, var(--color-surface) 100%);
}

.product-sale-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(200, 90, 130, 0.95);
    border-radius: 4px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(255, 180, 200, 0.8), 0 0 8px rgba(255, 255, 255, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(220, 120, 160, 0.5), 0 0 40px rgba(200, 100, 140, 0.3);
}

@media (max-width: 600px) {
    .product-sale-badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.2rem 0.45rem;
        font-size: 0.65rem;
        letter-spacing: 0.05em;
        border-radius: 3px;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.4);
        box-shadow: 0 0 10px rgba(220, 120, 160, 0.4);
    }
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 400;
    color: rgba(74, 44, 57, 0.15);
}

.product-quick-add {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.75rem;
    background: var(--color-accent);
    color: var(--color-on-accent);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.product-quick-add:hover {
    background: var(--color-accent-hover);
}

.product-quick-add:disabled {
    background: rgba(74, 44, 57, 0.35);
    color: #fff;
    cursor: not-allowed;
}

.product-sold-out-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.6);
}

.product-card--sold-out {
    cursor: default;
}

.product-card--sold-out .product-name,
.product-card--sold-out .product-desc {
    opacity: 0.6;
}

.product-sold-out-label {
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

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

.product-universal-size {
    width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2e7d32;
}

.modal-price-row .product-price-old {
    margin-right: 0.5rem;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: #ff4b6a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

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

.product-main-img--contain {
    object-fit: contain;
    object-position: center;
}

/* Одна картка: природні пропорції фото, без розтягування по висоті квадрата */
.product-image:has(.product-main-img--height-auto) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-img--height-auto {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.product-add:hover {
    background: var(--color-accent);
    color: var(--color-on-accent);
}

/* === Order form === */
.order {
    padding: 5rem 2rem;
    background: var(--color-surface);
}

.order-block {
    margin-bottom: 2.5rem;
}

[data-order-form-block] {
    display: none;
}

.order-block:last-child {
    margin-bottom: 0;
}

.order-block-title {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text);
    border-bottom: 1px solid rgba(74, 44, 57, 0.12);
}

.order-block-howto {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.order-block-howto .order-block-title {
    width: 100%;
    text-align: center;
    font-size: 1.6rem;
}

.order-howto {
    display: block;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid rgba(74, 44, 57, 0.08);
    border-radius: var(--radius-lg);
    text-align: left;
}

.order-howto-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.order-howto-step {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 1.55rem;
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: var(--color-text);
}

.order-howto-step:last-child {
    margin-bottom: 0;
}

.order-howto-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-accent);
    color: #0f0f0f;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(234, 138, 166, 0.4);
}

.order-howto-step a {
    color: var(--color-accent);
    font-weight: 500;
}

.order-howto-step a:hover {
    text-decoration: underline;
}

.order-howto-note {
    margin: 1.5rem 0 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(74, 44, 57, 0.12);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    text-align: center;
    text-shadow: 0 0 12px rgba(234, 138, 166, 0.3);
}

.order-layout {
    display: grid;
}


.order-layout {
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.order-summary {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(74, 44, 57, 0.08);
}

.order-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.order-item-price {
    color: var(--color-accent);
    font-weight: 500;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.qty-stepper-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 1px solid rgba(74, 44, 57, 0.18);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.qty-stepper-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent);
}

.qty-stepper-value {
    min-width: 1.2em;
    text-align: center;
    font-weight: 600;
    color: var(--color-text);
}

/* Крестик видалення товару в блоці «Ваш кошик» на сторінці */
.order-item-remove {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.25);
    color: #dc3545;
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.order-item-remove:hover {
    background: #dc3545;
    color: #fff;
}

.order-total {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(74, 44, 57, 0.12);
    color: var(--color-text);
}

.order-total span {
    color: var(--color-accent);
}

.order-empty {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: none;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-form input,
.order-form textarea {
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid rgba(74, 44, 57, 0.14);
    border-radius: var(--radius);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

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

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.order-form-message {
    font-size: 0.9rem;
    min-height: 1.5em;
}

.order-form-message[data-state="success"] {
    color: #2e7d32;
}

.order-form-message[data-state="error"] {
    color: #c62828;
}

@media (max-width: 768px) {
    .order-layout {
        grid-template-columns: 1fr;
    }
}

/* === Контакты === */
.contact {
    padding: 5rem 2rem;
    background: var(--color-surface);
}

.contact-text {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid rgba(74, 44, 57, 0.14);
    border-radius: var(--radius);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: var(--color-on-accent);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-submit:hover {
    background: var(--color-accent-hover);
}

/* === Футер === */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(74, 44, 57, 0.1);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(74, 44, 57, 0.1);
}

.footer-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.footer-cta-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: 700;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
}

.footer-cta-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-delivery-rules {
    flex: 1 1 100%;
    max-width: 100%;
}

.footer-delivery-rules p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.footer-delivery-rules strong {
    color: var(--color-text);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-link-with-note {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-link-with-note a {
    display: inline-block;
}

.footer-link-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 280px;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .nav-left .social-link {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    .mobile-menu.is-open {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        flex-direction: column;
        gap: 0.75rem;
        background: var(--color-surface);
        padding: 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        list-style: none;
    }

    .mobile-menu-links li {
        width: 100%;
    }

    .mobile-menu-links a {
        display: block;
        background: var(--color-surface);
        border: 1px solid rgba(74, 44, 57, 0.08);
        border-radius: var(--radius);
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
        font-weight: 600;
        box-shadow: 0 2px 10px rgba(74, 44, 57, 0.06);
    }

    .mobile-menu-social {
        margin-top: 0.75rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(74, 44, 57, 0.1);
    }

    .nav-social-label {
        display: block;
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    .nav-social-links {
        display: flex;
        gap: 0.75rem;
    }

    .nav-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        flex: 1;
        padding: 0.85rem 1rem;
        background: var(--color-surface);
        border: 1px solid rgba(74, 44, 57, 0.08);
        border-radius: var(--radius);
        font-weight: 600;
        box-shadow: 0 2px 10px rgba(74, 44, 57, 0.06);
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }
}

/* === Modal === */
/* Блокування прокрутки сторінки під модалкою (мобільні) */
body.modal-open {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(-1 * var(--scroll-y, 0px));
    width: 100%;
}

/* На мобільних position:fixed + фокус на radio/checkbox іноді "ламає" подальший
   скрол всередині модалки (iOS/Android) — там вистачає простого overflow:hidden */
@media (max-width: 768px) {
    body.modal-open {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: auto;
    }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-backdrop[data-modal-backdrop],
.modal-backdrop.checkout-backdrop {
    background: var(--color-bg);
}
@media (max-width: 768px) {
    .modal-backdrop[data-modal-backdrop],
    .checkout-backdrop {
        align-items: flex-start;
        padding: 3.25rem 0.75rem 1.5rem;
    }
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    max-width: 1100px;
    width: min(100%, 1100px);
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    margin: 1.5rem;
    padding: 3.25rem 2.25rem 2rem;
    position: relative;
    border: 1px solid rgba(74, 44, 57, 0.08);
    box-sizing: border-box;
}

.modal-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    border: none;
    border-bottom: 1px solid rgba(74, 44, 57, 0.1);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    transition: background 0.15s ease, color 0.15s ease;
}
.modal-back svg {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.modal-back:hover,
.modal-back:focus-visible {
    background: var(--color-bg);
    color: var(--color-hot);
}
.modal-back:hover svg {
    transform: translateX(-2px);
}
.modal-back:active {
    background: rgba(74, 44, 57, 0.08);
}

/* === Лайтбокс (повноекранний перегляд зображення, напр. таблиця розмірів) === */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 14, 0.9);
    padding: 1.5rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}

.image-lightbox-hint {
    display: none;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .image-lightbox img {
        touch-action: none;
    }
    .image-lightbox-hint {
        display: block;
    }
    .image-lightbox-hint.is-hidden {
        opacity: 0;
    }
}

.image-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #c62828;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
}

.image-lightbox-close:hover {
    background: #e53935;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #c62828;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover {
    background: #e53935;
}
@media (max-width: 768px) {
    [data-modal-backdrop] .modal-back {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: auto;
        z-index: 201;
        border-radius: 0;
    }
}

/* Крестик закриття кошика — завжди видимий, не зникає при прокрутці */
.checkout-backdrop .modal-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 201;
    width: 44px;
    height: 44px;
    background: #c62828;
    color: #fff;
    box-shadow: 0 2px 12px rgba(198, 40, 40, 0.5);
}
.checkout-backdrop .modal-close:hover {
    background: #e53935;
}
@media (max-width: 768px) {
    .checkout-backdrop .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}

.modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "image info"
        "thumbs info";
    gap: 1.5rem;
    min-width: 0;
}

.modal-image-main img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: min(50vh, 440px);
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
    object-position: center;
    cursor: pointer;
}

.modal-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.modal-image-main {
    grid-area: image;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image-main img {
    transition: transform 0.05s ease-out;
}

.modal-thumbs {
    grid-area: thumbs;
}

.modal-thumb {
    border: none;
    padding: 0;
    background: none;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    border: 1px solid transparent;
}

.modal-thumb img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.modal-thumb.is-active {
    opacity: 1;
    border-color: var(--color-accent);
}

.modal-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-price-row .product-price {
    font-size: 1.05rem;
}

.modal-price-row .product-price-old.modal-price-old {
    font-size: 0.9rem;
}

.modal-desc {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-info {
    grid-area: info;
    min-width: 0;
}

.modal-options {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.modal-size-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.modal-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-hot);
}

.modal-size-guide-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-accent-hover);
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-top: 0.4rem;
}

.modal-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(74, 44, 57, 0.16);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
}

.modal-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.modal-select:disabled {
    opacity: 1;
    color: #2e7d32;
    font-weight: 700;
    cursor: default;
}

.modal-cart-btn {
    margin-top: 1.1rem;
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: #ff5722;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-cart-btn:hover {
    background: #f4511e;
    transform: translateY(-1px);
}

.modal-cart-btn-icon {
    flex-shrink: 0;
}

.modal-add-continue-link {
    display: block;
    margin: 0.6rem auto 0;
    background: none;
    border: none;
    padding: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted, #8b6b76);
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
}

.modal-add-continue-link:hover {
    color: var(--color-text);
}

.modal-cta-bar {
    display: contents;
}

@media (max-width: 1024px) {
    .modal-image-main {
        min-height: 0;
    }
    .modal-image-main img {
        max-height: min(45vh, 420px);
    }
}

@media (max-width: 768px) {
    [data-modal-backdrop] .modal {
        margin: 0;
        padding: 2rem 1rem 1.5rem;
        max-height: none;
    }
    .modal-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "thumbs"
            "info";
    }
    .modal-image-main {
        min-height: 0;
        max-height: 44vh;
        touch-action: pan-y;
    }
    .modal-image-main img {
        max-height: min(42vh, 400px);
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
    .modal-info {
        padding-bottom: 9.5rem;
    }
    .modal-cta-bar {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 210;
        background: var(--color-surface);
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 16px rgba(74, 44, 57, 0.14);
    }
    .modal-cta-bar .modal-cart-btn,
    .modal-cta-bar .modal-add-continue-link {
        margin-top: 0;
    }
}

/* === Checkout modal === */
.checkout-modal {
    max-width: 900px;
    padding-top: 3.25rem;
    max-height: none;
    overflow-y: visible;
}

@media (max-width: 768px) {
    .modal-backdrop.checkout-backdrop {
        align-items: flex-start;
        padding: 0;
    }
    .checkout-modal {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        border-radius: 0;
        border: none;
        padding: 3.5rem 1rem 1.5rem;
    }
}

.checkout-cart-view[hidden] {
    display: none !important;
}

.checkout-cart-view {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.checkout-cart-view .checkout-header,
.checkout-form-view .checkout-header {
    margin-bottom: 1rem;
}

.checkout-header h2 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.checkout-subtitle {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
}

.checkout-summary-standalone {
    max-width: 480px;
}

.checkout-goto-form-btn {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: var(--color-hot);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.checkout-goto-form-btn:hover {
    background: var(--color-hot-hover);
    transform: translateY(-1px);
}

/* Вид форми: кошик зверху + форма, все влізає на екран */
.checkout-form-view[hidden] {
    display: none !important;
}

.checkout-form-view {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.checkout-form-view .checkout-header {
    margin-bottom: 0.5rem;
}

.checkout-form-view .checkout-subtitle {
    margin-bottom: 0.75rem;
}

.checkout-form-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.checkout-items-in-form {
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(74, 44, 57, 0.12);
    flex-shrink: 0;
}

.checkout-item.checkout-item-in-form {
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    padding-top: 0.25rem;
}

/* Крестик видалення товару в блоці «У кошику» — завжди видимий, червоний */
.checkout-item-remove-in-form {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.25);
    color: #dc3545;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.checkout-item-remove-in-form:hover {
    background: #dc3545;
    color: #fff;
}

.checkout-item-in-form .checkout-item-info {
    font-size: 0.95rem;
    min-width: 0;
}

.checkout-item-in-form .checkout-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-in-form .checkout-item-price {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.checkout-form-view .checkout-form {
    flex: 1 1 auto;
    min-height: 0;
}

@media (max-width: 768px) {
    .checkout-cart-view,
    .checkout-form-view {
        max-height: none;
    }
    .checkout-form-view .checkout-form {
        gap: 0.5rem;
    }
    .checkout-form-view .checkout-label {
        font-size: 0.9rem;
    }
    .checkout-form-view .checkout-label input {
        padding: 1.1rem 1rem;
    }
    .checkout-form-view .checkout-header h2 {
        font-size: 0.8rem;
    }
}

.checkout-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 1.5rem;
}

.checkout-summary {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.checkout-item {
    display: grid;
    grid-template-columns: auto 1fr auto 36px;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(74, 44, 57, 0.1);
}

/* Крестик видалення товару — завжди видимий, червоний */
.checkout-item-remove {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.25);
    color: #dc3545;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.checkout-item-remove:hover {
    background: #dc3545;
    color: #fff;
}

.checkout-clear-btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(74, 44, 57, 0.2);
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.checkout-clear-btn:hover {
    border-color: var(--color-hot);
    color: var(--color-hot);
}

.checkout-item-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-item-info {
    font-size: 0.85rem;
}

.checkout-item-name {
    font-weight: 600;
}

.checkout-item-price {
    font-weight: 600;
}

@media (max-width: 600px) {
    .checkout-cart-view .checkout-item-thumb img,
    .checkout-cart-view .checkout-item-thumb .product-placeholder {
        width: 68px;
        height: 68px;
    }

    .checkout-cart-view .checkout-item-name {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .checkout-cart-view .checkout-item-price {
        font-size: 1rem;
    }
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-top: 0.5rem;
}

.checkout-total-row-bottom {
    margin-top: 1.25rem;
}

.checkout-total {
    color: var(--color-accent);
}

.checkout-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-hot);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.4rem;
}

.checkout-label input {
    padding: 1.1rem 1rem;
    border-radius: 8px;
    border: 1.5px solid rgba(74, 44, 57, 0.35);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 16px;
}

.checkout-label input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.checkout-confirm {
    margin-top: 0.5rem;
    border: none;
    padding: 0;
}

.checkout-confirm legend {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.checkout-radio {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    border: 1.5px solid rgba(74, 44, 57, 0.35);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.checkout-radio input {
    accent-color: var(--color-accent);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.checkout-submit {
    margin-top: 1rem;
    width: 100%;
    padding: 1.25rem 1.2rem;
    border-radius: 0;
    border: none;
    background: var(--color-hot);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

.checkout-submit:hover {
    background: var(--color-hot-hover);
}

.checkout-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.checkout-message[data-state="success"] {
    color: #2e7d32;
}

.checkout-message[data-state="error"] {
    color: #c62828;
}

@media (max-width: 768px) {
    .checkout-body {
        grid-template-columns: 1fr;
    }
}

/* === Банер відправки Новою поштою === */
.delivery-banner {
    background: rgba(45, 34, 40, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
}

.delivery-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.shipping-delivery-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem 3rem;
    margin-top: 0.5rem;
}

.shipping-delivery-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.shipping-payment-block .delivery-payment-icon {
    width: 56px;
    height: 48px;
}

.shipping-payment-block .delivery-payment-icon svg {
    width: 100%;
    height: 100%;
}

.delivery-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.delivery-banner-line {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(74, 44, 57, 0.15);
}

.delivery-banner-icon {
    color: var(--color-accent-hover);
    width: 72px;
    height: 44px;
    flex-shrink: 0;
}

.delivery-banner-icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .delivery-banner-line {
        font-size: 1.35rem;
    }
    .delivery-banner-icon {
        width: 56px;
        height: 34px;
    }
}

/* === Акції === */
.promos {
    padding: 4rem 2rem;
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.promo-card {
    background: var(--color-surface);
    border: 1px solid rgba(74, 44, 57, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.promo-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.promo-card p {
    font-size: 1.1rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

/* === Доставка === */
.shipping {
    padding: 5rem 2rem;
}

.shipping-text-content {
    max-width: 640px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(74, 44, 57, 0.1);
}

.shipping-text-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
}

.shipping-text-title:first-child {
    margin-top: 0;
}

.shipping-text-p {
    color: var(--color-text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.shipping-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.shipping-card {
    background: var(--color-surface);
    border: 1px solid rgba(74, 44, 57, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.shipping-card h3 {
    margin-bottom: 0.35rem;
}

.shipping-card p {
    color: var(--color-text-muted);
}

.shipping-note {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--color-text-muted);
}

.shipping-note a {
    color: var(--color-accent);
}

.shipping-note a:hover {
    color: var(--color-accent-hover);
}

/* === Відгуки (слайдер) === */
.reviews {
    padding: 5rem 2rem;
    overflow-x: hidden;
}

.reviews-slider-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reviews-slider-viewport {
    overflow: hidden;
    width: 360px;
    max-width: 100%;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
}

.reviews-slider {
    display: flex;
    align-items: flex-start;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.reviews-slide {
    flex: 0 0 auto;
    width: 360px;
    min-width: 360px;
    background: var(--color-surface);
    border: 1px solid rgba(74, 44, 57, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}

.review-screenshot {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.review-screenshot-error {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.review-screenshot-error::after {
    content: 'Фото відгуку';
}

.review-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}


.review-text,
.review-author {
    margin: 0;
}

.reviews-slider-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(74, 44, 57, 0.16);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.reviews-slider-btn:hover {
    background: var(--color-accent);
    color: var(--color-on-accent);
    border-color: var(--color-accent);
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.reviews-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(74, 44, 57, 0.18);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.reviews-dot:hover {
    background: rgba(74, 44, 57, 0.35);
}

.reviews-dot.is-active {
    background: var(--color-accent);
    transform: scale(1.2);
}

@media (max-width: 400px) {
    .reviews-slider-wrap {
        width: 100%;
        padding: 0 0.5rem;
    }
    .reviews-slider-viewport {
        width: 100%;
        max-width: 100%;
    }
    .reviews-slide {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .reviews-slider-viewport {
        width: 440px;
    }
    .reviews-slide {
        width: 440px;
        min-width: 440px;
        max-width: none;
    }
}
