/* ============================================================
   WOOD SPARK DESIGN — Storefront styles (layered on site.css)
   ============================================================ */

.shop-head { padding: 48px 0 8px; }
.shop-head h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05; color: var(--text-primary);
}
.shop-head p { color: var(--text-secondary); margin-top: 10px; max-width: 56ch; }

/* category filters */
.shop-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 6px; }
.shop-chip {
  padding: 8px 17px; border-radius: 999px; border: 1px solid var(--line-hover);
  background: transparent; color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: all .2s;
}
.shop-chip:hover { border-color: var(--amber); color: var(--amber); }
.shop-chip.on { background: var(--amber); border-color: var(--amber); color: #1c150a; }

/* product grid */
.shop-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0 60px;
}
@media (min-width: 480px)  { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 680px)  { .shop-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 900px)  { .shop-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1120px) { .shop-grid { grid-template-columns: repeat(6, 1fr); } }
.prod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .25s, border-color .25s;
  display: flex; flex-direction: column; text-align: left;
}
.prod-card:hover { transform: translateY(-4px); border-color: var(--line-hover); }
.prod-img {
  aspect-ratio: 1; background: #201a14; width: 100%; overflow: hidden;
  display: grid; place-items: center; color: var(--text-muted); font-size: 12px;
}
.prod-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prod-body { padding: 11px 13px 13px; }
.prod-name { display: block; font-family: 'Instrument Serif', serif; font-size: 1.05rem; color: var(--text-primary); line-height: 1.18; }
.prod-price { display: block; margin-top: 4px; font-weight: 700; font-size: 14px; color: var(--amber); }
.prod-price s { color: var(--text-muted); font-weight: 400; margin-left: 8px; font-size: .85em; }
.prod-tag { display: inline-block; margin-top: 6px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.prod-out { color: var(--text-muted); font-size: 12px; margin-top: 6px; }

/* product detail */
.pd-wrap { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); margin: 30px 0 70px; }
@media (min-width: 860px) { .pd-wrap { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.pd-gallery { position: sticky; top: calc(var(--topbar-h) + 16px); }
.pd-main {
  aspect-ratio: 1; border-radius: var(--radius-lg); background: #201a14 center/contain no-repeat;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-muted); overflow: hidden;
}
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 64px; border-radius: 10px; border: 2px solid transparent;
  background: #262019 center/cover no-repeat; cursor: pointer; padding: 0;
}
.pd-thumb.on { border-color: var(--amber); }
.pd-info h1 { font-family: 'Instrument Serif', serif; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--text-primary); line-height: 1.08; }
.pd-price { font-size: 1.5rem; font-weight: 700; color: var(--amber); margin: 12px 0 4px; }
.pd-price s { color: var(--text-muted); font-weight: 400; font-size: .7em; margin-left: 10px; }
.pd-desc { color: var(--text-secondary); margin: 14px 0 4px; line-height: 1.6; }
.pd-field { margin-top: 18px; }
.pd-field > label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 7px;
}
.pd-select, .pd-input {
  width: 100%; max-width: 380px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-hover); background: var(--surface); color: var(--text-primary);
  font-family: 'DM Sans', sans-serif; font-size: 15px; appearance: none; -webkit-appearance: none;
}
.pd-select {
  background-image: 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='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.pd-select:focus, .pd-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow); }
.pd-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.pd-qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-hover); border-radius: 12px; overflow: hidden; }
.pd-qty button { width: 42px; height: 44px; background: var(--surface); border: none; color: var(--text-primary); font-size: 18px; cursor: pointer; }
.pd-qty button:hover { color: var(--amber); }
.pd-qty span { min-width: 44px; text-align: center; font-weight: 700; color: var(--text-primary); }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.pd-ship-note { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.pd-ig {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  padding: 13px 18px; border: 1px solid var(--line-hover); border-radius: var(--radius);
  transition: all .2s;
}
.pd-ig:hover { border-color: var(--amber); color: var(--amber); }
.pd-back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 14px; margin: 26px 0 0; }
.pd-back:hover { color: var(--amber); }

/* cart button (in the header, next to the language switch) */
.cart-fab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--amber); color: #1c150a; font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 13px; box-shadow: 0 6px 18px -6px rgba(212,148,58,.5);
}
.cart-fab .n {
  background: #1c150a; color: var(--amber); border-radius: 999px;
  min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; padding: 0 5px;
}
.cart-fab.empty { display: none; }
@media (max-width: 560px) {
  .cart-fab { padding: 8px 11px; }
  .cart-fab .cart-label { display: none; }
}

/* cart / checkout drawer */
.cart-scrim { position: fixed; inset: 0; background: rgba(10,8,6,.6); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-scrim.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 85;
  background: var(--bg-dark); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: none; }
.cart-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-hd h2 { font-family: 'Instrument Serif', serif; font-size: 1.5rem; color: var(--text-primary); }
.cart-x { background: none; border: 1px solid var(--line-hover); border-radius: 9px; width: 36px; height: 36px; color: var(--text-primary); font-size: 20px; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item-img { width: 56px; height: 56px; border-radius: 10px; background: #262019 center/cover no-repeat; }
.cart-item-name { font-weight: 600; color: var(--text-primary); font-size: 14.5px; line-height: 1.25; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cart-item-pers { font-size: 12px; color: var(--amber); margin-top: 2px; }
.cart-item-price { font-weight: 700; color: var(--text-primary); font-size: 14px; text-align: right; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-qty button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-hover); background: none; color: var(--text-primary); cursor: pointer; font-size: 14px; line-height: 1; }
.cart-item-qty button.cart-item-rm { width: auto; height: auto; background: none; border: none; border-radius: 0; color: var(--text-muted); font-size: 12px; cursor: pointer; text-decoration: underline; margin-left: 6px; }
.cart-item-qty button.cart-item-rm:hover { color: var(--text-primary); }
.cart-empty { text-align: center; color: var(--text-muted); padding: 50px 0; }
.cart-ft { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-secondary); padding: 3px 0; }
.cart-row.total { font-weight: 700; color: var(--text-primary); font-size: 16px; padding-top: 8px; }
.cart-ft .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* checkout form inside drawer */
.co-field { margin-top: 13px; }
.co-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.co-input {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-hover);
  background: var(--surface); color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 14.5px;
}
.co-input:focus { outline: none; border-color: var(--amber); }
.co-select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; }
.co-radio { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--line-hover); border-radius: 11px; cursor: pointer; margin-top: 8px; }
.co-radio input { margin-top: 4px; accent-color: var(--amber); }
.co-radio.on { border-color: var(--amber); background: rgba(212,148,58,.06); }
.co-radio b { color: var(--text-primary); font-size: 14px; }
.co-radio .d { font-size: 12.5px; color: var(--text-muted); }
.co-err { color: #f87171; font-size: 13px; margin-top: 10px; display: none; }
.co-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* thanks page */
.thanks-wrap { max-width: 560px; margin: 70px auto; text-align: center; padding: 0 20px; }
.thanks-ico { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: rgba(124,154,110,.15); color: var(--sage); }
.thanks-ico.wait { background: var(--amber-glow); color: var(--amber); }
.thanks-wrap h1 { font-family: 'Instrument Serif', serif; font-size: 2.2rem; color: var(--text-primary); margin-bottom: 10px; }
.thanks-wrap p { color: var(--text-secondary); margin-bottom: 8px; }
.thanks-no { font-size: 13px; color: var(--text-muted); letter-spacing: .06em; }
.thanks-wrap .btn { margin-top: 26px; }

/* ============================================================
   Payment instructions on the thank-you page (e-Transfer / cash)
   ============================================================ */
.pay-box {
  margin: 18px auto 4px; max-width: 340px;
  border: 1px solid var(--line-hover); border-radius: var(--radius-lg);
  background: var(--surface); padding: 22px 20px; text-align: center;
}
.pay-amt { font-family: 'Instrument Serif', serif; font-size: 2.4rem; color: var(--amber); line-height: 1; }
.pay-to { margin-top: 10px; color: var(--text-secondary); font-size: 15px; line-height: 1.4; }
.pay-to b { color: var(--text-primary); font-size: 1.05em; }
.pay-ref { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }
.pay-ref b { color: var(--text-primary); }
