/* =====================================================
   shop.css — catalog, product detail, checkout, thanks
   ===================================================== */

/* ---- Hero ---- */
.shop-hero {
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(0,174,239,0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-warm), var(--bg-cream));
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.shop-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
}
.shop-hero .hero-accent { color: var(--primary); }
.shop-hero p { margin: 1rem auto 0; max-width: 620px; color: var(--text-light); }
.shop-hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.5rem;
}
.shop-hero-badge {
  background: #fff; border: 1px solid var(--border-warm); border-radius: var(--r-full);
  padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 700; color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

/* ---- Price ---- */
.price { display: inline-flex; align-items: baseline; gap: 0.15rem; }
.price-num { font-size: 1.9rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.price-unit { font-size: 1rem; font-weight: 700; }
.price-tax { font-size: 0.72rem; color: var(--text-muted); margin-left: 0.35rem; }

/* ---- Catalog grid ---- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-md);
}
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border-warm);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-body { padding: 1.5rem 1.5rem 1rem; flex: 1; }
.product-card-grade {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--primary); text-transform: uppercase; margin-bottom: 0.4rem;
}
.product-card-title { font-size: 1.15rem; font-weight: 800; line-height: 1.5; }
.product-card-summary { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-light); }
.product-card-meta { margin-top: 0.75rem; font-size: 0.78rem; color: var(--text-muted); }
.product-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border-warm);
}
.product-card-btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* ---- Product detail ---- */
.product-detail { padding: var(--sp-xl) 0; }
.breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--primary); opacity: 1; }
.product-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-xl); align-items: start;
}
.product-main .product-grade {
  font-family: var(--font-en); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--primary); text-transform: uppercase;
}
.product-main h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.4; margin: 0.4rem 0 1rem; }
.product-main .product-desc { color: var(--text-light); line-height: 2; }
.product-highlights { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.product-highlights li {
  position: relative; padding-left: 1.9rem; font-size: 0.95rem;
}
.product-highlights li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 0.7rem no-repeat;
  transform: translateY(-0.2em);
}

/* Purchase box (sticky on desktop) */
.purchase-box {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  background: #fff; border: 1px solid var(--border-warm);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 1.75rem;
}
.purchase-box .price { margin-bottom: 0.25rem; }
.purchase-box .purchase-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.purchase-note { margin-top: 1rem; font-size: 0.78rem; color: var(--text-muted); line-height: 1.8; }

/* ---- Checkout ---- */
.checkout-wrap { max-width: 760px; margin: 0 auto; padding: var(--sp-xl) 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); align-items: start; }
.checkout-summary {
  background: var(--bg-cream); border: 1px solid var(--border-warm);
  border-radius: var(--r-md); padding: 1.5rem;
}
.checkout-summary h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.checkout-summary .summary-title { font-weight: 800; }
.checkout-summary .summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-warm);
}
.checkout-form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field-input {
  width: 100%; padding: 0.8rem 1rem; font-size: 1rem; font-family: var(--font-ja);
  border: 1px solid var(--border-warm); border-radius: var(--r-sm); background: #fff;
}
.field-input:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; }
#payment-element { margin: 1.25rem 0; }
.pay-btn { width: 100%; margin-top: 0.5rem; }
.checkout-error {
  display: none; margin-top: 0.85rem; padding: 0.75rem 1rem;
  background: #FDECEC; border: 1px solid #F5C2C2; border-radius: var(--r-sm);
  color: #B42318; font-size: 0.88rem;
}
.checkout-error.is-visible { display: block; }
.checkout-legal { margin-top: 1rem; font-size: 0.76rem; color: var(--text-muted); line-height: 1.8; }
.spinner {
  display: inline-block; width: 1.05em; height: 1.05em; border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff; border-radius: 50%; animation: rsc-spin 0.7s linear infinite;
}
@keyframes rsc-spin { to { transform: rotate(360deg); } }

/* ---- Thanks / status ---- */
.status-wrap { max-width: 620px; margin: 0 auto; padding: var(--sp-2xl) 0; text-align: center; }
.status-icon {
  width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.status-icon.ok { background: rgba(0,174,239,0.12); }
.status-icon.wait { background: var(--bg-warm); }
.status-icon.err { background: #FDECEC; }
.status-wrap h1 { font-size: 1.6rem; font-weight: 800; }
.status-wrap p { margin-top: 0.85rem; color: var(--text-light); }
.status-card {
  margin-top: 1.75rem; text-align: left; display: inline-block;
  background: var(--bg-cream); border: 1px solid var(--border-warm);
  border-radius: var(--r-md); padding: 1.25rem 1.5rem; font-size: 0.9rem;
}

@media (max-width: 768px) {
  .product-layout, .checkout-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .purchase-box { position: static; }
  .price-num { font-size: 1.7rem; }
}
