/* ============================================================
   SHOP — storefront styles (premium light, matches theme 10)
   Scoped under .shp-page so nothing leaks into shared chrome.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

.shp-page{
  --ink:#101828; --soft:#475467; --muted:#98a2b3; --line:#e7ecf3;
  --surface:#fff; --paper:#f7f9fc; --accent:var(--th-btn,#1d4ed8); --accent2:var(--th-btn-hover,#2563eb);
  --ok:#0e7f6e; --warn:#b42318;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  color:var(--soft); background:var(--paper); padding-bottom:56px;
}
.shp-page *{ box-sizing:border-box; }
.shp-page h1,.shp-page h2,.shp-page h3{ font-family:'Plus Jakarta Sans',system-ui,sans-serif; color:var(--ink); letter-spacing:-.02em; }
.shp-wrap{ position:relative; }

/* hero */
.shp-hero{ background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; padding:46px 0 40px; margin-bottom:28px; }
.shp-hero .shp-kick{ color:rgba(255,255,255,.85); }
.shp-hero h1{ color:#fff; font-size:2.1rem; margin:.2rem 0 .4rem; }
.shp-sub{ color:rgba(255,255,255,.9); margin:0; }
.shp-kick{ text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; font-weight:700; margin:0; }

/* filters */
.shp-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:22px; }
.shp-field{ flex:1 1 190px; min-width:0; }
.shp-field input,.shp-field select{
  width:100%; height:44px; padding:0 14px; border:1px solid var(--line); border-radius:10px;
  background:var(--surface); color:var(--ink); font-size:.92rem; outline:none;
}
.shp-field input:focus,.shp-field select:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(29,78,216,.12); }

/* buttons */
.shp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 20px; border:0; border-radius:10px; cursor:pointer;
  font-weight:600; font-size:.92rem; text-decoration:none; transition:all .18s ease;
}
.shp-btn svg{ width:17px; height:17px; }
.shp-btn-primary{ background:var(--accent); color:#fff; }
.shp-btn-primary:hover{ background:var(--accent2); color:#fff; }
.shp-btn-primary:disabled{ opacity:.6; cursor:not-allowed; }
.shp-btn-block{ width:100%; margin-top:8px; }
.shp-btn-sm{ height:34px; padding:0 14px; font-size:.84rem; background:#eef2ff; color:var(--accent); }
.shp-btn.is-loading{ position:relative; color:transparent; }
.shp-btn.is-loading::after{
  content:''; position:absolute; width:18px; height:18px; border:2px solid rgba(255,255,255,.5);
  border-top-color:#fff; border-radius:50%; animation:shpSpin .7s linear infinite;
}
@keyframes shpSpin{ to{ transform:rotate(360deg); } }

/* grid + cards */
.shp-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.shp-card{
  display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line);
  border-radius:14px; overflow:hidden; text-decoration:none; color:inherit;
  transition:transform .2s ease, box-shadow .2s ease;
}
.shp-card:hover{ transform:translateY(-4px); box-shadow:0 18px 34px -20px rgba(16,24,40,.4); color:inherit; }
.shp-card-img{ position:relative; aspect-ratio:1/1; background:#eef2f7; overflow:hidden; }
.shp-card-img img{ width:100%; height:100%; object-fit:cover; }
.shp-badge{
  position:absolute; top:10px; left:10px; z-index:2; display:inline-flex; align-items:center; gap:5px;
  padding:4px 9px; border-radius:20px; font-size:.68rem; font-weight:700; letter-spacing:.03em;
}
.shp-badge svg{ width:12px; height:12px; }
.shp-badge-off{ background:#fef3c7; color:#92400e; }
.shp-badge-dl{ top:auto; bottom:10px; background:rgba(255,255,255,.94); color:var(--accent); }
.shp-badge-out{ left:auto; right:10px; background:#fee2e2; color:var(--warn); }
.shp-card-body{ display:flex; flex-direction:column; flex:1 1 auto; padding:14px 16px 16px; }
.shp-card-cat{ font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:0 0 4px; font-weight:600; }
.shp-card-name{ font-size:1rem; margin:0 0 6px; line-height:1.3; }
.shp-card-desc{
  font-size:.84rem; color:var(--soft); margin:0 0 12px; line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.shp-card-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; }
.shp-price strong{ font-size:1.1rem; color:var(--ink); }
.shp-price span{ font-size:.85rem; color:var(--muted); text-decoration:line-through; margin-left:6px; }

/* empty */
.shp-empty{ text-align:center; padding:60px 20px; color:var(--muted); }
.shp-empty svg{ width:52px; height:52px; margin-bottom:12px; }
.shp-empty h3{ margin:0 0 6px; }

/* ---------------- detail ---------------- */
.shp-detail{ padding-top:28px; }
.shp-crumb{ font-size:.85rem; margin-bottom:18px; color:var(--muted); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.shp-crumb a{ color:var(--accent); text-decoration:none; }
.shp-detail-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:34px; align-items:start; }
.shp-gallery-main{ background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; aspect-ratio:1/1; }
.shp-gallery-main img{ width:100%; height:100%; object-fit:cover; display:block; }
.shp-thumbs{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.shp-thumb{ width:68px; height:68px; padding:0; border:2px solid var(--line); border-radius:10px; overflow:hidden; background:none; cursor:pointer; }
.shp-thumb.is-active{ border-color:var(--accent); }
.shp-thumb img{ width:100%; height:100%; object-fit:cover; }

.shp-buy{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px; }
.shp-detail-name{ font-size:1.6rem; margin:.25rem 0 .6rem; }
.shp-detail-price{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.shp-detail-price strong{ font-size:1.7rem; color:var(--ink); }
.shp-strike{ color:var(--muted); text-decoration:line-through; }
.shp-tax-note{ font-style:normal; font-size:.8rem; color:var(--muted); }
.shp-detail-short{ font-size:.92rem; margin:0 0 14px; }
.shp-stockline{ margin-bottom:18px; font-size:.87rem; font-weight:600; }
.shp-in{ color:var(--ok); } .shp-out{ color:var(--warn); }

/* form */
.shp-form-head{ font-size:1rem; margin:20px 0 12px; padding-top:16px; border-top:1px solid var(--line); }
.shp-row{ display:flex; gap:12px; flex-wrap:wrap; }
.shp-col{ flex:1 1 180px; min-width:0; margin-bottom:12px; }
.shp-col-narrow{ flex:0 0 92px; }
.shp-form label{ display:block; font-size:.8rem; font-weight:600; color:var(--ink); margin-bottom:5px; }
.shp-form label span{ color:var(--warn); }
.shp-form input{
  width:100%; height:42px; padding:0 12px; border:1px solid var(--line); border-radius:9px;
  font-size:.9rem; color:var(--ink); background:#fff; outline:none;
}
.shp-form input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(29,78,216,.12); }
.shp-err{ display:block; color:var(--warn); font-size:.76rem; margin-top:4px; }
.shp-form-error{ color:var(--warn); font-size:.85rem; margin:10px 0 0; text-align:center; }

.shp-qty-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.shp-qty{ display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.shp-qty button{ width:38px; height:40px; border:0; background:#f4f6fa; color:var(--ink); font-size:1.1rem; cursor:pointer; }
.shp-qty button:hover{ background:#e8edf5; }
.shp-qty input{ width:62px; height:40px; border:0; text-align:center; font-weight:600; color:var(--ink); }

.shp-prefill{ display:flex; align-items:center; gap:7px; font-size:.82rem; color:var(--ok); margin:2px 0 8px; }
.shp-prefill svg{ width:15px; height:15px; flex:none; }
.shp-prefill a{ margin-left:auto; color:var(--accent); text-decoration:none; font-weight:600; }

.shp-note{ display:flex; align-items:flex-start; gap:9px; background:#eff6ff; color:#1e40af; padding:12px 14px; border-radius:10px; font-size:.85rem; margin:6px 0 4px; }
.shp-note svg{ width:17px; height:17px; flex:none; margin-top:1px; }
.shp-note-warn{ background:#fef2f2; color:var(--warn); }

.shp-summary{ background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin:18px 0 4px; }
.shp-sum-row{ display:flex; justify-content:space-between; font-size:.88rem; padding:5px 0; }
.shp-sum-total{ border-top:1px dashed var(--line); margin-top:6px; padding-top:10px; font-weight:700; color:var(--ink); font-size:1rem; }

.shp-desc-block{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px; margin-top:28px; }
.shp-desc-block h2{ font-size:1.15rem; margin:0 0 12px; }
.shp-desc{ font-size:.92rem; line-height:1.65; }
.shp-desc ul{ padding-left:20px; }

/* ---------------- order status ---------------- */
.shp-result{ max-width:720px; margin:36px auto; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:32px; text-align:center; }
.shp-result-icon{ width:66px; height:66px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; margin-bottom:14px; }
.shp-result-icon svg{ width:32px; height:32px; }
.shp-ok{ background:#dcfce7; color:var(--ok); }
.shp-fail{ background:#fee2e2; color:var(--warn); }
.shp-result h1{ font-size:1.45rem; margin:0 0 6px; }
.shp-ref{ font-family:ui-monospace,Menlo,Consolas,monospace; background:var(--paper); border:1px dashed var(--line); border-radius:8px; padding:8px 14px; display:inline-block; margin:10px 0 18px; }
.shp-items{ text-align:left; margin-top:18px; }
.shp-item{ display:flex; gap:12px; align-items:center; padding:12px 0; border-top:1px solid var(--line); }
.shp-item img{ width:56px; height:56px; object-fit:cover; border-radius:8px; }
.shp-item-name{ font-weight:600; color:var(--ink); }
.shp-dl{ margin-left:auto; }

/* ---------------- responsive ---------------- */
@media (max-width:1199.98px){ .shp-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:991.98px){
  .shp-grid{ grid-template-columns:repeat(2,1fr); }
  .shp-detail-grid{ grid-template-columns:1fr; gap:24px; }
}
@media (max-width:575.98px){
  .shp-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .shp-hero{ padding:32px 0 28px; }
  .shp-hero h1{ font-size:1.6rem; }
  .shp-buy{ padding:18px; }
  .shp-detail-name{ font-size:1.3rem; }
  .shp-card-body{ padding:12px; }
  .shp-card-desc{ display:none; }
  .shp-field{ flex:1 1 100%; }
}
