/* clo objects — minimal, airy + Stripe-style quick cart */

:root {
  --ink: #0a0a0a;
  --paper: #f4f3ee;
  --line-soft: #e8e8e4;
  --t: 14px;
  --pad: 48px;
  --side: calc(var(--pad) * 2.5);
  --gap: 96px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #ffffff; color: var(--ink); }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--t);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

button, a {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; color: inherit; text-decoration: none;
}
img { display: block; max-width: 100%; }

/* HEADER */
.hdr {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--pad) var(--side) calc(var(--pad) * 1.25);
}
.shop-btn { font-size: var(--t); letter-spacing: 0.02em; }
.shop-btn:hover { text-decoration: underline; text-underline-offset: 5px; }
.corner-l { justify-self: start; }
.corner-r { justify-self: end; }
.logo {
  height: clamp(72px, 9vw, 132px);
  width: auto; justify-self: center;
}

/* GRID */
.grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: calc(var(--pad) * 1.5) var(--side) calc(var(--pad) * 3);
}

/* TILE */
.tile { display: flex; flex-direction: column; gap: 32px; cursor: pointer; }
.tile-img {
  position: relative;
  background: var(--paper);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.tile-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease, transform .6s ease;
}
.tile-img img.on { opacity: 1; }
.tile:hover .tile-img img.on { transform: scale(1.02); }

.tile-meta {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: baseline; gap: 24px;
}
.line { margin: 0; font-size: var(--t); letter-spacing: 0.02em; }
.line.dim { color: #6b6b66; }
.line.center { text-align: center; }

.tile-name:hover { text-decoration: underline; text-underline-offset: 5px; }
.add { font-size: 18px; line-height: 1; padding: 0 4px; color: var(--ink); }
.add:hover { opacity: 0.5; }

/* FOOTER */
.ftr {
  display: flex; justify-content: space-between; gap: 64px;
  padding: calc(var(--pad) * 1.5) var(--side);
}
.ftr a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* DETAIL */
.detail-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,10,10,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  display: flex; align-items: stretch; justify-content: center;
}
.detail-scrim.on { opacity: 1; pointer-events: auto; }
.detail {
  background: #fff; width: min(1100px, 96vw); margin: auto;
  max-height: 92vh; overflow: auto;
  padding: 32px;
  position: relative;
}
.detail-close {
  position: absolute; top: 24px; right: 32px;
  font-size: var(--t); letter-spacing: 0.02em;
}
.detail-close:hover { text-decoration: underline; text-underline-offset: 5px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-top: 32px; }
.detail-media { display: flex; flex-direction: column; gap: 16px; }
.detail-main { background: var(--paper); aspect-ratio: 4/5; }
.detail-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.detail-thumb {
  aspect-ratio: 1/1; background: var(--paper); padding: 0;
  border: 1px solid transparent;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb.on { border-color: var(--ink); }
.detail-info { display: flex; flex-direction: column; gap: 20px; }
.detail-spec { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.detail-desc {
  margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: 0;
  text-transform: none; font-weight: 500; color: #1a1a1a;
}
.detail-add {
  margin-top: auto; padding: 18px 0;
  font-size: var(--t); letter-spacing: 0.04em;
  background: var(--ink); color: #fff;
}
.detail-add:hover { background: #2a2a2a; }

/* QUICK CART (Stripe-like) */
.qc-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,10,10,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.qc-scrim.on { opacity: 1; pointer-events: auto; }
.qc {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(480px, 100vw);
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line-soft);
}
.qc.on { transform: translateX(0); }
.qc-head {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.qc-head .line { justify-self: center; }
.qc-spacer { display: block; }
.qc-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.qc-step {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  font-size: 12px; letter-spacing: 0.06em;
  color: #6b6b66;
  border-right: 1px solid var(--line-soft);
}
.qc-step:last-child { border-right: 0; }
.qc-step .num { color: #b4b4ae; }
.qc-step.on { color: var(--ink); }
.qc-step.on .num { color: var(--ink); }

.qc-body { flex: 1; overflow-y: auto; padding: 0; }
.qc-empty { padding: 56px 28px; }
.qc-list { padding: 0; margin: 0; list-style: none; }
.qc-item {
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: 20px; padding: 24px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.qc-thumb { width: 88px; aspect-ratio: 1/1; background: var(--paper); }
.qc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qc-meta { display: flex; flex-direction: column; gap: 8px; }
.qty { display: inline-flex; align-items: center; gap: 14px; margin-top: auto; padding: 4px 10px; border: 1px solid var(--line-soft); width: max-content; }
.qty button { padding: 4px 6px; font-size: 14px; }
.qty span { font-size: 13px; min-width: 14px; text-align: center; }
.qc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qc-rm { font-size: 11px; color: #6b6b66; border-bottom: 1px solid #6b6b66; padding-bottom: 1px; }
.qc-rm:hover { color: var(--ink); border-color: var(--ink); }

.qc-form {
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.qc-form label { display: flex; flex-direction: column; gap: 6px; }
.qc-form span {
  font-size: 11px; letter-spacing: 0.08em; color: #6b6b66;
}
.qc-form input {
  font: inherit;
  text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: #fff; color: var(--ink);
  border-radius: 0;
}
.qc-form input:focus { outline: none; border-color: var(--ink); }
.qc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.qc-foot {
  border-top: 1px solid var(--line-soft);
  padding: 20px 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.qc-row { display: flex; justify-content: space-between; font-size: var(--t); }
.qc-row.total { font-weight: 700; padding-top: 8px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.qc-cta {
  margin-top: 12px; padding: 16px 0;
  font-size: var(--t); letter-spacing: 0.04em;
  background: var(--ink); color: #fff;
  width: 100%;
}
.qc-cta:disabled { opacity: 0.4; cursor: not-allowed; }
.qc-cta:not(:disabled):hover { background: #2a2a2a; }
.qc-actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: stretch; margin-top: 12px; }
.qc-back {
  padding: 16px 22px;
  border: 1px solid var(--ink);
}
.qc-back:hover { background: var(--paper); }
.qc-actions .qc-cta { margin-top: 0; }

/* SHIPPING CALCULATOR */
.qc-form .qc-select {
  font: inherit;
  text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: #fff; color: var(--ink);
  border-radius: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.qc-form .qc-select:focus { outline: none; border-color: var(--ink); }

.ship-calc {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 20px; margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}
.ship-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ship-free-hint { font-size: 11px; }
.ship-free-hint.on { color: var(--ink); }

.ship-fetch {
  padding: 12px 0;
  font-size: var(--t); letter-spacing: 0.04em;
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
  width: 100%;
}
.ship-fetch:hover:not(:disabled) { background: var(--paper); }
.ship-fetch:disabled { opacity: 0.4; cursor: not-allowed; }

.ship-error { color: #a83232; font-size: 12px; }

.ship-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ship-list li + li { border-top: 1px dashed var(--line-soft); }
.ship-row {
  display: flex; align-items: center; gap: 10px;
  flex-direction: row;
  padding: 8px 0;
  cursor: pointer;
  transition: opacity .15s ease;
  font-size: 12px;
  white-space: nowrap;
}
.ship-row:hover { opacity: 0.7; }
.ship-row.on { opacity: 1; }
.ship-row.on .ship-name,
.ship-row.on .ship-price { font-weight: 700; }
.ship-row input[type="radio"] {
  flex: 0 0 auto;
  width: 12px; height: 12px;
}
.ship-row input[type="radio"]:checked::after {
  width: 6px; height: 6px;
}
.qc-form .ship-calc label.ship-row {
  flex-direction: row;
  gap: 10px;
}
.ship-row-main {
  flex: 1 1 auto;
  display: flex; align-items: baseline; gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ship-name { font-size: 12px; }
.ship-transit { font-size: 11px; color: #6b6b66; }
.ship-price { flex: 0 0 auto; font-size: 12px; }
.ship-row input[type="radio"] {
  appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--ink); border-radius: 50%;
  margin: 0; padding: 0;
  display: grid; place-items: center;
  background: #fff;
}
.ship-row input[type="radio"]:checked::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
}
.ship-row-main { display: flex; flex-direction: column; gap: 2px; }
.ship-sep { padding: 0 2px; }
.ship-transit { font-size: 11px; }
.ship-price { white-space: nowrap; }

.ship-fine {
  font-size: 11px; line-height: 1.5; text-transform: none; letter-spacing: 0;
}

.qc-shipping-summary {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 4px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --pad: 28px; --side: 28px; --gap: 64px; }
  .grid { padding: var(--pad) var(--side) calc(var(--pad) * 2.5); }
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; --side: 20px; --gap: 40px; --t: 13px; }
  .hdr { padding: var(--pad) var(--side) calc(var(--pad) * 1.5); }
  .logo { height: 56px; }
  .grid { grid-template-columns: 1fr; gap: var(--gap); padding: var(--pad) var(--side) calc(var(--pad) * 2); }
  .tile { gap: 20px; }
  .tile-meta { gap: 16px; }
  .add { font-size: 20px; padding: 0 6px; }
  .ftr { padding: calc(var(--pad) * 2) var(--side) calc(var(--pad) * 1.5); gap: 32px; }
  .detail { padding: 20px; }
  .detail-thumbs { grid-template-columns: repeat(4, 1fr); }
  .qc { width: 100vw; border-left: 0; }
}
@media (max-width: 420px) {
  :root { --pad: 16px; --side: 16px; }
  .logo { height: 44px; }
  .shop-btn { font-size: 12px; }
}
