/* JPCASIO — components.css (namespaced under .jp; source: design_files/components.css) */
.jp {
  box-sizing: border-box;

  /* JPCASIO v2 — шапка / подвал / карточка (Tempus-стиль) */
  /* ---------- logo ":JPCASIO" ---------- */
  .logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
  .logo-colon { display: inline-flex; flex-direction: column; gap: 3px; }
  .logo-colon i { width: 7px; height: 7px; border-radius: 2px; background: var(--ink); display: block; }
  .logo-colon i:first-child { background: var(--acc); }
  .logo-type { font-weight: 900; letter-spacing: 0.04em; }
  .logo.light .logo-type { color: #fff; }
  .logo.light .logo-colon i { background: #fff; }
  .logo.light .logo-colon i:first-child { background: var(--acc); }
  /* ---------- header ---------- */
  .site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
  .promo { background: var(--ink); color: #efe7d8; }
  .promo-in { display: flex; align-items: center; justify-content: center; gap: 14px; height: 34px; font-size: 11px; letter-spacing: .03em; overflow: hidden; white-space: nowrap; }
  .promo-dot { font-size: 6px; color: var(--acc); }
  .head-main { display: flex; align-items: center; gap: 28px; padding-top: 20px; padding-bottom: 20px; }
  .search { position: relative; display: flex; align-items: center; flex: 1; max-width: 440px; margin-left: 14px; }
  .search-ic { position: absolute; left: 0; color: var(--ink-2); pointer-events: none; }
  .search-in { width: 100%; height: 38px; padding: 0 0 0 30px; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-2); font-size: 14px; transition: border-color .15s; }
  .search-in:focus { outline: none; border-color: var(--ink); }
  .logo { font-size: 24px; }
  .head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; }
  .phone-btn { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding-right: 12px; margin-right: 4px; border-right: 1px solid var(--line); color: var(--ink); }
  .phone-btn span { letter-spacing: .01em; white-space: nowrap; }
  .ic-btn { position: relative; width: 42px; height: 42px; border-radius: var(--r-m); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .15s; }
  .ic-btn:hover { background: var(--paper-2); }
  .ic-count { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; }
  .mainnav { border-top: 1px solid var(--line); }
  .mainnav-in { display: flex; align-items: center; justify-content: flex-start; gap: 34px; height: 50px; }
  .navlink { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); position: relative; padding: 4px 0; transition: color .15s; white-space: nowrap; }
  .navlink:hover { color: var(--acc-ink); }
  .navlink::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px; background: var(--acc); transition: left .2s, right .2s; }
  .navlink:hover::after { left: 0; right: 0; }
  /* ---------- stars ---------- */
  .stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; }
  .stars-bg { color: var(--line-2); }
  .stars-fg { position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--ink); white-space: nowrap; }
  /* ---------- product card ---------- */
  .card { display: flex; flex-direction: column; }
  .card-top { position: relative; background: var(--paper-2); border: var(--card-bw) solid var(--line); border-radius: var(--r-l); overflow: hidden; }
  .card-img { aspect-ratio: 1 / 1; cursor: pointer; }
  .card-img .ph { width: 100%; height: 100%; background-color: var(--paper-2); }
  .card-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
  .card-fav { position: absolute; top: 9px; right: 9px; z-index: 2; width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: var(--ink-2); opacity: 0; transform: translateY(-4px); transition: opacity .16s, transform .16s, color .16s; }
  .card-top:hover .card-fav { opacity: 1; transform: none; }
  .card-fav:hover { color: var(--sale); }
  .card-fav.on { opacity: 1; transform: none; color: var(--sale); }
  .card-add { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transform: translateY(100%); transition: transform .2s ease; z-index: 2; }
  .card-top:hover .card-add { transform: none; }
  .card-body { padding: 14px 2px 4px; display: flex; flex-direction: column; gap: 3px; }
  .card-brand { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .card-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; line-height: 1.2; }
  .card-name:hover { color: var(--acc-ink); }
  .card-ref { font-size: 11px; color: var(--ink-3); }
  .card-foot { margin-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .price { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
  .price-old { font-size: 13px; color: var(--ink-3); text-decoration: line-through; font-weight: 500; white-space: nowrap; }
  .card-colors { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
  /* ---------- footer ---------- */
  .site-foot { margin-top: auto; background: var(--paper-2); border-top: 1px solid var(--line); padding-top: 56px; }
  .foot-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; padding-bottom: 44px; }
  .foot-brand p { font-size: 13.5px; line-height: 1.6; margin-top: 18px; max-width: 340px; color: var(--ink-2); }
  .foot-contacts { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; font-size: 13px; }
  .foot-contacts a { font-weight: 700; }
  .foot-contacts span { color: var(--ink-3); font-size: 11.5px; }
  .foot-pay { display: flex; gap: 7px; margin-top: 18px; }
  .foot-pay span { font-size: 10px; letter-spacing: .06em; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: var(--r-s); color: var(--ink-2); }
  .foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .foot-col h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); margin-bottom: 14px; }
  .foot-col button { display: block; font-size: 13.5px; color: var(--ink); padding: 6px 0; transition: color .15s; text-align: left; }
  .foot-col button:hover { color: var(--acc-ink); }
  .foot-bottom { display: flex; justify-content: space-between; font-size: 11.5px; padding-top: 22px; padding-bottom: 28px; margin-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); }
  /* ---------- trust strip ---------- */
  .trust { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust-item { display: flex; align-items: center; gap: 11px; min-width: 0; }
  .trust-item .ti-ic { color: var(--ink); flex: none; }
  .trust-item h5 { font-size: 13px; font-weight: 700; white-space: nowrap; }
  .trust-item p { font-size: 11px; color: var(--ink-2); line-height: 1.25; }
}
