
/* ============================================================================
   celluma.bg — RESPONSIVE FIXES (fluid layout)
   Added 2026-08-06 by the Celluma agent. Code Snippets id 34, scope: site-css.

   WHY: the site was built at ~1440px (MacBook Pro). Many modules declare fixed
   pixel width/height and only become fluid below 760px. Between ~761px and the
   design width the boxes stay desktop-sized inside containers that have already
   shrunk, so content overflows or gets clipped.

   WHAT THIS DOES: lets those boxes grow with their content and shrink with their
   container. It changes NO colours, spacing, fonts or copy — only how boxes size.

   TO REVERT EVERYTHING: wp-admin -> Snippets -> deactivate
   "Responsive fixes — fluid layout (agent, 2026-08-06)". One toggle, instant.
   No page or block content was modified to apply these fixes.
   ============================================================================ */

/* --- 1. Product info card ---------------------------------------------------
   .almcard400-box was width:700px; height:310px (fluid only below 760px).
   When the title/price wrapped to more lines the content overflowed the fixed
   310px height and the add-to-cart button was drawn on top of the price.
   Measured overlap up to 466x60px between 850px and ~1300px, on all 10
   accessory product pages. Height now grows with content. */
.almcard400-box{
  width:min(700px,100%) !important;
  height:auto !important;
  min-height:310px;
}

/* --- 2. Cross-sell / related-product cards ---------------------------------
   .X-card was width:var(--card-w) (450px) and a fixed height of
   media-h + info-h, with overflow:hidden. In a grid cell narrower than 450px
   the card kept its width and simply clipped — up to 219px of content cut off
   at 600px wide. Now fluid, capped at the original design width. */
.alodaazsumnvp-card, .asdadjjajjsskkkkk-card, .askdnajsndjsadnja-card,
.cellshopimgcard-card, .cellumachg-card, .desschgtseesp-card,
.hhsidadjoaod-card, .iatmralawmib-card, .tcistpc-card, .znsschndgb-card,
.celldxsw-card, .celldxswm-card, .iaswtface-card, .iaswthome-card,
.iaswtw-card, .iaswtwpro-card{
  width:100% !important;
  max-width:var(--card-w,450px) !important;
  height:auto !important;
}

/* the text strip under each card had a fixed height and clipped long names */
.alodaazsumnvp-info, .asdadjjajjsskkkkk-info, .askdnajsndjsadnja-info,
.cellshopimgcard-info, .cellumachg-info, .desschgtseesp-info,
.hhsidadjoaod-info, .iatmralawmib-info, .tcistpc-info, .znsschndgb-info{
  height:auto !important;
  min-height:var(--info-h,150px);
}

/* keep the image area square while it scales, instead of a fixed 450px height */
.alodaazsumnvp-media, .asdadjjajjsskkkkk-media, .askdnajsndjsadnja-media,
.cellshopimgcard-media, .cellumachg-media, .desschgtseesp-media,
.hhsidadjoaod-media, .iatmralawmib-media, .tcistpc-media, .znsschndgb-media{
  height:auto !important;
  aspect-ratio:1/1;
}

/* card titles were computed wider than the card itself (286px inside a 235px
   parent) and got cut off mid-word */
.alodaazsumnvp-name, .asdadjjajjsskkkkk-name, .askdnajsndjsadnja-name,
.cellshopimgcard-name, .cellumachg-name, .desschgtseesp-name,
.hhsidadjoaod-name, .iatmralawmib-name, .tcistpc-name, .znsschndgb-name,
.alodaazsumnvp-info-top, .asdadjjajjsskkkkk-info-top, .cellumachg-info-top,
.iatmralawmib-info-top, .znsschndgb-info-top{
  max-width:100% !important;
  box-sizing:border-box;
}

/* --- 3. Desktop add-ons slider ---------------------------------------------
   .cellu700sl-stage was a hard 700px wide. On a 375px phone each slide stayed
   700px and ran ~6100px off-screen inside a 345px frame — the MYSTIQUE mobile
   add-ons module that was reported as "not displaying properly". */
.cellu700sl-stage{
  width:min(700px,100%) !important;
}
.cellu700sl-viewport, .cellu700sl-card{
  max-width:100% !important;
  box-sizing:border-box;
}
.cellu700sl-slide{
  flex:0 0 100% !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box;
}
.cellu700sl-left{
  flex:0 0 auto;
  max-width:40%;
}

/* --- 3b. The spacer above the accessory buy button -------------------------
   The button sits after a fixed `[gap height="177px"]` that was sized for the
   old locked-at-310px card. Now the card grows with its content, that spacer
   became 177px of empty space between the price and the button. Collapse it to
   normal spacing. Targeted by its position — it is the only gap immediately
   preceding the buy-button wrapper.
   NOTE: Flatsome renders these spacers as `padding-top` on an ID selector
   (`#gap-1642449086{padding-top:177px}`), not as `height` — so override padding. */
.gap-element:has(+ .iyatycfii-wrap){
  padding-top:24px !important;
  height:auto !important;
  min-height:0 !important;
}

/* --- 4. Mobile add-ons slider ----------------------------------------------
   slides measured 365px inside a 355px viewport (and 417 inside 400), so the
   next slide peeked in and the active one sat slightly off-centre. */
.celadd400-slide, .celadd400-card{
  box-sizing:border-box !important;
  max-width:100% !important;
}
.celadd400-wrap, .celadd400-stage, .celadd400-viewport{
  max-width:100% !important;
  box-sizing:border-box;
}

/* --- 5. Fixed-width blocks that overflow narrow screens --------------------- */
.cellmps1-box, .cellbtnm1-wrap, .cellbtnm1-btn, .cellmobcar-frame{
  width:min(400px,100%) !important;
  box-sizing:border-box;
}
.cellprohero-card{
  max-width:100% !important;
  box-sizing:border-box;
}
.iaistgtapp-right, .iaistgtapp-box{
  max-width:100% !important;
  box-sizing:border-box;
}

/* --- 6. Global safety net ---------------------------------------------------
   Never let a media image force its frame wider than the screen. */
.almgal12-main img, .almgal12-thumb img{
  max-width:100%;
  height:auto;
}


/* --- 7. Accessory FAQ accordion styling -------------------------------------
   The FAQ on accessory product pages is injected by snippet #21 (JS), but its
   stylesheet lives in snippet #20 with scope `site-css` — a scope this install
   NEVER outputs (verified 2026-08-06: no site-css snippet reaches any page).
   So the FAQ has rendered unstyled ever since. Snippet #20 is left untouched;
   its CSS is served from here instead, where it actually loads. */
.accfaq-wrap{max-width:840px;margin:36px auto;padding:0 16px;font-family:inherit;}
.accfaq-wrap h2{font-size:26px;font-weight:800;color:#241712;text-align:center;margin:0 0 20px;}
.accfaq{display:flex;flex-direction:column;gap:12px;}
.accfaq details{background:#fff;border:1.5px solid #241712;border-radius:10px;overflow:hidden;}
.accfaq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 18px;font-size:16px;font-weight:700;color:#241712;}
.accfaq summary::-webkit-details-marker{display:none;}
.accfaq summary::after{content:"";width:12px;height:12px;border-right:2.4px solid #241712;border-bottom:2.4px solid #241712;transform:rotate(45deg);transition:transform .25s;flex:0 0 auto;margin-top:-4px;}
.accfaq details[open] summary::after{transform:rotate(-135deg);margin-top:4px;}
.accfaq .a{padding:0 18px 16px;color:#5b5048;font-size:15px;line-height:1.6;}

/* --- 8. Best-sellers module (celhero3) — equal cards, unbreakable prices ----
   Measured 2026-08-07 at 375/768/1000/1440: BGN price spans rendered two lines
   tall ("лв" alone on the second line) at every width, and the grid uses
   align-items:start so cards stopped matching heights once the global fix in
   section 2 let card height follow content. Scoped to .celhero3-grid so the
   shop grid keeps its own behaviour. */
.celhero3-grid{
  align-items:stretch !important;
}
.celhero3-grid .cellshopimgcard-card{
  height:100% !important;
  display:flex;
  flex-direction:column;
}
.celhero3-grid .cellshopimgcard-info{
  flex:1 1 auto;
}
/* a price value must never break internally — "2,523.02 лв" is one token */
.celhero3-grid .cellshopimgcard-oldprice,
.celhero3-grid .cellshopimgcard-saleprice{
  white-space:nowrap !important;
}
/* each currency pair stays on ONE line: the price stack never shrinks; the
   NAME is what yields and wraps (2026-08-07: the previous wrap-between-pair
   fallback put the BGN prices on separate rows when a long name squeezed the
   stack — wrong element gave way) */
.celhero3-grid .cellshopimgcard-price-row{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:baseline;
  column-gap:10px;
}
.celhero3-grid .cellshopimgcard-info-top{
  align-items:flex-start;
}
.celhero3-grid .cellshopimgcard-info-top > .cellshopimgcard-price-stack{
  flex:0 0 auto !important;
}
.celhero3-grid .cellshopimgcard-name{
  flex:1 1 auto;
  min-width:0;
}
/* on genuinely narrow cards (any screen where a card ends up tight), switch to
   name ABOVE prices — driven by the CARD's own width via container query, so it
   adapts to any column count on any PC size */
.celhero3-grid .cellshopimgcard-card{
  container-type:inline-size;
}
@container (max-width:430px){
  .cellshopimgcard-info-top{
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:8px !important;
  }
  .cellshopimgcard-price-stack{
    text-align:left !important;
  }
  .cellshopimgcard-price-row{
    justify-content:flex-start !important;
  }
}

/* --- 9. Cross-sell cards + For-Professionals hero: same disease as §8 -------
   2026-08-07 sweep: the covers cross-sell card pushes its nowrap, flex-shrink:0
   price block 51px past the card edge when the product name is long (visible on
   2 accessory pages at 768–1200). cellprohero clips 32px at phone widths via a
   nowrap pills row. Same fix as the best-sellers module: the price block keeps
   its size and drops to its own line when the row is tight; pills may wrap.
   Applied to every family sharing this info-top anatomy — closes the latent
   risk on sibling cards whose names are short *today*. */
.alodaazsumnvp-info-top, .asdadjjajjsskkkkk-info-top, .askdnajsndjsadnja-info-top,
.cellumachg-info-top, .desschgtseesp-info-top, .hhsidadjoaod-info-top,
.iatmralawmib-info-top, .tcistpc-info-top, .znsschndgb-info-top,
.cellprohero-info-top{
  flex-wrap:wrap !important;
  row-gap:6px;
}
.alodaazsumnvp-pricewrap, .asdadjjajjsskkkkk-pricewrap, .askdnajsndjsadnja-pricewrap,
.cellumachg-pricewrap, .desschgtseesp-pricewrap, .hhsidadjoaod-pricewrap,
.iatmralawmib-pricewrap, .tcistpc-pricewrap, .znsschndgb-pricewrap,
.cellprohero-pricewrap{
  max-width:100% !important;
}
.cellprohero-pillrow{
  flex-wrap:wrap !important;
  row-gap:8px;
}

