/*
Theme Name: Світ Товарів
Author: Арбитражный Движок
Version: 1.6.3
Description: Легка кастомна тема магазину з інтеграцією CRM.
*/

:root {
    --brand: #f5a126;
    --brand-light: #ffc463;
    --brand-dark: #d96b00;
    --brand-soft: #fff3df;
    --ink: #121211;
    --muted: #6f685a;
    --line: #e7ddc8;
    --surface: #ffffff;
    --success: #15803d;
    --danger: #e9424d;
    --shadow-sm: 0 3px 14px rgba(77, 55, 15, .07);
    --shadow-md: 0 14px 36px rgba(77, 55, 15, .12);
    --radius: 16px;
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);
    --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f6f0;
    background-image:
        radial-gradient(circle at 8% 3%, rgba(245, 161, 38, .15), transparent 25rem),
        radial-gradient(circle at 96% 28%, rgba(18, 18, 17, .045), transparent 26rem),
        linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,246,240,.94) 38rem);
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .26;
    background-image: radial-gradient(rgba(154, 75, 0, .15) .75px, transparent .75px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent 4rem, #000 18rem, transparent 70rem);
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
.svit-icon { display: block; width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.container { width: min(100% - 32px, 1240px); margin-inline: auto; }
.home-main { padding-top: 22px; padding-bottom: 24px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    padding: 13px 0;
    background: rgba(255, 253, 248, .94);
    border-bottom: 1px solid rgba(245, 161, 38, .28);
    box-shadow: 0 4px 18px rgba(18, 18, 17, .045);
    backdrop-filter: blur(12px);
}
.header-inner { position: relative; display: grid; grid-template-columns: minmax(170px, auto) minmax(220px, 500px) auto; align-items: center; gap: 24px; }
.site-logo { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 900; text-decoration: none; letter-spacing: -.35px; white-space: nowrap; }
.site-logo__mark { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(245,161,38,.78); border-radius: 12px; background: linear-gradient(145deg, #121211, #25231e); color: var(--brand-light); box-shadow: 0 7px 18px rgba(18,18,17,.18); }
.site-logo__mark .svit-icon { width: 23px; height: 23px; }
.site-logo__image { display: block; width: auto; max-width: 150px; height: 42px; object-fit: contain; }
.site-logo__title { overflow: hidden; text-overflow: ellipsis; }
.search-form-wrap { width: 100%; }
.site-search { position: relative; display: flex; }
.site-search__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #81796b; pointer-events: none; }
.site-search__icon .svit-icon { width: 19px; height: 19px; }
.site-search input { width: 100%; min-height: 44px; padding: 10px 48px 10px 43px; border: 1px solid var(--line); border-radius: 999px; outline: 0; background: #fbfaf7; color: var(--ink); transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.site-search input:focus { background: #fff; border-color: rgba(245, 161, 38, .92); box-shadow: 0 0 0 4px rgba(245, 161, 38, .2); }
.site-search__submit { position: absolute; top: 50%; right: 4px; display: grid; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: var(--ink); cursor: pointer; }
.site-search__submit .svit-icon { width: 17px; height: 17px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-cart-btn, .header-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 15px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 160ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease; }
.header-icon-btn { display: none; width: 44px; padding: 0; }
.header-cart-btn .svit-icon, .header-icon-btn .svit-icon { width: 20px; height: 20px; }
.header-cart-btn:active, .header-icon-btn:active { transform: scale(.97); transition-duration: 110ms; }
.mobile-search-toggle__close { display: none; font-size: 26px; line-height: 1; }
.mobile-search-toggle.is-open .mobile-search-toggle__search { display: none; }
.mobile-search-toggle.is-open .mobile-search-toggle__close { display: block; }
.cart-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: var(--ink); font-size: 11px; font-weight: 900; }

/* Main banner: never crop source artwork */
.home-banner { position: relative; overflow: hidden; margin-bottom: 28px; background: #fff; border: 1px solid rgba(245, 161, 38, .32); border-radius: 12px; box-shadow: var(--shadow-md); }
.home-banner__track { display: flex; width: 100%; touch-action: pan-y; transition: transform .45s var(--ease-in-out); will-change: transform; }
.banner-slide { flex: 0 0 100%; display: flex; width: 100%; min-width: 0; align-items: center; justify-content: center; text-decoration: none; background: #fff; }
.banner-slide picture { display: block; width: 100%; }
.banner-slide img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; object-position: center; }
.slider-arrow, .gallery-arrow, .lightbox__arrow { display: grid; place-items: center; padding: 0; border: 1px solid rgba(245,161,38,.7); border-radius: 50%; background: rgba(255,251,245,.96); color: var(--ink); box-shadow: 0 6px 20px rgba(18,18,17,.15); cursor: pointer; line-height: 1; transition: transform .18s, background .18s; }
.slider-arrow:hover, .gallery-arrow:hover { transform: translateY(-50%) scale(1.06); background: var(--brand-soft); }
.slider-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; transform: translateY(-50%); font-size: 29px; }
.slider-arrow--prev { left: 14px; }
.slider-arrow--next { right: 14px; }
.slider-dots { position: absolute; left: 50%; bottom: 12px; display: flex; gap: 7px; transform: translateX(-50%); z-index: 2; }
.slider-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.68); box-shadow: 0 1px 5px rgba(0,0,0,.22); cursor: pointer; transition: width .2s, background .2s; }
.slider-dot.is-active { width: 24px; background: var(--brand-light); }

/* Catalogue */
.categories-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 38px; }
.category-card { display: flex; min-height: 112px; padding: 16px 10px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(226,232,240,.84); border-radius: 15px; background: rgba(255,255,255,.9); color: #273244; text-align: center; text-decoration: none; font-size: 14px; font-weight: 750; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.category-card:hover { transform: translateY(-3px); border-color: rgba(245,161,38,.78); box-shadow: var(--shadow-md); }
.category-card__icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--brand-dark); }
.category-card__icon .svit-icon { width: 30px; height: 30px; stroke-width: 1.8; }
.products-section { margin-bottom: 42px; }
.section-title { margin: 0 0 19px; font-size: clamp(20px, 2vw, 24px); font-weight: 900; letter-spacing: -.3px; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; display: flex; min-width: 0; padding: 12px; flex-direction: column; overflow: hidden; border: 1px solid rgba(231,221,200,.92); border-radius: 19px; background: rgba(255,255,255,.98); box-shadow: 0 6px 22px rgba(77,55,15,.07); transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(245,161,38,.76); box-shadow: var(--shadow-md); }
.product-card__badge { position: absolute; top: 11px; right: 11px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 850; }
.product-card__image-wrap { position: relative; display: grid; width: 100%; min-height: 0; aspect-ratio: 4 / 5; margin-bottom: 13px; padding: 14px; place-items: center; overflow: hidden; border: 1px solid #eee7d8; border-radius: 15px; background: radial-gradient(circle at 50% 42%, #fff 0 42%, #f8f3e7 100%); }
.product-card__image-wrap::after { content: ""; position: absolute; inset: auto 12% 7px; height: 16px; border-radius: 50%; background: rgba(15,23,42,.09); filter: blur(10px); pointer-events: none; }
.product-card__image { position: relative; z-index: 1; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; transition: transform .25s var(--ease-out); }
.product-card:hover .product-card__image { transform: scale(1.025); }
.product-card__placeholder { display: grid; place-items: center; color: #94a3b8; opacity: .58; }
.product-card__placeholder .svit-icon { width: 54px; height: 54px; }
.product-card__title { display: -webkit-box; min-height: 43px; margin: 0 0 9px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; line-height: 1.4; font-weight: 780; }
.product-card__title a { text-decoration: none; }
.product-card__price-row { display: flex; min-height: 26px; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.product-card__price { font-size: 20px; font-weight: 920; }
.product-card__old-price { color: #94a3b8; font-size: 13px; text-decoration: line-through; }
.button { position: relative; isolation: isolate; display: inline-flex; min-height: 46px; padding: 11px 17px; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border: 2px solid transparent; border-radius: 11px; text-decoration: none; font-size: 14px; font-weight: 850; cursor: pointer; transition: transform 160ms var(--ease-out), background 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.button > span, .button > .svit-icon { position: relative; z-index: 2; }
.button:active { transform: scale(.97); transition-duration: 110ms; }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.button--primary { background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: var(--ink); box-shadow: 0 7px 18px rgba(154,75,0,.18); }
.button--outline { border-color: var(--ink); background: #fff; color: var(--ink); }
.product-card__button { width: 100%; margin-top: auto; min-height: 43px; }
.product-card__button::before, .purchase-button::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -45%;
    bottom: -45%;
    left: -42%;
    width: 34%;
    transform: translate3d(-190%, 0, 0) rotate(18deg);
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
    pointer-events: none;
    animation: button-shine 5.4s var(--ease-in-out) infinite;
}
.product-card:nth-child(4n + 2) .product-card__button::before { animation-delay: 1.1s; }
.product-card:nth-child(4n + 3) .product-card__button::before { animation-delay: 2.2s; }
.product-card:nth-child(4n) .product-card__button::before { animation-delay: 3.3s; }

/* Product */
.product-page { padding-top: 20px; padding-bottom: 52px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span:last-child { color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.product-single-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(300px, 1fr) 290px; gap: 28px; margin-bottom: 40px; align-items: start; }
.product-gallery-wrapper { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 13px; min-width: 0; }
.product-thumbnails { display: flex; max-height: 416px; padding: 1px 3px 3px 1px; flex-direction: column; gap: 9px; overflow: auto; scrollbar-width: thin; }
.v-thumb-item { flex: 0 0 auto; width: 68px; height: 68px; padding: 3px; border: 2px solid transparent; border-radius: 10px; background: #fff; cursor: zoom-in; transition: border-color .18s, transform .18s; }
.v-thumb-item:hover { transform: scale(1.025); border-color: var(--brand); }
.v-thumb-item.is-active { border-color: var(--brand); }
.v-thumb-item img { display: block; width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
.product-main-image { position: relative; display: grid; height: 416px; place-items: center; overflow: hidden; border: 1px solid rgba(231,221,200,.92); border-radius: 18px; background: linear-gradient(145deg, #fff8ed, #fff); box-shadow: var(--shadow-sm); }
.product-main-image--empty { color: #94a3b8; font-size: 72px; }
.product-main-image__open { display: grid; width: 100%; height: 100%; padding: 24px; place-items: center; border: 0; background: transparent; cursor: zoom-in; }
.product-main-image__open img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.product-main-image__zoom { position: absolute; right: 13px; bottom: 13px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(245,161,38,.7); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--brand-dark); font-size: 25px; }
.product-hit-badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 9px; border-radius: 7px; background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: var(--ink); font-size: 10px; font-weight: 850; pointer-events: none; }
.gallery-arrow { position: absolute; top: 50%; z-index: 4; width: 42px; height: 42px; transform: translateY(-50%); color: var(--brand-dark); font-size: 28px; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }
.gallery-counter { position: absolute; left: 50%; bottom: 13px; z-index: 3; padding: 5px 9px; transform: translateX(-50%); border-radius: 999px; background: rgba(15,23,42,.68); color: #fff; font-size: 11px; font-weight: 750; pointer-events: none; }
.product-summary { min-width: 0; padding-top: 2px; }
.product-eyebrow { color: var(--brand-dark); font-size: 12px; font-weight: 850; }
.product-summary h1 { margin: 8px 0 12px; color: #0f172a; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.16; font-weight: 900; letter-spacing: -.55px; }
.product-meta-row { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.product-rating { color: var(--brand-dark); font-weight: 800; }
.product-rating span { color: var(--brand-dark); }
.product-excerpt { margin: 0 0 20px; color: #475569; font-size: 14px; line-height: 1.6; }
.product-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.product-price { color: var(--brand-dark); font-size: clamp(29px, 3vw, 36px); font-weight: 950; letter-spacing: -.6px; }
.product-old-price { color: #94a3b8; font-size: 18px; text-decoration: line-through; }
.product-stock { margin-bottom: 21px; color: var(--success); font-size: 14px; font-weight: 800; }
.quantity-block { margin-bottom: 23px; }
.quantity-block label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .35px; }
.quantity-control { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.quantity-control button { width: 44px; height: 42px; border: 0; background: #f8fafc; color: var(--ink); font-size: 20px; cursor: pointer; }
.quantity-control input { width: 46px; border: 0; border-inline: 1px solid var(--line); outline: 0; text-align: center; font-weight: 850; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.purchase-benefits { display: flex; padding: 22px 19px; flex-direction: column; gap: 19px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); }
.benefit-item { display: flex; gap: 13px; align-items: flex-start; }
.benefit-item__icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); }
.benefit-item__icon .svit-icon { width: 21px; height: 21px; }
.benefit-item strong, .benefit-item span:not(.benefit-item__icon) { display: block; }
.benefit-item strong { margin-bottom: 4px; font-size: 14px; }
.benefit-item div > span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.product-tabs { margin-bottom: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); }
.product-tabs__nav { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: #f8fafc; }
.product-tabs__nav button { min-height: 54px; padding: 13px 28px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.product-tabs__nav button.is-active { border-bottom-color: var(--brand); background: #fff; color: var(--brand-dark); }
.product-tabs__content { padding: 29px; color: #334155; font-size: 15px; line-height: 1.75; }
.product-tabs__content[hidden] { display: none; }
.product-tabs__content h3 { margin-top: 0; color: var(--ink); }
.entry-content img { height: auto; }
.reviews-list { display: flex; flex-direction: column; gap: 13px; }
.review-card { padding: 15px; border: 1px solid #eef2f7; border-radius: 11px; background: #f8fafc; }
.review-card > div { display: flex; justify-content: space-between; gap: 15px; }
.review-card > div span { color: var(--brand); }
.review-card p { margin: 6px 0 0; font-size: 14px; }

.bottom-purchase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, auto); gap: 24px; padding: 22px; align-items: center; border: 1px solid rgba(245,161,38,.42); border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,243,223,.96)); box-shadow: var(--shadow-md); }
.bottom-purchase__product { display: flex; min-width: 0; align-items: center; gap: 17px; }
.bottom-purchase__product > img, .bottom-purchase__product > span { display: grid; width: 94px; height: 94px; flex: 0 0 auto; padding: 7px; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: #fff; object-fit: contain; }
.bottom-purchase__product > span { color: #94a3b8; }
.bottom-purchase__eyebrow { color: var(--brand-dark); font-size: 11px; font-weight: 900; letter-spacing: .5px; }
.bottom-purchase h2 { margin: 5px 0 8px; overflow: hidden; font-size: clamp(17px, 2vw, 21px); line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bottom-purchase__price { display: flex; align-items: baseline; gap: 9px; }
.bottom-purchase__price strong { color: var(--brand-dark); font-size: 22px; }
.bottom-purchase__price del { color: #94a3b8; font-size: 13px; }
.bottom-purchase__controls { display: grid; grid-template-columns: auto minmax(145px, 1fr) minmax(190px, 1.15fr); gap: 9px; align-items: center; }
.bottom-purchase__controls .button { min-height: 48px; padding-inline: 13px; }

/* Lightbox and modals */
.lightbox { position: fixed; inset: 0; z-index: 1000000; display: flex; padding: 54px 80px; visibility: hidden; opacity: 0; pointer-events: none; align-items: center; justify-content: center; background: rgba(3, 9, 20, .93); backdrop-filter: blur(5px); transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms; }
.lightbox.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.lightbox > img { display: block; max-width: min(100%, 1400px); max-height: calc(100vh - 108px); object-fit: contain; user-select: none; }
.lightbox__close { position: absolute; top: 15px; right: 18px; display: grid; width: 46px; height: 46px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; cursor: pointer; }
.lightbox__arrow { position: absolute; top: 50%; width: 52px; height: 52px; transform: translateY(-50%); background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.2); color: #fff; font-size: 36px; }
.lightbox__arrow:hover { transform: translateY(-50%) scale(1.05); background: rgba(255,255,255,.23); }
.lightbox__arrow--prev { left: 18px; }
.lightbox__arrow--next { right: 18px; }
.lightbox__counter { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 750; }
.modal-overlay, #cartModal { position: fixed !important; inset: 0 !important; z-index: 100000 !important; display: flex; width: auto !important; height: auto !important; padding: 20px; visibility: hidden; opacity: 0; pointer-events: none; align-items: center; justify-content: center; background: rgba(15,23,42,.58) !important; backdrop-filter: blur(4px); transition: opacity 180ms var(--ease-out), visibility 0s linear 240ms; }
.modal-overlay.is-open, #cartModal.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.modal-card, #cartModal > div { position: relative; width: min(100%, 460px) !important; max-height: calc(100vh - 40px); padding: 28px !important; overflow: auto; transform: translate3d(0, 10px, 0) scale(.985); border-radius: 17px !important; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.24); transition: transform 240ms var(--ease-out); }
.modal-overlay.is-open > .modal-card, #cartModal.is-open > div { transform: translate3d(0, 0, 0) scale(1); }
.cart-modal__dialog { width: min(100%, 540px) !important; }
.modal-card__close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; background: transparent; color: #334155; font-size: 28px; cursor: pointer; }
.modal-card h3 { margin: 0 35px 5px; text-align: center; font-size: 21px; }
.modal-card > p { margin: 0 0 20px; color: var(--muted); text-align: center; font-size: 13px; }
.modal-card form input:not([type="hidden"]), #cartOrderForm input:not([type="hidden"]) { display: block; width: 100% !important; min-height: 46px; margin-bottom: 11px !important; padding: 11px 13px !important; border: 1px solid var(--line) !important; border-radius: 9px !important; outline: 0; }
.modal-card form input:not([type="hidden"]):focus, #cartOrderForm input:not([type="hidden"]):focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(245,161,38,.22); }
.modal-card form .button, #cartOrderForm button[type="submit"] { width: 100% !important; min-height: 47px; border-radius: 10px !important; background: linear-gradient(135deg, var(--brand-light), var(--brand)) !important; color: var(--ink) !important; }
.order-form-error { margin: 0 0 11px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 9px; background: #fff1f2; color: #b91c1c; font-size: 13px; line-height: 1.4; }
.cart-empty { padding: 20px 0; color: var(--muted); text-align: center; }
.cart-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto 34px; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #eef2f7; }
.cart-line__image { width: 52px; height: 52px; border-radius: 9px; background: #f8fafc; object-fit: contain; }
.cart-line__image--empty { display: block; }
.cart-line__name { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.3; }
.cart-line__quantity { display: inline-flex; align-items: center; gap: 4px; }
.cart-line__quantity button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; color: var(--ink); cursor: pointer; }
.cart-line__quantity span { min-width: 18px; text-align: center; font-size: 13px; font-weight: 800; }
.cart-line__price { min-width: 68px; text-align: right; font-size: 13px; font-weight: 850; }
.cart-line__remove { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--danger); cursor: pointer; }
.cart-line__remove svg { width: 18px; height: 18px; }

/* Search, categories and content pages */
.archive-page { padding-top: 38px; padding-bottom: 54px; }
.archive-title { margin: 0 0 26px; color: var(--ink); font-size: clamp(23px, 3vw, 31px); line-height: 1.22; font-weight: 900; letter-spacing: -.4px; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 7px; }
.pagination .page-numbers { display: grid; min-width: 40px; height: 40px; padding: 0 10px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 750; }
.pagination .page-numbers.current { border-color: var(--brand-dark); background: linear-gradient(135deg, var(--brand-light), var(--brand)); color: var(--ink); }
.empty-state { padding: 48px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.92); text-align: center; box-shadow: var(--shadow-sm); }
.empty-state > span { display: grid; width: 58px; height: 58px; margin: 0 auto 12px; place-items: center; color: var(--brand-dark); }
.empty-state > span .svit-icon { width: 45px; height: 45px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.content-page { padding-top: 30px; padding-bottom: 52px; }
.content-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); }
.content-card h1 { margin: 0 0 24px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; font-weight: 900; }
.entry-content { color: #334155; line-height: 1.75; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.thankyou-page { padding-top: 62px; padding-bottom: 82px; text-align: center; }
.thankyou-card { width: min(100%, 620px); margin: 0 auto; padding: clamp(32px, 6vw, 54px) clamp(20px, 5vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); }
.thankyou-card__icon { display: grid; width: 72px; height: 72px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: #dcfce7; color: var(--success); font-size: 38px; font-weight: 900; }
.thankyou-card h1 { margin: 0 0 15px; font-size: clamp(26px, 5vw, 34px); font-weight: 950; }
.thankyou-card p { margin: 0 auto 28px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.thankyou-offer { margin-top: 36px; text-align: left; }
.thankyou-offer__banner { position: relative; display: flex; min-height: 270px; aspect-ratio: 10 / 3; overflow: hidden; align-items: center; border-radius: 22px; background: #121211; color: #fff; box-shadow: var(--shadow-md); }
.thankyou-offer__banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thankyou-offer__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,17,.94), rgba(18,18,17,.67) 50%, rgba(18,18,17,.12)); }
.thankyou-offer__banner--placeholder { background-image: radial-gradient(circle at 82% 34%, rgba(255,196,99,.38), transparent 18%), radial-gradient(circle at 72% 75%, rgba(245,161,38,.25), transparent 20%), linear-gradient(130deg, #121211, #3a2516 62%, #f5a126); }
.thankyou-offer__copy { position: relative; z-index: 2; width: min(66%, 660px); padding: clamp(26px, 5vw, 58px); }
.thankyou-offer__copy > span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 900; letter-spacing: .6px; }
.thankyou-offer__copy > span .svit-icon { width: 19px; height: 19px; }
.thankyou-offer__copy h2 { margin: 10px 0 9px; color: #fff; font-size: clamp(28px, 5vw, 51px); line-height: .98; letter-spacing: -1.5px; }
.thankyou-offer__copy p { margin: 0; color: rgba(255,255,255,.86); font-size: clamp(14px, 1.7vw, 18px); line-height: 1.45; }
.thankyou-offer__products { margin-top: 22px; }
.thankyou-offer__products .product-card__badge { max-width: calc(100% - 22px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Footer */
.site-footer { margin-top: 50px; padding: 42px 0; border-top: 1px solid rgba(245,161,38,.5); background: #151514; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; color: #c9c4b8; font-size: 14px; }
.footer-column { min-width: 0; }
.footer-column h4 { margin: 0 0 10px; }
.footer-column h4 a, .footer-phone a { color: var(--brand-light); font-weight: 850; text-decoration: none; }
.footer-column p { margin: 0; line-height: 1.55; }
.footer-phone { font-size: 16px; font-weight: 850; }

@keyframes button-shine {
    0%, 66% { transform: translate3d(-190%, 0, 0) rotate(18deg); opacity: 0; }
    70% { opacity: .75; }
    84% { transform: translate3d(520%, 0, 0) rotate(18deg); opacity: 0; }
    100% { transform: translate3d(520%, 0, 0) rotate(18deg); opacity: 0; }
}

@media (hover: hover) and (pointer: fine) {
    .header-cart-btn:hover, .header-icon-btn:hover { transform: translateY(-1px); border-color: var(--brand); box-shadow: 0 7px 20px rgba(77,55,15,.12); }
    .button:hover { transform: translateY(-1px); }
    .button--primary:hover { background: linear-gradient(135deg, #ffd089, #ed8b13); box-shadow: 0 9px 22px rgba(154,75,0,.22); }
    .button--outline:hover { border-color: var(--brand-dark); background: var(--brand-soft); }
    .cart-line__quantity button:hover, .cart-line__remove:hover { background: var(--brand-soft); }
}

@media (max-width: 1100px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .product-card__image-wrap { min-height: 0; }
    .product-single-grid { grid-template-columns: minmax(0, 390px) minmax(300px, 1fr); }
    .purchase-benefits { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
    .header-inner { gap: 15px; }
    .site-logo { font-size: 18px; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-single-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-gallery-wrapper { grid-template-columns: 1fr; }
    .product-thumbnails { order: 2; max-height: none; padding: 1px 1px 5px; flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; }
    .v-thumb-item { scroll-snap-align: start; }
    .product-main-image { height: min(70vw, 520px); min-height: 330px; }
    .purchase-benefits { grid-column: auto; grid-template-columns: repeat(2, 1fr); }
    .bottom-purchase { grid-template-columns: 1fr; }
    .bottom-purchase__controls { grid-template-columns: auto 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 18px; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 24px, 1240px); }
    .site-header { padding: 9px 0; }
    .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .site-logo { min-width: 0; gap: 8px; font-size: 16px; }
    .site-logo__mark { width: 38px; height: 38px; border-radius: 11px; }
    .site-logo__image { max-width: 106px; height: 38px; }
    .site-logo__title { max-width: min(42vw, 180px); }
    .header-icon-btn { display: inline-grid; }
    .search-form-wrap { position: absolute; top: calc(100% + 9px); right: 0; left: 0; z-index: 20; width: auto; padding: 8px; visibility: hidden; opacity: 0; transform: translate3d(0, -8px, 0) scale(.985); transform-origin: top right; pointer-events: none; border: 1px solid rgba(226,232,240,.95); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px rgba(15,23,42,.16); backdrop-filter: blur(14px); transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms; }
    .search-form-wrap.is-open { visibility: visible; opacity: 1; transform: translate3d(0, 0, 0) scale(1); pointer-events: auto; transition-delay: 0s; }
    .site-search input { min-height: 44px; background: #fff; }
    .header-cart-btn { min-height: 42px; padding: 7px 9px; }
    .header-cart-label { display: none; }
    .home-main { padding-top: 14px; }
    .home-banner { margin-inline: -12px; margin-bottom: 20px; border-inline: 0; border-radius: 0; }
    .slider-arrow { width: 38px; height: 38px; font-size: 25px; }
    .slider-arrow--prev { left: 8px; }
    .slider-arrow--next { right: 8px; }
    .slider-dots { bottom: 8px; }
    .categories-grid { display: flex; margin-right: -12px; margin-left: -12px; padding: 2px 12px 9px; gap: 9px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; margin-bottom: 24px; }
    .categories-grid::-webkit-scrollbar { display: none; }
    .category-card { flex: 0 0 106px; min-height: 86px; padding: 11px 7px; scroll-snap-align: start; font-size: 12px; }
    .category-card__icon { width: 32px; height: 32px; }
    .category-card__icon .svit-icon { width: 27px; height: 27px; }
    .products-grid { gap: 10px; }
    .product-card { padding: 8px; border-radius: 15px; }
    .product-card__image-wrap { width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: 1 / 1; margin-bottom: 9px; padding: 7px; border-radius: 12px; }
    .product-card__title { min-height: 38px; margin-bottom: 6px; font-size: 13px; line-height: 1.42; }
    .product-card__price { font-size: 15px; }
    .product-card__old-price { font-size: 11px; }
    .product-card__price-row { min-height: 23px; margin-bottom: 8px; gap: 5px; }
    .product-card__button { min-height: 41px; padding: 8px 5px; gap: 5px; font-size: 11.5px; }
    .product-card__button .svit-icon { width: 17px; height: 17px; }
    .product-card__badge { top: 7px; right: 7px; padding: 3px 7px; font-size: 9px; }
    .product-page { padding-top: 14px; padding-bottom: 34px; }
    .breadcrumbs { margin-bottom: 14px; }
    .product-main-image { height: min(88vw, 440px); min-height: 300px; border-radius: 14px; }
    .product-main-image__open { padding: 20px; }
    .gallery-arrow { width: 44px; height: 44px; background: rgba(255,255,255,.96); }
    .v-thumb-item { width: 64px; height: 64px; }
    .product-summary h1 { font-size: 25px; }
    .product-meta-divider { display: none; }
    .product-meta-row { align-items: flex-start; flex-direction: column; gap: 5px; }
    .product-actions { grid-template-columns: 1fr; gap: 9px; }
    .purchase-benefits { grid-template-columns: 1fr 1fr; padding: 17px 14px; gap: 17px 10px; }
    .benefit-item { gap: 9px; }
    .benefit-item__icon { width: 34px; height: 34px; }
    .benefit-item__icon .svit-icon { width: 19px; height: 19px; }
    .benefit-item strong { font-size: 12px; }
    .benefit-item div > span { font-size: 11.5px; }
    .product-tabs__nav button { padding: 12px 18px; }
    .product-tabs__content { padding: 20px 16px; }
    .bottom-purchase { margin-inline: -2px; padding: 15px; gap: 16px; border-radius: 17px; }
    .bottom-purchase__product > img, .bottom-purchase__product > span { width: 74px; height: 74px; }
    .bottom-purchase h2 { font-size: 16px; white-space: normal; }
    .bottom-purchase__price strong { font-size: 20px; }
    .bottom-purchase__controls { grid-template-columns: 1fr; }
    .bottom-purchase__controls .quantity-control { width: 100%; }
    .bottom-purchase__controls .quantity-control button { flex: 1; }
    .bottom-purchase__controls .quantity-control input { flex: 0 0 58px; }
    .archive-page { padding-top: 24px; padding-bottom: 38px; }
    .archive-title { margin-bottom: 19px; font-size: 22px; }
    .content-page { padding-top: 21px; padding-bottom: 35px; }
    .thankyou-page { padding-top: 34px; padding-bottom: 50px; }
    .thankyou-offer { margin-top: 24px; }
    .thankyou-offer__banner { min-height: 360px; aspect-ratio: 4 / 5; align-items: flex-end; border-radius: 18px; }
    .thankyou-offer__banner::after { background: linear-gradient(0deg, rgba(18,18,17,.96), rgba(18,18,17,.55) 60%, rgba(18,18,17,.15)); }
    .thankyou-offer__copy { width: 100%; padding: 24px 20px; }
    .thankyou-offer__copy h2 { font-size: clamp(30px, 10vw, 43px); }
    .lightbox { padding: 58px 8px 64px; }
    .lightbox > img { max-height: calc(100vh - 122px); }
    .lightbox__close { top: 10px; right: 10px; }
    .lightbox__arrow { top: auto; bottom: 10px; width: 46px; height: 46px; transform: none; }
    .lightbox__arrow:hover { transform: scale(1.04); }
    .lightbox__arrow--prev { left: 12px; }
    .lightbox__arrow--next { right: 12px; }
    .lightbox__counter { bottom: 25px; }
    .modal-overlay, #cartModal { padding: 0 !important; align-items: flex-end !important; }
    .modal-card, #cartModal > div { width: 100% !important; max-width: none !important; max-height: 91vh; padding: 24px 18px calc(20px + env(safe-area-inset-bottom)) !important; transform: translate3d(0, 100%, 0); border-radius: 20px 20px 0 0 !important; transition-duration: 280ms; transition-timing-function: var(--ease-drawer); }
    .modal-overlay.is-open > .modal-card, #cartModal.is-open > div { transform: translate3d(0, 0, 0); }
    .cart-line { grid-template-columns: 48px minmax(0, 1fr) auto 32px; gap: 8px; }
    .cart-line__image { width: 48px; height: 48px; }
    .cart-line__quantity { grid-column: 2; margin-top: -2px; }
    .cart-line__price { grid-column: 3; grid-row: 1 / span 2; min-width: 62px; }
    .cart-line__remove { grid-column: 4; grid-row: 1 / span 2; width: 32px; height: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
}

@media (max-width: 390px) {
    .site-logo { font-size: 15px; }
    .purchase-benefits { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .product-card__button::before, .purchase-button::before { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
    .site-header, .search-form-wrap, .modal-overlay, #cartModal { backdrop-filter: none; background-color: #fff; }
}

@media (prefers-contrast: more) {
    .site-header, .search-form-wrap, .product-card, .category-card { border-color: #64748b; }
}
