/* Shared look for the store pages (shop.html, hurmajeans.html): the same
   off-white palette, Roboto and controls as the homepage (presale.css), with
   the site header always solid (.ps-header.is-static.is-solid, see
   site-header.css) and a normal scrolling page. */

:root {
  --bg: #ebe8e2;
  --text: #1a1a1a;
  --muted: #666666;
  --faint: #616161;
  --border: #c4c0b7;
  --body-text: #333333;
  --section-bg: rgba(0, 0, 0, 0.03);
  --input-bg: #f3f1ed;
  --input-border: #ada99f;
  --danger: #c62828;
  --accent: #000000;
  --on-accent: #ffffff;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.store-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

@media (min-width: 900px) {
  .store-main {
    padding: 40px 32px 0;
  }
}

.store-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.3;
}

.store-subtitle {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.status-label {
  color: var(--muted);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Prices (currency.js) ---------- */
.product-price {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.product-price .price-was,
.product-price .price-note,
.product-price .price-note-btn {
  opacity: 1;
  color: var(--faint);
}

.product-price .price-now {
  color: var(--text);
}

.product-price .price-note-btn:hover,
.product-price .price-note-btn:focus-visible {
  color: var(--text);
}

/* ---------- Option rows: colour swatches + sizes ---------- */
.option-label {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.option-label span {
  color: var(--text);
  font-weight: 600;
}

.colour-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.colour-block[hidden],
.swatches[hidden] {
  display: none;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  position: relative;
  width: 44px;
  height: 58px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.swatch:hover {
  border-color: var(--muted);
}

.swatch[aria-checked="true"] {
  border-color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.swatch:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.size-block {
  margin-bottom: 14px;
}

.size-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.size-guide-link {
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--muted);
  text-underline-offset: 2px;
}

.size-guide-link:hover,
.size-guide-link:focus-visible {
  color: var(--text);
}

.size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 6px;
}

.size-options.shake {
  animation: size-shake 0.4s ease;
}

@keyframes size-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .size-options.shake {
    animation: none;
  }
}

.size-btn {
  min-height: 42px;
  padding: 8px 4px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.size-btn:hover:not(:disabled) {
  border-color: var(--text);
}

.size-btn[aria-checked="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.size-btn.is-soldout {
  color: var(--faint);
  text-decoration: line-through;
  border-style: dashed;
}

.size-btn.is-soldout[aria-checked="true"] {
  background: var(--input-bg);
  color: var(--text);
  border-style: solid;
  border-color: var(--text);
}

/* Sold out, sold as made to order instead (buy-box.js, mtoTarget). */
.size-btn.is-mto,
.size-btn.is-mto:hover:not(:disabled) {
  border-color: var(--danger);
}

.size-btn.is-mto[aria-checked="true"] {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.size-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.actions .btn[hidden] {
  display: none;
}

.btn {
  width: 100%;
  min-height: 46px;
  padding: 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
}

.btn-outline:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.status-line {
  min-height: 16px;
  font-size: 11px;
  color: var(--muted);
}

.status-line.status-alert {
  color: var(--danger);
}

.status-line:empty {
  display: none;
}

.soldout-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
}
