[hidden] { display: none !important; }

:root {
    --shop-bg: var(--bg-card, #fff);
    --shop-line: var(--border, #e7e9ee);
    --shop-ink: var(--text, #1a1d24);
    --shop-muted: var(--text-2, #6b7280);
    --shop-ctl-h: 42px;
    --shop-accent: #16a34a;
    --shop-primary: var(--primary, #6366f1);
    --shop-on-primary: var(--on-primary, #fff);
    --shop-danger: #dc2626;
    --shop-radius: 14px;
    --shop-shadow: var(--shadow-lg, 0 6px 24px rgba(20, 24, 40, .08));
}

.shop, .shop-product { max-width: 1200px; margin: 0 auto; padding: 60px 40px; }
@media (max-width: 720px) { .shop, .shop-product { padding: 48px 24px; } }
@media (max-width: 560px) { .shop, .shop-product { padding: 32px 16px; } }

.shop-banners { max-width: 1200px; margin: 0 auto; padding: 60px 40px 0; }
@media (max-width: 720px) { .shop-banners { padding: 48px 24px 0; } }
@media (max-width: 560px) { .shop-banners { padding: 32px 16px 0; } }
.shop-banners.is-multi { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.shop-banners.is-multi .shop-banner { flex: 0 0 100%; scroll-snap-align: center; }
.shop-banner { position: relative; display: flex; align-items: center; min-height: 210px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); overflow: hidden; background: var(--shop-bg); }
.shop-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.shop-banner:has(.shop-banner-img)::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,12,18,.62), rgba(10,12,18,.18) 70%, rgba(10,12,18,.05)); }
.shop-banner-in { position: relative; z-index: 2; padding: clamp(22px, 4vw, 46px); max-width: 580px; }
.shop-banner-title { font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.14; color: var(--shop-ink); letter-spacing: -.01em; }
.shop-banner-sub { font-size: 15px; line-height: 1.5; color: var(--shop-ink); margin-top: 9px; }
.shop-banner-btn { display: inline-block; margin-top: 18px; background: var(--shop-primary); color: var(--shop-on-primary); padding: 11px 24px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; transition:all .3s; }
.shop-banner-btn:hover { opacity: .9; }
.shop-banner:has(.shop-banner-img) .shop-banner-title { color: #fff; }
.shop-banner:has(.shop-banner-img) .shop-banner-sub { color: #fff; }
@media (max-width: 560px) { .shop-banner { min-height: 170px; } .shop-banner-in { padding: 20px; } }

.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-title { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0; color: var(--shop-ink); }
.shop-back { display: inline-flex; align-items: center; gap: 6px; color: var(--shop-muted); text-decoration: none; font-size: 14px; margin-bottom: 6px; }
.shop-back:hover { color: var(--shop-accent); }

.shop-cart-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--shop-ink); color: #fff; border: 0; cursor: pointer;
    padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
    transition:all .3s;
}
.shop-cart-btn:hover { transform: translateY(-1px); opacity: .92; }
.shop-cart-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: var(--shop-accent); color: #fff; font-size: 12px; font-weight: 700;
}
.shop-cart-count:not(.has) { opacity: .55; }

.site-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: inherit; font-size: 20px; padding: 6px 8px; line-height: 1; }
.site-cart:hover { opacity: .75; }
.site-cart-count { position: absolute; top: -1px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--shop-primary); color: var(--shop-on-primary); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.site-cart-count:not(.has) { display: none; }
.site-wish, .site-compare { position: relative; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: inherit; font-size: 20px; padding: 6px 8px; line-height: 1; text-decoration: none; }
.site-wish:hover, .site-compare:hover { opacity: .75; }
.site-wish-count, .site-compare-count { position: absolute; top: -1px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--shop-primary); color: var(--shop-on-primary); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.site-wish-count:not(.has), .site-compare-count:not(.has) { display: none; }
.site-count { position: absolute; top: -1px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--shop-primary); color: var(--shop-on-primary); font-size: 11px; font-weight: 700; font-style: normal; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.site-count:not(.has) { display: none; }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.shop-toolbar .shop-search { margin-bottom: 0; flex: 1; min-width: 240px; }
.shop-cats-dd { position: relative; }
.shop-cats-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: var(--shop-ctl-h, 42px); box-sizing: border-box; padding: 0 18px; border-radius: 999px; border: 1px solid var(--shop-line); background: var(--shop-bg); color: var(--shop-ink); font-size: 14px; font-weight: 600; cursor: pointer; transition:all .3s; white-space: nowrap; }
.shop-cats-toggle:hover { border-color: var(--shop-primary); }
.shop-cats-toggle .fa-bars { color: var(--shop-primary); }
.shop-cats-cur { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-cats-chev { font-size: 11px; color: var(--shop-muted); transition:all .3s; }
.shop-cats-dd.is-open .shop-cats-chev { transform: rotate(180deg); }
.shop-cats-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: max-content; max-width: min(680px, 92vw); max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: 14px; box-shadow: var(--shop-shadow); padding: 12px; display: none; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.shop-cats-dd.is-open .shop-cats-panel { display: flex; }
.shop-cats-group { width: 100%; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--shop-muted); padding: 10px 2px 2px; }
.shop-cats-group:first-child { padding-top: 0; }
.shop-cat-link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--shop-line); background: var(--shop-bg); color: var(--shop-ink); text-decoration: none; font-size: 13px; transition:all .3s; }
.shop-cat-link:hover { border-color: var(--shop-primary); color: var(--shop-primary); }
.shop-cat-link.is-active { background: var(--shop-primary); color: var(--shop-on-primary); border-color: var(--shop-primary); }
.shop-cat-cnt { color: var(--shop-muted); font-size: 11px; }
.shop-cat-link.is-active .shop-cat-cnt { color: var(--shop-on-primary); opacity: .85; }
@media (max-width: 560px) { .shop-cats-dd { width: 100%; } .shop-cats-toggle { width: 100%; justify-content: center; } .shop-cats-panel { max-width: 92vw; left: 0; right: 0; } }

.shop-search { display: flex; align-items: center; position: relative; max-width: 520px; }
.shop-search-ic { position: absolute; left: 15px; color: var(--shop-muted); font-size: 14px; pointer-events: none; }
.shop-search input { flex: 1; min-width: 0; min-height: var(--shop-ctl-h, 42px); box-sizing: border-box; border: 1px solid var(--shop-line); border-right: 0; border-radius: 999px 0 0 999px; padding: 0 14px 0 40px; font-size: 15px; color: var(--shop-ink); background: var(--shop-bg); outline: none; }
.shop-search input:focus { border-color: var(--shop-primary); }
.shop-search-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--shop-ctl-h, 42px); box-sizing: border-box; border: 1px solid var(--shop-primary); background: var(--shop-primary); color: var(--shop-on-primary); padding: 0 22px; border-radius: 0 999px 999px 0; cursor: pointer; font-size: 15px; font-weight: 600; white-space: nowrap; }
.shop-search-btn:hover { opacity: .9; }

.shop-search-sug { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: 12px; box-shadow: var(--shop-shadow); max-height: 70vh; overflow-y: auto; }
.shop-sug-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; text-decoration: none; border-bottom: 1px solid var(--shop-line); }
.shop-sug-item:last-child { border-bottom: 0; }
.shop-sug-item:hover { background: var(--shop-line); }
.shop-sug-img { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px; overflow: hidden; background: var(--shop-line); display: flex; align-items: center; justify-content: center; color: var(--shop-muted); }
.shop-sug-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-sug-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop-sug-title { color: var(--shop-ink); font-size: 14px; font-weight: 600; line-height: 1.25; }
.shop-sug-price { color: var(--shop-accent); font-weight: 700; font-size: 14px; }
.shop-sug-price s { color: var(--shop-muted); font-weight: 400; font-size: 12px; }
.shop-sug-oos { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--shop-muted); font-weight: 400; }
.shop-sug-empty { padding: 18px; text-align: center; color: var(--shop-muted); font-size: 14px; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.shop-card {
    display: flex; flex-direction: column; background: var(--shop-bg);
    border: 1px solid var(--shop-line); border-radius: var(--shop-radius); overflow: hidden;
    transition:all .3s;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shop-shadow); border-color: color-mix(in srgb, var(--shop-primary) 35%, var(--shop-line)); }
.shop-card-img { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--shop-line); }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition:all .3s; }
.shop-card:hover .shop-card-img img { transform: scale(1.04); }
.shop-card-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.shop-card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.shop-card-title a { color: var(--shop-ink); text-decoration: none; }
.shop-card-title a:hover { color: var(--shop-accent); }
.shop-card-prices { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.shop-price { font-size: 19px; font-weight: 800; color: var(--shop-ink); }
.shop-old { font-size: 14px; color: var(--shop-muted); text-decoration: line-through; }

.shop-noimg {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: var(--shop-muted); font-size: 34px; background: var(--shop-line);
}
.shop-out { display: inline-block; color: var(--shop-muted); font-size: 14px; font-weight: 600; padding: 6px 0; }
.shop-empty-list { grid-column: 1 / -1; text-align: center; color: var(--shop-muted); padding: 48px 0; }

.shop-add { width: 100%; min-height: var(--shop-ctl-h, 42px); box-sizing: border-box; justify-content: center; align-items: center; transition:all .3s; }
.shop-add:hover { transform: translateY(-1px); box-shadow: 0 4px 14px color-mix(in srgb, var(--shop-primary) 30%, transparent); }
.shop-add.shop-added { background: var(--shop-accent) !important; border-color: var(--shop-accent) !important; }

.shop-card-step {
    display: flex; align-items: stretch; width: 100%; min-height: 42px; box-sizing: border-box;
    border-radius: 8px; overflow: hidden; background: var(--shop-primary); color: var(--shop-on-primary);
    user-select: none; box-shadow: none;
}
.shop-card-step-btn {
    flex: 0 0 42px; border: 0; background: transparent; color: inherit;
    font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; transition:all .3s;
    display: flex; align-items: center; justify-content: center;
}
.shop-card-step-btn:hover { background: rgba(0, 0, 0, .16); }
.shop-card-step-btn:active { background: rgba(0, 0, 0, .30); }
.shop-card-step-btn:disabled { opacity: .4; cursor: default; background: transparent; }
.shop-card-step-val {
    flex: 1; min-width: 0; width: 100%; align-self: stretch; text-align: center;
    outline: 0; cursor: text; box-shadow: none;
    appearance: none; -webkit-appearance: none; -moz-appearance: textfield;
    background: color-mix(in srgb, var(--shop-primary) 14%, var(--shop-bg));
    color: var(--shop-ink);
    border: 0;
    border-left: 1px solid color-mix(in srgb, var(--shop-primary) 30%, var(--shop-bg));
    border-right: 1px solid color-mix(in srgb, var(--shop-primary) 30%, var(--shop-bg));
    font-family: inherit; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.shop-card-step-val:focus, .shop-card-step-val:focus-visible { outline: none; box-shadow: none; }

.shop-card:has(.shop-old) .shop-card-img::after {
    content: "Акція"; position: absolute; top: 10px; left: 10px;
    background: var(--shop-danger); color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: .3px; padding: 4px 9px; border-radius: 999px; pointer-events: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--shop-danger) 45%, transparent);
}
.shop-card-prices:has(.shop-old) .shop-price,
.shop-product-prices:has(.shop-old) .shop-price { color: var(--shop-danger); }

.psk-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 34px; }
.psk-pagination a {
    min-width: 40px; height: 40px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--shop-line); border-radius: 10px; color: var(--shop-ink); text-decoration: none; font-weight: 600; transition:all .3s;
}
.psk-pagination a.active, .psk-pagination a:hover { background: var(--shop-primary); color: var(--shop-on-primary); border-color: var(--shop-primary); }
.psk-pagination a.active { pointer-events: none; }
.psk-pagination .pg-arrow { font-size: 20px; line-height: 1; }
.psk-pagination .pg-gap { min-width: 24px; text-align: center; color: var(--shop-muted); user-select: none; }

.shop-product-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.shop-product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.shop-product-media { border: 1px solid var(--shop-line); border-radius: var(--shop-radius); overflow: hidden; background: var(--shop-line); aspect-ratio: 1 / 1; position: sticky; top: 88px; align-self: start; }
.shop-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-noimg-lg { font-size: 64px; }
.shop-product-media:has(.shop-gallery) { border: 0; border-radius: 0; overflow: visible; background: transparent; aspect-ratio: auto; }
.shop-gallery { display: flex; flex-direction: column; gap: 10px; }
.shop-gallery-main { position: relative; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); overflow: hidden; background: var(--shop-line); aspect-ratio: 1 / 1; cursor: zoom-in; }
.shop-gallery-zoom { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(20, 24, 40, .55); color: #fff; font-size: 15px; cursor: zoom-in; display: flex; align-items: center; justify-content: center; opacity: 0; transition:all .3s; }
.shop-gallery-main:hover .shop-gallery-zoom { opacity: 1; }
.shop-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-gallery-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid var(--shop-line); border-radius: 10px; overflow: hidden; background: var(--shop-line); cursor: pointer; transition:all .3s; }
.shop-gallery-thumb:hover, .shop-gallery-thumb.is-active { border-color: var(--shop-accent); }

.shop-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 12, 18, .93); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition:all .3s; }
.shop-lb.is-open { opacity: 1; visibility: visible; }
.shop-lb-img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: 0 12px 48px rgba(0, 0, 0, .55); user-select: none; -webkit-user-drag: none; }
.shop-lb-close, .shop-lb-nav { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition:all .3s; }
.shop-lb-close:hover, .shop-lb-nav:hover { background: rgba(255, 255, 255, .26); }
.shop-lb-close { top: 18px; right: 22px; }
.shop-lb-nav { top: 50%; transform: translateY(-50%); }
.shop-lb-prev { left: 20px; }
.shop-lb-next { right: 20px; }
.shop-lb-nav[hidden] { display: none; }
.shop-lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0, 0, 0, .42); padding: 5px 14px; border-radius: 999px; }
@media (max-width: 699px) { .shop-lb-nav { width: 42px; height: 42px; } .shop-lb-prev { left: 8px; } .shop-lb-next { right: 8px; } }
.shop-product-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 10px; color: var(--shop-ink); }
.shop-product-sku { color: var(--shop-muted); font-size: 13px; margin-bottom: 14px; }
.shop-product-prices { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.shop-product-prices .shop-price { font-size: 30px; }
.shop-product-prices .shop-old { font-size: 18px; }
.shop-instock { color: var(--shop-accent); font-weight: 600; font-size: 14px; margin-bottom: 18px; display: flex; align-items: center; gap: 6px; }
.shop-out-lg { font-size: 16px; margin-bottom: 18px; }
.shop-product-buy { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.shop-add-lg { width: auto; padding: 13px 26px; font-size: 16px; }
.shop-product-info { min-width: 0; }
.shop-product-desc { color: var(--shop-ink); line-height: 1.75; border-top: 1px solid var(--shop-line); padding-top: 24px; font-size: 15px; overflow-wrap: break-word; word-break: break-word; }
.shop-product-desc > *:first-child { margin-top: 0; }
.shop-product-desc > li { margin-left: 20px; }
.shop-product-desc p { margin: 0 0 14px; }
.shop-product-desc ul, .shop-product-desc ol { margin: 0 0 16px; padding-left: 22px; }
.shop-product-desc li { margin-bottom: 8px; padding-left: 4px; }
.shop-product-desc li::marker { color: var(--shop-primary); font-weight: 700; }
.shop-product-desc h2 { font-size: 20px; font-weight: 800; margin: 28px 0 12px; }
.shop-product-desc h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.shop-product-desc h4 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; }
.shop-product-desc strong, .shop-product-desc b { color: var(--shop-ink); font-weight: 700; }
.shop-product-desc a { color: var(--shop-primary); text-decoration: underline; }
.shop-product-desc img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px 0; }
.shop-product-desc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.shop-product-desc th, .shop-product-desc td { text-align: left; padding: 9px 12px; border: 1px solid var(--shop-line); }
.shop-product-desc thead th, .shop-product-desc tr:nth-child(even) td { background: var(--shop-bg); }
.shop-attrs td:first-child { color: var(--shop-muted); width: 42%; }

.shop-swatches { margin: 0 0 22px; }
.shop-swatch-label { font-size: 13px; font-weight: 600; color: var(--shop-muted); margin-bottom: 9px; }
.shop-swatch-row { display: flex; flex-wrap: wrap; gap: 9px; }
.shop-swatch { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--shop-line); background: var(--shop-bg); color: var(--shop-ink); font-size: 13px; font-weight: 600; cursor: pointer; transition:all .3s; }
.shop-swatch:has(.shop-swatch-dot) { padding-left: 9px; }
.shop-swatch:hover { border-color: var(--shop-primary); }
.shop-swatch.is-active { border-color: var(--shop-primary); box-shadow: 0 0 0 1px var(--shop-primary) inset; }
.shop-swatch-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset; }
.shop-swatch-name { white-space: nowrap; }

.shop-specs { border-top: 1px solid var(--shop-line); margin-top: 24px; padding-top: 22px; }
.shop-specs-h { font-size: 16px; font-weight: 800; color: var(--shop-ink); margin-bottom: 14px; }
.shop-specs-list { display: flex; flex-direction: column; }
.shop-spec { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--shop-line); font-size: 14px; }
.shop-spec:last-child { border-bottom: 0; }
.shop-spec-k { color: var(--shop-muted); flex: none; width: 42%; }
.shop-spec-v { color: var(--shop-ink); font-weight: 600; }

.shop-qty { display: inline-flex; align-items: stretch; min-height: 44px; border: 1px solid var(--shop-line); border-radius: 10px; overflow: hidden; }
.shop-qty-btn { width: 40px; height: 100%; border: 0; background: var(--shop-line); color: var(--shop-ink); font-size: 20px; cursor: pointer; line-height: 1; outline: none; }
.shop-qty-btn:hover { background: var(--shop-line); }
.shop-qty-btn:focus { outline: none; }
.shop-qty-val { width: 46px; height: 100%; border: 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--shop-ink); background: var(--shop-bg); outline: none; -moz-appearance: textfield; }
.shop-qty-val:focus { outline: none; }
.shop-qty-val::-webkit-outer-spin-button, .shop-qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-qty-sm { min-height: 32px; }
.shop-qty-sm .shop-qty-btn { width: 30px; height: 32px; font-size: 16px; }
.shop-qty-sm .shop-qty-val { width: 34px; height: 32px; font-size: 14px; }
@media (max-width: 600px) {
  .shop-product-buy { flex-wrap: nowrap; gap: 10px; }
  .shop-product-buy .shop-qty { flex: none; }
  .shop-product-buy .shop-add { flex: 1 1 auto; width: auto; }
}

.shop-cart-drawer { position: fixed; inset: 0; z-index: 9999; }
.shop-cart-overlay { position: absolute; inset: 0; background: rgba(15, 18, 28, .45); animation: shopFade .2s ease; }
.shop-cart-panel {
    position: absolute; top: 0; right: 0; height: 100%; width: 420px; max-width: 100%;
    background: var(--shop-bg); display: flex; flex-direction: column;
    box-shadow: -8px 0 40px rgba(15, 18, 28, .2); animation: shopSlide .24s cubic-bezier(.22,.61,.36,1);
}
@keyframes shopFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shopSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes shopFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes shopSlideOut { from { transform: translateX(0); } to { transform: translateX(100%); } }
.shop-cart-drawer.is-closing .shop-cart-panel { animation: shopSlideOut .24s cubic-bezier(.22,.61,.36,1) forwards; }
.shop-cart-drawer.is-closing .shop-cart-overlay { animation: shopFadeOut .2s ease forwards; }

.shop-cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--shop-line); }
.shop-cart-header h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--shop-ink); }
.shop-cart-x { border: 0; background: none; font-size: 18px; color: var(--shop-muted); cursor: pointer; padding: 6px; line-height: 1; }
.shop-cart-x:hover { color: var(--shop-ink); }

.shop-cart-scroll { flex: 1; overflow-y: auto; padding: 12px 22px; }
.shop-cart-empty { text-align: center; color: var(--shop-muted); padding: 56px 0; }

.shop-cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--shop-line); align-items: start; }
.shop-ci-img { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--shop-line); }
.shop-ci-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-ci-img .shop-noimg { font-size: 20px; }
.shop-ci-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.shop-ci-title { color: var(--shop-ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.3; }
.shop-ci-title:hover { color: var(--shop-accent); }
.shop-ci-supplier { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: var(--shop-accent); font-size: 11px; font-weight: 600; }
.shop-ci-price { color: var(--shop-muted); font-size: 13px; }
.shop-ci-controls { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.shop-ci-remove { border: 0; background: none; color: var(--shop-muted); cursor: pointer; font-size: 14px; padding: 4px; }
.shop-ci-remove:hover { color: var(--shop-danger); }
.shop-ci-line { font-weight: 800; color: var(--shop-ink); white-space: nowrap; font-size: 15px; }

.shop-cart-foot { padding: 18px 22px; border-top: 1px solid var(--shop-line); display: flex; flex-direction: column; gap: 12px; }
.shop-cart-total { display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: var(--shop-muted); }
.shop-cart-total strong { font-size: 22px; color: var(--shop-ink); }
.shop-cart-foot .btn { width: 100%; justify-content: center; }
.shop-cart-next[disabled] { opacity: .5; cursor: not-allowed; }

.shop-checkout-form { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 4px; }
.shop-field { display: flex; flex-direction: column; gap: 6px; }
.shop-field span { font-size: 13px; font-weight: 600; color: var(--shop-ink); }
.shop-field input, .shop-field textarea {
    border: 1px solid var(--shop-line); border-radius: 10px; padding: 11px 13px; font-size: 15px;
    font-family: inherit; color: var(--shop-ink); background: transparent; width: 100%; box-sizing: border-box;
}
.shop-field input:focus, .shop-field textarea:focus { outline: none; border-color: var(--shop-primary); }
.shop-field textarea { resize: vertical; min-height: 56px; }
textarea { resize: vertical; max-height: 70vh; }
.shop-order-msg { color: var(--shop-danger); font-size: 13px; min-height: 16px; }
.shop-cart-back { border: 0; background: none; font-size: 16px; color: var(--shop-muted); cursor: pointer; padding: 6px; line-height: 1; margin-right: 4px; }
.shop-cart-back:hover { color: var(--shop-ink); }
.shop-cart-header h2 { flex: 1; }
.shop-delivery { display: flex; flex-direction: column; gap: 9px; padding: 2px 0; }
.shop-field-title { font-size: 13px; font-weight: 600; color: var(--shop-ink); }
.shop-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--shop-ink); cursor: pointer; }
.shop-radio input { accent-color: var(--shop-primary); width: 16px; height: 16px; }
.shop-deliv-input { border: 1px solid var(--shop-line); border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: inherit; color: var(--shop-ink); background: transparent; width: 100%; box-sizing: border-box; margin-top: 2px; }
.shop-deliv-input:focus { outline: none; border-color: var(--shop-primary); }
.shop-np { display: flex; flex-direction: column; gap: 9px; }
.shop-np-field { position: relative; }
.shop-np-sug { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: 10px; box-shadow: var(--shop-shadow); max-height: 240px; overflow-y: auto; }
.shop-np-opt { padding: 9px 12px; font-size: 14px; color: var(--shop-ink); cursor: pointer; border-bottom: 1px solid var(--shop-line); }
.shop-np-opt:last-child { border-bottom: 0; }
.shop-np-opt:hover { background: var(--shop-line); }
.shop-deliv-input[disabled] { opacity: .55; cursor: not-allowed; }
.shop-np-map { height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--shop-line); margin-top: 2px; z-index: 1; }
.shop-np-map .leaflet-container { font-family: inherit; background: #e9edf2; }
.shop-np-map .leaflet-control-attribution { display: none; }
.shop-np-pin { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #fff; color: #da291c; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.15); }
.shop-np-pin.is-locker { color: #1a1a1a; }
.shop-np-pin .shop-np-logo { width: 100%; height: 100%; padding: 4px; box-sizing: border-box; display: block; }
.shop-np-pin.is-active { box-shadow: 0 0 0 3px #1a73e8, 0 3px 8px rgba(0,0,0,.5); transform: scale(1.18); z-index: 1000 !important; }
.shop-np-legend { background: #fff; border-radius: 8px; padding: 6px 9px; font-size: 11px; color: #333; box-shadow: 0 1px 5px rgba(0,0,0,.22); display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.shop-np-legend .shop-np-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #da291c; vertical-align: -1px; margin-right: 3px; }
.shop-np-legend .shop-np-sw.is-locker { background: #1a1a1a; }
.shop-np-price { font-size: 13px; color: var(--shop-ink); background: var(--shop-line); border-radius: 10px; padding: 9px 12px; line-height: 1.45; }
.shop-np-price b { font-weight: 700; }
.shop-np-price i { margin-right: 5px; }
.shop-np-price .shop-np-price-note { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.shop-np-price-warn { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--shop-danger); }
.shop-payment { display: flex; flex-direction: column; gap: 9px; }
.shop-requisites { background: var(--shop-line); border: 1px solid var(--shop-line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--shop-ink); white-space: pre-wrap; }

.shop-order-done { text-align: center; padding: 38px 16px; }
.shop-order-done i { font-size: 52px; color: var(--shop-accent); }
.shop-order-done p { margin: 16px 0 8px; color: var(--shop-ink); font-size: 16px; }
.shop-order-num { font-weight: 800; color: var(--shop-ink); font-size: 18px; }

body.shop-cart-open { overflow: hidden; }
html:has(body.shop-cart-open) { overflow: hidden; }

.shop-my-orders { display: flex; flex-direction: column; gap: 14px; }
.shop-mo-empty { color: var(--shop-muted); padding: 24px 0; text-align: center; }
.shop-mo-card { border: 1px solid var(--shop-line); border-radius: 12px; padding: 14px 16px; background: var(--shop-bg); }
.shop-mo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.shop-mo-no { font-weight: 700; color: var(--shop-ink); }
.shop-mo-date { color: var(--shop-muted); font-size: 13px; }
.shop-mo-items { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); }
.shop-mo-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--shop-ink); }
.shop-mo-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.shop-mo-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef2f7; color: var(--shop-ink); }
.shop-mo-new { background: #dbeafe; color: #1e40af; }
.shop-mo-processing { background: #fef3c7; color: #92400e; }
.shop-mo-done { background: #dcfce7; color: #166534; }
.shop-mo-cancelled { background: #fee2e2; color: #991b1b; }
.shop-mo-pay, .shop-mo-deliv { font-size: 13px; color: var(--shop-muted); }
.shop-mo-total { margin-left: auto; font-weight: 800; color: var(--shop-ink); }

@media (max-width: 720px) {
    .shop-product-grid { grid-template-columns: 1fr; gap: 22px; }
    .shop-product-media { position: static; }
    .shop-title { font-size: 24px; }
    .shop-cart-panel { width: 100%; }
}

.shop-toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.shop-toast { background: #232a35; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; line-height: 1.35; box-shadow: 0 6px 20px rgba(0,0,0,.3); animation: shop-toast-in .25s ease; max-width: 90vw; text-align: center; }
.shop-toast.is-error { background: #e5484d; }
.shop-toast.is-out { opacity: 0; transform: translateY(8px); transition:all .3s; }
@keyframes shop-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.shop-sort { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.shop-sort-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-height: var(--shop-ctl-h, 42px); box-sizing: border-box;
    padding: 0 16px; border-radius: 999px; font-size: 13px; line-height: 1; white-space: nowrap;
    color: var(--shop-ink); text-decoration: none; border: 1px solid var(--shop-line); background: var(--shop-bg);
    transition:all .3s;
}
.shop-sort-link:hover { color: var(--shop-primary); border-color: var(--shop-primary); }
.shop-sort-link.is-active { color: var(--shop-on-primary); background: var(--shop-primary); border-color: var(--shop-primary); }
.shop-sort-dd { position: relative; }
.shop-sort-toggle {
    display: inline-flex; align-items: center; gap: 9px;
    min-height: var(--shop-ctl-h, 42px); box-sizing: border-box;
    padding: 0 16px; border-radius: 999px; border: 1px solid var(--shop-line);
    background: var(--shop-bg); color: var(--shop-ink); font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer; white-space: nowrap; transition:all .3s;
}
.shop-sort-toggle:hover { border-color: var(--shop-primary); }
.shop-sort-chev { font-size: 11px; color: var(--shop-muted); transition:all .3s; }
.shop-sort-dd.is-open .shop-sort-toggle { border-color: var(--shop-primary); }
.shop-sort-dd.is-open .shop-sort-chev { transform: rotate(180deg); }
.shop-sort-panel {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 210px;
    background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: 14px;
    box-shadow: var(--shop-shadow); padding: 7px; display: none; flex-direction: column; gap: 2px;
}
.shop-sort-dd.is-open .shop-sort-panel { display: flex; }
.shop-sort-opt {
    display: flex; align-items: center; padding: 6px 14px; border-radius: 9px;
    font-size: 13.5px; color: var(--shop-ink); text-decoration: none; white-space: nowrap;
    transition:all .3s;
}
.shop-sort-opt:hover { background: color-mix(in srgb, var(--shop-primary) 12%, transparent); color: var(--shop-primary); }
.shop-sort-opt.is-active { background: var(--shop-primary); color: var(--shop-on-primary); font-weight: 600; }

.shop-pricefilter-form { display: inline-flex; align-items: center; margin: 0; }
.shop-pricefilter { display: flex; flex-direction: column; gap: 9px; min-width: 220px; }
.shop-price-slider { position: relative; height: 24px; margin-top: 26px; }
.shop-price-bubble { position: absolute; bottom: calc(100% + 7px); transform: translateX(-50%); background: var(--shop-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 3; }
.shop-price-bubble::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--shop-primary); }
.shop-price-rail { position: absolute; top: 50%; left: 9px; right: 9px; height: 4px; transform: translateY(-50%); background: var(--shop-line); border-radius: 4px; }
.shop-price-fill { position: absolute; top: 50%; height: 4px; transform: translateY(-50%); background: var(--shop-primary); border-radius: 4px; }
.shop-price-range {
    position: absolute; top: 0; left: 0; width: 100%; height: 24px; margin: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.shop-price-range::-webkit-slider-runnable-track { background: none; border: none; height: 24px; }
.shop-price-range::-moz-range-track { background: none; border: none; height: 24px; }
.shop-price-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer;
    width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
    background: var(--shop-bg); border: 2px solid var(--shop-primary); box-shadow: 0 1px 4px rgba(20,24,40,.25);
}
.shop-price-range::-moz-range-thumb {
    pointer-events: auto; cursor: pointer; width: 16px; height: 16px; border-radius: 50%;
    background: var(--shop-bg); border: 2px solid var(--shop-primary); box-shadow: 0 1px 4px rgba(20,24,40,.25);
    transition:all .3s;
}
.shop-price-range::-webkit-slider-thumb:hover, .shop-price-range:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 5px color-mix(in srgb, var(--shop-primary) 18%, transparent); }
.shop-price-range::-moz-range-thumb:hover { transform: scale(1.18); box-shadow: 0 0 0 5px color-mix(in srgb, var(--shop-primary) 18%, transparent); }
.shop-price-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--shop-primary) 28%, transparent); }
.shop-price-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--shop-primary) 28%, transparent); }
.shop-price-fields { display: flex; align-items: center; gap: 8px; }
.shop-price-input {
    width: 82px; padding: 7px 9px; border: 1px solid var(--shop-line); border-radius: 8px;
    background: var(--shop-bg); color: var(--shop-ink); font: inherit; font-size: 13px; text-align: center;
    -moz-appearance: textfield;
}
.shop-price-input::-webkit-outer-spin-button, .shop-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-price-input:focus { outline: none; border-color: var(--shop-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-primary) 16%, transparent); }
.shop-price-dash, .shop-price-cur { color: var(--shop-muted); font-size: 13px; }

@media (max-width: 720px) {
    .shop-sort { width: 100%; }
    .shop-pricefilter-form { width: 100%; }
    .shop-pricefilter { flex: 1 1 100%; min-width: 0; width: 100%; }
}

.shop-facets { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-start; padding: 16px 18px; background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: var(--shop-radius); margin-bottom: 20px; }
.shop-facet { min-width: 156px; flex: 0 1 auto; }
.shop-facet-title { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--shop-muted); margin-bottom: 7px; }
.shop-facet-opts { display: flex; flex-direction: column; gap: 1px; max-height: 196px; overflow-y: auto; margin: 0 -6px; padding: 0 2px; scrollbar-width: thin; scrollbar-color: var(--shop-line) transparent; }
.shop-facet-opts::-webkit-scrollbar { width: 6px; }
.shop-facet-opts::-webkit-scrollbar-thumb { background: var(--shop-line); border-radius: 6px; }
.shop-facet-opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--shop-ink); cursor: pointer; padding: 5px 6px; border-radius: 8px; transition:all .3s; }
.shop-facet-opt:hover { background: var(--shop-line); }
.shop-facet-opt:has(input:checked) { background: color-mix(in srgb, var(--shop-primary) 12%, transparent); }
.shop-facet-opt input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--shop-primary); cursor: pointer; }
.shop-facet-val { flex: 1; line-height: 1.3; }
.shop-facet-opt:has(input:checked) .shop-facet-val { font-weight: 600; }
.shop-facet-cnt { color: var(--shop-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.shop-facets-apply { display: none; align-self: flex-end; margin-left: auto; padding: 11px 18px; border: none; border-radius: 10px; background: var(--shop-primary); color: var(--shop-on-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

.shop-facets-wrap { display: block; }
.shop-facets-mtoggle, .shop-facets-mclose, .shop-facets-overlay { display: none; }
@media (max-width: 720px) {
    .shop-facets-mtoggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 18px; margin-bottom: 18px; border: 1px solid var(--shop-line); border-radius: 10px; background: var(--shop-bg); color: var(--shop-ink); font: inherit; font-weight: 600; cursor: pointer; }
    .shop-facets-overlay { position: fixed; inset: 0; z-index: 998; background: rgba(15, 18, 28, .45); opacity: 0; visibility: hidden; transition:all .3s; }
    .shop-facets { position: fixed; top: 0; right: 0; bottom: 0; z-index: 999; width: min(86vw, 360px); margin: 0; border: none; border-radius: 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; overflow-y: auto; transform: translateX(101%); transition:all .3s; box-shadow: -8px 0 40px rgba(15, 18, 28, .25); }
    .shop-facets-mclose { display: inline-flex; align-self: flex-end; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--shop-line); color: var(--shop-ink); font-size: 15px; cursor: pointer; }
    .shop-facet { min-width: 0; width: 100%; }
    .shop-facet-opts { max-height: none; }
    .shop-facets-apply { display: block; width: 100%; margin: 8px 0 0; }
    .shop-facets-wrap.is-open .shop-facets { transform: none; }
    .shop-facets-wrap.is-open .shop-facets-overlay { opacity: 1; visibility: visible; }
}
@media (max-width: 560px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .shop-card-body { padding: 11px; gap: 8px; }
    .shop-card-title { font-size: 14px; }
    .shop-price { font-size: 17px; }
}

.shop-reviews { max-width: 820px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--shop-line); }
.shop-reviews-title { font-size: 22px; font-weight: 700; color: var(--shop-ink); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-reviews-avg { font-size: 14px; font-weight: 600; color: var(--shop-muted); display: inline-flex; align-items: center; gap: 6px; }
.shop-reviews-avg .fa-star, .shop-review-stars .fa-star { color: #f5a623; }
.shop-reviews-empty { color: var(--shop-muted); font-size: 15px; }
.shop-reviews-list { display: flex; flex-direction: column; gap: 14px; }
.shop-review { padding: 14px 16px; background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: var(--shop-radius); }
.shop-review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.shop-review-author { font-weight: 600; color: var(--shop-ink); }
.shop-review-stars { font-size: 12px; }
.shop-review-date { color: var(--shop-muted); font-size: 12px; margin-left: auto; }
.shop-review-body { color: var(--shop-ink); font-size: 14px; line-height: 1.55; }
.shop-review-form { margin-top: 24px; padding: 18px; background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: var(--shop-radius); display: flex; flex-direction: column; gap: 12px; }
.shop-review-form-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--shop-ink); }
.shop-review-pick { display: flex; gap: 4px; }
.shop-star-btn { background: none; border: none; padding: 2px; cursor: pointer; font-size: 22px; color: var(--shop-line); line-height: 1; transition:all .3s; }
.shop-star-btn.is-on { color: #f5a623; }
.shop-star-btn:hover { transform: scale(1.15); }
.shop-review-name, .shop-review-text { width: 100%; padding: 10px 12px; border: 1px solid var(--shop-line); border-radius: 8px; font: inherit; font-size: 14px; color: var(--shop-ink); background: var(--shop-bg); outline: none; box-sizing: border-box; }
.shop-review-name:focus, .shop-review-text:focus { border-color: var(--shop-primary); }
.shop-review-text { resize: vertical; min-height: 70px; }
.shop-review-submit { align-self: flex-start; }
.shop-review-msg { font-size: 13.5px; }
.shop-review-msg.is-ok { color: var(--shop-accent); }
.shop-review-msg.is-err { color: var(--shop-danger); }

.shop-wl-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: none; border-radius: 50%; background: color-mix(in srgb, var(--shop-bg) 85%, transparent); color: var(--shop-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 2px 6px rgba(20, 24, 40, .15); transition:all .3s; z-index: 2; }
.shop-wl-btn:hover { transform: scale(1.12); color: var(--shop-ink); }
.shop-wl-btn.is-on { color: #e5484d; }

.shop-wl-grid { margin-top: 8px; }
.shop-wl-empty { text-align: center; padding: 56px 20px; color: var(--shop-muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.shop-wl-empty > i { font-size: 44px; opacity: .5; }
.shop-wl-empty p { margin: 0; line-height: 1.55; }
.shop-wl-loading, .shop-wl-err { text-align: center; padding: 50px 20px; color: var(--shop-muted); }

.shop-cmp-btn { position: absolute; top: 50px; right: 10px; width: 34px; height: 34px; border: none; border-radius: 50%; background: color-mix(in srgb, var(--shop-bg) 85%, transparent); color: var(--shop-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 2px 6px rgba(20, 24, 40, .15); transition:all .3s; z-index: 2; }
.shop-cmp-btn:hover { transform: scale(1.12); color: var(--shop-ink); }
.shop-cmp-btn.is-on { color: var(--shop-primary); }
.shop-cmp-btn.is-shake { animation: cmpShake .4s; }
@keyframes cmpShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.cmp-wrap { overflow-x: auto; }
.cmp-cat-title { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border, rgba(0,0,0,.1)); }
.cmp-cat-title:first-of-type { margin-top: 0; }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--shop-line); text-align: left; vertical-align: top; min-width: 150px; }
.cmp-k { font-weight: 600; color: var(--shop-muted); font-size: 13px; white-space: nowrap; background: color-mix(in srgb, var(--shop-muted) 6%, transparent); }
.cmp-prod { position: relative; display: flex; flex-direction: column; gap: 10px; }
.cmp-prod-img { display: block; aspect-ratio: 1; border-radius: var(--shop-radius, 8px); overflow: hidden; background: color-mix(in srgb, var(--shop-muted) 8%, transparent); }
.cmp-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-prod-title { font-weight: 600; color: var(--shop-ink); text-decoration: none; font-size: 14px; line-height: 1.3; }
.cmp-prod-title:hover { color: var(--shop-primary); }
.cmp-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: none; border-radius: 50%; background: color-mix(in srgb, var(--shop-bg) 80%, transparent); color: var(--shop-muted); cursor: pointer; z-index: 2; }
.cmp-remove:hover { color: var(--shop-ink); }
.cmp-yes { color: #16a34a; font-weight: 600; font-size: 13px; }
.cmp-no { color: var(--shop-muted); font-size: 13px; }

.shop-recent { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--shop-line); }
.shop-recent:empty { display: none; }
.shop-recent-inner { max-width: 1280px; margin: 0 auto; }
.shop-recent-title { font-size: clamp(20px,2.4vw,28px); margin: 0 0 20px; }
.shop-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }

.shop-mo-wrap { width: 100%; }
.shop-mo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop-mo-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--shop-muted); padding: 0 12px 10px; border-bottom: 1px solid var(--shop-line); white-space: nowrap; }
.shop-mo-table td { padding: 14px 12px; border-bottom: 1px solid var(--shop-line); vertical-align: middle; color: var(--shop-ink); }
.shop-mo-table tr:last-child td { border-bottom: none; }
.shop-mo-table .shop-mo-no { font-weight: 700; color: var(--shop-ink); }
.shop-mo-prod { font-size: 13px; color: var(--shop-muted); margin-top: 3px; }
.shop-mo-table .shop-mo-date, .shop-mo-table .shop-mo-deliv { color: var(--shop-muted); font-size: 13px; }
.shop-mo-r, .shop-mo-table .shop-mo-total { text-align: right; }
.shop-mo-table .shop-mo-total { font-weight: 800; color: var(--shop-ink); white-space: nowrap; }
.shop-mo-paystatus { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.shop-mo-ps-paid { background: #dcfce7; color: #166534; }
.shop-mo-ps-unpaid { background: color-mix(in srgb, var(--shop-muted) 16%, transparent); color: var(--shop-muted); }
.shop-mo-ps-refunded { background: #fef3c7; color: #92400e; }
@media (max-width: 720px) {
  .shop-mo-table, .shop-mo-table tbody, .shop-mo-table tr, .shop-mo-table td { display: block; width: 100%; }
  .shop-mo-table thead { display: none; }
  .shop-mo-table tr { border: 1px solid var(--shop-line); border-radius: 12px; padding: 4px 14px; margin-bottom: 12px; }
  .shop-mo-table td { border: none; padding: 8px 0; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; text-align: right; }
  .shop-mo-table td:not(:last-child) { border-bottom: 1px solid var(--shop-line); }
  .shop-mo-table td::before { content: attr(data-l); font-size: 12px; color: var(--shop-muted); font-weight: 600; text-align: left; flex-shrink: 0; }

  .shop-mo-table td:first-child { display: block; text-align: left; padding-bottom: 10px; }
  .shop-mo-table td:first-child::before { display: none; }
  .shop-mo-table td:first-child .shop-mo-no { font-size: 15px; word-break: break-word; }
  .shop-mo-table .shop-mo-prod { text-align: left; }
}

.co-page { max-width: 1080px; margin: 0 auto; padding: clamp(24px,4vw,48px) 16px; }
.co-h1 { font-size: clamp(24px,4vw,34px); margin: 0 0 24px; color: var(--shop-ink); }
.co-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.co-form { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; align-self: start; }
.co-sect { background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: var(--shop-radius, 12px); padding: 18px 20px; }
.co-sect-t { font-size: 15px; font-weight: 700; color: var(--shop-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.co-sect-t i { color: var(--shop-primary); }
.co-input { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--shop-line); border-radius: 9px; font-size: 15px; color: var(--shop-ink); background: var(--shop-bg2, var(--bg-card, #fff)); outline: none; margin-bottom: 10px; font-family: inherit; }
.co-input:focus { border-color: var(--shop-primary); }
.co-input:last-child { margin-bottom: 0; }
.co-textarea { min-height: 72px; resize: vertical; }
.co-radio { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--shop-line); border-radius: 10px; cursor: pointer; margin-bottom: 8px; transition:all .3s; }
.co-radio:hover { border-color: var(--shop-primary); }
.co-radio:has(input:checked) { border-color: var(--shop-primary); background: color-mix(in srgb, var(--shop-primary) 8%, transparent); }
.co-radio input { accent-color: var(--shop-primary); flex: none; }
.co-radio span { font-size: 14px; color: var(--shop-ink); }
.co-radio[hidden] { display: none; }
.co-addr { margin-top: 6px; }
.co-np { margin-top: 8px; }
.co-np .co-input { margin-bottom: 0; }
.co-np-addr { margin-top: 8px; }
.co-msg { color: var(--shop-danger); font-size: 14px; min-height: 0; }
.co-msg:empty { display: none; }
.co-msg:not(:empty) {
    display: flex; align-items: center; gap: 7px;
    color: var(--shop-danger); font-size: 13px; font-weight: 600; line-height: 1.3; margin: 0 0 10px;
}
.co-msg:not(:empty)::before {
    content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--shop-danger);
}
.co-submit { width: 100%; height: 48px; font-size: 15px; }
.co-aside { background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: var(--shop-radius, 12px); padding: 20px; position: sticky; top: 88px; }
.co-sum-t { font-size: 15px; font-weight: 700; color: var(--shop-ink); margin-bottom: 14px; }
.co-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--shop-ink); padding: 7px 0; border-bottom: 1px solid var(--shop-line); }
.co-sum-name { color: var(--shop-muted); }
.co-sum-total { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 800; color: var(--shop-ink); padding-top: 14px; margin-top: 6px; }
.co-back { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--shop-primary); text-decoration: none; }
.co-done { text-align: center; max-width: 460px; margin: 40px auto; padding: 32px; background: var(--shop-bg); border: 1px solid var(--shop-line); border-radius: var(--shop-radius, 12px); }
.co-done-ic { font-size: 52px; color: #16a34a; }
.co-done-h { margin: 14px 0 6px; color: var(--shop-ink); }
.co-done-num { font-weight: 700; color: var(--shop-ink); }
.co-done-sub { color: var(--shop-muted); font-size: 14px; margin: 6px 0 20px; }
@media (max-width: 820px) { .co-grid { grid-template-columns: 1fr; } .co-aside { position: static; order: -1; } .co-form { position: static; } }

.shop-cart-page-link { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--shop-muted); text-decoration: none; }
.shop-cart-page-link:hover { color: var(--shop-primary); }
.shop-cart-foot:has([data-shop-submit]:not([hidden])) .shop-cart-page-link { display: none; }

.shop-field input.is-invalid,.shop-field textarea.is-invalid,.co-field input.is-invalid,input.is-invalid,select.is-invalid,[data-shop-np-city].is-invalid,[data-shop-np-wh].is-invalid{border-color:var(--shop-danger);box-shadow:0 0 0 2px color-mix(in srgb,var(--shop-danger) 22%,transparent)}

.shop-order-msg:empty{display:none}
.shop-order-msg:not(:empty){
    display: flex; align-items: center; gap: 7px;
    color: var(--shop-danger); font-size: 13px; font-weight: 600; line-height: 1.3; margin: 0 0 10px;
}
.shop-order-msg:not(:empty)::before{
    content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--shop-danger);
}

.shop-mo-link { background:none; border:0; padding:0; font:inherit; color:var(--shop-primary); font-weight:700; cursor:pointer; text-decoration:underline; }
.shop-mo-link:hover { opacity:.8; }
.shop-od-overlay { position:fixed; inset:0; z-index:9998; background:rgba(10,12,18,.55); display:flex; align-items:center; justify-content:center; padding:16px; }
.shop-od-modal { position:relative; width:100%; max-width:460px; max-height:86vh; overflow-y:auto; background:var(--shop-bg,#fff); color:var(--shop-ink,#111); border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.4); padding:22px; }
.shop-od-close { position:absolute; top:10px; right:12px; width:34px; height:34px; border:0; background:transparent; font-size:24px; line-height:1; color:var(--shop-ink,#111); cursor:pointer; border-radius:8px; }
.shop-od-close:hover { background:rgba(0,0,0,.07); }
.shop-od-h { font-size:18px; font-weight:800; margin:0 30px 14px 0; }
.shop-od-meta { display:flex; flex-direction:column; gap:7px; margin-bottom:14px; }
.shop-od-row { display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.shop-od-row span { color:var(--shop-ink-2,#6b7280); }
.shop-od-items { width:100%; border-collapse:collapse; margin-bottom:12px; }
.shop-od-items td { padding:7px 0; border-bottom:1px solid var(--shop-line,#eee); font-size:14px; }
.shop-od-items .shop-od-q { text-align:center; color:var(--shop-ink-2,#6b7280); width:48px; }
.shop-od-items .shop-od-s { text-align:right; white-space:nowrap; font-weight:600; }
.shop-od-total { display:flex; justify-content:space-between; font-size:16px; font-weight:800; padding-top:6px; }
.shop-od-link { color:var(--shop-primary); text-decoration:none; }
.shop-od-link:hover { text-decoration:underline; }
.shop-od-variant { margin-top:2px; font-size:12px; color:var(--shop-ink-2,#6b7280); }
.shop-od-pay { display:block; width:100%; margin-top:14px; padding:13px; border:0; border-radius:10px; background:var(--shop-primary); color:var(--shop-on-primary); font-size:15px; font-weight:700; cursor:pointer; transition:all .3s; }
.shop-od-pay:hover { opacity:.9; }
.shop-od-pay:disabled { opacity:.6; cursor:default; }
