/* =========================================================
   STASIA BEAUTY AND CO. BUYER KIOSK — FINAL RESPONSIVE UI
   Matches the lavender/pink logo theme and generated desktop/mobile mockups.
   Scope: Buyer storefront only. Admin/dashboard files are untouched.
   ========================================================= */

:root{
  --stasia-max: 1320px;
  --stasia-pad: clamp(14px, 3vw, 34px);
  --stasia-bg: #fbf7ff;
  --stasia-surface: rgba(255,255,255,.92);
  --stasia-card: #ffffff;
  --stasia-lilac: #8f75df;
  --stasia-lilac-2: #bca8ff;
  --stasia-purple: #513096;
  --stasia-pink: #f36ba5;
  --stasia-pink-2: #ff8fc0;
  --stasia-blush: #fff1fa;
  --stasia-ink: #29213b;
  --stasia-muted: #756d86;
  --stasia-line: rgba(154,126,220,.25);
  --stasia-line-strong: rgba(138,107,214,.42);
  --stasia-shadow: 0 20px 46px rgba(81,48,150,.13);
  --stasia-shadow-soft: 0 10px 25px rgba(81,48,150,.10);
  --stasia-radius-xl: 28px;
  --stasia-radius: 22px;
  --stasia-radius-sm: 16px;
  --stasia-nav-h: 96px;
  --stasia-bottom-h: 0px;
  --stasia-cart-peek: 0px;
  --stasia-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html{ max-width:100%; overflow-x:hidden; scroll-padding-top:calc(var(--stasia-nav-h) + 18px); }
body.buyer-page{
  margin:0 !important;
  min-height:100dvh;
  background:
    radial-gradient(circle at 20% 0%, rgba(243,107,165,.16), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(143,117,223,.18), transparent 40%),
    linear-gradient(180deg,#ffffff 0%, #fbf7ff 48%, #fff7fd 100%) !important;
  color:var(--stasia-ink) !important;
  font-family:var(--stasia-font) !important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.buyer-page *{ box-sizing:border-box; }
body.buyer-page button, body.buyer-page input, body.buyer-page select{ font:inherit; }
body.buyer-page button{ cursor:pointer; touch-action:manipulation; }
body.buyer-page img{ max-width:100%; display:block; }
body.buyer-page .hidden{ display:none !important; }
body.buyer-page .soft-text{ color:var(--stasia-muted); }
body.buyer-page .mini-label{ margin:0; color:var(--stasia-lilac); font-size:12px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }

/* ---------- customer gate ---------- */
body.buyer-page.customer-gate-active{
  display:grid;
  place-items:center;
  padding:24px;
}
body.buyer-page.customer-gate-active .buyer-app{ width:min(1040px,100%); }
.buyer-gate-panel{
  min-height:min(720px, calc(100dvh - 48px));
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,430px);
  gap:26px;
  align-items:center;
  padding:clamp(22px,4vw,54px);
  border:1px solid var(--stasia-line);
  border-radius:36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(249,239,255,.9)),
    url('assets/stasia-logo-original.png') right -110px bottom -170px / 520px auto no-repeat;
  box-shadow:var(--stasia-shadow);
  overflow:hidden;
}
.gate-left h1{ margin:12px 0 12px; max-width:560px; color:var(--stasia-purple); font-size:clamp(42px,7vw,76px); line-height:.92; letter-spacing:-.06em; }
.gate-left .soft-text{ max-width:460px; font-size:17px; line-height:1.65; }
.gate-card-v2{
  padding:18px;
  border:1px solid var(--stasia-line);
  border-radius:30px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--stasia-shadow-soft);
  backdrop-filter:blur(16px);
}
.customer-tabs{ display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:6px; margin-bottom:14px; border-radius:999px; background:#f5edff; }
.customer-tab{ min-height:44px; border:0; border-radius:999px; color:var(--stasia-purple); background:transparent; font-weight:900; }
.customer-tab.active{ color:white; background:linear-gradient(135deg,var(--stasia-lilac),var(--stasia-pink)); box-shadow:0 10px 20px rgba(143,117,223,.26); }
.gate-form-v2{ display:none; gap:12px; }
.gate-form-v2.active{ display:grid; }
.form-title-row{ display:flex; gap:12px; align-items:center; margin:6px 0 4px; }
.form-title-row h3{ margin:0; color:var(--stasia-purple); font-size:21px; }
.form-title-row p{ margin:3px 0 0; color:var(--stasia-muted); font-size:13px; }
.round-icon{ width:42px; height:42px; display:grid; place-items:center; border-radius:16px; background:#f4edff; color:var(--stasia-purple); }
.floating-input{ display:grid; gap:6px; }
.floating-input span{ color:var(--stasia-purple); font-weight:850; font-size:13px; }
.floating-input input{ width:100%; min-height:50px; padding:0 14px; border-radius:17px; border:1px solid var(--stasia-line); color:var(--stasia-ink); background:#fff; outline:none; }
.floating-input input:focus{ border-color:var(--stasia-lilac); box-shadow:0 0 0 4px rgba(143,117,223,.12); }
.primary,.secondary,.buyer-primary,.buyer-secondary{ border:0; border-radius:18px; min-height:52px; padding:0 18px; font-weight:950; }
.buyer-primary,.primary{ color:white; background:linear-gradient(135deg,var(--stasia-pink),var(--stasia-lilac)); box-shadow:0 14px 24px rgba(243,107,165,.25); }
.buyer-secondary,.secondary{ color:var(--stasia-purple); background:#f5edff; border:1px solid var(--stasia-line); }
.gate-error{ min-height:20px; color:#c22f68; font-weight:800; }

/* ---------- shop layout ---------- */
body.buyer-page:not(.customer-gate-active) .buyer-main{ width:100% !important; max-width:none !important; margin:0 !important; padding:0 var(--stasia-pad) calc(34px + var(--stasia-bottom-h) + var(--stasia-cart-peek)) !important; }
body.buyer-page:not(.customer-gate-active) .buyer-shop{ display:block; }
.cb-shell{ width:min(100%, var(--stasia-max)); margin:0 auto; }

/* Sticky top navigation */
.cb-top-nav{
  position:sticky !important;
  top:0 !important;
  z-index:8000 !important;
  min-height:var(--stasia-nav-h);
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:12px max(var(--stasia-pad), calc((100vw - var(--stasia-max))/2 + var(--stasia-pad)));
  display:grid;
  grid-template-columns:250px minmax(280px,1fr) 230px auto;
  gap:18px;
  align-items:center;
  background:rgba(255,255,255,.82);
  border-bottom:1px solid rgba(154,126,220,.18);
  box-shadow:0 12px 34px rgba(81,48,150,.12);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
}
.cb-brand-block{ min-width:0; display:flex; align-items:center; }
.cb-brand-logo{ width:238px; height:76px; object-fit:contain; object-position:left center; filter:drop-shadow(0 8px 13px rgba(81,48,150,.12)); }
.cb-search-wrap{
  min-height:56px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 18px;
  border:1px solid var(--stasia-line);
  border-radius:24px;
  background:rgba(255,255,255,.80);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.cb-search-wrap .search-icon{ color:var(--stasia-purple); font-size:25px; font-weight:900; line-height:1; }
.cb-search-wrap input{ width:100%; border:0; outline:0; color:var(--stasia-ink); background:transparent; font-size:15px; }
.cb-search-wrap input::placeholder{ color:#948aa5; }
.cb-branch-card{
  min-height:58px;
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 14px;
  border:1px solid var(--stasia-line);
  border-radius:22px;
  color:var(--stasia-purple);
  background:rgba(255,255,255,.86);
  box-shadow:var(--stasia-shadow-soft);
}
.branch-shop-icon{ width:36px; height:36px; display:grid; place-items:center; flex:0 0 auto; border-radius:999px; background:#f3edff; color:var(--stasia-purple); font-size:23px; }
.branch-copy{ min-width:0; display:grid; gap:2px; text-align:left; }
.branch-copy span{ color:var(--stasia-muted); font-size:11px; font-weight:850; letter-spacing:.04em; }
.branch-copy strong{ color:var(--stasia-purple); font-size:15px; line-height:1.05; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cb-branch-card small{ margin-left:auto; font-size:20px; color:var(--stasia-purple); }
.cb-utility-nav{ display:flex; justify-content:flex-end; align-items:center; gap:12px; }
.cb-icon-btn{
  position:relative;
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border:1px solid var(--stasia-line);
  border-radius:999px;
  color:var(--stasia-purple);
  background:rgba(255,255,255,.86);
  box-shadow:var(--stasia-shadow-soft);
  font-size:24px;
}
.cb-icon-btn:hover,.cb-branch-card:hover,.cb-filter-btn:hover{ transform:translateY(-1px); box-shadow:var(--stasia-shadow); }
.cart-count-badge{
  position:absolute;
  top:-6px;
  right:-4px;
  min-width:23px;
  height:23px;
  padding:0 6px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:white;
  background:var(--stasia-pink);
  border:2px solid white;
  font-size:12px;
  font-weight:950;
}
.cart-count-badge.is-empty{ opacity:.75; }
.cb-mobile-search{ display:none; }

/* Hero */
.cb-feature-banner{
  position:relative;
  min-height:205px;
  margin:14px 0 14px;
  display:grid;
  grid-template-columns:minmax(320px, 1fr) minmax(320px, 430px) minmax(220px, 310px);
  align-items:center;
  gap:10px;
  padding:26px clamp(22px,4vw,72px);
  border:1px solid rgba(143,117,223,.28);
  border-radius:30px;
  background:
    radial-gradient(circle at 11% 45%, rgba(255,255,255,.95), transparent 16%),
    radial-gradient(circle at 72% 10%, rgba(255,255,255,.75), transparent 10%),
    linear-gradient(105deg, rgba(255,246,252,.96) 0%, rgba(245,235,255,.94) 48%, rgba(233,219,255,.92) 100%);
  box-shadow:var(--stasia-shadow-soft);
  overflow:hidden;
}
.cb-feature-banner::before,.cb-feature-banner::after{ content:"✦"; position:absolute; color:rgba(143,117,223,.45); font-size:28px; }
.cb-feature-banner::before{ left:40px; top:90px; }
.cb-feature-banner::after{ right:40px; top:60px; color:rgba(243,107,165,.42); }
.cb-feature-copy{ position:relative; z-index:2; display:grid; gap:10px; }
.cb-hero-greeting{ margin:0; color:var(--stasia-purple); font-weight:950; font-size:19px; }
.cb-feature-copy h1{ margin:0; max-width:620px; color:var(--stasia-purple); font-size:clamp(34px,4.6vw,58px); line-height:.98; letter-spacing:-.06em; }
.cb-feature-copy h1 span{ color:var(--stasia-pink); }
.cb-feature-copy > p:not(.cb-hero-greeting){ margin:0; max-width:455px; color:var(--stasia-muted); font-size:17px; line-height:1.55; }
.cb-primary-cta,.cb-gift-card button{
  width:max-content;
  min-height:48px;
  padding:0 26px;
  border:0;
  border-radius:999px;
  color:var(--stasia-pink);
  background:#fff;
  font-weight:950;
  box-shadow:0 12px 25px rgba(81,48,150,.13);
}
.cb-feature-art{ position:relative; z-index:1; height:210px; align-self:stretch; display:grid; place-items:end center; }
.cb-mascot-img{ position:absolute; bottom:-74px; left:50%; transform:translateX(-50%); width:min(390px, 100%); height:auto; filter:drop-shadow(0 14px 22px rgba(81,48,150,.16)); }
.cb-sparkle{ position:absolute; z-index:2; font-size:24px; color:var(--stasia-lilac); }
.cb-sparkle-one{ left:18%; top:22%; }
.cb-sparkle-two{ right:13%; top:18%; color:var(--stasia-pink); }
.cb-carousel-dots{ position:absolute; bottom:2px; left:50%; transform:translateX(-50%); display:flex; gap:9px; }
.cb-carousel-dots span{ width:10px; height:10px; border-radius:999px; background:rgba(143,117,223,.28); }
.cb-carousel-dots span:first-child{ background:var(--stasia-lilac); }
.cb-gift-card{
  position:relative;
  z-index:3;
  justify-self:end;
  width:min(260px,100%);
  min-height:135px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  padding:18px;
  border:3px solid rgba(255,255,255,.86);
  border-radius:26px;
  color:white;
  text-align:center;
  background:linear-gradient(145deg,#8f6fe0,#6f4ac6);
  box-shadow:0 18px 36px rgba(81,48,150,.22);
}
.cb-gift-card strong{ font-size:21px; }
.cb-gift-card span{ color:rgba(255,255,255,.94); font-weight:750; }
.cb-gift-card button{ min-height:42px; margin-top:4px; color:var(--stasia-pink); }

/* Controls and categories */
.cb-shop-mode-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
}
.cb-mode-toggle{ display:flex; gap:8px; padding:6px; border:1px solid var(--stasia-line); border-radius:999px; background:rgba(255,255,255,.86); box-shadow:var(--stasia-shadow-soft); }
.buyer-mode{ min-height:38px; padding:0 18px; border:0; border-radius:999px; color:var(--stasia-purple); background:transparent; font-weight:950; }
.buyer-mode.active{ color:white; background:linear-gradient(135deg,var(--stasia-pink),var(--stasia-lilac)); box-shadow:0 10px 20px rgba(143,117,223,.25); }
.cb-sort-control{ min-height:48px; display:flex; align-items:center; gap:8px; padding:0 14px; border:1px solid var(--stasia-line); border-radius:999px; background:rgba(255,255,255,.86); color:var(--stasia-purple); box-shadow:var(--stasia-shadow-soft); }
.cb-sort-control select{ border:0; outline:0; color:var(--stasia-purple); background:transparent; font-weight:900; }
.product-count-pill{ min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:0 13px; border-radius:999px; color:var(--stasia-purple); background:#fff; border:1px solid var(--stasia-line); font-weight:900; }
.cb-category-strip{ margin:0 0 14px; }
.buyer-category-options{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(190px,1fr);
  gap:14px;
  overflow-x:auto;
  padding:2px 2px 10px;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}
.buyer-category-option{
  min-height:78px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:11px 16px;
  border:1px solid var(--stasia-line);
  border-radius:24px;
  color:var(--stasia-purple);
  background:rgba(255,255,255,.88);
  box-shadow:var(--stasia-shadow-soft);
  text-align:left;
  white-space:nowrap;
}
.buyer-category-option.active{ border-color:var(--stasia-line-strong); background:linear-gradient(180deg,#fff,#f7efff); box-shadow:var(--stasia-shadow); }
.cat-icon{ width:56px; height:56px; display:grid; place-items:center; border-radius:999px; background:linear-gradient(145deg,#fff1fb,#ede4ff); font-size:28px; }
.cat-copy{ min-width:0; display:grid; gap:4px; }
.cat-copy strong{ overflow:hidden; text-overflow:ellipsis; color:var(--stasia-purple); font-size:16px; font-weight:950; }
.cat-copy small{ overflow:hidden; text-overflow:ellipsis; color:var(--stasia-muted); font-size:12px; font-weight:760; }
.buyer-category-option b{ color:var(--stasia-purple); font-size:24px; }

/* Catalog and product cards */
.cb-catalog-wrap{
  position:relative;
  margin:0 0 16px;
  padding:18px;
  border:1px solid rgba(154,126,220,.18);
  border-radius:28px;
  background:rgba(255,255,255,.86);
  box-shadow:var(--stasia-shadow-soft);
}
.cb-catalog-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.cb-catalog-title{ display:flex; align-items:center; gap:12px; }
.cb-catalog-icon{ width:34px; height:34px; display:grid; place-items:center; border-radius:13px; color:var(--stasia-lilac); background:#f4edff; }
.cb-catalog-title h2{ margin:0; color:var(--stasia-purple); font-size:25px; line-height:1; }
.cb-catalog-title p{ margin:5px 0 0; color:var(--stasia-muted); font-size:13px; }
.cb-filter-btn{ min-height:40px; display:flex; align-items:center; gap:8px; padding:0 16px; border:1px solid var(--stasia-line); border-radius:14px; color:var(--stasia-lilac); background:#fff; font-weight:950; box-shadow:var(--stasia-shadow-soft); }
.buyer-category-menu{ display:none !important; }
.buyer-product-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:16px;
}
.buyer-product-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:11px;
  padding:14px;
  border:1px solid rgba(154,126,220,.18);
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 25px rgba(81,48,150,.07);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.buyer-product-card:hover{ transform:translateY(-2px); border-color:var(--stasia-line-strong); box-shadow:var(--stasia-shadow); }
.product-heart,.quick-view{
  position:absolute;
  z-index:3;
  top:12px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid var(--stasia-line);
  border-radius:999px;
  color:var(--stasia-lilac);
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(10px);
  font-weight:950;
}
.product-heart{ right:12px; }
.quick-view{ left:12px; font-size:14px; }
.buyer-img-wrap{
  height:146px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbf6ff);
  overflow:hidden;
}
.buyer-product-img,.ticket-img{
  width:100%; height:100%; object-fit:cover; object-position:var(--img-x,50%) var(--img-y,58%);
}
.buyer-product-card .buyer-product-img{ object-fit:contain; padding:8px; }
.buyer-no-img{ width:100%; height:100%; display:grid; place-items:center; border-radius:18px; color:var(--stasia-lilac); background:linear-gradient(135deg,#f5efff,#fff1fa); font-weight:950; }
.buyer-card-body{ display:grid; gap:7px; min-width:0; }
.buyer-card-body .mini-label{ color:var(--stasia-lilac); font-size:10px; letter-spacing:.09em; }
.buyer-card-body h3{ margin:0; min-height:42px; color:#35304f; font-size:15px; line-height:1.2; font-weight:850; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.buyer-card-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.buyer-card-foot strong{ color:var(--stasia-purple); font-size:18px; font-weight:950; }
.buyer-card-foot span{ color:var(--stasia-muted); font-size:11px; font-weight:800; }
.product-rating{ display:flex; align-items:center; gap:6px; color:var(--stasia-lilac); font-size:13px; }
.product-rating span{ letter-spacing:1px; }
.product-rating small{ color:#807792; font-weight:800; }
.buyer-meta-grid{ display:flex; flex-wrap:wrap; gap:5px; min-height:23px; }
.buyer-meta-grid span{ max-width:100%; padding:4px 7px; border-radius:999px; color:var(--stasia-purple); background:#f6f0ff; font-size:10px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.buyer-seller-line{ margin:0; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.quick-add{
  min-height:38px;
  display:grid;
  grid-template-columns:40px 1fr 28px;
  align-items:center;
  gap:6px;
  padding:0 10px;
  border:1px solid var(--stasia-line-strong);
  border-radius:13px;
  color:var(--stasia-lilac);
  background:linear-gradient(180deg,#fff,#fbf7ff);
  font-weight:950;
}
.quick-add span{ justify-self:start; }
.quick-add i{ font-style:normal; justify-self:end; font-size:20px; }
.buyer-empty{ grid-column:1/-1; padding:40px 16px; border:1px dashed var(--stasia-line-strong); border-radius:22px; color:var(--stasia-muted); text-align:center; background:#fff; font-weight:850; }

/* Rewards */
.cb-rewards-panel{
  min-height:92px;
  margin:14px 0 20px;
  display:grid;
  grid-template-columns:minmax(230px,1.2fr) repeat(3,minmax(150px,.8fr)) 120px;
  gap:12px;
  align-items:center;
  padding:18px 24px;
  border:1px solid rgba(154,126,220,.22);
  border-radius:28px;
  background:linear-gradient(100deg,rgba(255,245,252,.96),rgba(239,226,255,.94));
  box-shadow:var(--stasia-shadow-soft);
  overflow:hidden;
}
.cb-rewards-copy h2{ margin:0; color:var(--stasia-purple); font-size:23px; }
.cb-rewards-copy p{ margin:5px 0 0; color:var(--stasia-muted); font-size:13px; }
.cb-reward-mini{ display:flex; align-items:center; gap:9px; min-width:0; color:var(--stasia-purple); font-weight:900; }
.cb-reward-mini i{ width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:999px; color:var(--stasia-lilac); background:rgba(255,255,255,.8); font-style:normal; }
.cb-reward-mini span{ min-width:0; font-size:13px; }
.cb-reward-gift{ justify-self:end; font-size:62px; filter:drop-shadow(0 10px 15px rgba(81,48,150,.16)); }

/* Cart drawer and modals */
.cart-modal-backdrop{ position:fixed; inset:0; z-index:8800; background:rgba(41,33,59,.34); opacity:0; pointer-events:none; transition:.18s ease; backdrop-filter:blur(6px); }
body.cart-open .cart-modal-backdrop{ opacity:1; pointer-events:auto; }
.buyer-ticket-panel{
  position:fixed;
  z-index:9000;
  right:18px;
  bottom:18px;
  width:min(430px, calc(100vw - 28px));
  max-height:min(760px, calc(100dvh - 36px));
  border:1px solid var(--stasia-line);
  border-radius:30px;
  background:#fff;
  box-shadow:0 28px 80px rgba(41,33,59,.26);
  overflow:hidden;
  transition:transform .22s ease, opacity .22s ease;
}
.buyer-ticket-panel.collapsed{ transform:translateY(calc(100% - 82px)); }
.cart-sheet-handle{ position:absolute; top:8px; left:50%; transform:translateX(-50%); width:48px; height:5px; border:0; border-radius:999px; background:#ddd2fb; z-index:2; }
.cart-collapsed-bar{ min-height:82px; padding:22px 20px 14px; display:flex; align-items:center; justify-content:space-between; gap:14px; background:linear-gradient(135deg,#fff,#f8f1ff); }
.cart-collapsed-bar strong{ color:var(--stasia-purple); }
.collapsed-total{ display:grid; justify-items:end; gap:4px; }
.collapsed-total span{ color:var(--stasia-purple); font-size:18px; font-weight:950; }
.collapsed-total b{ color:var(--stasia-pink); font-size:12px; }
.cart-expanded-content{ display:grid; grid-template-rows:auto minmax(120px,1fr) auto; max-height:calc(min(760px, 100dvh - 36px) - 18px); padding-top:12px; }
.ticket-head-v2{ display:flex; justify-content:space-between; gap:12px; padding:18px 20px 10px; }
.ticket-head-v2 h2{ margin:3px 0 0; color:var(--stasia-purple); }
.ticket-clear{ min-height:38px; padding:0 13px; border:1px solid var(--stasia-line); border-radius:999px; color:var(--stasia-pink); background:#fff; font-weight:900; }
.ticket-items-v2{ overflow:auto; padding:0 16px 14px; display:grid; gap:10px; }
.buyer-ticket-item{ display:grid; grid-template-columns:64px 1fr auto; gap:10px; align-items:center; padding:10px; border:1px solid var(--stasia-line); border-radius:18px; background:#fff; }
.ticket-thumb{ width:64px; height:64px; border-radius:15px; overflow:hidden; background:#f7f0ff; }
.ticket-info{ min-width:0; display:grid; gap:3px; }
.ticket-info strong{ color:var(--stasia-ink); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ticket-info p{ margin:0; color:var(--stasia-muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ticket-info b{ color:var(--stasia-purple); }
.ticket-meta-chips{ display:flex; gap:4px; flex-wrap:wrap; }
.ticket-meta-chips span{ padding:3px 6px; border-radius:999px; background:#f5eeff; color:var(--stasia-purple); font-size:9px; font-weight:800; }
.ticket-qty{ display:grid; grid-template-columns:28px 28px 28px; align-items:center; border:1px solid var(--stasia-line); border-radius:999px; overflow:hidden; }
.ticket-qty button{ width:28px; height:30px; border:0; color:var(--stasia-purple); background:#fff; font-weight:950; }
.ticket-qty span{ text-align:center; color:var(--stasia-purple); font-weight:950; }
.ticket-summary-v2{ padding:14px 20px 20px; border-top:1px solid var(--stasia-line); background:linear-gradient(180deg,#fff,#fbf7ff); display:grid; gap:9px; }
.summary-line{ display:flex; justify-content:space-between; color:var(--stasia-muted); }
.summary-line.total{ color:var(--stasia-purple); font-size:19px; font-weight:950; }
.mobile-close-cart{ min-height:44px; border:1px solid var(--stasia-line); border-radius:15px; color:var(--stasia-purple); background:#fff; font-weight:900; }
.empty-ticket{ padding:28px 12px; text-align:center; color:var(--stasia-muted); font-weight:850; }

.branch-modal,.customer-orders-modal,.image-viewer{
  position:fixed;
  inset:0;
  z-index:9500;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(41,33,59,.42);
  backdrop-filter:blur(10px);
}
.branch-modal-card,.customer-orders-card,.image-viewer-card{
  position:relative;
  width:min(620px,100%);
  max-height:calc(100dvh - 44px);
  overflow:auto;
  padding:24px;
  border:1px solid var(--stasia-line);
  border-radius:28px;
  background:#fff;
  box-shadow:0 30px 90px rgba(41,33,59,.3);
}
.branch-modal-card h2,.customer-orders-card h2{ margin:8px 0 6px; color:var(--stasia-purple); }
.image-viewer-close{ position:absolute; top:14px; right:14px; z-index:3; width:42px; height:42px; display:grid; place-items:center; border:0; border-radius:999px; color:var(--stasia-purple); background:#fff; box-shadow:var(--stasia-shadow-soft); font-size:25px; }
.branch-choice-grid{ display:grid; gap:10px; margin-top:16px; }
.branch-choice-card{ display:grid; gap:4px; padding:16px; border:1px solid var(--stasia-line); border-radius:18px; color:var(--stasia-ink); background:#fff; text-align:left; }
.branch-choice-card.active{ border-color:var(--stasia-lilac); background:#f7f1ff; }
.branch-choice-card strong{ color:var(--stasia-purple); }
.branch-choice-card span,.branch-choice-card small{ color:var(--stasia-muted); }
.image-viewer{ z-index:9800; }
.image-viewer-card{ width:min(760px,100%); padding:12px; }
.image-viewer-card img{ width:100%; max-height:70dvh; object-fit:contain; border-radius:20px; background:#f7f1ff; }
.image-viewer-caption{ display:grid; gap:2px; padding:12px 4px 4px; color:var(--stasia-purple); }
.image-viewer-caption span{ color:var(--stasia-muted); }
.customer-orders-list{ display:grid; gap:10px; }
.customer-order-card{ border:1px solid var(--stasia-line); border-radius:18px; padding:14px; background:#fff; }
.toast{ position:fixed; left:50%; bottom:30px; transform:translateX(-50%); z-index:9900; min-height:48px; display:flex; align-items:center; gap:10px; padding:10px 16px; border-radius:999px; color:white; background:linear-gradient(135deg,var(--stasia-pink),var(--stasia-lilac)); box-shadow:var(--stasia-shadow); font-weight:900; }
.toast-check{ width:26px; height:26px; display:grid; place-items:center; border-radius:999px; background:rgba(255,255,255,.25); }
#cartAddPopup{ position:fixed; z-index:9900; right:22px; top:112px; display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--stasia-line); border-radius:18px; color:var(--stasia-purple); background:#fff; box-shadow:var(--stasia-shadow); opacity:0; transform:translateY(-8px); pointer-events:none; transition:.18s ease; }
#cartAddPopup.show{ opacity:1; transform:translateY(0); }
.cart-add-popup-icon{ width:32px; height:32px; display:grid; place-items:center; border-radius:999px; color:#fff; background:linear-gradient(135deg,var(--stasia-pink),var(--stasia-lilac)); font-weight:950; }
#cartAddPopup strong{ display:block; }
#cartAddPopup span{ color:var(--stasia-muted); font-size:12px; }

.cb-bottom-nav{ display:none; }

/* Keep the floating cart from covering the product grid.
   When the cart is empty, hide the collapsed dock. When it has items,
   reserve bottom space so the last row stays visible. */
body.buyer-page.cart-has-items:not(.customer-gate-active) .buyer-main{
  padding-bottom:calc(34px + var(--stasia-bottom-h) + 96px) !important;
}
.buyer-ticket-panel.is-empty-cart.collapsed{
  opacity:0;
  pointer-events:none;
  transform:translateY(calc(100% + 24px));
}

@media (max-width:1180px){
  .cb-top-nav{ grid-template-columns:210px minmax(220px,1fr) 210px auto; gap:12px; }
  .cb-brand-logo{ width:205px; }
  .buyer-product-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .cb-feature-banner{ grid-template-columns:1fr 330px; }
  .cb-gift-card{ display:none; }
  .cb-rewards-panel{ grid-template-columns:1fr 1fr 1fr; }
  .cb-reward-gift{ display:none; }
}

@media (max-width:820px){
  :root{ --stasia-nav-h: 108px; --stasia-bottom-h: 86px; --stasia-cart-peek: 0px; }
  body.buyer-page:not(.customer-gate-active) .buyer-main{ padding-left:10px !important; padding-right:10px !important; }
  .buyer-gate-panel{ grid-template-columns:1fr; padding:20px; border-radius:28px; background:linear-gradient(135deg, rgba(255,255,255,.94), rgba(249,239,255,.92)); }
  .gate-left h1{ font-size:42px; }
  .cb-top-nav{
    min-height:auto;
    grid-template-columns:1fr auto;
    grid-template-areas:
      "brand icons"
      "branch branch";
    align-items:center;
    padding:8px 12px 12px;
    border-bottom-left-radius:24px;
    border-bottom-right-radius:24px;
  }
  .cb-brand-block{ grid-area:brand; }
  .cb-brand-logo{ width:210px; height:70px; object-position:left center; }
  .cb-top-nav > .cb-search-wrap{ display:none; }
  .cb-utility-nav{ grid-area:icons; gap:9px; }
  .cb-search-shortcut{ display:grid; }
  .cb-icon-btn{ width:48px; height:48px; font-size:22px; }
  .cb-branch-card{ grid-area:branch; min-height:58px; border-radius:18px; }
  .cb-mobile-search{ display:none; margin:10px 0 0; }
  body.search-open .cb-mobile-search{ display:block; }
  .cb-mobile-search .cb-search-wrap{ min-height:52px; border-radius:19px; }
  .cb-feature-banner{
    min-height:322px;
    grid-template-columns:1fr 46%;
    gap:0;
    margin-top:12px;
    padding:26px 20px 24px;
    border-radius:24px;
  }
  .cb-feature-copy{ align-self:center; }
  .cb-hero-greeting{ font-size:16px; }
  .cb-feature-copy h1{ font-size:clamp(30px,9vw,48px); max-width:300px; }
  .cb-feature-copy > p:not(.cb-hero-greeting){ font-size:15px; max-width:270px; }
  .cb-primary-cta{ min-height:46px; padding:0 22px; }
  .cb-feature-art{ height:100%; align-self:stretch; }
  .cb-mascot-img{ width:310px; max-width:170%; bottom:-10px; left:44%; }
  .cb-carousel-dots{ bottom:4px; }
  .cb-gift-card{ display:none; }
  .cb-shop-mode-row{ flex-wrap:wrap; align-items:stretch; }
  .cb-mode-toggle{ order:1; flex:1 1 auto; justify-content:center; }
  .cb-sort-control{ order:2; flex:1 1 180px; justify-content:center; }
  .product-count-pill{ order:3; flex:1 1 100%; }
  .buyer-category-options{ grid-auto-columns:minmax(136px, 152px); gap:10px; padding-bottom:8px; }
  .buyer-category-option{ min-height:142px; grid-template-columns:1fr; justify-items:center; text-align:center; gap:7px; padding:12px 8px; border-radius:20px; white-space:normal; }
  .buyer-category-option b{ display:none; }
  .cat-icon{ width:66px; height:66px; font-size:32px; }
  .cat-copy strong{ font-size:15px; }
  .cat-copy small{ font-size:12px; }
  .cb-catalog-wrap{ padding:14px; border-radius:24px; }
  .cb-catalog-head{ margin-bottom:12px; }
  .cb-catalog-title h2{ font-size:23px; }
  .cb-catalog-title p{ display:none; }
  .buyer-product-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .buyer-product-card{ display:flex; flex-direction:column; gap:8px; padding:11px; border-radius:20px; min-height:248px; }
  .buyer-product-card .buyer-img-wrap{ width:100%; height:112px; align-self:stretch; }
  .buyer-card-body{ display:grid; align-content:start; gap:6px; }
  .buyer-card-body h3{ min-height:34px; font-size:13px; line-height:1.18; -webkit-line-clamp:2; }
  .buyer-card-foot{ align-items:flex-start; flex-direction:column; gap:2px; }
  .buyer-card-foot strong{ font-size:19px; }
  .buyer-card-foot span{ font-size:10px; }
  .product-rating{ font-size:11px; gap:4px; }
  .product-rating span{ letter-spacing:0; }
  .buyer-meta-grid,.buyer-seller-line,.buyer-card-body .mini-label,.quick-view{ display:none; }
  .quick-add{ min-height:38px; margin-top:auto; grid-column:auto; }
  .product-heart{ right:8px; top:8px; width:28px; height:28px; }
  .cb-rewards-panel{ grid-template-columns:1fr repeat(3, minmax(0, .7fr)); gap:8px; padding:16px; border-radius:22px; }
  .cb-rewards-copy h2{ font-size:20px; }
  .cb-rewards-copy p{ font-size:12px; }
  .cb-reward-mini{ display:grid; justify-items:center; text-align:center; gap:5px; }
  .cb-reward-mini i{ width:34px; height:34px; }
  .cb-reward-mini span{ font-size:11px; }
  .buyer-ticket-panel{ right:10px; bottom:calc(10px + var(--stasia-bottom-h) + env(safe-area-inset-bottom, 0px)); width:calc(100vw - 20px); max-height:calc(100dvh - var(--stasia-bottom-h) - 20px - env(safe-area-inset-bottom, 0px)); }
  .buyer-ticket-panel.collapsed{ transform:translateY(calc(100% - 76px)); }
  .cb-bottom-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:7600;
    height:70px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:4px;
    padding:7px;
    border:1px solid var(--stasia-line);
    border-radius:26px;
    background:rgba(255,255,255,.92);
    box-shadow:0 18px 38px rgba(81,48,150,.17);
    backdrop-filter:blur(16px);
  }
  .cb-bottom-nav button{ position:relative; display:grid; place-items:center; gap:2px; border:0; border-radius:20px; color:var(--stasia-purple); background:transparent; font-size:20px; }
  .cb-bottom-nav button.active{ background:#f1e8ff; }
  .cb-bottom-nav b{ font-size:12px; }
  .cb-bottom-nav .cart-count-badge{ top:6px; right:20%; }
  .toast{ bottom:94px; width:calc(100vw - 28px); justify-content:center; }
  body.buyer-page.cart-has-items:not(.customer-gate-active) .buyer-main{
    padding-bottom:calc(18px + var(--stasia-bottom-h) + 116px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width:520px){
  body.buyer-page.customer-gate-active{ padding:12px; }
  .gate-left{ display:none; }
  .buyer-gate-panel{ min-height:auto; padding:12px; }
  .gate-card-v2{ border-radius:24px; }
  .cb-brand-logo{ width:178px; height:62px; }
  .cb-icon-btn{ width:43px; height:43px; font-size:20px; }
  .cb-utility-nav{ gap:6px; }
  .cb-feature-banner{ min-height:306px; grid-template-columns:1fr 43%; padding:22px 16px 22px; }
  .cb-feature-copy h1{ font-size:34px; }
  .cb-feature-copy > p:not(.cb-hero-greeting){ font-size:14px; }
  .cb-mascot-img{ width:280px; left:40%; bottom:-2px; }
  .buyer-category-options{ grid-auto-columns:128px; }
  .buyer-category-option{ min-height:132px; }
  .cat-icon{ width:58px; height:58px; }
  .cb-catalog-wrap{ padding:12px; }
  .buyer-product-grid{ gap:10px; }
  .buyer-product-card{ padding:9px; min-height:232px; }
  .buyer-img-wrap{ border-radius:16px; }
  .buyer-product-card .buyer-img-wrap{ height:96px; }
  .buyer-card-body h3{ font-size:12px; min-height:32px; }
  .buyer-card-foot strong{ font-size:18px; }
  .buyer-card-foot span{ font-size:9px; }
  .product-rating small{ display:none; }
  .quick-add{ font-size:13px; min-height:36px; }
  .cb-rewards-panel{ grid-template-columns:1fr 1fr 1fr; }
  .cb-rewards-copy{ grid-column:1 / -1; }
  body.buyer-page.cart-has-items:not(.customer-gate-active) .buyer-main{
    padding-bottom:calc(14px + var(--stasia-bottom-h) + 122px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .branch-modal,.customer-orders-modal,.image-viewer{ padding:12px; }
  .branch-modal-card,.customer-orders-card,.image-viewer-card{ border-radius:22px; padding:18px; }
}

@media (min-width:821px){
  .cb-search-shortcut{ display:none; }
}

/* Gate mode: keep shopping-only overlays out of the login screen. */
body.buyer-page.customer-gate-active .buyer-ticket-panel,
body.buyer-page.customer-gate-active .cart-modal-backdrop,
body.buyer-page.customer-gate-active .cb-bottom-nav{
  display:none !important;
}

#miniToast{
  position:fixed;
  left:50%;
  bottom:28px;
  z-index:9999;
  transform:translateX(-50%);
  pointer-events:none;
}
#miniToast:not(:empty){
  padding:10px 16px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,var(--stasia-pink),var(--stasia-lilac));
  box-shadow:var(--stasia-shadow);
  font-weight:900;
}
.customer-order-item{display:grid;gap:8px;padding:14px;border:1px solid var(--stasia-line);border-radius:18px;background:linear-gradient(180deg,#fff,#fbf7ff)}
.customer-order-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-order-top strong{color:var(--stasia-purple)}.customer-order-top b{color:var(--stasia-pink)}
.customer-order-item p{margin:0;color:var(--stasia-muted);font-size:12px}.customer-order-status,.customer-order-products{display:flex;flex-wrap:wrap;gap:6px}.customer-order-status span,.customer-order-products span{padding:5px 8px;border-radius:999px;background:#f4edff;color:var(--stasia-purple);font-size:11px;font-weight:850}

@media (max-width:820px){
  .buyer-product-card .buyer-product-img{ padding:6px; }
  .quick-add span{ font-size:15px; }
  .quick-add b{ font-size:14px; }
}


/* FIX4: Product-only toolbar + visible product count */
.cb-shop-mode-row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}
.cb-shop-mode-row .cb-sort-control{
  justify-self:center;
}
.cb-shop-mode-row .product-count-pill{
  justify-self:end;
}
@media (max-width:820px){
  .cb-shop-mode-row{
    grid-template-columns:1fr;
    justify-items:stretch;
  }
  .cb-shop-mode-row .cb-sort-control{
    width:100%;
    justify-content:center;
  }
  .cb-shop-mode-row .product-count-pill{
    justify-self:center;
  }
}

/* FIX4: ensure product grid always has proper space below the heading */
.cb-catalog-wrap .buyer-product-grid{
  margin-top:4px;
}


/* FIX5: product visibility + cleaner mobile hero art */
.cb-feature-art{
  overflow:hidden;
  border-radius:22px;
}
.cb-mascot-img{
  bottom:0;
  width:min(430px, 112%);
}
@media (max-width:820px){
  .cb-feature-banner{
    grid-template-columns:minmax(0, 1fr) minmax(130px, 45%);
    min-height:300px;
    padding:20px 16px;
  }
  .cb-feature-art{
    height:100%;
    align-self:stretch;
    display:block;
    overflow:hidden;
  }
  .cb-mascot-img{
    width:245px;
    max-width:none;
    left:54%;
    bottom:0;
    transform:translateX(-50%);
  }
  .cb-feature-copy h1{
    font-size:31px;
    line-height:1.05;
    max-width:210px;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:190px;
    font-size:13px;
    line-height:1.42;
  }
  .cb-primary-cta{
    min-height:42px;
    padding:0 18px;
  }
  .cb-category-strip{
    margin-top:10px;
  }
  .cb-catalog-wrap{
    margin-top:10px;
  }
}
@media (max-width:520px){
  .cb-feature-banner{
    grid-template-columns:minmax(0, 1fr) 43%;
    min-height:260px;
  }
  .cb-mascot-img{
    width:214px;
    left:51%;
  }
  .cb-feature-copy h1{
    font-size:28px;
    max-width:190px;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:170px;
    font-size:12px;
  }
}

/* FIX7: make the hero mascot stand out more like the reference banner */
.cb-feature-banner{
  overflow:hidden;
}
.cb-feature-art{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  overflow:visible;
  isolation:isolate;
}
.cb-feature-art::before{
  content:"";
  position:absolute;
  right:-1%;
  bottom:4%;
  width:min(390px, 96%);
  aspect-ratio:1 / 1;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.96) 0%, rgba(255,238,248,.82) 28%, rgba(229,214,255,.46) 56%, rgba(229,214,255,0) 72%);
  filter:blur(8px);
  z-index:0;
}
.cb-feature-art::after{
  content:"";
  position:absolute;
  right:1%;
  top:8%;
  width:76%;
  height:78%;
  border-radius:38px;
  background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  border:1px solid rgba(255,255,255,.36);
  opacity:.55;
  z-index:0;
}
.cb-mascot-img{
  left:auto;
  right:-10px;
  bottom:-2px;
  transform:none;
  width:min(500px, 118%);
  max-width:none;
  z-index:2;
  filter:drop-shadow(0 24px 30px rgba(81,48,150,.18)) drop-shadow(0 0 18px rgba(255,255,255,.72));
}

@media (max-width:820px){
  .cb-feature-banner{
    grid-template-columns:minmax(0, 1fr) minmax(148px, 43%);
    min-height:286px;
  }
  .cb-feature-art::before{
    right:-8%;
    bottom:6%;
    width:210px;
    filter:blur(6px);
  }
  .cb-feature-art::after{
    width:92%;
    height:74%;
    right:-4%;
    top:14%;
  }
  .cb-mascot-img{
    width:268px;
    right:-38px;
    bottom:-2px;
  }
}

@media (max-width:520px){
  .cb-feature-banner{
    grid-template-columns:minmax(0, 1fr) 42%;
    min-height:248px;
    padding:18px 14px;
  }
  .cb-feature-copy h1{
    max-width:185px;
    font-size:26px;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:158px;
    font-size:12px;
  }
  .cb-feature-art::before{
    width:184px;
    right:-16%;
  }
  .cb-feature-art::after{
    width:100%;
    right:-10%;
    top:18%;
  }
  .cb-mascot-img{
    width:236px;
    right:-44px;
    bottom:-4px;
  }
}

/* =========================================================
   FIX7: Make hero mascot artwork stand out inside the project
   - Bigger right-side artwork
   - Stronger glow/drop shadow
   - Better desktop and mobile positioning
   ========================================================= */
.cb-feature-banner{
  isolation:isolate;
  min-height:250px;
  padding-right:clamp(260px, 34vw, 520px);
  background:
    radial-gradient(circle at 78% 47%, rgba(255,255,255,.88), transparent 18%),
    radial-gradient(circle at 86% 48%, rgba(243,107,165,.20), transparent 24%),
    radial-gradient(circle at 18% 40%, rgba(255,255,255,.92), transparent 20%),
    linear-gradient(105deg, rgba(255,246,252,.97) 0%, rgba(246,235,255,.96) 48%, rgba(231,215,255,.94) 100%) !important;
}
.cb-feature-copy{
  z-index:5 !important;
}
.cb-feature-copy h1{
  text-shadow:0 3px 0 rgba(255,255,255,.75), 0 10px 26px rgba(81,48,150,.10);
}
.cb-feature-copy h1 span{
  text-shadow:0 3px 0 rgba(255,255,255,.85), 0 12px 24px rgba(243,107,165,.16);
}
.cb-feature-art{
  position:absolute !important;
  z-index:3 !important;
  right:clamp(210px, 18vw, 330px) !important;
  bottom:0 !important;
  top:auto !important;
  width:clamp(420px, 38vw, 630px) !important;
  height:calc(100% + 24px) !important;
  display:block !important;
  overflow:visible !important;
  border-radius:0 !important;
  pointer-events:none;
}
.cb-feature-art::before{
  content:"";
  position:absolute;
  right:2%;
  bottom:0;
  width:88%;
  height:86%;
  border-radius:45% 45% 32% 32%;
  background:radial-gradient(circle, rgba(255,255,255,.92), rgba(255,221,241,.34) 45%, transparent 72%);
  filter:blur(5px);
  z-index:-1;
}
.cb-mascot-img{
  left:auto !important;
  right:-18px !important;
  bottom:-18px !important;
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  transform:none !important;
  object-fit:contain !important;
  object-position:right bottom !important;
  border-radius:26px;
  filter:
    drop-shadow(0 0 0 rgba(255,255,255,1))
    drop-shadow(0 18px 28px rgba(81,48,150,.24))
    drop-shadow(0 0 18px rgba(255,255,255,.82)) !important;
}
.cb-gift-card{
  z-index:6 !important;
  transform:translateX(6px);
}
.cb-carousel-dots{
  z-index:8 !important;
  bottom:10px !important;
}
.cb-sparkle{
  z-index:7 !important;
  text-shadow:0 3px 10px rgba(255,255,255,.9);
}

@media (max-width:1180px){
  .cb-feature-banner{
    padding-right:clamp(210px, 34vw, 390px);
  }
  .cb-feature-art{
    right:24px !important;
    width:clamp(390px, 45vw, 520px) !important;
  }
}

@media (max-width:820px){
  .cb-feature-banner{
    position:relative;
    grid-template-columns:1fr !important;
    min-height:315px !important;
    padding:22px 44% 22px 18px !important;
    overflow:hidden !important;
  }
  .cb-feature-copy{
    align-self:center;
    max-width:100%;
  }
  .cb-feature-copy h1{
    max-width:230px !important;
    font-size:32px !important;
    line-height:1.04 !important;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:205px !important;
    font-size:12.5px !important;
    line-height:1.45 !important;
  }
  .cb-feature-art{
    right:-54px !important;
    bottom:0 !important;
    width:330px !important;
    height:100% !important;
    overflow:visible !important;
  }
  .cb-feature-art::before{
    right:10px;
    bottom:18px;
    width:230px;
    height:220px;
  }
  .cb-mascot-img{
    right:-18px !important;
    bottom:0 !important;
    width:330px !important;
    max-width:none !important;
    border-radius:22px;
  }
  .cb-carousel-dots{
    left:64% !important;
    bottom:8px !important;
  }
  .cb-sparkle-one{ left:66% !important; top:28% !important; }
  .cb-sparkle-two{ right:18% !important; top:34% !important; }
}

@media (max-width:520px){
  .cb-feature-banner{
    min-height:300px !important;
    padding:20px 39% 20px 14px !important;
  }
  .cb-feature-copy h1{
    max-width:190px !important;
    font-size:28px !important;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:168px !important;
    font-size:11.5px !important;
  }
  .cb-primary-cta{
    min-height:38px !important;
    padding:0 16px !important;
    font-size:13px;
  }
  .cb-feature-art{
    right:-90px !important;
    width:330px !important;
  }
  .cb-mascot-img{
    right:-6px !important;
    bottom:4px !important;
    width:320px !important;
  }
  .cb-carousel-dots{
    left:62% !important;
  }
}

/* =========================================================
   FIX8: Real hero repair — image stands out inside the project
   - Removes promo card overlap
   - Uses the clean mascot artwork as a large right-side hero image
   - Prevents tiny/cut mascot on desktop and mobile
   ========================================================= */
.cb-feature-banner{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) minmax(430px, 48%) !important;
  align-items:center !important;
  min-height:260px !important;
  padding:34px clamp(24px, 4vw, 70px) !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 18% 46%, rgba(255,255,255,.94), transparent 22%),
    radial-gradient(circle at 78% 44%, rgba(243,107,165,.18), transparent 32%),
    linear-gradient(105deg, rgba(255,247,253,.98) 0%, rgba(246,235,255,.96) 46%, rgba(226,207,255,.94) 100%) !important;
}
.cb-feature-copy{
  position:relative !important;
  z-index:5 !important;
  max-width:720px !important;
  align-self:center !important;
}
.cb-feature-copy h1{
  max-width:720px !important;
  font-size:clamp(44px, 5.4vw, 76px) !important;
  line-height:.96 !important;
  letter-spacing:-.065em !important;
  text-shadow:0 3px 0 rgba(255,255,255,.85), 0 16px 32px rgba(81,48,150,.10) !important;
}
.cb-feature-copy h1 span{
  color:var(--stasia-pink) !important;
  text-shadow:0 3px 0 rgba(255,255,255,.9), 0 16px 28px rgba(243,107,165,.17) !important;
}
.cb-feature-copy > p:not(.cb-hero-greeting){
  max-width:500px !important;
  font-size:17px !important;
  line-height:1.55 !important;
}
.cb-gift-card{
  display:none !important;
}
.cb-feature-art{
  position:absolute !important;
  z-index:2 !important;
  inset:0 0 0 auto !important;
  width:min(56%, 760px) !important;
  height:100% !important;
  display:block !important;
  overflow:hidden !important;
  border-radius:0 !important;
  pointer-events:none !important;
  isolation:isolate !important;
}
.cb-feature-art::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  z-index:2 !important;
  background:linear-gradient(90deg, rgba(255,247,253,.94) 0%, rgba(255,247,253,.42) 18%, rgba(255,247,253,0) 38%) !important;
  filter:none !important;
  border-radius:0 !important;
}
.cb-feature-art::after{
  content:"" !important;
  position:absolute !important;
  right:7% !important;
  top:10% !important;
  width:62% !important;
  height:78% !important;
  z-index:0 !important;
  border-radius:50% !important;
  background:radial-gradient(circle, rgba(255,255,255,.78), rgba(243,107,165,.20) 44%, transparent 70%) !important;
  filter:blur(8px) !important;
  opacity:.9 !important;
}
.cb-mascot-img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center right !important;
  transform:none !important;
  border-radius:0 !important;
  z-index:1 !important;
  filter:drop-shadow(0 22px 34px rgba(81,48,150,.20)) contrast(1.03) saturate(1.05) !important;
}
.cb-carousel-dots{
  left:58% !important;
  bottom:16px !important;
  z-index:6 !important;
}
.cb-sparkle{
  z-index:6 !important;
}
.cb-sparkle-one{ left:50% !important; top:34% !important; }
.cb-sparkle-two{ right:14% !important; top:24% !important; }

@media (max-width:1180px){
  .cb-feature-banner{
    grid-template-columns:minmax(0, 1fr) minmax(350px, 48%) !important;
    min-height:245px !important;
  }
  .cb-feature-copy h1{
    font-size:clamp(40px, 5.4vw, 62px) !important;
    max-width:590px !important;
  }
  .cb-feature-art{ width:55% !important; }
}

@media (max-width:820px){
  .cb-feature-banner{
    display:block !important;
    min-height:270px !important;
    padding:20px 42% 20px 16px !important;
    border-radius:24px !important;
  }
  .cb-feature-copy{
    max-width:100% !important;
  }
  .cb-hero-greeting{
    font-size:15px !important;
  }
  .cb-feature-copy h1{
    max-width:230px !important;
    font-size:32px !important;
    line-height:1.03 !important;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:210px !important;
    font-size:12.5px !important;
    line-height:1.42 !important;
  }
  .cb-primary-cta{
    min-height:40px !important;
    padding:0 18px !important;
    font-size:13px !important;
  }
  .cb-feature-art{
    width:61% !important;
    right:-13% !important;
    left:auto !important;
    top:0 !important;
    bottom:0 !important;
    height:100% !important;
  }
  .cb-feature-art::before{
    background:linear-gradient(90deg, rgba(255,247,253,.95) 0%, rgba(255,247,253,.38) 30%, rgba(255,247,253,0) 58%) !important;
  }
  .cb-mascot-img{
    object-position:center right !important;
  }
  .cb-carousel-dots{
    left:67% !important;
    bottom:10px !important;
  }
  .cb-sparkle-one{ left:58% !important; top:34% !important; }
  .cb-sparkle-two{ right:12% !important; top:30% !important; }
}

@media (max-width:520px){
  .cb-feature-banner{
    min-height:260px !important;
    padding:18px 40% 18px 14px !important;
  }
  .cb-feature-copy h1{
    max-width:190px !important;
    font-size:27px !important;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:165px !important;
    font-size:11.5px !important;
  }
  .cb-feature-art{
    width:66% !important;
    right:-20% !important;
  }
  .cb-feature-art::before{
    background:linear-gradient(90deg, rgba(255,247,253,.95) 0%, rgba(255,247,253,.44) 32%, rgba(255,247,253,0) 62%) !important;
  }
  .cb-carousel-dots{
    left:63% !important;
    bottom:8px !important;
  }
}

/* =========================================================
   FIX9: Final hero repair — no chopped mascot / no overlay card
   The hero artwork now behaves like the reference banner: text left,
   mascot large on the right, visible face + bag, not a random crop.
   ========================================================= */
.cb-feature-banner{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(320px, 52%) minmax(320px, 48%) !important;
  min-height:250px !important;
  padding:34px clamp(26px,4vw,64px) !important;
  align-items:center !important;
  overflow:hidden !important;
  isolation:isolate !important;
  background:
    radial-gradient(circle at 18% 50%, rgba(255,255,255,.95), transparent 24%),
    radial-gradient(circle at 78% 42%, rgba(255,255,255,.70), transparent 22%),
    radial-gradient(circle at 86% 44%, rgba(243,107,165,.17), transparent 36%),
    linear-gradient(105deg, #fff7fd 0%, #f7ecff 48%, #eadcff 100%) !important;
}
.cb-feature-banner::before{
  content:"✦" !important;
  position:absolute !important;
  left:36px !important;
  top:38% !important;
  color:rgba(143,117,223,.48) !important;
  font-size:28px !important;
  z-index:1 !important;
}
.cb-feature-banner::after{
  content:"♡" !important;
  position:absolute !important;
  right:7% !important;
  top:30% !important;
  color:rgba(243,107,165,.58) !important;
  font-size:26px !important;
  z-index:4 !important;
}
.cb-feature-copy{
  position:relative !important;
  z-index:6 !important;
  max-width:650px !important;
  padding-right:18px !important;
}
.cb-hero-greeting{
  font-size:19px !important;
  color:var(--stasia-purple) !important;
}
.cb-feature-copy h1{
  max-width:650px !important;
  font-size:clamp(42px,5vw,68px) !important;
  line-height:.96 !important;
  letter-spacing:-.06em !important;
  text-shadow:0 2px 0 rgba(255,255,255,.9), 0 15px 28px rgba(81,48,150,.10) !important;
}
.cb-feature-copy h1 span{
  color:var(--stasia-pink) !important;
}
.cb-feature-copy > p:not(.cb-hero-greeting){
  max-width:455px !important;
  font-size:16px !important;
  line-height:1.56 !important;
}
.cb-gift-card{ display:none !important; }
.cb-feature-art{
  position:absolute !important;
  inset:0 0 0 auto !important;
  width:54% !important;
  height:100% !important;
  display:block !important;
  overflow:visible !important;
  z-index:3 !important;
  pointer-events:none !important;
}
.cb-feature-art::before{
  content:"" !important;
  position:absolute !important;
  z-index:2 !important;
  inset:0 auto 0 0 !important;
  width:34% !important;
  height:100% !important;
  background:linear-gradient(90deg, rgba(255,247,253,.95), rgba(255,247,253,.62) 42%, rgba(255,247,253,0)) !important;
  filter:none !important;
  border-radius:0 !important;
}
.cb-feature-art::after{
  content:"" !important;
  position:absolute !important;
  z-index:0 !important;
  right:9% !important;
  top:10% !important;
  width:62% !important;
  height:82% !important;
  border-radius:50% !important;
  background:radial-gradient(circle, rgba(255,255,255,.86), rgba(243,107,165,.18) 45%, transparent 72%) !important;
  filter:blur(10px) !important;
}
.cb-mascot-img{
  position:absolute !important;
  z-index:1 !important;
  right:-1% !important;
  bottom:-8% !important;
  left:auto !important;
  top:auto !important;
  width:auto !important;
  height:116% !important;
  max-width:none !important;
  object-fit:unset !important;
  object-position:unset !important;
  transform:none !important;
  border-radius:0 !important;
  filter:drop-shadow(0 22px 30px rgba(81,48,150,.22)) saturate(1.06) contrast(1.03) !important;
}
.cb-carousel-dots{
  position:absolute !important;
  z-index:7 !important;
  left:57% !important;
  bottom:15px !important;
  transform:translateX(-50%) !important;
}
.cb-sparkle{ z-index:7 !important; }
.cb-sparkle-one{ left:52% !important; top:36% !important; }
.cb-sparkle-two{ right:11% !important; top:24% !important; }

@media (max-width:1180px){
  .cb-feature-banner{
    grid-template-columns:minmax(300px, 52%) minmax(280px, 48%) !important;
    min-height:238px !important;
  }
  .cb-feature-copy h1{
    font-size:clamp(38px,5vw,58px) !important;
  }
  .cb-feature-art{ width:56% !important; }
  .cb-mascot-img{ right:-8% !important; height:114% !important; }
}

@media (max-width:820px){
  .cb-feature-banner{
    display:block !important;
    min-height:232px !important;
    padding:18px 43% 18px 16px !important;
    border-radius:24px !important;
  }
  .cb-feature-copy{
    max-width:100% !important;
    padding-right:0 !important;
  }
  .cb-hero-greeting{ font-size:14px !important; }
  .cb-feature-copy h1{
    max-width:190px !important;
    font-size:28px !important;
    line-height:1.02 !important;
    letter-spacing:-.045em !important;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:168px !important;
    font-size:11px !important;
    line-height:1.35 !important;
  }
  .cb-primary-cta{
    min-height:38px !important;
    padding:0 16px !important;
    font-size:12px !important;
  }
  .cb-feature-art{
    width:58% !important;
    height:100% !important;
    right:-3% !important;
    top:0 !important;
    bottom:0 !important;
    overflow:hidden !important;
  }
  .cb-feature-art::before{
    width:30% !important;
    background:linear-gradient(90deg, rgba(255,247,253,.94), rgba(255,247,253,.42) 48%, rgba(255,247,253,0)) !important;
  }
  .cb-feature-art::after{
    right:0 !important;
    top:16% !important;
    width:72% !important;
    height:72% !important;
  }
  .cb-mascot-img{
    height:105% !important;
    width:auto !important;
    left:-74px !important;
    right:auto !important;
    bottom:-6px !important;
    top:auto !important;
  }
  .cb-carousel-dots{
    left:70% !important;
    bottom:8px !important;
  }
  .cb-sparkle-one{ left:58% !important; top:36% !important; }
  .cb-sparkle-two{ right:10% !important; top:30% !important; }
}

@media (max-width:520px){
  .cb-feature-banner{
    min-height:230px !important;
    padding:17px 42% 17px 14px !important;
  }
  .cb-feature-copy h1{
    max-width:170px !important;
    font-size:25px !important;
  }
  .cb-feature-copy > p:not(.cb-hero-greeting){
    max-width:150px !important;
    font-size:10px !important;
  }
  .cb-feature-art{
    width:60% !important;
    right:-6% !important;
  }
  .cb-mascot-img{
    height:104% !important;
    left:-86px !important;
    bottom:-4px !important;
  }
}

@media (max-width:380px){
  .cb-feature-banner{
    min-height:224px !important;
    padding-right:41% !important;
  }
  .cb-feature-copy h1{ font-size:23px !important; max-width:156px !important; }
  .cb-feature-copy > p:not(.cb-hero-greeting){ font-size:9.6px !important; max-width:142px !important; }
  .cb-mascot-img{ left:-94px !important; height:103% !important; }
}

/* Branch / Outlet image grid selection */
.branch-modal-card{ width:min(980px, calc(100vw - 28px)); }
.branch-choice-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr)) !important;
  gap:14px !important;
}
.branch-choice-photo-card{
  display:grid !important;
  grid-template-columns:96px 1fr !important;
  gap:13px !important;
  align-items:center !important;
  min-height:122px;
  padding:12px !important;
  border-radius:24px !important;
  text-align:left !important;
}
.branch-choice-img{
  width:96px;
  height:96px;
  border-radius:19px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#fff2fb,#efe7ff);
  color:var(--stasia-purple);
  font-size:32px;
  border:1px solid var(--stasia-line);
}
.branch-choice-img img{ width:100%; height:100%; object-fit:cover; }
.branch-choice-info{ display:grid; gap:5px; min-width:0; }
.branch-choice-info strong{ font-size:17px !important; line-height:1.12; }
.branch-choice-info span,.branch-choice-info small{ line-height:1.25; }
.branch-empty-state{
  grid-column:1/-1;
  display:grid;
  gap:6px;
  padding:24px;
  border:1px dashed var(--stasia-line-strong);
  border-radius:22px;
  background:#fff;
  color:var(--stasia-purple);
  text-align:center;
}
.branch-empty-state span{ color:var(--stasia-muted); }
@media(max-width:560px){
  .branch-choice-grid{ grid-template-columns:1fr !important; }
  .branch-choice-photo-card{ grid-template-columns:84px 1fr !important; min-height:108px; }
  .branch-choice-img{ width:84px; height:84px; }
}


/* FIX14 — Buyer branch selection grouped by city */
.buyer-branch-city-group{display:grid;gap:12px;margin-top:12px;}
.buyer-branch-city-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;color:var(--stasia-purple);}
.buyer-branch-city-head strong{font-size:18px;}
.buyer-branch-city-head span{color:var(--stasia-muted);font-weight:850;font-size:12px;}
.buyer-branch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;}
.branch-choice-grid{display:block;}
@media(max-width:560px){.buyer-branch-grid{grid-template-columns:1fr}.buyer-branch-city-head{display:grid}}
