/* JPCASIO — screens2.css (namespaced under .jp; source: design_files/screens2.css) */
@keyframes toastin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.jp {
  box-sizing: border-box;

  /* JPCASIO v2 — каталог / карточка / корзина / оформление */
  .prod-grid.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
  /* breadcrumbs */
  .crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); padding: 20px 0 16px; flex-wrap: wrap; }
  .crumbs button:hover { color: var(--ink); }
  .crumbs .cur { color: var(--ink); }
  .crumbs span { opacity: .5; }
  /* ===== CATALOG ===== */
  .cat-head { padding-bottom: 26px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
  .cat-title { font-size: clamp(30px, 4vw, 50px); }
  .cat-sub { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
  .cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; padding-bottom: 80px; }
  .filters { position: sticky; top: 150px; display: flex; flex-direction: column; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
  .clear-link { font-size: 12px; color: var(--acc-ink); font-weight: 700; }
  .clear-link:hover { text-decoration: underline; }
  .fgroup { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
  .fgroup-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 600; }
  .fopts { display: flex; flex-direction: column; gap: 2px; }
  .fopt { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-align: left; color: var(--ink-2); transition: color .12s; }
  .fopt:hover { color: var(--ink); }
  .fopt.on { color: var(--ink); }
  .fbox { width: 17px; height: 17px; flex: none; border: 1.5px solid var(--line-2); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; transition: background .12s, border-color .12s; }
  .fopt.on .fbox { background: var(--ink); border-color: var(--ink); }
  .fopt-l { font-size: 14px; flex: 1; white-space: nowrap; }
  .fopt-c { font-size: 11px; color: var(--ink-3); }
  .price-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 12px; color: var(--ink-2); }
  .range { -webkit-appearance: none; width: 100%; height: 3px; border-radius: 999px; background: var(--line-2); outline: none; }
  .range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); cursor: pointer; }
  .range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 0; }
  .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 8px 6px 12px; background: var(--paper-2); border-radius: 999px; color: var(--ink); transition: background .15s; }
  .chip:hover { background: var(--paper-3); }
  .sort { position: relative; display: flex; align-items: center; gap: 8px; font-size: 12px; flex: none; }
  .sort-sel { -webkit-appearance: none; appearance: none; height: 38px; padding: 0 32px 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-m); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
  .sort-ic { position: absolute; right: 12px; pointer-events: none; color: var(--ink-3); }
  .empty { text-align: center; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .empty h3 { font-size: 24px; }
  /* ===== PDP ===== */
  .pdp-titlebar { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
  .pdp-name { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin: 6px 0 12px; line-height: 1.04; }
  .pdp-rate { display: flex; align-items: center; gap: 12px; font-size: 12.5px; flex-wrap: wrap; }
  .pdp-main { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; padding-bottom: 20px; }
  .gallery { display: flex; flex-direction: column; gap: 12px; }
  .gallery-main { position: relative; }
  .gallery-img { aspect-ratio: 1; border-radius: var(--r-l); border: 1px solid var(--line); background-color: var(--paper-2); }
  .gallery-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; z-index: 2; }
  .gallery-fav { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
  .gallery-fav.on { color: var(--sale); }
  .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .thumb { border: 1.5px solid var(--line); border-radius: var(--r-m); overflow: hidden; padding: 0; }
  .thumb.on { border-color: var(--ink); }
  .thumb-ph { width: 100%; aspect-ratio: 1; }
  .pdp-info { display: flex; flex-direction: column; gap: 22px; }
  .pdp-buybox { border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; }
  .pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .pdp-bonus { font-size: 12px; color: var(--ink-2); margin-top: 10px; }
  .bonus-pill { background: var(--acc-wash); color: var(--acc-ink); padding: 3px 8px; border-radius: var(--r-s); font-weight: 700; }
  .pdp-stock { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; flex-wrap: wrap; }
  .pdp-actions { display: flex; gap: 12px; margin-bottom: 10px; }
  .qty { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-m); background: #fff; height: 56px; }
  .qty.sm { height: 40px; }
  .qty button { width: 44px; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink); }
  .qty.sm button { width: 34px; }
  .qty button:hover { color: var(--acc-ink); }
  .qty span { min-width: 28px; text-align: center; font-weight: 700; font-size: 14px; }
  .pdp-actions2 { margin-bottom: 12px; }
  .pdp-mini-actions { display: flex; gap: 18px; font-size: 12.5px; }
  .pdp-mini-actions button { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; }
  .pdp-mini-actions button:hover { color: var(--ink); }
  .colorways { border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; }
  .cw-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .cw { width: 46px; height: 46px; border-radius: var(--r-m); overflow: hidden; border: 1.5px solid var(--line); padding: 0; }
  .cw.on { border-color: var(--ink); }
  .cw-ph { width: 100%; height: 100%; }
  .pdp-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
  .pdp-quick > div { background: #fff; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
  .pdp-quick span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
  .pdp-quick b { font-size: 14px; font-weight: 700; }
  .pdp-tabs { margin-top: 52px; }
  .tabbar { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
  .tabbtn { padding: 12px 18px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); position: relative; }
  .tabbtn:hover { color: var(--ink); }
  .tabbtn.on { color: var(--ink); }
  .tabbtn.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--acc); }
  .spectable { display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px; max-width: 900px; }
  .specrow { display: flex; align-items: baseline; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .specrow .specdots { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-3px); }
  .specrow b { font-weight: 700; }
  .prose { max-width: 760px; }
  .prose p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-bottom: 14px; }
  .prose b { color: var(--ink); }
  .funcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; max-width: 760px; }
  .func { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
  .func-ch { width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--acc); color: #fff; display: flex; align-items: center; justify-content: center; }
  .reviews { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
  .review { padding: 18px 20px; background: var(--paper-2); border-radius: var(--r-l); }
  .review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
  .review-av { width: 40px; height: 40px; border-radius: 999px; flex: none; }
  .review-head b { display: block; font-size: 14px; }
  .review p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
  /* ===== CART & CHECKOUT ===== */
  .cart { padding-bottom: 80px; }
  .cart-h { font-size: clamp(28px, 3.4vw, 42px); margin: 4px 0 4px; display: flex; align-items: baseline; gap: 14px; }
  .cart-h-c { font-size: 16px; color: var(--ink-3); font-weight: 400; white-space: nowrap; }
  .cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; margin-top: 22px; }
  .cart-items { display: flex; flex-direction: column; }
  .cart-row { display: grid; grid-template-columns: 96px 1fr 120px 130px; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .cart-row:first-child { border-top: 1px solid var(--line); }
  .cart-img { width: 96px; height: 96px; flex: none; border-radius: var(--r-m); }
  .cart-prod-info { display: flex; flex-direction: column; gap: 3px; }
  .cart-prod-info h3 { font-size: 16px; font-weight: 700; cursor: pointer; }
  .cart-prod-info h3:hover { color: var(--acc-ink); }
  .cart-row-actions { display: flex; gap: 16px; margin-top: 6px; font-size: 12px; }
  .cart-row-actions button { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); white-space: nowrap; }
  .cart-row-actions button:hover { color: var(--ink); }
  .cart-qtycol { display: flex; justify-content: center; }
  .cart-sum { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .cart-continue { align-self: flex-start; margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
  .cart-continue:hover { color: var(--ink); }
  .summary { position: sticky; top: 150px; background: var(--sand); border-radius: var(--r-l); padding: 24px; }
  .summary-h { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
  .summary .promo { background: transparent; display: flex; gap: 8px; height: auto; margin-bottom: 18px; white-space: normal; }
  .summary .promo .input { flex: 1; height: 42px; background: #fff; }
  .summary .promo .btn { height: 42px; }
  .sum-rows { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
  .sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; white-space: nowrap; }
  .sum-row.acc { color: var(--sale); font-weight: 700; }
  .bonus-txt { color: var(--acc-ink); font-weight: 700; }
  .sum-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; }
  .sum-total > span:first-child { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
  .sum-pay { display: flex; gap: 7px; margin-top: 16px; justify-content: center; }
  .sum-pay span { font-size: 10px; letter-spacing: .06em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 4px 8px; }
  .co-h1 { font-size: clamp(28px, 3.6vw, 46px); text-align: center; margin: 6px 0; }
  .checkout-form { display: flex; flex-direction: column; gap: 16px; }
  .co-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px 26px; }
  .co-h { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px; }
  .co-num { width: 24px; height: 24px; flex: none; background: var(--ink); color: #fff; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .city { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-m); background: var(--paper-2); color: var(--ink); transition: background .15s, color .15s; }
  .city:hover { background: var(--paper-3); }
  .city.on { background: var(--ink); color: #fff; }
  .radios { display: flex; flex-direction: column; gap: 10px; }
  .radio { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1.5px solid var(--line); border-radius: var(--r-m); cursor: pointer; transition: border-color .15s, background .15s; }
  .radio:hover { border-color: var(--line-2); }
  .radio.on { border-color: var(--ink); background: var(--paper-2); }
  .radio-dot { width: 19px; height: 19px; flex: none; border: 1.5px solid var(--line-2); border-radius: 999px; display: flex; align-items: center; justify-content: center; }
  .radio.on .radio-dot { border-color: var(--ink); }
  .radio-dot i { width: 9px; height: 9px; border-radius: 999px; background: var(--acc); }
  .radio.on .radio-dot i { background: var(--ink); }
  .radio-body { display: flex; flex-direction: column; gap: 1px; }
  .radio-body b { font-size: 14.5px; font-weight: 700; }
  .radio-body span { font-size: 12px; }
  .radio-right { margin-left: auto; font-size: 13px; font-weight: 700; }
  .co-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .co-item { display: flex; align-items: center; gap: 12px; font-size: 13px; }
  .co-item-img { width: 46px; height: 46px; flex: none; border-radius: var(--r-s); }
  .co-item-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
  .co-item-info b { font-size: 13px; font-weight: 700; }
  .co-agree { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--ink-2); margin-top: 16px; }
  .co-agree input { width: 16px; height: 16px; accent-color: var(--ink); }
  .empty.big, .placed { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .empty-ic { width: 64px; height: 64px; border-radius: 999px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); margin-bottom: 4px; }
  .placed-ic { width: 68px; height: 68px; border-radius: 999px; background: color-mix(in oklab, var(--ok), transparent 86%); color: var(--ok); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
  .placed p, .empty.big p { max-width: 420px; }
  .placed-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
  /* toast */
  .toast { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r-l); box-shadow: var(--sh-3); animation: toastin .3s cubic-bezier(.2,.8,.2,1) both; max-width: 380px; }
  .toast-ic { width: 26px; height: 26px; flex: none; border-radius: 999px; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }
  .toast-body { display: flex; flex-direction: column; gap: 1px; }
  .toast-body b { font-size: 14px; }
  .toast-body span { font-size: 12px; color: rgba(255,255,255,.65); }
  .toast-go { margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--acc); white-space: nowrap; }
  .toast-go:hover { text-decoration: underline; }
  /* ===== responsive ===== */
  @media (max-width: 1080px) {
    .hero-in, .pdp-main, .cat-layout, .cart-layout, .gift-grid, .edit-grid { grid-template-columns: 1fr; gap: 28px; }
    .best-grid { grid-template-columns: repeat(3, 1fr); }
    .best-feature { grid-column: 1 / -1; min-height: 200px; }
    .prod-grid.g4, .prod-grid.g5 { grid-template-columns: repeat(3, 1fr); }
    .picks-grid { grid-template-columns: repeat(3, 1fr); }
    .filters, .summary { position: static; }
    .trust { grid-template-columns: repeat(2, 1fr); }
    .foot-top { grid-template-columns: 1fr; gap: 30px; }
    .grid3 { grid-template-columns: 1fr; }
  }
  @media (max-width: 720px) {
    & { --gut: 18px; }
    .prod-grid.g4, .prod-grid.g5, .g3, .picks-grid { grid-template-columns: repeat(2, 1fr); }
    .head-main { grid-template-columns: auto 1fr; }
    .search { display: none; }
    .phone-btn { display: none; }
    .mainnav-in { gap: 18px; overflow-x: auto; justify-content: flex-start; }
  }
}
