/* ============================================================
   Shopyzee — page builder storefront rules (all tenants, all themes). 2026-11-11
   Columns stack on phones by default. A section can opt out or change the behaviour by adding one of these
   classes in Section settings → CSS class:
     pb-no-stack        keep the columns side by side on every screen
     pb-tablet-2col     2 columns per row on tablets (for sections with 3+ columns)
     pb-reverse-mobile  reverse the column order on phones (e.g. image after text)
   ============================================================ */

/* the builder prints `width: 33.3333% !important` per column, so these rules need !important + higher specificity */
@media (max-width: 768px) {
  .pb-section:not(.pb-no-stack) .xgp_row { flex-wrap: wrap; }
  .pb-section:not(.pb-no-stack) .xgp_row > .xgp_column { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
  .pb-section:not(.pb-no-stack) .xgp_row > .xgp_column + .xgp_column { margin-top: 18px; }
  .pb-section.pb-reverse-mobile .xgp_row { flex-direction: column-reverse; }
  .pb-section.pb-reverse-mobile .xgp_row > .xgp_column + .xgp_column { margin-top: 0; margin-bottom: 18px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .pb-section.pb-tablet-2col .xgp_row { flex-wrap: wrap; }
  .pb-section.pb-tablet-2col .xgp_row > .xgp_column { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; }
}
/* media inside columns never overflows its column */
.xgp_column img, .xgp_column video, .xgp_column iframe { max-width: 100%; }

/* ============================================================
   Shopyzee landing pages (page_type = landing): minimal header/footer + sticky phone CTA. 2026-11-11
   ============================================================ */
body.sz-landing .mobile-nav, body.sz-landing .search-suggestion-overlay, body.sz-landing .back-to-top, body.sz-landing .backtotop, body.sz-landing #backtotop { display: none !important; }
.sz-lp-header { background: var(--ar-surface, #fff); border-bottom: 1px solid rgba(0,0,0,.06); }
.sz-lp-header .container { display: flex; justify-content: center; align-items: center; min-height: 64px; }
.sz-lp-logo { display: inline-flex; align-items: center; text-decoration: none; }
.sz-lp-logo img { height: 40px; width: auto; }
.sz-lp-brand { font-size: 22px; font-weight: 800; color: var(--heading-color, #222); }
.sz-lp-footer { border-top: 1px solid rgba(0,0,0,.08); padding: 22px 0 calc(22px + var(--sz-lp-cta-h, 0px)); font-size: 13px; color: var(--body-color, #666); background: transparent; }
.sz-lp-footer .container { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sz-lp-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.sz-lp-footer-links a { color: inherit; text-decoration: none; }
.sz-lp-footer-links a:hover { color: var(--main-color-one, #222); text-decoration: underline; }
.sz-lp-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid rgba(0,0,0,.08); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .22s; }
.sz-lp-cta.is-visible { transform: translateY(0); }
.sz-lp-cta-info { flex: 1; min-width: 0; display: none; flex-direction: column; line-height: 1.2; }
.sz-lp-cta.has-price .sz-lp-cta-info { display: flex; }
.sz-lp-cta-price { font-size: 18px; font-weight: 800; color: var(--main-color-one, #222); }
.sz-lp-cta-old { font-size: 12px; color: #999; text-decoration: line-through; }
.sz-lp-cta-old:empty { display: none; }
.sz-lp-cta-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 12px; background: var(--main-color-one, #222); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sz-lp-cta.has-price .sz-lp-cta-btn { flex: 0 0 auto; }
@media (max-width: 767px) { body.sz-landing.sz-landing-cta { --sz-lp-cta-h: 70px; } .sz-lp-cta { display: flex; } }


/* ------------------------------------------------------------------------------------------------
   Shopyzee: the page builder's «Advanced» tab. Every one of these classes was written by the vendor's
   WidgetWrapper trait, which nothing ever called, so none of them had any style behind them either.
   Nothing here can leave a widget invisible: the entrance animations exist only inside the
   prefers-reduced-motion:no-preference query, and none of them starts from opacity 0 outside it.
   ------------------------------------------------------------------------------------------------ */
/* each rule only ever HIDES inside its own range - nothing is ever forced back to a display it never had */
@media (min-width:1025px){.xgp_hidden_desktop{display:none!important}}
@media (min-width:768px) and (max-width:1024px){.xgp_hidden_tablet{display:none!important}}
@media (max-width:767px){.xgp_hidden_mobile{display:none!important}}

@media (prefers-reduced-motion:no-preference){
  .xgp_has_animation{animation-duration:.6s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
  .xgp_animation_fade-in{animation-name:szPbFadeIn}
  .xgp_animation_slide-up{animation-name:szPbSlideUp}
  .xgp_animation_slide-down{animation-name:szPbSlideDown}
  .xgp_animation_slide-left{animation-name:szPbSlideLeft}
  .xgp_animation_slide-right{animation-name:szPbSlideRight}
  .xgp_animation_zoom-in{animation-name:szPbZoomIn}
  .xgp_animation_bounce{animation-name:szPbBounce}
  @keyframes szPbFadeIn{from{opacity:0}to{opacity:1}}
  @keyframes szPbSlideUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
  @keyframes szPbSlideDown{from{opacity:0;transform:translateY(-28px)}to{opacity:1;transform:none}}
  @keyframes szPbSlideLeft{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
  @keyframes szPbSlideRight{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
  @keyframes szPbZoomIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
  @keyframes szPbBounce{0%{opacity:0;transform:translateY(22px)}60%{opacity:1;transform:translateY(-8px)}100%{transform:none}}
}


/* ------------------------------------------------------------------ sz-pb-typography
   Shopyzee: a page Zee builds is made of page-builder widgets, and this stylesheet set no font at all - so its
   headings inherited the theme's BODY font while the theme's own headings use the heading font. They now ask for
   the heading font, falling back to whatever they inherit in a theme that defines no such variable.

   The clamp is the other half: aromatic (and others) clamp every h6 to two lines for product cards, which also
   cut the section titles Zee writes («تجربة عطرية فريدة....»). The reset is scoped to builder sections only, so
   card titles keep their clamp.
   ------------------------------------------------------------------------------------------------ */
.xgp-widget h1, .xgp-widget h2, .xgp-widget h3,
.xgp-widget h4, .xgp-widget h5, .xgp-widget h6 {
  font-family: var(--heading-font, inherit);
}
.xgp-widget h1, .xgp-widget h2, .xgp-widget h3,
.xgp-widget h4, .xgp-widget h5, .xgp-widget h6 {
  display: block;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  -webkit-box-orient: horizontal;
}


/* ------------------------------------------------------------------ sz-band
   Shopyzee: the bands Zee may choose for a section (App\Services\Ai\PageLook). The colour itself is written into
   the section's own settings - computed from the store's palette, never invented - and these classes only keep
   the text readable on top of it.

   `sz-band-tint` needs nothing: a tint is a very light shade, so the theme's own dark text still reads on it.
   The two strong bands are shipped ready but switched off in PageLook (ALLOW_STRONG_BANDS), because several
   blocks paint their own light card and white band text on a white card is unreadable.
   Buttons and links keep their own styling: a theme's button is already designed to sit on any background.
   ------------------------------------------------------------------------------------------------ */
.sz-band-dark, .sz-band-accent { --sz-band-fg: #fff; color: var(--sz-band-fg); }
.sz-band-dark :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption,label,dt,dd,th,td),
.sz-band-accent :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption,label,dt,dd,th,td) { color: var(--sz-band-fg) !important; }
.sz-band-dark hr, .sz-band-accent hr { border-color: rgba(255,255,255,.25); }

/* ------------------------------------------------------------------ sz-sch / sz-pad (SZ_SECTION_LOOK)
   A block's Advanced tab offers «section colours» and «space above and below». The classes land on the block's
   wrapper (PageBuilderAdvanced::decide), in the editor and on the storefront alike.
   Colours come from the store's own colour, so the same choice looks like the store on every store.
   Text inside a card, an item, a box or a form keeps its own colour: those sit on their own white surface.
   ------------------------------------------------------------------------------------------------ */
.sz-sch-soft  { background: color-mix(in srgb, var(--main-color-one, #1E88E5) 8%, #fff); }
.sz-sch-grey  { background: #f4f5f7; }
.sz-sch-brand { background: var(--main-color-one, #1E88E5); }
.sz-sch-dark  { background: color-mix(in srgb, var(--main-color-one, #1E88E5) 24%, #0f1216); }
html[data-theme="dark"] .sz-sch-soft { background: color-mix(in srgb, var(--main-color-one, #1E88E5) 16%, #14171c); }
html[data-theme="dark"] .sz-sch-grey { background: #1b1f25; }
.sz-sch-brand, .sz-sch-dark { --sz-band-fg: #fff; color: #fff; }
.sz-sch-brand :is(.sz-lb-title, .xgpb-section-title, .sz-sc-name, .sz-bp-all),
.sz-sch-dark :is(.sz-lb-title, .xgpb-section-title, .sz-sc-name, .sz-bp-all),
.sz-sch-brand :where(h1,h2,h3,h4,h5,h6,p,li,blockquote,label):not(:is([class*="card"],[class*="item"],[class*="box"],[class*="form"],table) *),
.sz-sch-dark :where(h1,h2,h3,h4,h5,h6,p,li,blockquote,label):not(:is([class*="card"],[class*="item"],[class*="box"],[class*="form"],table) *) { color: #fff !important; }
/* a button in the store colour would vanish on a band of the same colour */
.sz-sch-brand :is(.btn-primary, .sz-bp-add) { background: #fff !important; border-color: #fff !important; color: var(--main-color-one, #1E88E5) !important; }
.sz-sch-brand a.sz-sc-item:hover .sz-sc-pic, .sz-sch-dark a.sz-sc-item:hover .sz-sc-pic { border-color: #fff; }

.sz-pad-none section   { padding-top: 0 !important;    padding-bottom: 0 !important; }
.sz-pad-tight section  { padding-top: 16px !important; padding-bottom: 16px !important; }
.sz-pad-normal section { padding-top: 40px !important; padding-bottom: 40px !important; }
.sz-pad-roomy section  { padding-top: 88px !important; padding-bottom: 88px !important; }
@media (max-width: 767.98px) {
    .sz-pad-normal section { padding-top: 28px !important; padding-bottom: 28px !important; }
    .sz-pad-roomy section  { padding-top: 52px !important; padding-bottom: 52px !important; }
}
