/* rshop storefront (layout and base styles come from site:default) */
.s-store-search { display: flex; gap: .5rem; margin: 0 0 1.25rem; max-width: 36rem; }
.s-store-search input { flex: 1; }
.s-cart-count:not(:empty) { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 1em; background: var(--accent-color, #f2994a); color: #fff; font-size: .8em; text-align: center; }
.s-categories { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.s-products { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.s-product { display: flex; flex-direction: column; gap: .4rem; }
.s-product-image { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: .5rem; background: rgba(127,127,127,.08); }
.s-product-image img { width: 100%; height: 100%; object-fit: contain; }
.s-noimage { display: block; width: 100%; height: 100%; min-height: 160px; background: rgba(127,127,127,.08); border-radius: .5rem; }
.s-noimage.big { min-height: 320px; }
.s-product-name { font-weight: 600; }
.s-product-price, .s-price { font-size: 1.15em; font-weight: 700; }
.s-price { font-size: 1.6em; margin: 1rem 0; }
.s-compare { text-decoration: line-through; opacity: .55; font-weight: 400; margin-right: .5em; font-size: .85em; }
.s-out { color: #c0392b; font-size: .9em; }
.s-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.s-filter input[type=number] { width: 7rem; }
.s-paging { margin: 1rem 0 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.s-product-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 760px) { .s-product-page { grid-template-columns: 1fr; } }
.s-main-image { width: 100%; border-radius: .5rem; }
.s-thumbs { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.s-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: .3rem; }
.s-skus { display: flex; flex-direction: column; gap: .4rem; margin: 1rem 0; }
.s-sku.disabled { opacity: .5; }
.s-qty { width: 5rem; }
.s-msg { margin-left: .75rem; }
.s-features { margin-top: 1.5rem; border-collapse: collapse; }
.s-features td { padding: .3rem 1rem .3rem 0; border-bottom: 1px solid rgba(127,127,127,.2); }
.s-features td:first-child { opacity: .7; }
.s-cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.s-cart-table td { padding: .6rem .5rem; border-bottom: 1px solid rgba(127,127,127,.2); vertical-align: middle; }
.s-coupon { display: flex; gap: .5rem; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.s-totals { margin: 1rem 0; line-height: 1.8; }
.s-total { font-size: 1.3em; font-weight: 700; }
.s-error { color: #c0392b; }
.s-success { color: #1e8449; font-weight: 600; }
.s-checkout-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 760px) { .s-checkout-cols { grid-template-columns: 1fr; } }
.s-field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; max-width: 32rem; }
.s-checkout textarea { width: 100%; max-width: 32rem; }
.s-methods { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.s-method { display: block; padding: .6rem .8rem; border: 1px solid rgba(127,127,127,.3); border-radius: .5rem; cursor: pointer; }
.s-method.disabled { opacity: .5; cursor: default; }
.s-checkout-side { align-self: start; position: sticky; top: 1rem; padding: 1rem; border: 1px solid rgba(127,127,127,.25); border-radius: .75rem; }
.s-checkout-items { padding-left: 1.1rem; }
.s-consent { display: block; margin: 1rem 0; font-size: .9em; }
.s-payment { margin: 1.5rem 0; }
.nowrap { white-space: nowrap; }
/* credit line of the parent site theme is not used */
.appfooter .poweredby { display: none; }

/* 0.3.0: rating, reviews, filters, customer account */
.s-stars { color: #ccc; letter-spacing: 1px; white-space: nowrap; }
.s-stars i { font-style: normal; }
.s-stars i.on { color: #f5a623; }
.s-stars.small { font-size: .85em; }
.s-rating { margin: -.25em 0 .75em; display: flex; gap: .5em; align-items: center; }
.s-product-rating { margin: .2em 0; }
.s-reviews { margin-top: 2.5em; max-width: 760px; }
.s-review { padding: 1em 0; border-bottom: 1px solid rgba(127,127,127,.2); }
.s-review-head { display: flex; flex-wrap: wrap; gap: .6em; align-items: baseline; }
.s-review-head .s-date { color: #888; font-size: .9em; }
.s-verified { color: #2a9d4a; font-size: .85em; }
.s-review-title { font-weight: 600; margin: .4em 0 .2em; }
.s-review-reply { margin: .6em 0 0 1.2em; padding: .6em .9em; border-left: 3px solid #f5a623; background: rgba(127,127,127,.07); }
.s-review-form { display: grid; gap: .6em; margin-top: 1.5em; }
.s-review-form input[type=text], .s-review-form input[type=email], .s-review-form textarea { width: 100%; box-sizing: border-box; }
.s-review-form .button { justify-self: start; }
.s-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.s-rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; font-size: 1.6em; }
.s-rate-input input { display: none; }
.s-rate-input label { cursor: pointer; color: #ccc; padding: 0 .05em; }
.s-rate-input input:checked ~ label, .s-rate-input label:hover, .s-rate-input label:hover ~ label { color: #f5a623; }
.s-msg-ok { color: #2a9d4a; }
.s-msg-error { color: #d0312d; }
.s-filter-features { display: flex; flex-wrap: wrap; gap: 1em; margin-bottom: .8em; width: 100%; }
.s-filter-feature { border: 1px solid rgba(127,127,127,.25); border-radius: 6px; padding: .4em .8em .6em; margin: 0; min-width: 140px; max-height: 220px; overflow: auto; }
.s-filter-feature.active { border-color: #f5a623; }
.s-filter-feature legend { font-weight: 600; padding: 0 .3em; }
.s-filter-feature label { display: block; white-space: nowrap; }
.s-filter-reset { margin-left: .8em; }
.s-my-nav { list-style: none; padding: 0; display: flex; gap: 1.2em; margin: 0 0 1.2em; }
.s-my-nav .selected a { font-weight: 600; text-decoration: none; }
.s-my-orders { width: 100%; border-collapse: collapse; }
.s-my-orders th, .s-my-orders td { padding: .55em .5em; border-bottom: 1px solid rgba(127,127,127,.2); text-align: left; vertical-align: top; }
.s-my-orders .align-right { text-align: right; }
.s-paid { color: #2a9d4a; }
@media (max-width: 640px) { .s-my-orders thead { display: none; } .s-my-orders td { display: block; border: 0; padding: .15em 0; } .s-my-orders tr { display: block; padding: .6em 0; border-bottom: 1px solid rgba(127,127,127,.2); } }
/* dialogs: cart product, pickup */
.s-dialog { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.s-dialog-body { position: relative; background: #fff; color: #222; max-width: 520px; width: calc(100% - 32px); max-height: 90vh; overflow: auto; padding: 20px; border-radius: 8px; }
.s-dialog-close { position: absolute; top: 10px; right: 14px; text-decoration: none; color: #888; }
.s-dialog-image { max-width: 160px; float: right; margin: 0 0 8px 12px; }
.s-dialog label { display: block; margin: 6px 0; }
.s-dialog-price { font-size: 1.3em; font-weight: bold; margin: 12px 0; }
.s-pickup-list { list-style: none; padding: 0; }
.s-pickup-list li { padding: 6px 0; border-bottom: 1px solid #eee; }
.s-cart-edit { font-size: .85em; margin-left: 6px; }
.s-product-nav { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 16px; }
.s-product-nav .selected a { font-weight: bold; text-decoration: none; color: inherit; }
/* order page layout */
.s-order-page { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.s-order-section { margin-bottom: 32px; }
.s-order-section .s-section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.s-clear-cart { font-size: .9em; color: inherit; opacity: .6; }
.s-back-link { margin-top: 16px; }
.s-cart-empty { margin: 80px 0; text-align: center; }
@media (max-width: 900px) { .s-order-page { grid-template-columns: 1fr; } }

/* ===== Комплекты и рекомендации (ядро rshop даёт разметку data-rshop-kit-*, здесь только оформление) ===== */
.s-store {
  --kit-gap: 14px; --kit-radius: var(--radius); --kit-border: var(--k-line-strong, var(--c-line)); --kit-bg: var(--c-surface);
  --kit-text: var(--c-text); --kit-muted: var(--c-muted); --kit-accent: var(--c-accent); --kit-img-size: 72px; --kit-cols: 3;
  --kit-btn-bg: var(--c-accent); --kit-btn-fg: var(--c-on-accent); --kit-saving-color: var(--c-accent); --kit-state-invalid: #b3261e;
}
[data-rshop-kit-form] { margin: 28px 0; }
[data-rshop-kit] { border: 1px solid var(--kit-border); border-radius: var(--kit-radius); background: var(--kit-bg); color: var(--kit-text); padding: 20px 22px; transition: opacity .2s; }
.s-store [data-rshop-kit] > h2[data-rshop-kit-slot], .s-store [data-rshop-rec] > h2[data-rshop-rec-title] { font-family: inherit; font-size: 13px; line-height: 1.4; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; color: var(--c-heading); }
[data-rshop-kit-items] { display: flex; flex-direction: column; }
[data-rshop-kit-item] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--kit-gap); padding: 12px 0; border-top: 1px solid var(--c-line); }
[data-rshop-kit-item][hidden] { display: none; }
[data-rshop-kit-items] > :first-child > [data-rshop-kit-item]:first-child, [data-rshop-kit-items] > [data-rshop-kit-item]:first-child { border-top: 0; padding-top: 0; }
[data-rshop-kit-item] img { width: var(--kit-img-size); height: var(--kit-img-size); object-fit: contain; flex: none; background: #fff; }
[data-rshop-kit-name] { flex: 1 1 160px; min-width: 0; color: var(--c-heading); text-decoration: none; line-height: 1.35; }
[data-rshop-kit-name]:hover { text-decoration: underline; }
[data-rshop-kit-article] { color: var(--kit-muted); font-size: 12px; letter-spacing: .02em; }
[data-rshop-kit-price] { margin-left: auto; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-rshop-kit-compare] { color: var(--kit-muted); text-decoration: line-through; font-size: .9em; }
[data-rshop-kit-item] > span:not([data-rshop-kit-price]):not([data-rshop-kit-article]) { color: var(--kit-muted); font-size: 14px; }
/* флажок: label остаётся для экранного диктора, текст скрыт (название есть рядом) */
[data-rshop-kit-check] { width: 22px; height: 22px; margin: 11px; flex: none; accent-color: var(--kit-accent); cursor: pointer; }
[data-rshop-kit-check] + label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-rshop-kit-item]:has([data-rshop-kit-check]:not(:checked)) > :not([data-rshop-kit-check]):not(label) { opacity: .4; }
[data-rshop-kit-item] select[data-rshop-kit-sku] { min-height: 44px; max-width: 100%; }
[data-rshop-kit-qty] { width: 72px; min-height: 44px; text-align: center; }
[data-rshop-kit-options] { display: flex; flex-direction: column; gap: 6px; width: 100%; }
[data-rshop-kit-options] label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
[data-rshop-kit-options] input { width: 20px; height: 20px; accent-color: var(--kit-accent); flex: none; }
[data-rshop-kit-options] img { width: 48px; height: 48px; }
[data-rshop-kit-alts] { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
[data-rshop-kit-alt] { min-height: 44px; padding: 0 14px; border: 1px solid var(--kit-border); border-radius: var(--kit-radius); background: transparent; color: var(--c-heading); font: inherit; font-size: 13px; cursor: pointer; }
[data-rshop-kit-alt]:hover:not(:disabled) { background: var(--kit-accent); color: var(--kit-btn-fg); border-color: var(--kit-accent); }
[data-rshop-kit-alt]:disabled { opacity: .4; cursor: not-allowed; }
[data-rshop-kit-item] > [data-rshop-kit-item-note] , [data-rshop-kit-note] { flex-basis: 100%; font-size: 13px; color: var(--kit-state-invalid); }

/* итог и кнопка */
[data-rshop-kit-total] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--kit-border); }
[data-rshop-kit-sum] { font-size: 1.6em; font-weight: 700; font-variant-numeric: tabular-nums; }
[data-rshop-kit-old] { color: var(--kit-muted); }
[data-rshop-kit-saving] { color: var(--kit-saving-color); font-weight: 500; font-size: 14px; }
[data-rshop-kit-add] { display: block; width: 100%; min-height: 48px; margin-top: 14px; padding: 12px 26px; border: 1px solid var(--kit-btn-bg); border-radius: var(--kit-radius); background: var(--kit-btn-bg); color: var(--kit-btn-fg); font: inherit; font-weight: 500; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s; }
[data-rshop-kit-add]:hover:not(:disabled) { background: transparent; color: var(--c-heading); }
[data-rshop-kit-add]:disabled { opacity: .45; cursor: not-allowed; }
[data-rshop-kit-message] { margin-top: 10px; font-size: 14px; min-height: 1.2em; }
[data-rshop-kit-message]:empty { display: none; }
@media (min-width: 640px) { [data-rshop-kit-add] { display: inline-block; width: auto; min-width: 240px; } }
[data-rshop-kit][data-kit-state=loading] [data-rshop-kit-items], [data-rshop-kit][data-kit-state=loading] [data-rshop-kit-total] { opacity: .55; }
[data-rshop-kit][data-kit-state=invalid] { border-style: dashed; }
[data-rshop-kit][data-kit-state=unavailable] { border-style: dashed; opacity: .75; }
[data-rshop-kit][data-kit-state=added] { border-color: var(--kit-accent); }
[data-rshop-kit]:focus-within { outline: 0; }

/* tiles: плитки */
[data-kit-layout=tiles] [data-rshop-kit-items] { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--kit-gap); }
[data-kit-layout=tiles] [data-rshop-kit-item] { flex-direction: column; align-items: stretch; text-align: center; border: 1px solid var(--c-line); padding: 14px; border-radius: var(--kit-radius); }
[data-kit-layout=tiles] [data-rshop-kit-items] > :first-child > [data-rshop-kit-item]:first-child, [data-kit-layout=tiles] [data-rshop-kit-items] > [data-rshop-kit-item]:first-child { border-top: 1px solid var(--c-line); padding-top: 14px; }
[data-kit-layout=tiles] [data-rshop-kit-item] img { width: 100%; height: auto; aspect-ratio: 1; }
[data-kit-layout=tiles] [data-rshop-kit-price] { margin: 0; }
[data-kit-layout=tiles] [data-rshop-kit-check] { align-self: flex-start; position: absolute; }

/* table: строки таблицей */
[data-kit-layout=table] [data-rshop-kit-item] { flex-wrap: nowrap; padding: 8px 0; }
[data-kit-layout=table] [data-rshop-kit-item] img { --kit-img-size: 48px; width: 48px; height: 48px; }
[data-kit-layout=table] [data-rshop-kit-article] { flex: 0 0 120px; }
@media (max-width: 639px) { [data-kit-layout=table] [data-rshop-kit-item] { flex-wrap: wrap; } [data-kit-layout=table] [data-rshop-kit-article] { flex: 1 0 100%; order: 5; } }

/* steps: шаги с номерами */
[data-kit-layout=steps] [data-rshop-kit-items] { counter-reset: kit-step; gap: 0; }
[data-kit-layout=steps] [data-rshop-kit-step] { counter-increment: kit-step; position: relative; padding-left: 44px; }
[data-kit-layout=steps] [data-rshop-kit-step]::before { content: counter(kit-step); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border: 1px solid var(--kit-accent); border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--kit-accent); }
[data-kit-layout=steps] [data-rshop-kit-step] [data-rshop-kit-item] { border-top: 0; }
[data-kit-layout=steps] [data-rshop-kit-step] + [data-rshop-kit-step] { border-top: 1px solid var(--c-line); }

/* zones: зоны с заголовком */
[data-kit-layout=zones] [data-rshop-kit-zone] + [data-rshop-kit-zone] { margin-top: 18px; }
[data-kit-layout=zones] [data-rshop-kit-zone]::before { content: attr(data-zone-title); display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--kit-muted); padding-bottom: 8px; border-bottom: 1px solid var(--kit-border); }
[data-kit-layout=zones] [data-rshop-kit-zone] > [data-rshop-kit-item]:first-child { border-top: 0; }

/* рекомендации */
[data-rshop-rec] { margin: 40px 0; }
[data-rshop-rec-items] { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--kit-gap); }
[data-rshop-rec-item] { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--c-line); border-radius: var(--kit-radius); background: var(--kit-bg); padding: 14px; }
[data-rshop-rec-item] img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
[data-rshop-rec-name] { color: var(--c-heading); text-decoration: none; line-height: 1.35; }
[data-rshop-rec-name]:hover { text-decoration: underline; }
[data-rshop-rec-price] { font-weight: 600; }
[data-rshop-rec-reason] { font-size: 13px; color: var(--kit-muted); }
@media (max-width: 639px) { [data-rshop-kit] { padding: 16px; } [data-rshop-rec-items] { grid-template-columns: repeat(2, minmax(0, 1fr)); } [data-kit-layout=tiles] [data-rshop-kit-items] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* уточнения: выравнивание, варианты выбора, замена, плитки, телефон */
[data-rshop-kit-item] { position: relative; }
[data-rshop-kit-item]:not(:has([data-rshop-kit-check])) { padding-left: 36px; }
[data-rshop-kit-items] > [data-rshop-kit-item]:first-child:not(:has([data-rshop-kit-check])) { padding-left: 36px; }
[data-rshop-kit-name] { flex-basis: 120px; }
[data-rshop-kit-item] > [data-rshop-kit-options] { flex: 1 1 100%; }
[data-rshop-kit-item][data-mode=choice] { padding-left: 0; }
[data-rshop-kit-options] img { width: 48px; height: 48px; aspect-ratio: auto; }
[data-rshop-kit-options] label { padding: 4px 10px 4px 0; border-radius: var(--kit-radius); }
[data-rshop-kit-options] label:has(input:checked) { font-weight: 600; }
[data-rshop-kit-options] label > span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
[data-rshop-kit-alts] { padding-left: 36px; align-items: center; }
[data-rshop-kit-alts]::before { content: "Заменить на:"; font-size: 12px; color: var(--kit-muted); letter-spacing: .04em; }
[data-rshop-kit-alt] { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; background: transparent; text-align: left; }
[data-rshop-kit-item]:has([data-rshop-kit-check]) > [data-rshop-kit-alts] { padding-left: 36px; }
[data-kit-layout=tiles] [data-rshop-kit-item][data-mode=choice] { grid-column: 1 / -1; text-align: left; border: 0; padding: 4px 0 0; }
[data-kit-layout=tiles] [data-rshop-kit-item] > img { width: 100%; height: auto; aspect-ratio: 1; }
[data-kit-layout=tiles] [data-rshop-kit-options] img { width: 48px; height: 48px; aspect-ratio: auto; }
[data-kit-layout=tiles] [data-rshop-kit-item]:not([data-mode=choice]) { padding-left: 14px; }
[data-kit-layout=tiles] [data-rshop-kit-check] { position: absolute; top: 4px; left: 4px; margin: 0; width: 24px; height: 24px; background: #fff; z-index: 1; }
[data-kit-layout=tiles] [data-rshop-kit-price] { margin-top: auto; }
[data-kit-layout=tiles] [data-rshop-kit-alts] { padding-left: 0; justify-content: center; }
[data-kit-layout=tiles] [data-rshop-kit-alts]::before { flex-basis: 100%; }
[data-kit-layout=steps] [data-rshop-kit-step] [data-rshop-kit-item] { padding-left: 0; }
[data-kit-layout=steps] [data-rshop-kit-step] [data-rshop-kit-item]:not(:has([data-rshop-kit-check])) { padding-left: 0; }
@media (max-width: 639px) {
  [data-rshop-kit-item] img { --kit-img-size: 56px; width: 56px; height: 56px; }
  [data-rshop-kit-item]:not(:has([data-rshop-kit-check])) { padding-left: 0; }
  [data-rshop-kit-item][data-mode=choice] [data-rshop-kit-options] label { align-items: flex-start; }
  [data-rshop-kit-options] label { flex-wrap: wrap; }
  [data-rshop-kit-options] label > span:last-child { margin-left: 0; }
  [data-rshop-kit-alts], [data-rshop-kit-item]:has([data-rshop-kit-check]) > [data-rshop-kit-alts] { padding-left: 0; }
  [data-kit-layout=tiles] [data-rshop-kit-item]:not([data-mode=choice]) { padding-left: 14px; }
  [data-kit-layout=steps] [data-rshop-kit-step] { padding-left: 38px; }
}

.s-store [data-kit-layout=tiles] [data-rshop-kit-items] > [data-rshop-kit-item]:not([data-mode=choice]) { padding: 14px; }
.s-store [data-kit-layout=tiles] [data-rshop-kit-check] { background: none; box-shadow: 0 0 0 4px #fff; border-radius: 2px; }
.s-store [data-kit-layout=tiles] [data-rshop-kit-items] > [data-rshop-kit-item][data-mode=choice] { padding: 4px 0 0; }
@media (max-width: 639px) {
  .s-store [data-rshop-kit-items] > [data-rshop-kit-item]:not(:has([data-rshop-kit-check])):not([data-mode=choice]) { padding-left: 0; }
  .s-store [data-rshop-kit-options] label { display: grid; grid-template-columns: 20px 48px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
  .s-store [data-rshop-kit-options] label > span:nth-of-type(2):not(:last-child) { display: none; }
  .s-store [data-rshop-kit-options] label > span:last-child { margin: 0; }
  .s-store [data-kit-layout=tiles] [data-rshop-kit-items] > [data-rshop-kit-item]:not([data-mode=choice]) { padding: 14px; }
  .s-store [data-rshop-kit-item] > [data-rshop-kit-article] { order: 3; }
}

.s-cart-kit { font-size: 12px; letter-spacing: .04em; margin-top: 2px; }
.s-store-search input { min-width: 0; }
.s-store [data-kit-layout=table] [data-rshop-kit-name] { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.s-store [data-kit-layout=table] [data-rshop-kit-article] { flex: 0 0 96px; white-space: nowrap; }
.s-store [data-kit-layout=table] [data-rshop-kit-item] { flex-wrap: wrap; }
.s-store [data-kit-layout=table] [data-rshop-kit-name] { flex: 1 1 140px; }
.s-store [data-kit-layout=table] [data-rshop-kit-alts] { flex: 1 1 100%; padding-left: 0; }

/* корзина на телефоне: строка карточкой, без горизонтальной прокрутки (в таблице были nowrap-ячейки) */
@media (max-width: 639px) {
  .s-cart-table, .s-cart-table tbody { display: block; width: 100%; }
  .s-cart-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-line, rgba(127,127,127,.3)); }
  .s-cart-table td { display: block; border: 0; padding: 0; min-width: 0; white-space: normal; }
  .s-cart-table td.s-cart-thumb { display: none; }
  .s-cart-table td.s-cart-name { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .s-cart-table td:nth-child(3) { grid-column: 1; color: var(--c-muted, #858585); font-size: 14px; }
  .s-cart-table td:nth-child(4) { grid-column: 2; }
  .s-cart-table td:nth-child(6) { grid-column: 3; }
  .s-cart-table td.js-item-total { grid-column: 1 / -1; text-align: right; font-weight: 700; }
  .s-cart-table .js-remove { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
  .s-cart-table .s-qty { width: 72px; min-height: 44px; }
}
@media (max-width: 639px) {
  .s-store .s-cart-table td { border: 0; padding: 0; }
  .s-store .s-cart-table td.s-cart-name { grid-row: 1; }
  .s-store .s-cart-table td:nth-child(3), .s-store .s-cart-table td:nth-child(4), .s-store .s-cart-table td:nth-child(6) { grid-row: 2; }
  .s-store .s-cart-table td:nth-child(6) { justify-self: end; }
  .s-store .s-cart-table td.js-item-total { grid-row: 3; text-align: left; }
  .s-store .s-cart-table td.js-item-total::before { content: "Сумма: "; font-weight: 400; color: var(--c-muted, #858585); }
}
/* сенсорные экраны (телефон, планшет): крупные области нажатия */
@media (pointer: coarse) {
  .s-store [data-kit-layout=tiles] [data-rshop-kit-check] { width: 32px; height: 32px; top: 2px; left: 2px; }
  [data-rshop-kit-alt] { min-height: 48px; }
  [data-rshop-kit-options] label { min-height: 48px; }
}
.s-description + .s-h2, .s-h2 { font-size: 1.25em; margin: 1.2em 0 .5em; }
.s-list-buy { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.s-list-buy .s-qty { width: 4.5rem; }
.s-list-choose { text-align: center; }
/* product page: «В корзину» and «Купить в один клик» are the same size */
.s-add2cart .button, .s-add2cart .qb-open { box-sizing: border-box; flex: 0 0 100%; width: 100%; margin: 0; padding: 16px 24px; text-align: center; font-size: 1rem; }
.s-add2cart .s-qty { flex: 0 0 5rem; }
.s-add2cart .s-msg, .s-add2cart .s-compare-btn { flex: 0 0 100%; margin: 0; }
/* catalog card: the same rule */
.s-list-buy .button { flex: 1 1 8rem; text-align: center; }
.s-product .qb-open, .s-product .s-list-choose { box-sizing: border-box; width: 100%; text-align: center; }
.s-add2cart .button, .s-add2cart .qb-open { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
/* catalog card: qty + «В корзину», «Выбрать вариант» and «Купить в 1 клик» are one height, flush with the card */
.s-product .s-list-buy { display: flex; flex-wrap: wrap; gap: 0; margin: 0; }
.s-product .s-list-buy .s-qty { flex: 0 0 4.5rem; width: 4.5rem; height: 48px; margin: 0; box-sizing: border-box; border-radius: 0; text-align: center; }
.s-product .s-list-buy .button { flex: 1 1 0; min-width: 0; height: 48px; margin: 0; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; }
.s-product .s-list-choose, .s-product .qb-open { height: 48px; margin: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.s-product .s-list-buy .s-msg { flex: 0 0 100%; padding: 4px 12px; }
.s-product .s-list-buy .s-msg:empty { display: none; }
