/* ─── Mono-label on cream background ───────────────────────── */
/* home.css sets --olive, which has poor contrast on --bg; override for shop */
.s-winkel .mono-label,
.s-product .mono-label,
.s-winkelwagen .mono-label,
.s-afrekenen .mono-label,
.s-bevestiging .mono-label {
  color: color-mix(in srgb, var(--ink) 75%, transparent);
}

/* ─── Shop shared button ───────────────────────────────────── */

.s-btn-ink {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 18px 28px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.s-btn-ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 51, 45, 0.18);
}

/* ─── Winkel (product list) ────────────────────────────────── */

.s-winkel {
  background: var(--bg);
  color: var(--ink);
  padding: 140px 40px 160px;
}

.s-winkel__header {
  margin-bottom: 80px;
}

.s-winkel__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(64px, 12.5vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-top: 16px;
}
.s-winkel__title em {
  font-weight: 300;
  color: var(--terra);
}

.s-winkel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  column-gap: 48px;
  row-gap: 2px;
}

.s-winkel__leeg {
  grid-column: 1 / -1;
  font-size: 18px;
  opacity: 0.6;
}

/* ── Product card ── */

.s-kaart {
  display: block;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.s-kaart__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sage);
}
.s-kaart__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.s-kaart:hover .s-kaart__img img {
  transform: scale(1.06);
}
.s-kaart__img-placeholder {
  width: 100%;
  height: 100%;
}

.s-kaart__info {
  padding: 10px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 40px;
}

.s-kaart__naam {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  margin: 0;
}

.s-kaart__prijs {
  color: var(--terra);
  white-space: nowrap;
}

/* ─── Product detail ────────────────────────────────────────── */

.s-product {
  background: var(--bg);
  color: var(--ink);
  padding: 100px 40px 160px;
}

.s-product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.s-product__media {
  position: sticky;
  top: 100px;
}

.s-product__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.s-product__img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.s-product__terug {
  display: inline-block;
  color: var(--olive);
  margin-bottom: 32px;
  transition: color 150ms ease;
}
.s-product__terug:hover { color: var(--ink); }

.s-product__naam {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.s-product__beschrijving {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 420px;
}

.s-product__prijs {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 44px;
  color: var(--terra);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  line-height: 1;
}

/* ── Option groups ── */

.s-optiegroep {
  border: none;
  padding: 0;
  margin-bottom: 32px;
}

.s-optiegroep legend {
  margin-bottom: 14px;
}

.s-opties--swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.s-opties--pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Glaze swatches */
.s-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.s-swatch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.s-swatch__kleur {
  display: block;
  width: 36px;
  height: 36px;
  background: var(--olive);
  border: 2px solid transparent;
  transition: border-color 150ms ease;
}
.s-swatch input:checked + .s-swatch__kleur {
  border-color: var(--ink);
}
.s-swatch__naam {
  font-size: 9px;
  color: var(--olive);
  transition: color 150ms ease;
}
.s-swatch input:checked ~ .s-swatch__naam {
  color: var(--ink);
}

/* Pill options (size, handle) */
.s-pill {
  cursor: pointer;
}
.s-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.s-pill__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  color: var(--ink);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.s-pill input:checked + .s-pill__label {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.s-pill__delta {
  font-size: 12px;
  opacity: 0.7;
}

/* Sold-out states */
.s-kaart--uitverkocht { opacity: 0.6; }
.s-kaart__prijs--uitverkocht { color: var(--terra); }

.s-swatch--uitverkocht { cursor: not-allowed; }
.s-swatch--uitverkocht .s-swatch__kleur { opacity: 0.35; position: relative; }
.s-swatch--uitverkocht .s-swatch__naam { opacity: 0.55; }
.s-swatch--uitverkocht .s-swatch__kleur::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 3px,
    rgba(59,51,45,0.4) 3px, rgba(59,51,45,0.4) 4px
  );
}

.s-pill--uitverkocht { opacity: 0.35; cursor: not-allowed; }

/* Quantity */
.s-product__aantal {
  margin-bottom: 32px;
}
.s-product__max-hint {
  margin-left: 8px;
  opacity: 0.6;
}

.s-product__aantal .mono-label {
  display: block;
  margin-bottom: 10px;
}
.s-product__aantal-input {
  width: 72px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-family: var(--font-display);
  border-radius: 0;
  -webkit-appearance: none;
}

.s-product__cta {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 18px 28px;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.s-product__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 51, 45, 0.18);
}

/* ─── Winkelwagen meldingen ─────────────────────────────────── */

.s-wk-meldingen {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.s-wk-melding {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.s-wk-melding--error {
  border: 1px solid var(--terra);
  color: var(--terra);
}

/* ─── Winkelwagen ───────────────────────────────────────────── */

.s-winkelwagen {
  background: var(--bg);
  color: var(--ink);
  padding: 140px 40px 160px;
}

.s-winkelwagen__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(64px, 12.5vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 80px;
}
.s-winkelwagen__title em {
  font-weight: 300;
  color: var(--terra);
}

.s-winkelwagen__leeg {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.s-winkelwagen__leeg p {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
}

.s-winkelwagen__lijst {
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

/* ── Cart item ── */

.s-wk-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.s-wk-item__media {
  width: 100px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sage);
  flex-shrink: 0;
}
.s-wk-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s-wk-item__img-placeholder {
  width: 100%;
  height: 100%;
}

.s-wk-item__naam {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color 150ms;
}
.s-wk-item__naam:hover { color: var(--terra); }

.s-wk-item__opties {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s-wk-item__opties li {
  color: var(--olive);
  font-size: 10px;
}

.s-wk-item__acties {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.s-wk-item__bijwerken {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s-input-number {
  width: 56px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font-display);
  border-radius: 0;
  -webkit-appearance: none;
}

.s-wk-item__btn-bijwerken,
.s-wk-item__btn-verwijderen {
  background: none;
  border: 1px solid currentColor;
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: background 150ms, color 150ms;
}
.s-wk-item__btn-bijwerken {
  color: var(--ink);
  opacity: 0.75;
}
.s-wk-item__btn-bijwerken:hover {
  opacity: 1;
}
.s-wk-item__btn-verwijderen {
  color: var(--terra);
  opacity: 0.85;
}
.s-wk-item__btn-verwijderen:hover {
  opacity: 1;
  background: var(--terra);
  color: var(--bg);
}

.s-wk-item__subtotaal {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  text-align: right;
  color: var(--ink);
  white-space: nowrap;
}

.s-winkelwagen__totaal {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 24px;
  padding: 32px 0;
}

.s-winkelwagen__totaal-bedrag {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 44px;
  color: var(--terra);
  letter-spacing: -0.02em;
  line-height: 1;
}

.s-winkelwagen__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}

.s-winkelwagen__verder {
  color: var(--olive);
  transition: color 150ms;
}
.s-winkelwagen__verder:hover { color: var(--ink); }

/* ─── Afrekenen (checkout) ──────────────────────────────────── */

.s-afrekenen {
  background: var(--bg);
  color: var(--ink);
  padding: 140px 40px 160px;
}

.s-afrekenen__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(64px, 12.5vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 80px;
}
.s-afrekenen__title em {
  font-weight: 300;
  color: var(--terra);
}

.s-afrekenen__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}

/* Form fields */
.s-form-veld {
  margin-bottom: 24px;
}
.s-form-veld .mono-label {
  display: block;
  margin-bottom: 10px;
}

.s-afrekenen__form input[type="text"],
.s-afrekenen__form input[type="email"],
.s-afrekenen__form textarea,
.s-afrekenen__form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-family: var(--font-display);
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color 150ms;
  -webkit-appearance: none;
  appearance: none;
}
.s-afrekenen__form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233B332D' stroke-width='1.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.s-afrekenen__form input:focus,
.s-afrekenen__form textarea:focus,
.s-afrekenen__form select:focus {
  outline: none;
  border-color: var(--terra);
}

.s-form-fouten {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--terra);
}

.s-afrekenen__submit {
  margin-top: 8px;
}

.s-form-veld--checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.s-form-factuur-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.s-form-factuur-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--terra);
  cursor: pointer;
  flex-shrink: 0;
}
.s-form-veld--hidden {
  display: none;
}

/* Order summary aside */
.s-afrekenen__overzicht {
  position: sticky;
  top: 100px;
  padding: 32px;
  background: color-mix(in srgb, var(--sage) 12%, transparent);
}

.s-afrekenen__overzicht-label {
  display: block;
  margin-bottom: 24px;
}

/* Shared: order line rows */
.s-overzicht-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.s-overzicht-item__naam {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
}

.s-overzicht-item__opties {
  color: var(--olive);
  font-size: 10px;
}

.s-overzicht-item__prijs {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.s-overzicht-totaal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
}

.s-overzicht-totaal__bedrag {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 32px;
  color: var(--terra);
  letter-spacing: -0.02em;
}

/* ─── Bevestiging (confirmation) ────────────────────────────── */

.s-bevestiging {
  background: var(--bg);
  color: var(--ink);
  padding: 140px 40px 160px;
}

.s-bevestiging__hero {
  margin-bottom: 80px;
}

.s-bevestiging__hero .mono-label {
  display: block;
  margin-bottom: 16px;
}

.s-bevestiging__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(80px, 15vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.s-bevestiging__title em {
  font-weight: 300;
  color: var(--terra);
}

.s-bevestiging__intro {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  max-width: 520px;
}

.s-bevestiging__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 64px;
}

.s-bevestiging__sectie-label {
  display: block;
  margin-bottom: 20px;
}

.s-bevestiging__adres-tekst {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
}

.s-bevestiging__cta {
  display: block;
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .s-winkel,
  .s-product,
  .s-winkelwagen,
  .s-afrekenen,
  .s-bevestiging { padding-left: 32px; padding-right: 32px; }

  .s-product__layout { grid-template-columns: 1fr; gap: 48px; }
  .s-product__media  { position: static; }

  .s-afrekenen__layout { grid-template-columns: 1fr; gap: 48px; }
  .s-afrekenen__overzicht { position: static; }

  .s-bevestiging__body { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 767px) {
  .s-winkel,
  .s-product,
  .s-winkelwagen,
  .s-afrekenen,
  .s-bevestiging { padding: 100px 20px 80px; }

  .s-winkel__grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 1px; }

  .s-wk-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px 16px;
  }
  .s-wk-item__media { width: 80px; }
  .s-wk-item__acties {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .s-wk-item__subtotaal {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    text-align: right;
  }

  .s-winkelwagen__footer { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
}
