/* =====================================================================
   GoSlim - first-fold order form (fold.css, loads after modern.css)
   The order form now sits in the hero, under the price. Everything the
   buyer needs to decide is on the first screen: gallery, rating, title,
   price + discount, key benefits, stock, free shipping, COD, form.
   Target: iPhone 17/18 (402 x ~690 visible in Safari). Gallery height
   is whatever is left of the screen, so SE-size phones and tall foldable
   cover screens both keep the button on screen.
   Remove this file + fold.js and restore index.pre-fold.html to roll back.
   ===================================================================== */

.gm{
  /* px the hero needs above the gallery's bottom edge, measured per width band (+14px air); tiers drop extras on short screens */
  --fs-base:528px;--fs-cut:0px;
  --gal-h:clamp(140px,calc(100svh - var(--fs-base) + var(--fs-cut)),320px);
}
@media (max-width:351px){.gm{--fs-base:550px}}
@media (min-width:352px) and (max-width:367px){.gm{--fs-base:510px}}
@media (min-width:452px){.gm{--fs-base:514px}}
@media (max-height:679px){.gm{--fs-cut:58px}}
@media (max-height:579px){.gm{--fs-cut:120px}}
@supports not (height:100svh){.gm{--gal-h:clamp(140px,calc(100vh - var(--fs-base) + var(--fs-cut) - 90px),320px)}}

/* ---------- top strip / sticky bar (same height in both states: no layout jump) ---------- */
.gm .gs-nav__in{min-height:52px;padding:6px 12px;gap:10px}
.gm .gs-nav__img{width:38px;height:38px;border-radius:11px;padding:2px}
.gm .gs-nav__name{font-size:16px}
.gm .gs-nav__stock{margin-top:1px;font-size:12px}
.gm .gs-nav__top{display:none;flex:none;align-items:center;gap:6px;font:700 13px/1.15 var(--body);color:var(--pri-d);text-align:right}
.gm .gs-nav__top svg{width:20px;height:20px;flex:none;stroke:var(--pri)}
.gm .gs-nav.is-top .gs-nav__top{display:flex}
.gm .gs-nav.is-top .gs-nav__price,.gm .gs-nav.is-top .gs-nav__btnbox{display:none}
.gm .gs-nav.is-top .gs-nav__info{flex:1 1 auto}
.gm .gs-nav.is-top .gs-nav__stock{display:none}
.gm .gs-nav.is-top .gs-nav__name{font-size:17px}

/* ---------- hero ---------- */
.gm-hero{padding:6px 0 10px}
.gm-hero__media{width:min(100% - 16px,560px)}
.gm-hero__copy{width:min(100% - 24px,560px);margin-top:10px}
.gm .gs-gal__stage{border-radius:20px;box-shadow:0 12px 28px -18px rgba(16,36,27,.45)}
.gm .gs-gal__track,.gm .gs-gal.is-vid .gs-gal__track{height:var(--gal-h)}
.gm .gs-gal .b-productbox-discount{width:56px;height:56px;right:8px;top:8px;bottom:auto;transform:rotate(8deg)}
.gm .gs-gal .b-productbox-discount .b-discount1{font-size:17px}
.gm .gs-gal .b-productbox-discount .b-discount2{font-size:10px}
.gm .gs-gal__count{font-size:12px;line-height:16px;padding:3px 9px;right:8px;bottom:8px}
.gm .gs-gal__dots{bottom:14px}
.gm-pill{left:8px;top:10px;font-size:12.5px;padding:7px 12px}
.gm-stock{position:absolute;z-index:4;left:8px;bottom:8px;display:flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(0,0,0,.2);font:700 12.5px/1 var(--body);color:var(--pri-d);pointer-events:none}
.gm-stock i{width:8px;height:8px;border-radius:50%;background:#27b653;flex:none;animation:gsDot 1.8s infinite}

/* wide hero photo: keep the products in frame when the stage is shorter/narrower than 16:9 */
.gm .gs-gal__slide[data-gs-main] .gs-gal__img{object-position:42% 62%}

/* pill stays on every slide (modern.css hid it after slide 1) */
.gm .gs-gal:not(.is-first)+.gm-pill{display:block}

/* gallery arrows: glassy, low-contrast, out of the way of the photo */
.gm .gs-gal__nav{width:32px;height:32px;margin-top:-16px;background:rgba(255,255,255,.28);color:#fff;box-shadow:none;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);border:1px solid rgba(255,255,255,.35);opacity:.8}
.gm .gs-gal__nav svg{width:16px;height:16px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.gm .gs-gal__nav:active{background:rgba(255,255,255,.5)}
.gm .gs-gal__nav.is-prev{left:6px}.gm .gs-gal__nav.is-next{right:6px}

/* rating: one line */
.gm .gs-rating{display:flex;flex-wrap:wrap;align-items:center;gap:1px 8px;margin:0}
.gm .gs-rating__row{gap:6px}
.gm .gs-stars svg{width:17px;height:17px}
.gm .gs-rating__score{font-size:16px}
.gm .gs-rating__count{margin:0;font-size:13px;line-height:1.3;gap:1px 5px}
.gm .gs-rating__count svg{width:15px;height:15px}

/* title block */
.gm-h1{font-size:clamp(20px,5.5vw,27px);line-height:1.1;margin:6px 0 0;letter-spacing:-.03em}
.gm-name{font-size:.8em;padding:0 .3em;border-radius:8px}
.gm .gm-guar{font-size:14px;margin:6px 0 0;gap:7px}
.gm .gm-guar svg{width:18px;height:18px}

/* price + discount */
.gm .gs-buy{margin-top:8px}
.gm .gs-buy__price{gap:2px 10px;flex-wrap:nowrap;align-items:center}
.gm .gs-buy__new{font-size:32px}
.gm .gs-buy__old{font-size:17px}
.gm .gs-buy__off{font-size:15px;padding:6px 10px}

/* key benefits */
.gm-kb{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.gm-kb li{display:flex;align-items:center;gap:5px;padding:5px 10px 5px 7px;border-radius:999px;background:#fff;border:1px solid var(--line);font:600 12.5px/1.2 var(--body);color:var(--ink)}
.gm-kb li::before,.gm-hero .gs-chips li::before{content:'';width:15px;height:15px;flex:none;border-radius:50%;background:var(--pri) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.8 3.8 7.2-7.6' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat}

/* ---------- the order form, now in the hero ---------- */
.gm-hero .b-form{max-width:none;margin:10px 0 0}
.gm-hero .gs-form{padding:11px 12px 10px;border-radius:22px;box-shadow:0 18px 40px -24px rgba(16,36,27,.6)}
.gm-hero .gs-form .b-h2,.gm-hero .gs-form .b-price-box,.gm-hero .gs-form .gs-hint,.gm-hero .gs-form .gs-summary,.gm-hero .gs-form .gs-shipped{display:none}
.gm .gm-hero .gs-timer{padding:6px 12px;border-radius:12px;font-size:13px;margin:0 0 9px;gap:8px}
.gm .gm-hero .gs-timer b{font-size:16px}
.gm .gm-hero .gs-field{margin:0 0 8px}
.gm .gm-hero .gs-field label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gm .gm-hero .gs-field .b-input{height:50px;padding:0 46px 0 16px!important;border-radius:14px;font:500 17px/1.2 var(--body)!important}
.gm .gm-hero .gs-field.is-valid::after,.gm .gm-hero .gs-field.is-invalid::after{bottom:14px;right:14px}
.gm .gm-hero .gs-clear{bottom:9px;right:10px}
.gm .gm-hero .gs-err{margin:4px 0 0 4px;font-size:14px}
.gm .gm-hero .gs-form .b-button-box{margin-top:2px}
.gm .gm-hero .gs-form .b-button{min-height:54px;padding:10px 52px 10px 18px;font-size:19px}
.gm .gm-hero .gs-btn2__sub{display:none}
.gm .gm-hero .gs-form .b-button-arrow{right:20px}
.gm .gm-hero .gs-chips{margin:9px 0 0;gap:2px 14px;justify-content:center}
.gm .gm-hero .gs-chips li{padding:0;background:none!important;border:0;font:600 12.5px/1.3 var(--body);color:var(--ink)}
.gm .gm-hero .gs-chips li:nth-child(3){display:none}
.gm .gm-hero .gs-secure{margin-top:6px;font-size:12.5px;line-height:1.3}
.gm .gm-hero .gs-status{margin-top:6px}
.gm-hero .gm-banner{margin:14px 0 0;font-size:clamp(18px,5vw,22px)!important}

/* short screens (SE, small in-app browsers): keep the button on screen, drop the extras first */
@media (max-height:679px){
  .gm-kb{display:none}
  .gm .gm-hero .gs-secure{display:none}
}
@media (max-height:579px){
  .gm .gm-guar{display:none}
  .gm .gm-hero .gs-chips{display:none}
  .gm .gm-hero .gs-timer{display:none}
}

/* very narrow cover screens */
@media (max-width:360px){
  .gm-h1{font-size:19px}
  .gm .gs-buy__new{font-size:28px}
  .gm-kb li,.gm .gm-hero .gs-chips li{font-size:12px}
  .gm .gm-hero .gs-field .b-input{font-size:16px!important}
  .gm .gs-nav.is-top .gs-nav__top{font-size:12px}
}

/* ---------- wide: foldable inner screens, tablets, desktop - gallery left, buy box right ---------- */
@media (min-width:720px){
  .gm{--gal-h:clamp(280px,min(33vw,calc(100svh - 150px)),430px)}
  .gm-hero{display:grid;grid-template-columns:minmax(0,540px) minmax(0,460px);gap:36px;justify-content:center;align-items:start;padding:26px 20px 40px}
  .gm-hero__media,.gm-hero__copy{width:100%;margin:0}
  .gm-hero__media{position:sticky;top:76px}
  .gm-h1{font-size:clamp(28px,3vw,38px);margin-top:10px}
  .gm .gm-guar{font-size:16px}
  .gm .gs-buy__price{flex-wrap:wrap}.gm .gs-buy__new{font-size:clamp(34px,4vw,44px)}.gm .gs-buy__old{font-size:19px}
  .gm .gs-stars svg{width:22px;height:22px}.gm .gs-rating__count{font-size:15px}
  .gm-kb{margin-top:12px}.gm-kb li{font-size:14px;padding:7px 13px 7px 9px}
  .gm-hero .gs-form{padding:16px 16px 14px}
  .gm .gm-hero .gs-field .b-input{height:56px;font-size:18px!important}
  .gm .gm-hero .gs-form .b-button{min-height:60px;font-size:20px}
  .gm .gs-gal__thumbs{display:flex}
  .gm .gm-hero .gs-chips li,.gm .gm-hero .gs-secure{font-size:14px}
  .gm-kb,.gm .gm-hero .gs-secure,.gm .gm-guar,.gm .gm-hero .gs-chips,.gm .gm-hero .gs-timer{display:flex}
  .gm .gm-hero .gs-secure{display:flex}
}
@media (min-width:720px) and (max-width:999px){
  .gm-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
}
