/* ============================================================
   PLP (/cat/, /shop/) + PDP (/p/) — IKEA-like layout.
   Loaded after style.css and the mobile-*.css files, so it can
   safely refine (never edit) the shared stylesheets.
   ============================================================ */

/* ---------------- page containers ---------------- */
/* theme-home uses a 55px gutter on desktop: align the PLP/PDP content box on
   the reference 48px gutter (content = 1344px at 1440px). */
.wrap.plp-page,
.wrap.pdp-page {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* The global header renders a categories "chips" strip. The reference shows
   that strip only once on a category page (it *is* the sub-category row) and
   not at all on a product page — hide it there so our own .plp-chips row plays
   that role and the breadcrumb sits right under the header on PDP. */
body.tax-product_cat .chips,
body.woocommerce-shop .chips,
body.single-product .chips { display: none !important; }

/* ============================================================
   1. PLP — category / shop
   ============================================================ */

/* ---------- sub-category chips (above the H1) ---------- */
.plp-chips {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 6px 0 0;
  padding: 8px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.plp-chips::-webkit-scrollbar { display: none; }
.plp-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
  color: #111;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.plp-chip:hover { text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.plp-chip-media {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: #f5f5f5;
  background-size: cover;
  background-position: center;
  flex: none;
}
.plp-chip-label { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- header block ---------- */
.plp-header { margin: 24px 0 28px; }
.plp-header h1 {
  margin: 0 0 9px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.plp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #484848;
  margin: 0 0 12px;
}
.plp-breadcrumb a {
  color: #484848;
  text-decoration: none;
}
.plp-breadcrumb a:hover { text-decoration: underline; }
.plp-breadcrumb .crumb-sep { color: #484848; }
.plp-breadcrumb .crumb-current { color: #484848; }
.plp-count {
  margin: 0;
  font-size: 14px;
  color: #484848;
}
.plp-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 16px 20px;
  background: #fff;
  border-left: 4px solid #0058a3;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #111;
}
.plp-promo-icon { display: inline-flex; color: #0058a3; flex: none; }

/* ---------- editorial hero (image + blue promo panel, like /cat/) ---------- */
.plp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 0;
  margin: 24px 0 8px;
  min-height: 435px;
}
.plp-hero-media {
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  min-height: 320px;
}
.plp-hero-panel {
  background: #0058a3;
  color: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.plp-hero-panel h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}
.plp-hero-panel p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
}
.plp-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 64px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.plp-hero-btn:hover { background: #f5f5f5; text-decoration: none; }

/* ---------- editorial "univers" cards ---------- */
.plp-editorial { padding: 8px 0 40px; }
.plp-editorial .section-head { margin-bottom: 18px; }
.plp-editorial .section-head h2 { font-size: 28px; }
.plp-editorial .cat-grid { gap: 24px; }

/* ---------- results layout: sidebar + grid ---------- */
.plp {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 64px;
  align-items: start;
}
.plp-main { min-width: 0; }

/* ---------- filter sidebar ---------- */
.filters {
  min-width: 0;
  padding: 0;
}
.filters-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.filter-group {
  border: 0;
  margin: 0;
  padding: 0;
}
.filter-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  list-style: none;
  border: 0;
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
  flex: none;
  margin-right: 4px;
}
.filter-group[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.filter-group > *:not(summary) { padding-bottom: 4px; }
.filter-group .sort-form { margin: 0 0 14px; }
.filter-group .sort-form .woocommerce-ordering { margin: 0; }
.filter-group .sort-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dfdfdf;
  border-radius: 2px;
  background: #fff;
  font-size: 14px;
  color: #111;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: #111;
  cursor: pointer;
}
.filter-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1px solid #767676;
  border-radius: 2px;
  accent-color: #0058a3;
  margin: 0;
  flex: none;
}
.filter-count { color: #767676; font-size: 13px; }
.filter-empty { color: #767676; font-size: 13px; margin: 4px 0 12px; }
.filter-cats { list-style: none; margin: 0 0 12px; padding: 0; }
.filter-cats li { padding: 8px 0; }
.filter-cats a { font-size: 14px; color: #484848; text-decoration: none; }
.filter-cats li.current a { color: #111; font-weight: 700; }
.price-range { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.price-range input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #dfdfdf;
  border-radius: 2px;
  font-size: 14px;
  background: #fff;
}
.price-range span { color: #767676; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.filter-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.filter-actions .btn-blue { background: #0058a3; color: #fff; border: 1px solid #0058a3; }
.filter-actions .btn-outline { background: #fff; color: #111; border: 1px solid #111; }

/* filters toggle: hidden on desktop, shown on mobile */
.filters-toggle { display: none; }

/* ---------- results head + price chips ---------- */
.plp-results-head { margin: 0 0 24px; }
.price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.price-chip {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dfdfdf;
  background: #fff;
  color: #111;
  font-size: 14px;
  text-decoration: none;
}
.price-chip:hover { border-color: #111; text-decoration: none; }
.result-count {
  margin: 0;
  font-size: 14px;
  color: #484848;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.result-count .filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #111;
  font-size: 12px;
  text-decoration: none;
}

/* ---------- product grid: 4 columns of 264px @1440 ---------- */
/* WooCommerce's own stylesheet targets ul.products li.product (float + 22.05%
   width) — reset it first, then style the IKEA card. */
.plp ul.product-grid.products > li.product,
.pdp-related ul.product-grid.products > li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 6px 20px 40px;
  clear: none !important;
}
/* WooCommerce's clearfix pseudo-elements become grid items: kill them. */
.plp ul.product-grid.products::before,
.plp ul.product-grid.products::after,
.pdp-related ul.product-grid.products::before,
.pdp-related ul.product-grid.products::after {
  content: none !important;
  display: none !important;
}
.plp .product-grid,
.pdp-related .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.plp .product-grid > li,
.pdp-related .product-grid > li {
  list-style: none;
  margin: 0;
}
.product-card {
  position: relative;
  min-width: 0;
  padding: 6px 20px 40px;
  border-bottom: 1px solid #e4e4e4;
}
.product-card .thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-card .thumb .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9a9a9a;
  font-size: 12px;
  padding: 10px;
  text-align: center;
}
.product-card .thumb .fav {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  color: #111;
  pointer-events: none;
}
.product-card .thumb .fav .icon { width: 18px; height: 18px; }
.product-card h3 {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  min-height: 40px;
  color: #111;
}
.product-card h3 a { text-decoration: none; color: #111; }
.product-card h3 a:hover { text-decoration: underline; }
.product-card .price {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}
.product-card .price small { font-size: 14px; font-weight: 400; color: #484848; }
.product-card .more-options {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: #484848;
  text-decoration: underline;
}
.product-card .meta { display: none; }

/* ---------- pagination ---------- */
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-pagination a,
.woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  text-decoration: none;
}
.woocommerce-pagination a:hover { border-color: #111; }
.woocommerce-pagination span.current { background: #111; border-color: #111; color: #fff; }

/* ---------- empty state ---------- */
.plp-empty {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 40px 28px;
  margin: 10px 0 40px;
  text-align: center;
}
.plp-empty h2 { font-size: 22px; margin: 0 0 8px; }
.plp-empty p { color: #484848; font-size: 14px; max-width: 520px; margin: 0 auto 18px; }
.plp-empty .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.plp-empty .btn {
  display: inline-block;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #111;
  background: #fff;
  color: #111;
}
.plp-empty .btn.btn-blue { background: #0058a3; border-color: #0058a3; color: #fff; }
.plp-empty .btn:hover { text-decoration: none; }

/* ============================================================
   2. PDP — product page
   ============================================================ */

.pdp-page { padding-top: 14px; }

.pdp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #484848;
  margin: 0 0 24px;
}
.pdp-breadcrumb a { color: #484848; text-decoration: none; }
.pdp-breadcrumb a:hover { text-decoration: underline; }
.pdp-breadcrumb .crumb-sep { color: #484848; }
.pdp-breadcrumb .crumb-current { color: #484848; }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 774px) minmax(0, 506px);
  gap: 64px;
  align-items: start;
  padding: 0;
}

/* ---------- gallery ---------- */
.pdp-gallery {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 26px;
  min-width: 0;
}
.pdp-thumb-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 656px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pdp-thumb-rail::-webkit-scrollbar { display: none; }
.pdp-thumb-rail .thumb {
  flex: none;
  width: 84px;
  height: 84px;
  padding: 0;
  margin: 0;
  border: 1px solid #e4e4e4;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.pdp-thumb-rail .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-thumb-rail .thumb:hover { border-color: #767676; }
.pdp-thumb-rail .thumb.is-active { border-color: #111; }

.pdp-stage {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
}
.pdp-stage .main {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #f5f5f5;
  cursor: zoom-in;
}
.pdp-stage .main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.pdp-stage .main .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  color: #9a9a9a;
  font-size: 13px;
}
.pdp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.pdp-arrow:hover { background: #333; }
.pdp-arrow--prev { left: 16px; }
.pdp-arrow--next { right: 16px; }
.pdp-stage:hover .pdp-arrow { display: flex; }
.pdp-open-all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #dfdfdf;
  border-radius: 64px;
  background: #fff;
  color: #111;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}
.pdp-gallery-count { display: none; }

/* ---------- buy column ---------- */
.pdp-summary { min-width: 0; padding-top: 0; position: relative; }
.pdp-wish {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  pointer-events: none;
}
.pdp-wish .icon { width: 20px; height: 20px; }
.pdp-collection {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 14px;
  color: #111;
  text-decoration: underline;
}
.pdp-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #111;
  overflow-wrap: anywhere;
}
/* style.css sets .pdp-summary h1 to 30px: keep the reference 16px title. */
.pdp .pdp-summary h1.pdp-title { font-size: 16px; }
.pdp .pdp-summary h1.pdp-title span { font-size: inherit; }
.pdp-title .pdp-brand {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
}
.pdp-title .pdp-model { display: block; font-weight: 400; }
.pdp-summary .pdp-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 8px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}
.pdp-summary .pdp-price .tax { display: none; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.pdp-stars { color: #111; font-size: 14px; letter-spacing: 1px; }
.pdp-rating-count { font-size: 14px; color: #484848; }

.pdp-obtain { margin: 24px 0 0; }
.pdp-obtain h2 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.pdp-obtain-link { font-size: 14px; color: #484848; text-decoration: underline; }

.pdp-buy { margin: 16px 0 24px; }
.pdp-buy form.cart { margin: 0; }
.pdp-buy form.cart:not(.variations_form) {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pdp-buy .quantity { margin: 0; }
.pdp-buy .quantity input.qty,
.pdp-buy .quantity input[type="number"] {
  width: 120px;
  height: 56px;
  padding: 0 12px;
  border: 1px solid #dfdfdf;
  border-radius: 64px;
  background: #fff;
  text-align: center;
  font-size: 16px;
}
.pdp-buy button.single_add_to_cart_button,
.pdp-buy .single_add_to_cart_button {
  flex: 1 1 auto;
  width: auto;
  min-width: 200px;
  height: 56px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 64px;
  background: #0058a3;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.pdp-buy .single_add_to_cart_button:hover { background: #004f93; }
.pdp-buy .single_add_to_cart_button:disabled { background: #c9d6e3; cursor: not-allowed; }
.pdp-buy .variations { width: 100%; margin: 0 0 14px; border: 0; }
.pdp-buy .variations tbody, .pdp-buy .variations tr { display: block; }
.pdp-buy .variations th, .pdp-buy .variations td { display: block; padding: 0; }
.pdp-buy .variations .label { padding: 0 0 6px; }
.pdp-buy .variations label { font-size: 14px; font-weight: 700; }
.pdp-buy .variations select {
  width: 100%;
  height: 56px;
  padding: 0 44px 0 16px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #fff;
  font-size: 14px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 22px) 25px, calc(100% - 17px) 25px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.pdp-buy .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pdp-buy .woocommerce-variation-price { display: none; }
.pdp-buy .woocommerce-variation-availability .stock { font-size: 13px; color: #0a7a3d; }
.pdp-buy .woocommerce-variation-availability .stock.out-of-stock { color: #b02a2a; }
.pdp-buy a.reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: #0058a3; }

.pdp-delivery-box {
  margin: 24px 0 0;
  padding: 16px 18px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  color: #111;
}
.pdp-delivery-box strong { display: block; margin-bottom: 4px; }
.pdp-delivery-box p { margin: 0; color: #484848; }
.pdp-returns-box {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  font-size: 14px;
}
.pdp-returns-box strong { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pdp-returns-box p { margin: 0; color: #484848; }
.pdp-heart { display: inline-flex; }
.pdp-family-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  font-size: 14px;
}
.pdp-family-badge {
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffdb00;
  color: #111;
  font-weight: 800;
  font-size: 15px;
}
.pdp-family-text strong { display: block; margin-bottom: 2px; }
.pdp-family-text p { margin: 0; color: #484848; font-size: 13px; }
.pdp-family-text a { color: #111; text-decoration: underline; }

/* ---------- tabs ---------- */
.pdp-tabs {
  margin-top: 96px;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
}
.pdp-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pdp-tab-labels {
  display: flex;
  gap: 34px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-tab-labels::-webkit-scrollbar { display: none; }
.pdp-tab-label {
  flex: none;
  padding: 16px 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: #484848;
  cursor: pointer;
  white-space: nowrap;
}
.pdp-tab-label:hover { color: #111; }
#pdp-tab-apercu:checked ~ .pdp-tab-labels label[for="pdp-tab-apercu"],
#pdp-tab-description:checked ~ .pdp-tab-labels label[for="pdp-tab-description"],
#pdp-tab-dimensions:checked ~ .pdp-tab-labels label[for="pdp-tab-dimensions"] {
  color: #111;
  font-weight: 700;
  border-bottom-color: #111;
}
.pdp-tab-panel { display: none; padding: 32px 24px 40px; }
#pdp-tab-apercu:checked ~ .pdp-tab-panels .pdp-panel-apercu { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
#pdp-tab-description:checked ~ .pdp-tab-panels .pdp-panel-description { display: block; }
#pdp-tab-dimensions:checked ~ .pdp-tab-panels .pdp-panel-dimensions { display: block; }
.pdp-panel-apercu .pdp-preview p,
.pdp-panel-description p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #111;
}
.pdp-material { font-size: 14px; color: #484848; margin: 16px 0 0; }
.pdp-panel-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.pdp-specs {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}
.pdp-specs th {
  width: 40%;
  padding: 12px 0;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid #e4e4e4;
  vertical-align: top;
}
.pdp-specs td {
  padding: 12px 0;
  border-bottom: 1px solid #e4e4e4;
  color: #484848;
}

/* ---------- reviews ---------- */
.pdp-reviews { padding: 48px 24px 16px; }
.pdp-reviews h2 { margin: 0 0 20px; font-size: 24px; font-weight: 700; }
.pdp-review-box {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 640px;
  padding: 20px 24px;
  border: 1px solid #dfdfdf;
  border-radius: 4px;
}
.pdp-review-score strong { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; }
.pdp-review-score .pdp-stars { display: block; margin: 2px 0; }
.pdp-review-score small, .pdp-review-count small { font-size: 12px; color: #484848; }
.pdp-review-count strong { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; }
.pdp-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #111;
  border-radius: 64px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}
.pdp-review-btn:hover { background: #f5f5f5; text-decoration: none; }

/* ---------- related ---------- */
.pdp-related { padding: 48px 24px 8px; }
.pdp-related h2 { margin: 0 0 24px; font-size: 24px; font-weight: 700; }
.pdp-related .product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 8px;
}
.pdp-related .product-card {
  padding: 0 12px 24px;
  border-bottom: 0;
}
.pdp-related .product-card h3 { min-height: 0; font-size: 13px; margin-top: 10px; }
.pdp-related .product-card .price { font-size: 18px; }

/* ---------- "explorer d'autres options" ---------- */
.pdp-options { padding: 40px 24px 8px; }
.pdp-options h2 { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.pdp-option-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.pdp-option-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #dfdfdf;
  border-radius: 4px;
  font-size: 14px;
  color: #111;
  text-decoration: none;
}
.pdp-option-chip:hover { border-color: #111; text-decoration: none; }
.pdp-option-chip sup { margin-left: 4px; font-size: 10px; color: #767676; }

/* ---------- lightbox ---------- */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.pdp-lightbox.is-open { opacity: 1; visibility: visible; }
.pdp-lightbox .lb-img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.pdp-lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.pdp-lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.pdp-lightbox .lb-close { top: 16px; right: 16px; }
.pdp-lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pdp-lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.pdp-lightbox-open { overflow: hidden; }

/* ============================================================
   3. Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .pdp { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; }
  .pdp-gallery { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
  .pdp-thumb-rail .thumb { width: 72px; height: 72px; }
  .pdp-related .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* page gutters: IKEA mobile uses a 20px gutter on a full-width container */
  .wrap.plp-page,
  .wrap.pdp-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* ---- PLP header ---- */
  .plp-chips { gap: 10px; padding: 6px 0 2px; margin-top: 2px; }
  .plp-chip { height: 48px; padding: 6px 16px 6px 6px; gap: 10px; font-size: 13px; }
  .plp-chip-media { width: 36px; height: 36px; }
  .plp-header { margin: 18px 0 22px; }
  .plp-header h1 { font-size: 24px; margin-bottom: 8px; }
  .plp-breadcrumb { font-size: 14px; margin-bottom: 10px; }
  .plp-count { font-size: 14px; }
  .plp-promo { padding: 12px 14px; margin-top: 14px; font-size: 13px; gap: 10px; }
  .plp-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 16px 0 4px;
  }
  .plp-hero-media { min-height: 220px; }
  .plp-hero-panel { padding: 24px 20px 28px; }
  .plp-hero-panel h2 { font-size: 24px; margin-bottom: 10px; }
  .plp-hero-panel p { font-size: 13px; margin-bottom: 18px; }
  .plp-hero-btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
  .plp-editorial { padding: 4px 0 24px; }
  .plp-editorial .section-head h2 { font-size: 20px; }
  .plp-editorial .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  /* ---- PLP results: single-column list view (like the reference mobile PLP) ---- */
  .plp { display: block; padding-bottom: 40px; }
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin: 0 0 14px;
    padding: 0 16px;
    border: 1px solid #dfdfdf;
    border-radius: 64px;
    background: #fff;
    font-size: 14px;
    color: #111;
  }
  .filters { display: none; }
  .filters.is-open { display: block; margin-bottom: 20px; }
  .plp-results-head { margin-bottom: 16px; }
  .price-chips { gap: 6px; margin-bottom: 14px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .price-chips::-webkit-scrollbar { display: none; }
  .price-chip { height: 38px; padding: 0 12px; font-size: 13px; flex: none; }
  .plp .product-grid { display: block; }
  .plp ul.product-grid.products > li.product {
    padding: 0 0 20px;
    margin: 0 0 20px !important;
  }
  .plp .product-card {
    display: grid;
    grid-template-columns: 195px minmax(0, 1fr);
    grid-template-areas:
      "thumb title"
      "thumb price"
      "thumb more";
    grid-template-rows: auto auto 1fr;
    column-gap: 16px;
    padding: 0 0 20px;
    margin: 0 0 20px;
    border-bottom: 1px solid #e4e4e4;
  }
  .plp .product-card .thumb { grid-area: thumb; width: 195px; height: 195px; }
  .plp .product-card .fav { display: none; }
  .plp .product-card h3 { grid-area: title; margin: 0 0 6px; font-size: 14px; min-height: 0; }
  .plp .product-card .price { grid-area: price; font-size: 18px; }
  .plp .product-card .more-options { grid-area: more; margin-top: 8px; }
  .woocommerce-pagination { margin-top: 24px; }

  /* ---- PDP: gallery full-bleed + dots, single column ---- */
  .pdp-page { padding-top: 8px; }
  .pdp-breadcrumb { font-size: 14px; margin-bottom: 16px; }
  .pdp { display: block; }
  .pdp-gallery {
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
    margin: 0 -20px;
  }
  .pdp-stage { width: 100%; aspect-ratio: 1 / 1; }
  .pdp-arrow, .pdp-open-all { display: none !important; }
  .pdp-thumb-rail {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 12px 0 0;
  }
  .pdp-thumb-rail .thumb {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #d9d9d9;
    padding: 0;
    overflow: hidden;
  }
  .pdp-thumb-rail .thumb img { display: none; }
  .pdp-thumb-rail .thumb.is-active { background: #111; }
  .pdp-thumb-rail .thumb:nth-child(n + 9) { display: none; }

  .pdp-summary { padding-top: 20px; }
  .pdp-collection { margin-bottom: 10px; }
  .pdp-title { font-size: 16px; margin-bottom: 10px; }
  .pdp-summary .pdp-price { font-size: 30px; margin: 2px 0 6px; }
  .pdp-obtain { margin-top: 18px; }
  .pdp-buy { margin: 14px 0 20px; }
  .pdp-buy .quantity input.qty,
  .pdp-buy .quantity input[type="number"] { width: 104px; height: 52px; }
  .pdp-buy button.single_add_to_cart_button,
  .pdp-buy .single_add_to_cart_button { height: 52px; font-size: 15px; min-width: 0; }
  .pdp-buy .woocommerce-variation-add-to-cart { flex-wrap: nowrap; }
  .pdp-delivery-box, .pdp-returns-box { font-size: 13px; }

  .pdp-tabs { margin-top: 28px; }
  .pdp-tab-labels { gap: 24px; padding: 0 20px; }
  .pdp-tab-label { font-size: 14px; padding: 14px 0; }
  .pdp-tab-panel { padding: 24px 20px 28px; }
  #pdp-tab-apercu:checked ~ .pdp-tab-panels .pdp-panel-apercu { display: block; }
  .pdp-panel-apercu .pdp-panel-media { margin-top: 20px; }

  .pdp-reviews { padding: 32px 20px 8px; }
  .pdp-reviews h2 { font-size: 18px; margin-bottom: 16px; }
  .pdp-review-box { gap: 28px; padding: 18px; }
  .pdp-review-score strong, .pdp-review-count strong { font-size: 24px; }

  .pdp-related { padding: 32px 20px 8px; }
  .pdp-related h2 { font-size: 18px; margin-bottom: 18px; }
  .pdp-related .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .pdp-related .product-card { padding: 0 0 20px; }

  .pdp-options { padding: 28px 20px 8px; }
  .pdp-option-chip { min-height: 44px; padding: 0 14px; font-size: 13px; }
}

@media (max-width: 430px) {
  .pdp-summary .pdp-price { font-size: 28px; }
}
