/* Riki Home — страницы каталога, товара и корзины. Цвета и шрифты — из style.css сайта. */
.shop-page { background: #f6f8fb; }
.shop-main { padding: 120px 0 40px; min-height: 60vh; }
@media (max-width: 992px) { .shop-main { padding-top: 84px; } }
.shop-page .muted { color: var(--dark-muted, #64748b); font-size: 14px; }
.crumbs { font-size: 13px; color: #64748b; margin: 0 0 14px; }
.crumbs a { color: var(--primary, #157FFB); text-decoration: none; }
.cat-h1 { font-family: var(--font-heading, Montserrat, sans-serif); font-size: clamp(22px, 3vw, 30px); margin: 0 0 16px; color: var(--dark, #1f2937); }
.b { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #eef2f7; color: #334155; vertical-align: middle; }
.b-new { background: #e8f2ff; color: var(--primary, #157FFB); }
.b-best { background: #fff3e0; color: #b45309; }
.b-inst { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 30px; border: 2px solid var(--primary, #157FFB); color: var(--primary, #157FFB); background: #fff; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 15px; }
.linklike { background: none; border: 0; color: var(--primary, #157FFB); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* Карточка товара */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; background: #fff; border-radius: 24px; padding: 28px; border: 1px solid rgba(21,127,251,.1); box-shadow: 0 8px 30px rgba(15,23,42,.05); }
.pd-main { position: relative; aspect-ratio: 1 / 1; background: #f8fafc; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-noimg { font-size: 64px; color: #cbd5e1; }
.pd-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.pd-thumbs button { flex: 0 0 72px; height: 72px; border: 2px solid transparent; border-radius: 12px; background: #f8fafc; padding: 4px; cursor: pointer; }
.pd-thumbs button.on { border-color: var(--primary, #157FFB); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-family: var(--font-heading, Montserrat, sans-serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 10px; color: var(--dark, #1f2937); }
.pd-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #64748b; margin-bottom: 10px; }
.pd-short { color: #334155; margin: 0 0 14px; }
.pd-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.pd-price .now { font-size: 30px; font-weight: 800; color: var(--dark, #1f2937); font-family: var(--font-heading, Montserrat, sans-serif); }
.pd-price s { color: #94a3b8; font-size: 17px; }
.pd-variants, .pd-extras { border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 14px; margin: 0 0 16px; }
.pd-variants legend, .pd-extras legend { font-weight: 700; padding: 0 6px; font-size: 14px; }
.pd-variants label, .pd-extras label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; font-size: 14px; }
.pd-variants small { display: block; color: #64748b; }
.pd-gift { display: flex; gap: 12px; align-items: center; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.pd-gift > i { color: #ea580c; font-size: 22px; }
.pd-gift > div { flex: 1; } .pd-gift img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; }
.pd-gift a { color: #c2410c; font-weight: 700; } .pd-gift small { display: block; color: #9a3412; margin-top: 4px; }
.pd-gift details { margin-top: 4px; color: #475569; } .pd-gift summary { cursor: pointer; color: #c2410c; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-actions > * { flex: 1 1 200px; }
.pd-note { margin-top: 12px; }
.pd-sec { background: #fff; border-radius: 20px; padding: 24px 28px; margin-top: 20px; border: 1px solid rgba(21,127,251,.08); }
.pd-sec h2 { font-family: var(--font-heading, Montserrat, sans-serif); font-size: 21px; margin: 0 0 14px; color: var(--dark, #1f2937); }
.pd-sec h3 { font-size: 15px; margin: 16px 0 10px; color: #334155; }
.pd-text { line-height: 1.7; color: #334155; }
.pd-specs { width: 100%; border-collapse: collapse; max-width: 720px; }
.pd-specs th, .pd-specs td { padding: 10px 12px; border-bottom: 1px solid #eef2f7; text-align: left; font-size: 14px; }
.pd-specs th { color: #64748b; font-weight: 600; width: 45%; }
.pd-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pd-videos figure { margin: 0; } .pd-videos figcaption { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.vbox { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0f172a; }
.vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pd-help { text-align: center; background: linear-gradient(135deg, #eaf3ff, #fff); }

/* Плитки товаров (каталог, совместимость) — единая рамка, фото целиком */
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8eef6; border-radius: 18px; padding: 12px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: 0 10px 28px rgba(15,23,42,.08); transform: translateY(-2px); }
.tile-img { position: relative; aspect-ratio: 1 / 1; background: #f8fafc; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 10px; }
.tile-img img { width: 92%; height: 92%; object-fit: contain; }
.tile-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.tile-gift { position: absolute; top: 8px; right: 8px; background: #fff7ed; color: #ea580c; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tile-name { font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--dark, #1f2937); }
.tile-sku { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.tile-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.tile-price .tp { font-weight: 800; font-size: 17px; } .tile-price s { color: #94a3b8; font-size: 13px; }
.tile-note { font-size: 12px; color: #64748b; }
.tile-more { margin-top: auto; text-align: center; padding: 9px; border-radius: 22px; background: var(--accent-light, #e8f2ff); color: var(--primary, #157FFB); font-weight: 700; font-size: 14px; }

/* Каталог */
.cat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.cat-side { background: #fff; border-radius: 18px; padding: 16px; border: 1px solid #e8eef6; position: sticky; top: 110px; }
.cat-search { display: flex; gap: 6px; margin-bottom: 12px; }
.cat-search input, .cat-filters input, .cat-filters select { width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 14px; background: #fff; }
.cat-search button { border: 0; background: var(--primary, #157FFB); color: #fff; border-radius: 10px; padding: 0 14px; cursor: pointer; }
.cat-tree summary, .cat-filters summary { font-weight: 700; cursor: pointer; margin: 6px 0; }
.cat-tree ul { list-style: none; padding: 0; margin: 0; } .cat-tree ul ul { padding-left: 14px; }
.cat-tree a { display: block; padding: 6px 8px; border-radius: 8px; color: #334155; text-decoration: none; font-size: 14px; }
.cat-tree a.on, .cat-tree a:hover { background: var(--accent-light, #e8f2ff); color: var(--primary, #157FFB); }
.cat-tree small { color: #94a3b8; }
.cat-filters label { display: block; font-size: 13px; color: #64748b; margin: 10px 0 4px; }
.cat-filters .row2 { display: flex; gap: 6px; } .cat-filters .btn-primary { width: 100%; margin-top: 14px; justify-content: center; }
.cat-count { margin: 0 0 10px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.pager a { padding: 7px 13px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: #334155; }
.pager a.on { background: var(--primary, #157FFB); color: #fff; border-color: transparent; }
.shop-empty { text-align: center; padding: 40px 16px; background: #fff; border-radius: 18px; }

/* Корзина */
.cart-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto 32px; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px; border: 1px solid #e8eef6; }
.cart-row > img { width: 72px; height: 72px; object-fit: contain; background: #f8fafc; border-radius: 10px; }
.cart-name { font-weight: 700; color: var(--dark, #1f2937); text-decoration: none; }
.cart-qty { display: flex; align-items: center; gap: 8px; } .cart-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-size: 18px; }
.cart-del { border: 0; background: none; color: #94a3b8; cursor: pointer; font-size: 16px; }
.gift-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #c2410c; margin-top: 4px; }
.cart-foot { background: #fff; border-radius: 16px; padding: 18px; text-align: right; border: 1px solid #e8eef6; }
.cart-total { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.shop-cart-link { position: relative; }
.cart-count { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cart-count[hidden] { display: none; }

/* Диалог заявки */
.order-dialog { border: 0; border-radius: 20px; padding: 0; width: min(460px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.order-dialog::backdrop { background: rgba(15,23,42,.5); }
.order-form { padding: 24px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.order-form h3 { margin: 0; font-family: var(--font-heading, Montserrat, sans-serif); }
.order-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #475569; }
.order-form input, .order-form textarea { padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 15px; }
.order-form .agree { flex-direction: row; align-items: flex-start; gap: 8px; } .order-form .agree input { margin-top: 3px; }
.order-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order-submit { justify-content: center; } .order-submit:disabled { opacity: .6; }
.order-msg { margin: 0; font-weight: 600; color: var(--primary, #157FFB); min-height: 1em; }
.order-items .oi { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; }
.order-items .total { font-weight: 800; border-bottom: 0; }
.dlg-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; cursor: pointer; color: #64748b; }
.shop-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 10001; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.shop-toast a { color: #93c5fd; font-weight: 700; }
.shop-footer { background: #0f172a; color: #cbd5e1; padding: 24px 0; font-size: 14px; }
.shop-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .shop-footer a { color: #fff; }

@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; padding: 16px; gap: 18px; border-radius: 18px; }
  .pd-sec { padding: 18px 16px; }
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; }
  .cat-side details:not([open]) + * { display: none; }
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 8px; border-radius: 14px; } .tile-name { font-size: 14px; }
  .cart-row { grid-template-columns: 56px minmax(0, 1fr) 28px; } .cart-row > img { width: 56px; height: 56px; }
  .cart-qty { grid-column: 2; } .cart-sum { grid-column: 2; } .cart-del { grid-row: 1; grid-column: 3; }
  .cart-foot { text-align: left; } .cart-foot .btn-primary { width: 100%; justify-content: center; }
}

/* Подбор расходников по модели */
.podbor-form { display: flex; gap: 8px; margin: 14px 0 18px; max-width: 620px; }
.podbor-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 16px; }
.podbor-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.podbor-list li { background: #fff; border: 1px solid #e8eef6; border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.podbor-kit ul { margin: 0 0 8px; padding-left: 18px; } .podbor-kit .btn-primary, .podbor-kit .btn-outline { margin: 4px 8px 4px 0; }
@media (max-width: 600px) { .podbor-form { flex-direction: column; } .podbor-form .btn-primary { justify-content: center; } }

/* Оформление заказа */
.checkout-fields { display: flex; flex-direction: column; gap: 10px; }
.checkout-fields[hidden], .addr[hidden] { display: none; }
.order-form fieldset.opt { border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; margin: 0; }
.order-form fieldset.opt legend { font-size: 13px; color: #475569; padding: 0 4px; }
.order-form fieldset.opt label { flex-direction: row; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; color: #1f2937; }
.order-form fieldset.opt input { width: auto; padding: 0; }
.order-form .addr { display: flex; flex-direction: column; gap: 10px; }
.order-form .small { font-size: 12px; margin: 0; }
.order-dialog { max-height: 92vh; overflow-y: auto; }
.cart-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cart-actions p { flex-basis: 100%; text-align: right; margin: 4px 0 0; }
@media (max-width: 860px) { .cart-actions > button { flex: 1 1 100%; justify-content: center; } .cart-actions p { text-align: left; } }

/* Сервисный мастер */
.svc-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; flex-wrap: wrap; }
.svc-steps li { counter-increment: s; font-size: 13px; color: #94a3b8; padding: 6px 12px; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0; }
.svc-steps li::before { content: counter(s) ". "; }
.svc-steps li.on { color: #fff; background: var(--primary, #157FFB); border-color: transparent; }
.svc-steps li.done { color: var(--primary, #157FFB); }
.svc-panel[hidden] { display: none; }
.svc-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.svc-model { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 2px solid #e2e8f0; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; text-align: center; }
.svc-model img { width: 90px; height: 90px; object-fit: contain; }
.svc-model.on { border-color: var(--primary, #157FFB); background: #eef6ff; }
.svc-other { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #475569; margin: 6px 0 14px; }
.svc-other input, .svc-free { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; width: 100%; }
.svc-symptoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.svc-sym { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; font-weight: 600; text-align: left; }
.svc-sym i { color: var(--primary, #157FFB); font-size: 20px; width: 24px; text-align: center; }
.svc-sym:hover { border-color: var(--primary, #157FFB); }
.svc-sym.urgent i { color: #dc2626; }
.svc-urgent { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.svc-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f7; flex-wrap: wrap; }
.svc-yn { display: flex; gap: 6px; }
.svc-yn button { padding: 6px 12px; border-radius: 18px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.svc-yn button.on { background: var(--primary, #157FFB); color: #fff; border-color: transparent; }
.svc-checks { margin-bottom: 14px; }
.svc-arts a { color: var(--primary, #157FFB); font-weight: 600; }
.svc-part-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.svc-part { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.svc-part a { font-weight: 700; color: var(--dark, #1f2937); text-decoration: none; }
/* Ориентировочная цена */
.tile-pre { font-size: 11px; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 1px 7px; }
.pd-pre { font-size: 13px; margin-top: 4px; color: #92400e; }

/* переключатель языка RU / ҚАЗ */
.lang-switch-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:36px;padding:0 10px;border-radius:18px;border:1.5px solid rgba(0,86,179,.35);color:#0056b3;font:700 13px/1 Montserrat,sans-serif;text-decoration:none;letter-spacing:.5px;margin-right:6px;background:#fff}
.lang-switch-link:hover{background:#0056b3;color:#fff}
@media(max-width:560px){.lang-switch-link{min-width:40px;height:32px;padding:0 8px;font-size:12px;margin-right:2px}}
/* гарантия и обслуживание */
.pd-warranty-line{margin:10px 0 4px;font-size:14px;color:#0b2c55}.pd-warranty-line i{color:#157ffb}.pd-warranty-line a{color:#0056b3}
.wr-main{background:#eef6ff;border:1px solid #cfe3ff;border-radius:14px;padding:12px 14px;margin-bottom:12px;font-size:16px}.wr-main i{color:#157ffb}
.wr-main.wr-unknown{background:#fff8e6;border-color:#f1dfaa}.wr-main .muted{font-size:13px;margin-top:4px}
.wr-short{margin:10px 0 14px 18px}.wr-short li{margin:4px 0}.wr-links{display:flex;flex-wrap:wrap;gap:8px}.wr-intervals th{width:55%}
.wr-page h1{margin-bottom:6px}.wr-page .wr-lead{font-size:17px;color:#334}.wr-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:18px 0}
.wr-card{background:#fff;border:1px solid rgba(21,127,251,.12);border-radius:16px;padding:16px}.wr-card h3{margin:0 0 6px;font-size:16px}.wr-card p{margin:0;font-size:14px;color:#445}
.wr-page details{background:#fff;border:1px solid rgba(21,127,251,.12);border-radius:14px;padding:12px 16px;margin:10px 0}.wr-page summary{cursor:pointer;font-weight:700;color:#0b2c55}
.wr-page details ul{margin:8px 0 4px 18px}.wr-page details li{margin:5px 0}.wr-legal{font-size:12px;color:#667;margin-top:18px}
@media(max-width:560px){.wr-links .btn-outline,.wr-links .btn-wa-hero{width:100%;justify-content:center}}
