/* ==========================================================================
   By Solana — updates.css — loaded after side-cart, before mobile-fixes.
   Small dated additions; fold them into the right layer when that file is next rewritten.
   ========================================================================== */

/* 2026-11-05 — 1. Workshop label "Datums binnenkort online" (cards + PDP gallery stage), same spot
   as the other badges (.badges, top-left); wraps on narrow cards instead of running off the photo.
   Colour: see #6 (2026-11-12, bright pink #F06A9F). */
.badge--workshop{background:var(--accent);color:var(--ink);line-height:1.35}
.card__media .badges{max-width:100%}
.gal__stage .badges{max-width:calc(100% - 20px)}
.gal__stage .badge{font-size:.66rem;padding:7px 12px}

/* 2026-11-05 — 2. (removed same day) The bold category-name row at the top of an opened drawer
   group was dropped again: it duplicated the toggle. No "Alles in ..." row either. */

/* 2026-11-06 — 3. Featured product in the desktop mega panel (ACF "mega_product" on the depth-0
   menu item, first used for Accessoires). Sits in the 290px third grid column, like .mega__promo,
   and hides at the same breakpoint. The mobile drawer never renders it. */
.mega__product{display:flex;flex-direction:column;gap:12px;min-width:0}
.mega__product .card,.mega__product .card:hover{transform:none}
.mega__product .card__title{font-size:.9rem}
.mega__product .card__media{aspect-ratio:4/3}.mega__product .card__media img{object-fit:cover;object-position:center} /* 2026-11-06: 4:3 like .mega__promo img */
.mega__product-link{
  font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent-dk);
  display:inline-flex;align-items:center;gap:6px;align-self:flex-start;
}
.mega__product-link::after{content:"\2192";letter-spacing:0}
.mega__product-link:hover{color:var(--ink)}
@media (max-width:1180px){
  .mega__product{display:none}
}

/* 2026-11-11 — 4. Search results page squeezed to a 620px strip. WordPress puts class "search" on
   <body> of ?s= pages, so the header search-box rule `.search{max-width:620px;justify-self:center}`
   (components.css) also hit <body>: tiny 4-column grid and the ZOEKEN button over the cart.
   Undo it for <body> only; the real search box (div.search[data-bys-search]) is untouched. */
body.search{max-width:none;width:auto;position:static;justify-self:auto;grid-area:auto}

/* 2026-11-11 — 5. Footer logo in the newsletter-button colour (.nl__btn background = var(--accent),
   #C09A85) instead of white. The white transparent WebP (--bys-flogo, set inline in footer.php) is
   used as a mask over an --accent fill, so it stays crisp; the <img> stays in the DOM (alt text)
   but is invisible. Header logo is not affected. */
.footer__brand--tint{
  width:50px;height:50px;background-color:var(--accent);
  -webkit-mask:var(--bys-flogo) center/contain no-repeat;
          mask:var(--bys-flogo) center/contain no-repeat;
}
.footer__brand--tint img{opacity:0}

/* 2026-11-12 — 6. Workshop label colour (Joey). Morning: powder pink "Blush" #EBC9C1 (from the
   colour-swatch map bys_color_hex() in inc/woo-hooks.php; --blush kept for reference). Later the
   same day: brighter pink #F06A9F with dark text #2A1A1F (contrast ~5.8:1, AA). Only
   .badge--workshop; Sale/Nieuw/Bestseller badges keep their own colours. */
:root{--blush:#EBC9C1;--ws-pink:#F06A9F}
.badge.badge--workshop{background:var(--ws-pink);color:#2A1A1F}

/* 2026-11-12 — 7. PDP accordion panels "Kledingmaatadvies" + "Wasvoorschriften" (ACF options,
   Productpagina, group_bys_pdp_002). The size table reuses .spec; first column narrower, and a
   little air between table/list and the line underneath. */
.acc__c table.spec--size th{width:30%;font-size:.88rem;letter-spacing:0;text-transform:none;color:var(--ink);font-weight:500}
.acc__c table.spec--size{margin-top:6px}
.acc__c .acc__note{margin-top:12px;font-size:.84rem;color:var(--muted)}
.acc__c ul + p{margin-top:14px}

/* 2026-11-15 — 8. Wide mega panel (.mega--wide, set in inc/nav.php when a panel has 4+ columns,
   first used for Gepersonaliseerd: Borduren / Bedrukken / Jouw eigen ontwerp / Kraamcadeaus +
   product card). Desktop: 4 link columns + the card column. Below 1180px the base rule
   (1fr 1fr, card hidden) applies, so the columns wrap 2x2. A heading-only column (class
   "mega-col", no links yet) keeps just its .mega__h. */
@media (min-width:1181px){
  .mega.mega--wide{grid-template-columns:repeat(4,minmax(0,1fr)) 240px;width:min(1120px,calc(100vw - 2 * var(--gutter)));gap:30px}
}

/* 2026-11-15 — 9. Three link columns + product card/promo (.mega--c3, set in inc/nav.php when a
   panel has exactly 3 columns and a card), first used for Baby musthaves (Bad & verzorging /
   Babyspeelgoed / Merken + card Happy Horse konijn Richie teddy beige). Without it the card
   wrapped under the first column of the base 1fr 1fr 290px grid. Below 1180px the base rule
   applies (card hidden). */
@media (min-width:1181px){
  .mega.mega--c3{grid-template-columns:repeat(3,minmax(0,1fr)) 240px;width:min(1040px,calc(100vw - 2 * var(--gutter)));gap:30px}
}

/* 2026-11-15 — 10. Long first label "Kraamcadeaus & Gepersonaliseerd" (Joey). Only the FIRST
   depth-0 item (position-based: the theme renders no per-item class) gets tighter tracking, so it
   stays on one line: desktop bar keeps the Sale link on the same row down to 1366px; mobile
   drawer heading stays on one line from 360px (smaller type below 360px). If that item ever
   moves away from the first position, move or drop these rules. */
.catnav__row > .catnav__item:first-child > .catnav__link{letter-spacing:.04em;padding-right:12px;white-space:nowrap}
.drawer__body > .drawer__group:first-child > .drawer__h{letter-spacing:.04em;font-size:.76rem}
@media (max-width:359px){
  .drawer__body > .drawer__group:first-child > .drawer__h{letter-spacing:.02em;font-size:.68rem}
}

/* 2026-11-15 — 11. Sale link wrapped to a 2nd row at 1181-1365px (Joey): the 7 labels + "Sale — tot
   50% korting" were ~90-160px too wide. CSS only, only in that range: less padding between items,
   tighter tracking and slightly smaller type; a 2nd step below 1280px. Measured with Instrument
   Sans: 30-110px to spare at 1181/1280/1365. >=1366px and <=1180px untouched. Overrides #10 for
   the first item inside this range (same specificity, later rule). */
@media (min-width:1181px) and (max-width:1365px){
  .catnav__row > .catnav__item > .catnav__link{padding-left:10px;padding-right:10px;letter-spacing:.07em;font-size:.72rem;gap:5px}
  .catnav__row > .catnav__item:first-child > .catnav__link{padding-left:0;padding-right:10px;letter-spacing:.03em}
  .catnav__sale{padding-left:12px;letter-spacing:.07em;font-size:.7rem;white-space:nowrap}
}
@media (min-width:1181px) and (max-width:1279px){
  .catnav__row > .catnav__item > .catnav__link{padding-left:7px;padding-right:7px;letter-spacing:.04em;font-size:.7rem;gap:4px}
  .catnav__row > .catnav__item:first-child > .catnav__link{padding-left:0;padding-right:7px;letter-spacing:.02em}
  .catnav__sale{padding-left:8px;letter-spacing:.04em;font-size:.68rem}
}

/* 2026-11-15 — 12. Flat mega panel (.mega--flat, set in inc/nav.php when a panel has ONLY loose
   depth-1 links, no columns), first used for Kraamcadeaus & Gepersonaliseerd (Joey): one list of
   11 links without a heading, in 2 CSS columns (6 left / 5 right) + the product card. Below 1180px
   the card is hidden and the list spans the panel. The mobile drawer shows one plain list. */
.mega.mega--flat .mega__flat{grid-column:1 / -1;min-width:0}
.mega__list--cols{columns:2;column-gap:40px}
.mega__list--cols li{break-inside:avoid;margin:0 0 9px}
.mega__list--cols li + li{margin-top:0}
@media (min-width:1181px){
  .mega.mega--flat{grid-template-columns:minmax(0,1fr) 240px;width:min(720px,calc(100vw - 2 * var(--gutter)));gap:40px}
  .mega.mega--flat .mega__flat{grid-column:auto}
}

/* 2026-11-16 — Cart controls: avoid header .actions and generic input collisions. */
.woowrap .woocommerce-cart-form__contents td.actions{
  display:table-cell;grid-area:auto;text-align:right;overflow-wrap:normal;
}
.woowrap .woocommerce-cart-form__contents td.actions .coupon{
  float:left;display:inline-flex;flex-wrap:wrap;gap:10px;max-width:100%;margin-bottom:12px;
}
.woowrap .woocommerce-cart-form__contents td.actions .coupon input{
  width:200px;min-width:0;flex:1 1 160px;
}
.woowrap .woocommerce-cart-form__contents td.actions .button{
  flex:0 0 auto;white-space:nowrap;overflow-wrap:normal;max-width:100%;
}
.woowrap .woocommerce-cart-form__contents td.actions > .button{margin:0 0 12px 12px}
.woowrap .woocommerce-cart-form__contents .quantity.qty{
  display:inline-flex;width:120px;max-width:100%;padding:0;
}
.woowrap .woocommerce-cart-form__contents .quantity .qty__btn{
  width:36px;min-width:36px;flex:0 0 36px;padding:0;min-height:44px;
}
.woowrap .woocommerce-cart-form__contents .quantity input.qty__input{
  width:46px;min-width:0;flex:1 1 46px;min-height:44px;padding:0;
  border:0;background:transparent;text-align:center;
}
.bys-cart-layout .woocommerce > .cart-collaterals{min-width:0}
@media (min-width:901px) and (max-width:1180px){
  .bys-cart-layout .woocommerce{grid-template-columns:minmax(0,1fr)}
  .bys-cart-layout .woocommerce > .cart-collaterals{grid-column:1;position:static}
}
@media (max-width:600px){
  .woowrap .woocommerce-cart-form__contents td.actions{display:block}
  .woowrap .woocommerce-cart-form__contents td.actions .coupon{float:none;display:flex;width:100%}
  .woowrap .woocommerce-cart-form__contents td.actions .coupon input,
  .woowrap .woocommerce-cart-form__contents td.actions .coupon .button{width:100%;flex:1 1 100%}
  .woowrap .woocommerce-cart-form__contents td.actions > .button{width:100%;margin:0 0 12px}
}

/* 2026-11-16 — Hide only the Christmas homepage theme tile on phones. */
@media (max-width:600px){
  .bys-home .themes > a.theme[href$="/product-categorie/feestdagen/kerst/"]{display:none}
}

/* 2026-11-16 — 13. Homepage Instagram block (template-parts/home/instagram.php, last block above the
   footer; Joey). Smash Balloon feed #1, 3x3. Centred head like .home-favs__head, square tiles with
   an even 10px gap (8px on phones, still 3 columns), small radius. The plugin's own header, caption,
   "Meer laden" and blue "Follow" button are hidden here; our .bys-btn "Volg ons" sits underneath.
   Scoped to .home-ig, so other pages (and any other feed) are untouched. */
.home-ig{--ig-gap:10px;--ig-radius:4px}
.home-ig__head{text-align:center;max-width:660px;margin:0 auto clamp(24px,2.8vw,40px)}
.home-ig__handle{
  display:inline-block;margin-top:10px;font-size:.72rem;font-weight:600;letter-spacing:.16em;
  color:var(--accent-dk);border-bottom:1px solid transparent;padding-bottom:2px;
  transition:color .25s var(--ease),border-color .25s var(--ease);
}
.home-ig__handle:hover{color:var(--ink);border-color:var(--accent)}
.home-ig__feed{max-width:960px;margin-inline:auto}
.home-ig #sb_instagram{padding:0!important;width:100%!important;max-width:none}
.home-ig #sb_instagram .sb_instagram_header,
.home-ig #sb_instagram #sbi_load,
.home-ig #sb_instagram .sbi_info,
.home-ig #sb_instagram .sbi_caption_wrap{display:none!important}
.home-ig #sb_instagram #sbi_images{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:var(--ig-gap)!important;padding:0!important;margin:0!important;width:100%!important;float:none!important;
}
.home-ig #sb_instagram #sbi_images .sbi_item{
  width:auto!important;max-width:none!important;padding:0!important;margin:0!important;float:none!important;
  min-width:0;display:block!important;
}
.home-ig #sb_instagram .sbi_photo_wrap{position:relative;overflow:hidden;border-radius:var(--ig-radius);background:var(--cream-2)}
.home-ig #sb_instagram .sbi_photo{
  display:block!important;position:relative;width:100%!important;height:auto!important;aspect-ratio:1/1;
  overflow:hidden;border-radius:var(--ig-radius);background-size:cover!important;background-position:center!important;
}
.home-ig #sb_instagram .sbi_photo img{
  position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;
  object-fit:cover;border-radius:var(--ig-radius);transition:opacity .4s var(--ease);
}
.home-ig #sb_instagram .sbi_photo:hover img{opacity:.85}
.home-ig__cta{text-align:center;margin:clamp(24px,2.8vw,38px) 0 0}
@media (max-width:600px){
  .home-ig{--ig-gap:8px;--ig-radius:3px}
  .home-ig__cta .bys-btn{width:100%;max-width:320px}
}

/* 2026-11-16 — Keep iDEAL | Wero and its logo together in checkout. */
.woocommerce-checkout-payment li.payment_method_mollie_wc_gateway_ideal > label{
  display:inline-flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;
  gap:8px;width:auto;max-width:calc(100% - 24px);vertical-align:middle;
}
.woocommerce-checkout-payment li.payment_method_mollie_wc_gateway_ideal > label img{
  flex:0 0 auto;float:none;width:auto;max-height:24px;margin:0;
}

/* 2026-11-17 — 14. Colour filter in the shop/category filter sidebar (template-parts/archive/filters.php,
   group "Kleur", pa_kleur). Same .sf__opt rows as the other groups, plus a small round swatch from
   bys_color_hex(). First 10 colours visible, the rest behind a native <details> "+ N meer kleuren". */
.sf__sw{width:14px;height:14px;border-radius:50%;flex:none;background:var(--cream-2,#eee);box-shadow:inset 0 0 0 1px rgba(58,43,35,.22)}
.sf__more{margin:0}
.sf__more > summary{list-style:none;cursor:pointer;padding:6px 0 2px;font-size:.78rem;text-decoration:underline;text-underline-offset:3px;color:var(--ink-soft)}
.sf__more > summary::-webkit-details-marker{display:none}
.sf__more[open] > summary{display:none}

/* 2026-11-17 — 15. Light-only + header logo in dark mode (Joey/Linda).
   a) CSS counterpart of <meta name="color-scheme" content="light only"> (inc/setup.php): tells
      Chrome/Samsung Internet not to auto-darken the site. (Referenced there as "#14"; it had gone
      missing from this file, re-added here.)
   b) When the phone is in dark mode (prefers-color-scheme:dark, also what Samsung/Android
      auto-dark reports), the header logo shows the SAME variant as the footer logo (#5): the
      By Solana logo in --accent #C09A85. Pre-tinted file uploads/2026/11/bysolana-logo-accent.webp,
      generated 1:1 from the white logo the footer masks (2026/10/bysolana-logo-wit.webp), so it is
      a plain image and not a background colour that force-dark could recolour. Light mode: no change. */
:root{color-scheme:light only}
@media (prefers-color-scheme:dark){
  .brand img{content:url("/wp-content/uploads/2026/11/bysolana-logo-accent.webp")}
}

/* 2026-11-18 — 16. Product options (WAPF: Garen, Lettertype, Naam, Inpakken) in cart, side cart and
   checkout review on phones (Linda). In the checkout review the values stood letter by letter under
   each other: mobile-fixes.css #2 puts overflow-wrap:anywhere on .woowrap td and the 2-column
   dt/dd grid left the value a one-character column next to the price.
   a) Cart + side cart: label and value side by side, value wraps per WORD, never per letter.
   b) Checkout review: one line per option ("Garen: Donkerblauw") over the full product column, so
      the table keeps its column widths and the shipping options next to it are untouched. CSS only. */
.woowrap dl.variation,.woowrap .wc-item-meta,.bys-side-cart__meta dl.variation{display:grid;grid-template-columns:max-content minmax(min-content,1fr);gap:2px 8px;width:100%}
.woowrap dl.variation dt,.woowrap dl.variation dd,.woowrap .wc-item-meta li > *,.bys-side-cart__meta dl.variation dt,.bys-side-cart__meta dl.variation dd{overflow-wrap:break-word;word-break:normal;hyphens:manual;min-width:0;margin:0}
.woowrap dl.variation dd p,.bys-side-cart__meta dl.variation dd p{margin:0;overflow-wrap:break-word;word-break:normal}
#order_review .woocommerce-checkout-review-order-table td.product-name dl.variation{display:block;width:auto}
#order_review .woocommerce-checkout-review-order-table td.product-name dl.variation dt{display:inline;margin:0 4px 0 0}
#order_review .woocommerce-checkout-review-order-table td.product-name dl.variation dd{display:inline;margin:0}
#order_review .woocommerce-checkout-review-order-table td.product-name dl.variation dd p{display:inline}
#order_review .woocommerce-checkout-review-order-table td.product-name dl.variation dd::after{content:"";display:block}

.badge--blackfriday { background:#000 !important; color:#fff !important; border-color:#000 !important; font-weight:700; }
