/* ==========================================================
   Studio Margriet — LAYER 4: shortcodes
   PDP, breadcrumb, shop toolbar/filters, cat banner, accordion.
   ========================================================== */

/* ---------- Breadcrumb (PDP/shop) ---------- */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--ink-mute); border-bottom: 1px solid var(--line); background: var(--cream); }
.breadcrumb .container, .breadcrumb-inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--sage); }
.breadcrumb .is-current { color: var(--ink); font-weight: 500; }

/* ---------- Shop toolbar ---------- */
.shop-toolbar { padding: 20px 0; border-bottom: 1px solid var(--line); background: var(--cream); }
.shop-toolbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-toolbar__count { font-size: 13.5px; color: var(--ink-soft); }
.shop-toolbar__count strong { color: var(--ink); font-weight: 600; }
.shop-toolbar__actions { display: flex; align-items: center; gap: 10px; }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all 0.25s var(--ease);
}
.filter-pill:hover { border-color: var(--sage); color: var(--sage); }
.filter-pill.is-active { background: var(--sage); color: var(--white); border-color: var(--sage); }

/* Sort select (own class, never reuse woocommerce-ordering) */
.sm-sort-form { display: inline-flex; }
.sort-select {
  appearance: none;
  padding: 8px 36px 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white) 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='%235A6B66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: border-color 0.2s var(--ease);
}
.sort-select:hover { border-color: var(--sage); }

/* ---------- Shop grid wrapper ---------- */
.shop-grid { padding: 48px 0 88px; background: var(--cream); }

/* ---------- Category banner cards (shop) ---------- */
.cat-banner { padding: 64px 0; background: var(--warm); }
.cat-banner__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-pale); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(45,59,55,0.6) 0%, rgba(45,59,55,0.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.cat-card__name { font-family: var(--font-display); font-style: italic; font-size: 22px; color: #fff; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 4px; }
.cat-card__count { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }
@media (max-width: 860px) {
  .cat-banner__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cat-card { aspect-ratio: 16 / 9; }
}

/* ==========================================================
   PDP — gestapelde Elementor-containers vullen; theme bepaalt grid.
   ========================================================== */
.pdp { padding: 48px 0 72px; background: var(--cream); }
.pdp__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }

/* Gallery */
.pdp__gallery { position: sticky; top: 100px; }
.gallery__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__main:hover img { transform: scale(1.03); }
.gallery__zoom {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.gallery__zoom:hover { background: var(--sage); color: var(--white); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid transparent; background: var(--white); padding: 0; cursor: pointer;
  transition: border-color 0.25s var(--ease), opacity 0.25s var(--ease); opacity: 0.6;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { border-color: var(--sage); opacity: 1; }

/* Info column — children must span (align-items:flex-start shrinks unsized) */
.pdp__info { padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; }
.pdp__info > * { width: 100%; }
.pdp__cat { font-family: var(--font); font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.pdp__title { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; color: var(--ink); line-height: 1.14; margin-bottom: 14px; }
.pdp__title em { font-style: italic; color: var(--sage); }
.pdp__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pdp__rating .stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; }
.pdp__rating .rating-text { font-size: 13px; color: var(--ink-soft); }
.pdp__rating .rating-text strong { color: var(--ink); }
.pdp__price { font-family: var(--font-display); font-style: italic; font-size: 28px; color: var(--sage); font-weight: 400; margin-bottom: 18px; letter-spacing: -0.01em; }
.pdp__price del { color: var(--ink-mute); font-size: 0.7em; margin-right: 8px; }
.pdp__price ins { text-decoration: none; }
.pdp__tax { font-family: var(--font); font-style: normal; font-size: 12.5px; color: var(--ink-mute); font-weight: 400; }
.pdp__lede { font-size: 15px; color: var(--ink-soft); line-height: 1.7; max-width: 52ch; margin-bottom: 28px; }

/* Fields (variations) */
.pdp__field { margin-bottom: 22px; width: 100%; }
.pdp__field-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pdp__label { font-size: 13px; font-weight: 600; color: var(--ink); }
.pdp__value { font-size: 12.5px; color: var(--ink-mute); }

/* Swatches (kleur/thema) */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; background: var(--c, var(--sage-pale)); border: 2px solid transparent; cursor: pointer; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); position: relative; }
.swatch::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: border-color 0.25s var(--ease); }
.swatch.is-active::after { border-color: var(--sage); }
.swatch:hover { transform: scale(1.08); }
.swatch.is-disabled { opacity: 0.35; cursor: not-allowed; }

/* Chips (maat/formaat) */
.pdp__chips, .sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size, .pdp__chip {
  padding: 10px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; color: var(--ink-soft); background: var(--white);
  cursor: pointer; transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.size:hover, .pdp__chip:hover { border-color: var(--sage); color: var(--sage); }
.size.is-active, .pdp__chip.is-active { border-color: var(--sage); background: var(--sage-pale); color: var(--sage-deep); font-weight: 600; }
.pdp__chip.is-disabled, .size.is-disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* Hide native WC variation select but keep it in the DOM (visually-hidden, NOT display:none) */
.pdp__info .sm-native-select,
.pdp__variations .reset_variations { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; pointer-events: none; opacity: 0; }

/* Actions */
.buy, .buy-form { width: 100%; }
.pdp__actions { display: flex; flex-direction: column; align-items: stretch; gap: 18px; margin: 28px 0; width: 100%; }
.pdp__buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
/* WAPF (Advanced Product Fields) — let the plugin own field styling, we only ensure full width + spacing */
.pdp__info .wapf, .pdp__info .wapf-wrapper { width: 100%; margin: 0; }
.pdp__info .wapf-field-container, .pdp__info .wapf-group { margin-bottom: 16px; }
.pdp__info .wapf-group:last-child { margin-bottom: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--white); overflow: hidden; }
.qty__btn { width: 42px; height: 44px; display: grid; place-items: center; font-size: 16px; color: var(--ink-soft); transition: color 0.2s var(--ease), background 0.2s var(--ease); }
.qty__btn:hover { background: var(--sage-pale); color: var(--sage); }
.qty__input { width: 40px; text-align: center; border: 0; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink); background: transparent; -moz-appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }

.btn--add { flex: 1; min-width: 200px; justify-content: center; min-height: 48px; font-size: 14px; }
.btn-wish { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); background: var(--white); transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease); }
.btn-wish:hover { border-color: var(--sage); color: var(--sage); }
.btn-wish.is-liked { color: #e07070; border-color: #e07070; }

/* PDP USPs */
.pdp__usps { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; width: 100%; }
.pdp__usps li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-soft); }
.pdp__usps li svg { color: var(--sage); flex-shrink: 0; }
.pdp__usps li strong { color: var(--ink); font-weight: 600; }

/* Accordion */
.pdp__accordion { margin-top: 8px; width: 100%; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { padding: 18px 0; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; list-style: none; transition: color 0.2s var(--ease); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--ink-mute); transition: transform 0.3s var(--ease); }
.acc[open] summary::after { content: "\2212"; }
.acc summary:hover { color: var(--sage); }
.acc__body { padding: 0 0 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

.acc__body h2, .acc__body h3, .acc__body h4 { font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--ink); margin: 16px 0 6px; line-height: 1.4; }
.acc__body h2:first-child, .acc__body h3:first-child, .acc__body h4:first-child { margin-top: 0; }
.acc__list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.acc__list li { padding-left: 18px; position: relative; }
.acc__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-pale); }

/* PDP long description */
.long-desc { padding: 72px 0; background: var(--warm); }
.long-desc__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.long-desc__media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage-mist); }
.long-desc__media img { width: 100%; height: 100%; object-fit: cover; }
.long-desc__title { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 36px); font-weight: 400; line-height: 1.18; color: var(--ink); margin-bottom: 20px; }
.long-desc__title em { font-style: italic; color: var(--sage); }
.long-desc__body { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 16px; max-width: 52ch; }
.long-desc__body strong { color: var(--ink); font-weight: 600; }
.long-desc__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.long-desc__feat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.long-desc__feat svg { color: var(--sage); flex-shrink: 0; }
@media (max-width: 860px) {
  .long-desc__grid { grid-template-columns: 1fr; gap: 36px; }
  .long-desc__media { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 540px) { .long-desc__features { grid-template-columns: 1fr; } }

/* PDP responsive */
@media (max-width: 960px) {
  .pdp__grid { grid-template-columns: 1fr; gap: 36px; }
  .pdp__gallery { position: static; max-width: 560px; margin: 0 auto; }
}

/* Headless wrappers (cart/checkout/account/policy/over-ons) */
.sm-headless { padding: 0 0 88px; background: var(--cream); }
.sm-headless__body { padding-top: 48px; }
.sm-headless__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sm-headless__head h1 { margin-bottom: 10px; }
.sm-headless__head h1 em { color: var(--sage); font-style: italic; }
.sm-prose { max-width: 760px; margin: 0 auto; font-size: 15px; color: var(--ink-soft); line-height: 1.8; }
.sm-prose h2 { font-size: clamp(22px,2.4vw,30px); margin: 32px 0 12px; }
.sm-prose h3 { font-size: 16px; margin: 24px 0 8px; }
.sm-prose p { margin-bottom: 14px; }
.sm-prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.sm-prose li { margin-bottom: 6px; }
.sm-prose a { color: var(--sage); border-bottom: 1px solid var(--sage); }

/* WAPF input fields — client spec */
.pdp__info .wapf-input,
.pdp__info .wapf input[type="text"],
.pdp__info .wapf input[type="email"],
.pdp__info .wapf input[type="tel"],
.pdp__info .wapf input[type="number"],
.pdp__info .wapf textarea,
.pdp__info .wapf select { background: transparent; padding: 15px; border: 1px solid grey; border-radius: 0; }
.pdp__info .wapf-input,
.pdp__info .wapf input[type="text"],
.pdp__info .wapf input[type="email"],
.pdp__info .wapf input[type="tel"],
.pdp__info .wapf input[type="number"],
.pdp__info .wapf textarea,
.pdp__info .wapf select,
.pdp__info .wapf label,
.pdp__info .wapf { font-family: "Montserrat", sans-serif; }
/* WC injects a duplicate price in .single_variation; we show it in .pdp__price. */
.pdp__info .single_variation .price,
.pdp__info .woocommerce-variation-price { display: none; }
