/*
 * Shared styling for every /wholesale/* page. Colors are derived from the
 * active theme's own CSS custom properties (--btn-bg-color, --heading-color,
 * --body-bg-color, --link-color — defined globally in the theme's <head>,
 * see includes/partials/header.php) so the wholesale pages match each
 * store's actual brand palette instead of one hardcoded scheme. Falls back
 * to sane defaults if a theme hasn't defined them.
 */
:root {
  --wsl-accent: rgb(var(--btn-bg-color, 15 41 66));
  --wsl-accent-hover: rgb(var(--btn-bg-hover-color, 10 30 50));
  --wsl-accent-text: rgb(var(--btn-text-color, 255 255 255));
  --wsl-heading: rgb(var(--heading-color, 23 23 23));
  --wsl-text: rgb(var(--body-text-color, 51 51 51));
  --wsl-bg: rgb(var(--body-bg-color, 255 255 255));
  --wsl-border: #e8e8e8;
  --wsl-muted-bg: #f6f7f8;
  --wsl-radius: 10px;
}

/* ---------- Hero ---------- */
.wsl-hero {
  position: relative;
  padding: 72px 24px;
  text-align: center;
  /* Solid fallback first — a browser that can't parse color-mix() below
     simply ignores that whole (invalid) declaration and keeps this one,
     rather than being left with no background at all. */
  background: var(--wsl-accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--wsl-accent) 88%, #000 22%), var(--wsl-accent));
  overflow: hidden;
}
.wsl-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.10), transparent 45%);
  pointer-events: none;
}
.wsl-hero__inner { position: relative; max-width: 720px; margin: 0 auto; }
/* Explicit color + text-shadow directly on the text elements themselves —
   an ancestor `color` rule is overridden by ANY theme rule that targets
   h1/p directly (e.g. a global `.rte h1{color:...}`), which is exactly what
   made this heading unreadable before this fix. Setting it here, on the
   element itself, always wins regardless of theme heading-color rules. */
.wsl-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  line-height: 1.25;
}
.wsl-hero p {
  font-size: 1.05rem;
  margin: 0 auto 28px;
  max-width: 620px;
  color: rgba(255,255,255,.92) !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.wsl-hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wsl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  border: 2px solid transparent;
}
.wsl-btn--primary { background: #ffffff; color: var(--wsl-accent) !important; }
.wsl-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.wsl-btn--outline { border-color: rgba(255,255,255,.8); color: #ffffff !important; }
.wsl-btn--outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.wsl-btn--accent { background: var(--wsl-accent); color: var(--wsl-accent-text) !important; }
.wsl-btn--accent:hover { background: var(--wsl-accent-hover); transform: translateY(-1px); }

/* ---------- Sections ---------- */
.wsl-section { max-width: 1240px; margin: 0 auto; padding: 52px 24px; }
.wsl-section h2 {
  font-size: 1.55rem; font-weight: 800; margin: 0 0 24px; color: var(--wsl-heading) !important;
  text-align: center;
}
.wsl-breadcrumb { max-width: 1240px; margin: 18px auto 0; padding: 0 24px; font-size: .85rem; color: #777; }
.wsl-breadcrumb a { color: var(--wsl-accent) !important; text-decoration: none; }
.wsl-breadcrumb a:hover { text-decoration: underline; }

/* Shop by Collections now reuses D2C's own .product-grid--per-row-6 /
   .collection-block component directly (see wholesale/index.php) instead
   of a custom-built card here, so its styling comes entirely from the
   shared theme CSS — nothing wholesale-specific to maintain. */

/* Product cards now reuse D2C's own .product-grid/.product-block component
   directly (see render_wholesale_product_card() in includes/wholesale.php)
   instead of a custom-built card here, same reasoning as the Shop by
   Collections grid above — nothing wholesale-specific to maintain. */

/* ---------- Benefits ---------- */
.wsl-benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.wsl-benefit { padding: 22px; background: var(--wsl-muted-bg); border-radius: var(--wsl-radius); }
.wsl-benefit h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--wsl-heading); }
.wsl-benefit p { margin: 0; color: var(--wsl-text); font-size: .9rem; }

.wsl-empty { text-align: center; padding: 64px 24px; color: #888; }
.wsl-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.wsl-pagination a, .wsl-pagination span {
  padding: 8px 14px; border: 1px solid var(--wsl-border); border-radius: 6px; text-decoration: none; color: var(--wsl-heading);
}
.wsl-pagination .active { background: var(--wsl-accent); color: var(--wsl-accent-text); border-color: var(--wsl-accent); }

/* ==================================================================
   Product page — swatches, tier grid, size grid, sticky bar
   ================================================================== */
.wsl-pdp { max-width: 1160px; margin: 0 auto; padding: 28px 24px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 860px) { .wsl-pdp { grid-template-columns: 1fr; padding-bottom: 120px; } }

.wsl-pdp__gallery img { width: 100%; border-radius: var(--wsl-radius); aspect-ratio: 1; object-fit: cover; background: var(--wsl-muted-bg); }
.wsl-pdp__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wsl-pdp__thumbs img { width: 66px; height: 66px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.wsl-pdp__thumbs img.active, .wsl-pdp__thumbs img:hover { border-color: var(--wsl-accent); }

.wsl-pdp__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; color: var(--wsl-heading); }
.wsl-pdp__moq { color: #777; margin: 0 0 18px; font-size: .92rem; }

/* Price header (base tier price + savings, mirrors a familiar D2C compare-at pattern) */
.wsl-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.wsl-price-row__current { font-size: 1.7rem; font-weight: 800; color: var(--wsl-heading); }
.wsl-price-row__was { font-size: 1.05rem; color: #999; text-decoration: line-through; }
.wsl-price-row__save { background: #eaf7ee; color: #1a8f4c; font-weight: 800; font-size: .78rem; padding: 4px 9px; border-radius: 5px; }

/* Color swatches */
.wsl-swatch-label { font-weight: 700; font-size: .88rem; margin: 0 0 10px; color: var(--wsl-heading); }
.wsl-swatches { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-bottom: 22px; }
.wsl-swatch {
  width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--wsl-border); cursor: pointer;
  display: flex; align-items: center; justify-content: center; position: relative; background-size: cover; background-position: center;
  transition: border-color .15s ease, transform .15s ease;
}
.wsl-swatch:hover { transform: scale(1.08); }
.wsl-swatch.active { border-color: var(--wsl-accent); box-shadow: 0 0 0 2px var(--wsl-bg), 0 0 0 4px var(--wsl-accent); }
.wsl-swatch__check { color: #fff; font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.6); display: none; }
.wsl-swatch.active .wsl-swatch__check { display: block; }
/* No color_code set for this value in Admin > Attributes — a diagonal hatch
   instead of a flat fill, so a missing color is never mistaken for an
   intentional grey/silver swatch. */
.wsl-swatch--unset {
  background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 4px, #e2e2e2 4px, #e2e2e2 8px);
}
.wsl-swatch--unset .wsl-swatch__check { color: #555; text-shadow: none; }
.wsl-swatch-name { text-align: center; font-size: .75rem; color: #555; margin-top: 6px; line-height: 1.2; }
.wsl-swatch--light .wsl-swatch__check { color: #111; text-shadow: none; }
.wsl-swatch-wrap { display: flex; flex-direction: column; align-items: center; width: 68px; }

/* Quantity-tier grid */
.wsl-tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.wsl-tier-card {
  border: 2px solid var(--wsl-border); border-radius: 8px; padding: 10px 8px; text-align: center;
  transition: border-color .15s ease, background .15s ease; cursor: pointer;
}
.wsl-tier-card:hover { border-color: var(--wsl-accent); }
.wsl-tier-card.active { border-color: var(--wsl-accent); background: var(--wsl-muted-bg); background: color-mix(in srgb, var(--wsl-accent) 8%, transparent); }
.wsl-tier-card__range { font-size: .72rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.wsl-tier-card__price { font-size: 1.05rem; font-weight: 800; color: var(--wsl-heading); margin: 3px 0; }
.wsl-tier-card__save { font-size: .68rem; font-weight: 700; color: #1a8f4c; }

/* Upsell nudge */
.wsl-nudge {
  display: none; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff8e8; border: 1px solid #f3dfa3; border-radius: 8px; padding: 12px 14px; margin-bottom: 22px; font-size: .87rem;
}
.wsl-nudge strong { color: var(--wsl-heading); }
.wsl-nudge button {
  background: #1a8f4c; color: #fff; border: none; padding: 7px 16px; border-radius: 6px; font-weight: 700;
  font-size: .82rem; cursor: pointer; white-space: nowrap;
}

/* Size grid */
.wsl-size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-bottom: 8px; }
.wsl-size-box { border: 1px solid var(--wsl-border); border-radius: 8px; padding: 10px 8px; text-align: center; }
.wsl-size-box__label { font-weight: 700; font-size: .85rem; color: var(--wsl-heading); margin-bottom: 8px; }
.wsl-qty-controls { display: flex; align-items: center; justify-content: center; gap: 6px; }
.wsl-qty-controls button {
  width: 26px; height: 26px; border: 1px solid var(--wsl-border); background: var(--wsl-bg); border-radius: 5px;
  cursor: pointer; font-size: .95rem; line-height: 1; color: var(--wsl-heading);
}
.wsl-qty-controls button:hover { background: var(--wsl-muted-bg); }
.wsl-qty-controls button:disabled { cursor: not-allowed; opacity: .35; }
.wsl-qty-controls button:disabled:hover { background: var(--wsl-bg); }
.wsl-qty-controls input { width: 40px; text-align: center; border: 1px solid var(--wsl-border); border-radius: 5px; padding: 5px 0; font-size: .85rem; }

.wsl-total-bar {
  display: flex; justify-content: space-between; align-items: center; background: var(--wsl-muted-bg);
  padding: 14px 16px; border-radius: 8px; margin: 18px 0; font-weight: 700;
}
.wsl-total-bar .wsl-price { color: var(--wsl-accent); font-size: 1.15rem; }

.wsl-field { margin-bottom: 18px; }
.wsl-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .88rem; color: var(--wsl-heading); }
.wsl-field small { font-weight: 400; color: #999; }
.wsl-dropzone {
  border: 2px dashed var(--wsl-border); border-radius: 8px; padding: 18px; text-align: center; cursor: pointer;
  background: var(--wsl-muted-bg); transition: border-color .15s ease;
}
.wsl-dropzone:hover { border-color: var(--wsl-accent); }
.wsl-dropzone input[type="file"] { display: none; }
.wsl-dropzone__filename { font-size: .82rem; color: var(--wsl-heading); font-weight: 600; margin-top: 6px; }
.wsl-field textarea { width: 100%; padding: 10px; border: 1px solid var(--wsl-border); border-radius: 7px; font-family: inherit; }

.wsl-audio-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wsl-audio-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--wsl-border); background: var(--wsl-bg); cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--wsl-heading);
}
.wsl-audio-btn:hover { border-color: var(--wsl-accent); }
.wsl-audio-btn.recording { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.wsl-audio-btn.recording #wslAudioRecordIcon { animation: wslPulse 1s ease-in-out infinite; }
@keyframes wslPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.wsl-audio-or { font-size: .8rem; color: #999; }
.wsl-audio-upload { font-size: .85rem; color: var(--wsl-accent); cursor: pointer; text-decoration: underline; }
.wsl-audio-upload input[type="file"] { display: none; }
.wsl-audio-preview { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.wsl-audio-preview audio { height: 36px; max-width: 260px; }
.wsl-link-btn-inline { background: none; border: none; color: #b91c1c; font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.wsl-audio-hint { font-size: .78rem; color: #999; margin: 6px 0 0; }

.wsl-cta {
  width: 100%; padding: 15px; background: var(--wsl-accent); color: var(--wsl-accent-text); border: none;
  border-radius: 8px; font-size: 1.02rem; font-weight: 800; cursor: pointer; transition: background .15s ease;
}
.wsl-cta:hover { background: var(--wsl-accent-hover); }
.wsl-cta:disabled { opacity: .45; cursor: not-allowed; }
.wsl-error { color: #c0392b; background: #fdeeee; border-radius: 6px; padding: 9px 12px; font-size: .87rem; margin-top: 10px; display: none; }
.wsl-success { color: #1a8f4c; background: #eaf7ee; border-radius: 6px; padding: 9px 12px; font-size: .87rem; margin-top: 10px; display: none; }

/* Sticky add-to-cart bar (mobile-first pattern, also useful on desktop when scrolled) */
.wsl-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--wsl-bg);
  border-top: 1px solid var(--wsl-border); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(100%); transition: transform .25s ease;
}
.wsl-sticky-bar.visible { transform: translateY(0); }
.wsl-sticky-bar__info { font-size: .85rem; color: var(--wsl-text); }
.wsl-sticky-bar__price { font-weight: 800; color: var(--wsl-heading); font-size: 1.05rem; }
.wsl-sticky-bar .wsl-cta { width: auto; padding: 12px 28px; }

/* Hero banner slider (Landing Page Settings > banners): stacked slides that
   cross-fade, dots overlaid at the bottom. One banner renders as a plain image. */
.wsl-slider { position: relative; overflow: hidden; }
.wsl-slider__track { display: grid; }
.wsl-slider__slide { grid-area: 1 / 1; display: block; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.wsl-slider__slide.is-active { opacity: 1; visibility: visible; }
.wsl-slider__slide img { display: block; width: 100%; height: auto; }
.wsl-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; z-index: 2; pointer-events: none; }
.wsl-slider__dot { pointer-events: auto; width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1.5px solid #fff; background: rgba(255,255,255,.45); box-shadow: 0 0 0 1px rgba(0,0,0,.25); cursor: pointer; transition: background .2s, transform .2s; }
.wsl-slider__dot.is-active { background: #fff; transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .wsl-slider__slide { transition: none; } }

.wsl-pulse { animation: wslPulse 1.2s ease; }
@keyframes wslPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } 30% { box-shadow: 0 0 0 6px rgba(26,127,90,.22); } }

/* Wholesale product card + grid (compact: fixed-width tracks so a few products don't stretch) */
.wsl-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 8px 0 24px; }
@media (min-width: 640px) { .wsl-pgrid { grid-template-columns: repeat(auto-fill, 200px); gap: 16px; } }
.container--no-max > .wsl-pgrid { padding-left: 16px; padding-right: 16px; }
.wsl-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e8ec; border-radius: 10px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.wsl-pcard:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, .10); transform: translateY(-2px); border-color: #d5d9e0; }
.wsl-pcard__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #f3f4f6; overflow: hidden; }
.wsl-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.wsl-pcard:hover .wsl-pcard__media img { transform: scale(1.04); }
.wsl-pcard__moq { position: absolute; top: 8px; left: 8px; background: rgba(17, 24, 39, .88); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; }
.wsl-pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; flex: 1; }
.wsl-pcard__title { color: #111827; font-size: 12.5px; font-weight: 600; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.wsl-pcard__title:hover { color: var(--wsl-accent); }
.wsl-pcard__price { display: flex; align-items: baseline; gap: 4px; margin-top: auto; }
.wsl-pcard__price strong { font-size: 16px; font-weight: 800; color: #111827; }
.wsl-pcard__from, .wsl-pcard__unit { font-size: 11px; color: #6b7280; }
.wsl-pcard__cta { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 7px; background: var(--wsl-accent); color: var(--wsl-accent-text); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: background .2s ease; }
.wsl-pcard__cta:hover { background: var(--wsl-accent-hover); color: var(--wsl-accent-text); }
.wsl-pcard__cta svg { width: 12px; height: 12px; transition: transform .2s ease; }
.wsl-pcard__cta:hover svg { transform: translateX(3px); }

/* =========================================================================
   Wholesale landing page, PHONE layout (body.template-wholesale-index) -- one layout system
   - spacing scale: 4 8 12 16 20 24 32 40 48
   - ONE content boundary shared by header, hero, collections, tabs, featured
     and benefits: centred, max 1280px, gutter clamp(16px, 4vw, 32px)
   ========================================================================= */
@media (max-width: 767.98px) {

body.template-wholesale-index {
  --wsl-gutter: clamp(16px, 4vw, 32px);
  --wsl-max: 1280px;
  --wsl-gap: 32px;          /* vertical rhythm between sections */
  overflow-x: hidden;
}
@media (min-width: 768px) { body.template-wholesale-index { --wsl-gap: 48px; } }

/* shared content boundary */
body.template-wholesale-index #content .container,
body.template-wholesale-index #content .wsl-section {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--wsl-max);
  margin-inline: auto;
  padding-inline: var(--wsl-gutter);
}
body.template-wholesale-index #content .wsl-section { padding-block: 0; }
body.template-wholesale-index .logo-area { padding-inline: var(--wsl-gutter); }

/* header: equal-weight icons, 44px touch targets, one baseline */
body.template-wholesale-index .logo-area { align-items: center; }
body.template-wholesale-index .logo-area__left__inner,
body.template-wholesale-index .logo-area__right__inner { display: flex; align-items: center; gap: 4px; }
body.template-wholesale-index .logo-area .mobile-nav-toggle,
body.template-wholesale-index .logo-area__left .show-search-link,
body.template-wholesale-index .logo-area .header-account-link,
body.template-wholesale-index .logo-area .cart-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* the 44px touch box is centred on the icon, so pull it out by 10px to keep the ICON on the gutter line */
body.template-wholesale-index .logo-area__left__inner { margin-left: -10px; }
body.template-wholesale-index .logo-area__right__inner { margin-right: -10px; }

/* hero: inside the shared boundary, rounded, proper top/bottom space */
body.template-wholesale-index #content > .container.cf { margin-top: 16px; margin-bottom: 0; }
@media (min-width: 768px) { body.template-wholesale-index #content > .container.cf { margin-top: 24px; } }
body.template-wholesale-index .wsl-slider,
body.template-wholesale-index #wholesale-hero-slideshow { border-radius: 12px; overflow: hidden; }
body.template-wholesale-index .wsl-slider__slide img { width: 100%; height: auto; }

/* section titles: one size, one rhythm */
body.template-wholesale-index #content .hometitle { margin: 0 0 16px; padding: 0; text-align: center; }
body.template-wholesale-index #content .hometitle .has-paging__title,
body.template-wholesale-index #content .wsl-section > h2 {
  font-size: clamp(22px, 5.4vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: 0; text-transform: none;
}
body.template-wholesale-index #content .wsl-section > h2 { text-align: center; margin: 0 0 20px; }
body.template-wholesale-index #custom_collection_section,
body.template-wholesale-index .homepage_collection_tab,
body.template-wholesale-index .wsl-featured,
body.template-wholesale-index #content .wsl-section { margin-top: var(--wsl-gap); margin-bottom: 0; }
body.template-wholesale-index #content .wsl-section:last-of-type { margin-bottom: var(--wsl-gap); }

/* collections on phones: ONE swipeable row of equal circles, bleeding to the screen edges, snapping to each item */
body.template-wholesale-index #custom_collection_section .product-grid.product-grid--per-row-6 {
  display: flex !important; flex-wrap: nowrap !important; justify-content: safe center; align-items: flex-start;
  gap: 16px; overflow-x: auto; overflow-y: hidden;
  margin-inline: calc(var(--wsl-gutter) * -1); padding: 4px var(--wsl-gutter) 14px; scroll-padding-inline: var(--wsl-gutter);
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
}
body.template-wholesale-index #custom_collection_section .product-grid.product-grid--per-row-6::-webkit-scrollbar { display: none; }
body.template-wholesale-index #custom_collection_section .product-grid .product-block {
  flex: 0 0 112px !important; width: 112px !important; max-width: none; margin: 0; padding: 0; scroll-snap-align: start;
}
body.template-wholesale-index #custom_collection_section .image-cont { width: 100%; max-width: 112px; margin: 0 auto; }
body.template-wholesale-index #custom_collection_section .product-block__detail { padding: 12px 0 0; }
body.template-wholesale-index #custom_collection_section .product-block__title {
  text-align: center; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* tabs (when 2+ collections have products): scrollable pills inside the boundary */
body.template-wholesale-index .homepage_collection_tab .tabs { padding-inline: var(--wsl-gutter); }

/* featured / tab products: 2-up on phones, fixed-size cards from tablet up, left edge on the shared boundary */
body.template-wholesale-index .wsl-pgrid { padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) {
  body.template-wholesale-index .wsl-pgrid { grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); gap: 16px; justify-content: start; }
}
@media (min-width: 1024px) { body.template-wholesale-index .wsl-pgrid { gap: 20px; } }
body.template-wholesale-index .wsl-pcard { min-width: 0; height: 100%; }
body.template-wholesale-index .wsl-pcard__title { font-size: 13px; }
@media (max-width: 380px) {
  body.template-wholesale-index .wsl-pcard__body { padding: 8px 8px 10px; }
  body.template-wholesale-index .wsl-pcard__price strong { font-size: 15px; }
  body.template-wholesale-index .wsl-pcard__cta { padding: 8px 6px; font-size: 11.5px; }
}

/* benefits: no giant lone card on desktop, comfortable columns */
body.template-wholesale-index .wsl-benefits { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { body.template-wholesale-index .wsl-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { body.template-wholesale-index .wsl-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
body.template-wholesale-index .wsl-benefit { padding: 20px; }
}

/* =========================================================================
   Wholesale landing page, TABLET/DESKTOP (>= 768px): same layout as the D2C home --
   full-bleed banner, theme container widths and heading styles, 6-up collection row,
   4-up product grid. The phone layout above is untouched.
   ========================================================================= */
@media (min-width: 768px) {
  /* full-width banner, edge to edge (what the D2C home hero does) */
  body.template-wholesale-index #content > .container.cf {
    max-width: none !important; width: 100% !important; margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important;
  }
  body.template-wholesale-index .wsl-slider,
  body.template-wholesale-index #wholesale-hero-slideshow { border-radius: 0; }
  body.template-wholesale-index .wsl-slider__slide img { width: 100%; height: auto; display: block; }

  /* collections: D2C's row, items centred when there are only a few */
  body.template-wholesale-index #custom_collection_section .product-grid.product-grid--per-row-6 {
    display: grid !important; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(160px, 230px)) !important;
    gap: 0 24px; padding: 0; justify-content: center; justify-items: stretch;
  }
  body.template-wholesale-index #custom_collection_section .product-grid .product-block { flex: none !important; width: auto !important; max-width: none; }

  /* products: compact fixed-width cards (5-6 across on a wide screen), not stretched to fill */
  body.template-wholesale-index .wsl-pgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 220px)); justify-content: start; gap: 20px; padding: 0 0 24px; }
  body.template-wholesale-index .wsl-benefits { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

/* tier cards are tappable: show it, and mark the bracket the buyer picked as their target */
.wsl-tier-card { cursor: pointer; }
.wsl-tier-card.picked:not(.active) { outline: 2px dashed var(--wsl-accent); outline-offset: 2px; }
.wsl-tier-hint { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .85rem; font-weight: 600; line-height: 1.4; }
.wsl-tier-hint--ok { background: #ecfdf5; border-color: #bbf7d0; color: #15803d; }

/* quantity boxes are read-only: changed with the - / + buttons only */
.wsl-qty-controls input[readonly] { background: #f6f7f8; cursor: default; caret-color: transparent; user-select: none; -webkit-user-select: none; pointer-events: none; }

/* phones: colour swatches in an even 4-per-row grid */
@media (max-width: 599.98px) {
  .wsl-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
  .wsl-swatch-wrap { width: 100%; }
  .wsl-swatch { width: 52px; height: 52px; }
  .wsl-swatch-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
}

/* size label row with the "Size chart" link on the right */
.wsl-size-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.wsl-size-head .wsl-swatch-label { margin: 0; }
.wsl-size-chart-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--wsl-border); border-radius: 999px; background: #fff; color: var(--wsl-heading); font-size: .78rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.wsl-size-chart-btn:hover { border-color: var(--wsl-accent); background: var(--wsl-muted-bg); }

/* ==================================================================
   Wholesale product page v2 -- card sections (Colour / Quantity / Sizes / Logo & notes)
   ================================================================== */
.wsl-pdp { --wsl-card-bg: #f7f7f5; --wsl-card-line: #ebebe7; gap: 24px 44px; padding: 20px 16px 130px; }
@media (min-width: 861px) {
  .wsl-pdp { padding: 28px 24px 130px; }
  .wsl-pdp__gallery { position: sticky; top: 96px; align-self: start; }
}
.wsl-pdp__info { min-width: 0; }
.wsl-pdp__title { font-size: 1.35rem; line-height: 1.3; font-weight: 800; margin: 0 0 10px; }
@media (min-width: 861px) { .wsl-pdp__title { font-size: 1.6rem; } }

.wsl-price-block { margin: 0 0 16px; }
.wsl-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 0; }
.wsl-price-row__current { font-size: 1.9rem; font-weight: 800; color: var(--wsl-heading); line-height: 1.1; }
.wsl-price-row__current small { font-size: .9rem; font-weight: 600; color: #7a7a7a; }
.wsl-price-row__was { font-size: 1rem; color: #8a8a8a; text-decoration: line-through; }
.wsl-price-row__save { background: var(--wsl-accent); color: var(--wsl-accent-text); font-weight: 800; font-size: .7rem; padding: 4px 8px; border-radius: 6px; letter-spacing: .02em; }
.wsl-price-note { margin: 4px 0 0; font-size: .82rem; color: #7a7a7a; }
.wsl-pdp__moq { margin: 4px 0 0; font-size: .82rem; color: #7a7a7a; }

.wsl-card { background: var(--wsl-card-bg); border: 1px solid var(--wsl-card-line); border-radius: 16px; padding: 16px; margin: 0 0 14px; box-sizing: border-box; min-width: 0; }
.wsl-card__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 14px; }
.wsl-card__title { font-size: .98rem; font-weight: 800; color: var(--wsl-heading); margin: 0; }
.wsl-card__head .wsl-card__title { margin-right: auto; }
.wsl-pill { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: .74rem; font-weight: 800; background: var(--wsl-accent); color: var(--wsl-accent-text); }
.wsl-pill--soft { background: color-mix(in srgb, var(--wsl-accent) 14%, #fff); color: var(--wsl-accent); }
.wsl-pill--soft:empty { display: none; }
.wsl-opt { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: .72rem; font-weight: 700; color: #6f6f6f; background: #ebebe7; }
.wsl-label-caps { margin: 0 0 8px; font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; color: #8a8a8a; }

/* colour tiles */
.wsl-ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 12px 8px; }
.wsl-ctile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; min-width: 0; }
.wsl-ctile__box { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; border: 2px solid #e2e2dd; background: #fff; overflow: visible; transition: border-color .15s ease, box-shadow .15s ease; }
.wsl-ctile__box img, .wsl-ctile__fill { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 8px; object-fit: cover; }
.wsl-ctile__fill--unset { background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 4px, #e2e2e2 4px, #e2e2e2 8px); }
.wsl-ctile:hover .wsl-ctile__box { border-color: #c9c9c3; }
.wsl-ctile.is-active .wsl-ctile__box { border-color: var(--wsl-accent); box-shadow: 0 0 0 1px var(--wsl-accent); }
.wsl-ctile__check { display: none; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--wsl-accent); color: var(--wsl-accent-text); font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--wsl-card-bg); }
.wsl-ctile.is-active .wsl-ctile__check { display: block; }
.wsl-ctile__count { position: absolute; left: -5px; bottom: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #111; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--wsl-card-bg); }
.wsl-ctile__count[hidden] { display: none; }
.wsl-ctile__name { font-size: .68rem; line-height: 1.2; text-align: center; color: #555; max-width: 100%; overflow-wrap: anywhere; }
.wsl-ctile.is-active .wsl-ctile__name { font-weight: 800; color: var(--wsl-heading); }

/* quantity card */
.wsl-qty-row { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; flex-wrap: wrap; }
.wsl-stepper { display: inline-flex; align-items: stretch; border: 1px solid #e0e0da; border-radius: 12px; overflow: hidden; background: #fff; }
.wsl-stepper button { width: 42px; height: 46px; border: 0; background: #ecece7; font-size: 1.25rem; line-height: 1; color: var(--wsl-heading); cursor: pointer; transition: background .15s; }
.wsl-stepper button:hover:not(:disabled) { background: #e0e0da; }
.wsl-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.wsl-stepper output { min-width: 52px; display: flex; align-items: center; justify-content: center; padding: 0 6px; font-weight: 800; font-size: 1.1rem; color: var(--wsl-heading); }
.wsl-qty-price { line-height: 1.35; }
.wsl-qty-price strong { font-size: 1.2rem; font-weight: 800; color: var(--wsl-heading); }
.wsl-qty-price small { font-size: .78rem; color: #7a7a7a; }
.wsl-qty-price__total { font-size: .92rem; font-weight: 700; color: var(--wsl-heading); }

.wsl-card .wsl-tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin: 0; }
.wsl-card .wsl-tier-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; background: #fff; border: 1.5px solid #e4e4df; border-radius: 12px; cursor: pointer; font: inherit; min-width: 0; transition: border-color .15s, background .15s; }
.wsl-card .wsl-tier-card:hover { border-color: #c4c4be; }
.wsl-card .wsl-tier-card.active { border-color: var(--wsl-accent); background: color-mix(in srgb, var(--wsl-accent) 7%, #fff); }
.wsl-card .wsl-tier-card__range { font-size: .7rem; font-weight: 700; color: #6f6f6f; text-transform: none; letter-spacing: 0; }
.wsl-card .wsl-tier-card__price { font-size: .98rem; font-weight: 800; color: var(--wsl-heading); margin: 0; }
.wsl-card .wsl-tier-card__save { font-size: .66rem; font-weight: 800; color: #15803d; }
.wsl-card .wsl-tier-card__save--base { color: #9a9a9a; font-weight: 700; }
.wsl-card .wsl-nudge { margin: 14px 0 0; padding: 12px 14px; background: #ecf7ef; border: 1px solid #cfe9d6; border-radius: 12px; font-size: .84rem; line-height: 1.45; color: #1f4d2c; gap: 10px; }
.wsl-card .wsl-nudge strong { color: #14532d; }
.wsl-card .wsl-nudge button { background: #1f8a4c; padding: 9px 14px; border-radius: 9px; font-weight: 800; font-size: .8rem; }

/* sizes card */
.wsl-card .wsl-size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (min-width: 560px) { .wsl-card .wsl-size-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); } }
.wsl-sz { background: #fff; border: 1px solid #e4e4df; border-radius: 12px; padding: 10px 8px; text-align: center; min-width: 0; }
.wsl-sz__label { font-weight: 800; font-size: .88rem; color: var(--wsl-heading); margin: 0 0 8px; white-space: nowrap; }
.wsl-sz__label small { font-weight: 500; color: #8a8a8a; font-size: .74rem; }
.wsl-sz__ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; }
.wsl-sz__ctrl button { flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: #ecece7; font-size: 1rem; line-height: 1; color: var(--wsl-heading); cursor: pointer; }
.wsl-sz__ctrl button:hover:not(:disabled) { background: #dfdfd9; }
.wsl-sz__ctrl button:disabled { opacity: .35; cursor: not-allowed; }
.wsl-sz__qty { min-width: 24px; font-weight: 800; font-size: .95rem; color: var(--wsl-heading); }
.wsl-sz--out { opacity: .6; }
.wsl-sz__out { font-size: .72rem; color: #c0392b; font-weight: 700; }
.wsl-card .wsl-size-chart-btn { padding: 0; border: 0; border-bottom: 1.5px solid var(--wsl-heading); border-radius: 0; background: none; font-size: .76rem; font-weight: 800; }
.wsl-card .wsl-size-chart-btn:hover { background: none; border-color: var(--wsl-accent); color: var(--wsl-accent); }
.wsl-progress { height: 5px; margin: 14px 0 0; background: #e3e3de; border-radius: 999px; overflow: hidden; }
.wsl-progress > span { display: block; height: 100%; width: 0; background: var(--wsl-accent); border-radius: inherit; transition: width .2s ease; }
.wsl-sel-help { margin: 8px 0 0; font-size: .8rem; color: #6f6f6f; }
.wsl-sel-help--ok { color: #15803d; font-weight: 700; }

/* logo / notes / voice card */
.wsl-card .wsl-dropzone { display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; background: #fff; border: 1.5px dashed color-mix(in srgb, var(--wsl-accent) 45%, #fff); border-radius: 12px; cursor: pointer; }
.wsl-dropzone__icon { flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: color-mix(in srgb, var(--wsl-accent) 12%, #fff); color: var(--wsl-accent); }
.wsl-dropzone__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wsl-dropzone__text strong { font-size: .88rem; color: var(--wsl-heading); }
.wsl-dropzone__text small { font-size: .74rem; color: #7a7a7a; }
.wsl-card .wsl-dropzone__filename { margin: 6px 2px 0; }
.wsl-notes { display: block; width: 100%; box-sizing: border-box; margin: 12px 0 0; padding: 12px; border: 1px solid #e0e0da; border-radius: 12px; background: #fff; font: inherit; font-size: .9rem; resize: vertical; }
.wsl-notes:focus { outline: none; border-color: var(--wsl-accent); }
.wsl-voice { margin: 12px 0 0; }
.wsl-card .wsl-audio-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid #e0e0da; border-radius: 12px; background: #fff; text-align: left; }
.wsl-voice__icon { flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--wsl-accent) 12%, #fff); font-size: 1rem; }
.wsl-voice__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wsl-voice__text strong { font-size: .88rem; color: var(--wsl-heading); font-weight: 800; }
.wsl-voice__text small { font-size: .74rem; color: #7a7a7a; font-weight: 500; }
.wsl-card .wsl-audio-upload { display: inline-block; margin: 8px 2px 0; font-size: .8rem; }
.wsl-info { margin: 0 0 14px; padding: 14px; border-radius: 14px; background: #fff3e4; border: 1px solid #f4dcbc; font-size: .84rem; line-height: 1.5; color: #5c4320; }
.wsl-info p { margin: 0 0 6px; } .wsl-info p:last-child { margin: 0; }

.wsl-pdp .wsl-cta { border-radius: 14px; padding: 16px; font-size: .95rem; letter-spacing: .03em; }
.wsl-pdp .wsl-cta:disabled { opacity: .5; }

/* floating bottom bar (always visible) */
.wsl-sticky-bar { left: 12px; right: 12px; bottom: 12px; max-width: 760px; margin: 0 auto; padding: 10px 12px; gap: 12px; border: 1px solid var(--wsl-card-line, #ebebe7); border-radius: 16px; box-shadow: 0 8px 28px rgba(15, 23, 42, .18); transform: none; }
.wsl-sticky-bar__thumb { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #f3f3f0; }
.wsl-sticky-bar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.wsl-sticky-bar__name { font-size: .74rem; color: #6f6f6f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsl-sticky-bar__price { font-size: 1.05rem; font-weight: 800; color: var(--wsl-heading); }
.wsl-sticky-bar__info small { color: #7a7a7a; font-size: .74rem; }
.wsl-sticky-bar .wsl-cta { flex: 0 0 auto; width: auto; padding: 12px 22px; border-radius: 12px; font-size: .88rem; }

/* the theme upper-cases buttons/labels and uses a serif heading face: keep the product cards in plain sans, normal case */
.wsl-card, .wsl-card button, .wsl-card label, .wsl-card small, .wsl-card strong, .wsl-card output,
.wsl-sticky-bar button, .wsl-sticky-bar small { text-transform: none; letter-spacing: normal; }
.wsl-card .wsl-label-caps { text-transform: uppercase; letter-spacing: .09em; }
.wsl-card__title, .wsl-price-row__current, .wsl-pdp__title { font-family: var(--base-font-family, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); }
.wsl-card__title { font-weight: 800; }
.wsl-ctile__name { font-family: inherit; }
.wsl-pdp .wsl-card .wsl-ctile__name, .wsl-pdp .wsl-card .wsl-tier-card__range, .wsl-pdp .wsl-card .wsl-tier-card__save,
.wsl-pdp .wsl-card .wsl-size-chart-btn, .wsl-pdp .wsl-card .wsl-nudge button, .wsl-pdp .wsl-card .wsl-sz__label { text-transform: none !important; letter-spacing: normal !important; }
.wsl-pdp .wsl-card .wsl-size-chart-btn { text-transform: none !important; }
.wsl-pdp .wsl-card .wsl-label-caps { text-transform: uppercase !important; letter-spacing: .09em !important; }
.wsl-pdp .wsl-card .wsl-tier-card__save--base { text-transform: none !important; }

/* rating row + reviews section */
.wsl-stars { --p: 100%; position: relative; display: inline-block; width: max-content; align-self: flex-start; font-size: 1rem; letter-spacing: 2px; line-height: 1; white-space: nowrap; color: #d6d6d0; -webkit-text-fill-color: #d6d6d0; }
.wsl-stars::after { content: '\2605\2605\2605\2605\2605'; position: absolute; left: 0; top: 0; width: var(--p); overflow: hidden; white-space: nowrap; color: #f59e0b; -webkit-text-fill-color: #f59e0b; }
.wsl-stars--md { font-size: 1.05rem; }
.wsl-stars--lg { font-size: 1.4rem; letter-spacing: 3px; }
.wsl-rating { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .86rem; color: #555; text-decoration: none; }
.wsl-rating strong { color: var(--wsl-heading); }

.wsl-reviews { max-width: 1160px; margin: 0 auto; padding: 8px 16px 150px; box-sizing: border-box; }
@media (min-width: 861px) { .wsl-reviews { padding: 16px 24px 150px; } }  /* bottom padding is overridden at the end of this file */
.wsl-reviews__title { margin: 0 0 16px; font-size: 1.25rem; font-weight: 800; color: var(--wsl-heading); font-family: var(--base-font-family, inherit); text-transform: none; letter-spacing: normal; }
.wsl-reviews__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 861px) { .wsl-reviews__layout { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; } }

.wsl-reviews__summary { background: var(--wsl-card-bg, #f7f7f5); border: 1px solid var(--wsl-card-line, #ebebe7); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.wsl-reviews__score { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--wsl-heading); }
.wsl-reviews__score small { font-size: .95rem; font-weight: 600; color: #8a8a8a; margin-left: 4px; }
.wsl-reviews__count { font-size: .84rem; color: #6f6f6f; }
.wsl-reviews__bars { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.wsl-reviews__bars li { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 8px; font-size: .78rem; color: #555; }
.wsl-reviews__bars span { font-weight: 700; color: #b45309; }
.wsl-reviews__bars i { display: block; height: 7px; border-radius: 999px; background: #e3e3de; overflow: hidden; }
.wsl-reviews__bars b { display: block; height: 100%; border-radius: inherit; background: #f59e0b; }
.wsl-reviews__bars em { font-style: normal; text-align: right; color: #8a8a8a; }

/* phones: swipeable cards; desktop: a tidy grid */
.wsl-reviews__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
.wsl-reviews__track::-webkit-scrollbar { display: none; }
.wsl-review { flex: 0 0 min(300px, 86%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--wsl-border); border-radius: 16px; padding: 16px; box-sizing: border-box; }
@media (min-width: 861px) {
  .wsl-reviews__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); overflow: visible; padding: 0; margin: 0; }
  .wsl-review { flex: none; }
}
.wsl-review__head { display: flex; align-items: center; gap: 10px; }
.wsl-review__avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--wsl-accent) 14%, #fff); color: var(--wsl-accent); font-weight: 800; font-size: 1rem; }
.wsl-review__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.wsl-review__who strong { font-size: .92rem; color: var(--wsl-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsl-review__who span { font-size: .74rem; color: #8a8a8a; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.wsl-review__who .wsl-verified, .wsl-verified { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: #16a34a; font-weight: 700; font-size: .78rem; line-height: 1.2; }
.wsl-verified svg { flex: none; }
.wsl-review h3 { margin: 0; font-size: .95rem; font-weight: 800; color: var(--wsl-heading); font-family: inherit; text-transform: none; letter-spacing: normal; line-height: 1.3; }
.wsl-review p { margin: 0; font-size: .88rem; line-height: 1.55; color: #444; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.wsl-review__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--wsl-muted-bg); margin-top: auto; }
/* the page's bottom padding exists to clear the floating bar; when reviews follow, they carry it instead */
.wsl-pdp:has(+ .wsl-reviews) { padding-bottom: 24px; }

/* nudge box + button follow the accent too (was a fixed green) */
.wsl-card .wsl-nudge { background: color-mix(in srgb, var(--wsl-accent) 7%, #fff); border-color: color-mix(in srgb, var(--wsl-accent) 25%, #fff); color: #333; }
.wsl-card .wsl-nudge strong { color: var(--wsl-accent); }
.wsl-card .wsl-nudge button { background: var(--wsl-accent); color: var(--wsl-accent-text); }
.wsl-card .wsl-nudge button:hover { background: var(--wsl-accent-hover); }

/* narrow phones (iPhone SE 375, 360, 320): the 3-up size tiles were too tight for - / number / +, so the
   buttons touched or spilled past the tile edges. Tighter controls up to 400px; two columns below 340px. */
@media (max-width: 400px) {
  .wsl-sz { padding: 10px 4px; }
  .wsl-sz__ctrl { gap: 3px; }
  .wsl-sz__ctrl button { width: 24px; height: 24px; font-size: .95rem; }
  .wsl-sz__qty { min-width: 18px; font-size: .88rem; text-align: center; }
}
@media (max-width: 340px) {
  .wsl-card .wsl-size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wsl-reviews, .wsl-reviews p, .wsl-reviews h2, .wsl-reviews h3, .wsl-reviews li, .wsl-reviews span, .wsl-reviews strong, .wsl-reviews em, .wsl-reviews div { font-family: var(--base-font-family, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif); }

/* "How we print this" block (replaces the old benefit cards) */
.wsl-print { max-width: 1240px; margin: 0 auto; padding: 28px 16px 36px; font-family: 'Poppins', sans-serif; }
.wsl-print__panel { max-width: 1134px; margin: 0 auto; background: #fafafa; padding: 24px 33px 28px; }
.wsl-print__note { margin: 0 0 24px; padding: 17px 24px; text-align: center; font-size: 13px; line-height: 1.6; color: #8a7d70; background: #fdf4e8; border: 1px dashed #efd9b8; border-radius: 4px; }
.wsl-print__h { margin: 0 0 22px; font: 600 15px/1.2 'Poppins', sans-serif; color: #1e3a6e; letter-spacing: 0; text-align: left; text-transform: none; }
.wsl-print__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; align-items: start; }
.wsl-pm { --c: #2f8f6b; --t: #fdf0d6; --tc: #d97706; position: relative; background: #fff; border: 1px solid #e3e6ec; border-top: 0; border-radius: 12px; padding: 22px 24px 14px 20px; }
.wsl-pm::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 12px; border-top: 3px solid var(--c); border-radius: 12px 12px 0 0; pointer-events: none; }
.wsl-pm--orange { --c: #f59e0b; } .wsl-pm--navy { --c: #1e3a6e; } .wsl-pm--gold { --c: #d4a017; }
.wsl-pm__moq { position: absolute; top: -14px; right: -2px; z-index: 1; min-width: 38px; height: 38px; padding: 0 5px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e3e6ec; border-radius: 999px; box-shadow: 0 1px 4px rgba(16,24,40,.12); font: 700 9px/1 'Poppins', sans-serif; letter-spacing: .02em; color: #1e3a6e; }
.wsl-pm__top { display: flex; gap: 16px; align-items: flex-start; }
.wsl-pm__icon { flex: 0 0 46px; margin-top: 4px; }
.wsl-pm__main { flex: 1; min-width: 0; }
.wsl-pm__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wsl-pm__title b { font: 600 17px/1.2 'Poppins', sans-serif; color: #1e3a6e; }
.wsl-pm__chip { padding: 3px 8px; border-radius: 999px; background: var(--t); color: var(--tc); font: 600 8.5px/1.3 'Poppins', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.wsl-pm__tag { margin: 6px 0 8px; font: 400 13px/1.4 'Poppins', sans-serif; color: #6b7280; }
.wsl-pm__dur { display: flex; align-items: center; gap: 10px; font: 500 11px/1 'Poppins', sans-serif; color: #9aa1ad; }
.wsl-pm__bar { flex: 1; height: 5px; border-radius: 99px; background: #edf0f4; overflow: hidden; display: block; }
.wsl-pm__bar u { display: block; height: 100%; border-radius: 99px; background: #2f8f6b; text-decoration: none; }
.wsl-pm--gold .wsl-pm__bar u { background: #d4a017; }
.wsl-pm__dur strong { font: 600 11px/1 'Poppins', sans-serif; color: #1e3a6e; white-space: nowrap; }
.wsl-pm__sum { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font: 400 11px/1 'Poppins', sans-serif; color: #b4b9c3; cursor: pointer; list-style: none; background: none; border: 0; padding: 0; }
.wsl-pm__sum::-webkit-details-marker { display: none; }
.wsl-pm.is-open .wsl-pm__sum svg { transform: rotate(180deg); }

.wsl-pm__more[hidden] { display: none; }
.wsl-pm__more { margin: 10px 0 2px 62px; font: 400 12px/1.55 'Poppins', sans-serif; color: #6b7280; }
.wsl-print__small { margin: 20px 0 8px; font: 400 11px/1.4 'Poppins', sans-serif; color: #8b93a1; }
.wsl-print__small a { color: #1e3a6e; text-decoration: none; }
.wsl-print__ask { margin: 0; font: 400 14px/1.5 'Poppins', sans-serif; color: #5b6475; }
.wsl-print__ask a { color: #1e3a6e; text-decoration: underline; }
@media (max-width: 767px) {
  .wsl-print__panel { padding: 18px 14px 22px; }
  .wsl-print__grid { grid-template-columns: 1fr; gap: 22px; }
  .wsl-print__note { padding: 12px 14px; }
}

/* ---- write a review (wholesale product page) ---- */
.wsl-reviews__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wsl-reviews__empty p { margin: 0; font-size: .88rem; line-height: 1.45; color: #6f6f6f; }
.wsl-reviews__write { margin-top: 10px; align-self: flex-start; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--wsl-accent); color: var(--wsl-accent-text); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.28); }
.wsl-reviews__write:hover { background: var(--wsl-accent-hover); }
.wsl-rvform { margin-top: 18px; border: 1px solid var(--wsl-border); border-radius: 16px; background: #fff; overflow: hidden; }
.wsl-rvform > summary { padding: 14px 18px; cursor: pointer; font-weight: 800; color: var(--wsl-heading); list-style: none; }
.wsl-rvform > summary::-webkit-details-marker { display: none; }
.wsl-rvform > summary::after { content: "+"; float: right; font-size: 1.2rem; line-height: 1; }
.wsl-rvform[open] > summary::after { content: "\2212"; }
.wsl-rvform__body { padding: 4px 18px 18px; }
.wsl-rvform__rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 4px 0 12px; }
.wsl-rvform__rate input { position: absolute; opacity: 0; pointer-events: none; }
.wsl-rvform__rate label { font-size: 2rem; line-height: 1; color: #d6d6d0; cursor: pointer; transition: color .12s; }
.wsl-rvform__rate input:checked ~ label, .wsl-rvform__rate label:hover, .wsl-rvform__rate label:hover ~ label { color: #f59e0b; }
.wsl-rvform__rate input:focus-visible + label { outline: 2px solid var(--wsl-accent); outline-offset: 2px; border-radius: 4px; }
.wsl-rvform__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .wsl-rvform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wsl-rvform__full { grid-column: 1 / -1; } }
.wsl-rvform label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--wsl-heading); }
.wsl-rvform label small { font-weight: 500; color: #8a8a8a; }
.wsl-rvform .wsl-rvform__rate label { display: inline; font-size: 2rem; line-height: 1; font-weight: 400; color: #d6d6d0; }
.wsl-rvform .wsl-rvform__rate input:checked ~ label, .wsl-rvform .wsl-rvform__rate label:hover, .wsl-rvform .wsl-rvform__rate label:hover ~ label { color: #f59e0b; }
.wsl-rvform input[type=text], .wsl-rvform input[type=email], .wsl-rvform textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d9d9d4; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.wsl-rvform input:focus, .wsl-rvform textarea:focus { outline: 2px solid color-mix(in srgb, var(--wsl-accent) 40%, transparent); border-color: var(--wsl-accent); }
.wsl-rvform__submit { margin-top: 14px; padding: 11px 22px; border: 0; border-radius: 10px; background: var(--wsl-accent); color: var(--wsl-accent-text); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.28); }
.wsl-rvform__submit:hover { background: var(--wsl-accent-hover); }
.wsl-rvform__msg { margin: 14px 0 4px; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }
.wsl-rvform__msg--ok { background: #e8f6ec; color: #1a7f37; }
.wsl-rvform__msg--err { background: #fdecea; color: #b33323; }

/* print-method section: WhatsApp / email as real buttons */
.wsl-print__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wsl-wabtn, .wsl-mailbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font: 700 14px/1 'Poppins', sans-serif; text-decoration: none !important; box-shadow: 0 4px 12px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .12s, box-shadow .12s; }
.wsl-wabtn { background: #25d366; color: #fff !important; }
.wsl-wabtn:hover { background: #1ebe5b; transform: translateY(-1px); }
.wsl-mailbtn { background: #fff; color: #1e3a6e !important; border: 1.5px solid #cfd6e4; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.wsl-mailbtn:hover { border-color: #1e3a6e; transform: translateY(-1px); }
@media (max-width: 480px) { .wsl-print__actions > a { flex: 1 1 100%; justify-content: center; } }

/* wholesale home: tighter space above the "Shop by Collections" and "Featured Wholesale Products" headings */
.template-wholesale-index .custom_collection_section { margin-top: 14px !important; }
.template-wholesale-index .wsl-featured { margin-top: 14px !important; margin-bottom: 28px !important; }
.template-wholesale-index .wsl-featured .hometitle, .template-wholesale-index .custom_collection_section .hometitle { margin-top: 0 !important; margin-bottom: 12px !important; }
@media (min-width: 768px) { .template-wholesale-index .custom_collection_section { margin-top: 22px !important; } .template-wholesale-index .wsl-featured { margin-top: 22px !important; margin-bottom: 36px !important; } }


/* wholesale product page: no dead space between the reviews and the footer; the sticky bar's clearance goes under the footer instead */
.wsl-reviews { padding-bottom: 20px !important; }
body.template-wholesale-product { padding-bottom: 76px; }
.wsl-reviews details.wsl-rvform:not([open]) { display: none; }   /* the "Write a review" button above opens it, so no second bar */
.wsl-rvform { margin-top: 14px; }

/* ---- Visual alignment with the redesigned retail cart/account (lavender page, rounded cards) — derived from --wsl-accent ---- */
:root { --wsl-border: color-mix(in srgb, var(--wsl-accent) 12%, #fff); --wsl-radius: 16px; }
body:has(.wsl-cart) { background: linear-gradient(180deg, color-mix(in srgb, var(--wsl-accent) 7%, #fff) 0, #fff 700px) no-repeat; }
.wsl-cart .wsl-cart-line, .wsl-cart .wsl-cart-summary { border-radius: 16px; box-shadow: 0 2px 10px color-mix(in srgb, var(--wsl-accent) 7%, transparent); }
.wsl-cart h1 { font-weight: 800; letter-spacing: -.01em; }
.wsl-cart .wsl-cart-summary__row--total span:last-child { color: var(--wsl-accent); }

/* =====================================================================
   Cart + checkout pages in the same visual language as the retail site (compact rows, tinted summary, dashed coupon box,
   brand button). Everything derives from --wsl-accent (set from the store's brand colour), nothing is hard-coded.
   ===================================================================== */
.wsl-cart .wsl-cart__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wsl-cart .wsl-cart__top h1 { font-family: "Inter","Poppins",-apple-system,sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
.wsl-cart__pcs { color: var(--wsl-accent); }
.wsl-cart__sub { margin: 4px 0 0; color: #6b7280; font-size: 14px; }
.wsl-clear-top { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--wsl-accent) 9%, #fff); color: var(--wsl-accent); font: 600 14px/1 inherit; text-transform: none; letter-spacing: 0; cursor: pointer; white-space: nowrap; box-shadow: none; }
.wsl-clear-top svg { width: 18px; height: 18px; }

.wsl-cart .wsl-cart-line { border-radius: 16px; border-color: color-mix(in srgb, var(--wsl-accent) 12%, #fff); box-shadow: 0 2px 10px color-mix(in srgb, var(--wsl-accent) 7%, transparent); }
.wsl-cart .wsl-cart-line__img { border-radius: 12px; }
.wsl-cart .wsl-cart-line__name { font-weight: 700; }
.wsl-cart .wsl-cart-line__sub strong { color: var(--wsl-accent); font-size: 1.15rem; }
.wsl-cart .wsl-chip { background: color-mix(in srgb, var(--wsl-accent) 9%, #fff); color: var(--wsl-accent); }

.wsl-cart .wsl-cart-summary { background: color-mix(in srgb, var(--wsl-accent) 4%, #fff); border-color: color-mix(in srgb, var(--wsl-accent) 12%, #fff); border-radius: 16px; box-shadow: 0 2px 10px color-mix(in srgb, var(--wsl-accent) 7%, transparent); display: flex; flex-direction: column; }
.wsl-cart .wsl-cart-summary h2 { font-family: "Inter","Poppins",-apple-system,sans-serif; font-size: 22px; font-weight: 800; text-transform: none; letter-spacing: -.01em; }
.wsl-cart .wsl-cart-summary__row--total span:last-child { color: var(--wsl-accent); font-size: 1.4rem; font-weight: 800; }
.wsl-cart .wsl-coupon-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; text-transform: none; letter-spacing: 0; margin: 0 0 9px; }
.wsl-cart .wsl-coupon-label svg { width: 18px; height: 18px; color: var(--wsl-accent); flex: none; }
.wsl-cart .wsl-coupon-row { display: flex; gap: 8px; }
.wsl-cart .wsl-coupon-row input { flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--wsl-accent) 20%, #fff); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.wsl-cart .wsl-coupon-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wsl-cart .wsl-coupon-row .wsl-btn { height: 44px; border-radius: 10px; width: auto; flex: none; text-transform: none; letter-spacing: 0; }
.wsl-cart .wsl-coupon-applied { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: #E7F6EC; color: #15803D; font-size: 13.5px; }
.wsl-cart .wsl-cart-summary > .wsl-coupon-label, .wsl-cart .wsl-cart-summary > .wsl-coupon-row, .wsl-cart .wsl-cart-summary > .wsl-coupon-msg { order: 5; }
.wsl-cart .wsl-cart-summary > .wsl-coupon-label { margin-top: 14px; }
.wsl-cart .wsl-cart-summary > .wsl-coupon-applied { order: 5; margin-top: 14px; }
.wsl-cart .wsl-cart-summary > .wsl-cart-actions { order: 6; }
.wsl-cart .wsl-cart-summary > .wsl-cart-note { order: 7; }
.wsl-cart .wsl-btn--checkout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: 14px; font-size: 16px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.wsl-cart .wsl-btn--checkout svg { width: 18px; height: 18px; flex: none; }
.wsl-cart .wsl-cart-actions { display: block; margin-top: 14px; }
.wsl-cart-bar .wsl-btn { border-radius: 12px; }
@media (max-width: 575.98px) {
  .wsl-cart .wsl-cart__top h1 { font-size: 22px; }
  .wsl-cart__sub { font-size: 13px; }
  .wsl-clear-top { padding: 10px 12px; font-size: 13px; gap: 6px; }
}
.wsl-clear-top { text-transform: none !important; letter-spacing: 0 !important; }
