/* ==========================================================================
   Kiosk-only additions on top of main.css: promo banner, on-screen keyboard,
   search suggestions panel, dim backdrop. Nothing here is loaded by the
   tablet version.
   ========================================================================== */

/* ---------- promo banner ---------- */
.promo-banner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  background:linear-gradient(120deg, #0c0d12 0%, #1a1710 60%, #0c0d12 100%);
  color:#fff;
  padding:36px 56px;
  overflow:hidden;
  min-height:200px;
}
.promo-banner__copy{position:relative; z-index:2; max-width:520px;}
.promo-banner__eyebrow{
  font-size:14px; letter-spacing:0.22em; text-transform:uppercase; color:#f2c94c;
  font-weight:700; margin-bottom:14px;
}
.promo-banner__title{
  font-size:44px; font-weight:800; line-height:1.08; margin-bottom:14px;
}
.promo-banner__sub{font-size:18px; color:rgba(255,255,255,0.7); max-width:380px;}
.promo-banner__garments{
  position:relative; z-index:2; display:flex; align-items:flex-end; gap:16px; flex:none;
}
.promo-garment{position:relative;}
.promo-garment--lg{width:220px;}
.promo-garment--sm{width:150px; opacity:0.85;}
.promo-garment__base{width:100%; display:block;}
.promo-garment__print{
  position:absolute; top:30%; left:50%; transform:translateX(-50%);
  width:46%; border-radius:2px; box-shadow:0 4px 14px rgba(0,0,0,0.35);
}
@media (max-width: 900px){
  .promo-banner{flex-direction:column; align-items:flex-start; padding:28px 24px;}
  .promo-banner__title{font-size:32px;}
  .promo-banner__garments{align-self:flex-end;}
}

/* ---------- search: clear button + suggestions ---------- */
.form-search{position:relative;}
.kiosk-search-clear{
  position:absolute; right:76px; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,0.08);
  color:#555; font-size:22px; line-height:1; display:flex; align-items:center; justify-content:center;
  z-index:5;
}
.kiosk-results-crumb{color:#a40e0f; font-weight:400;}

.kiosk-suggestions{
  position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:60;
  background:#fff; border-radius:16px; box-shadow:0 12px 32px rgba(30,30,40,0.18);
  overflow:hidden; max-height:360px; overflow-y:auto;
}
.kiosk-suggestion{
  display:flex; align-items:center; gap:16px;
  padding:16px 22px; font-size:19px; color:#333; cursor:pointer;
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.kiosk-suggestion:last-child{border-bottom:none;}
.kiosk-suggestion__icon{
  width:36px; height:36px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center; color:#b6b6b6;
  background:#f4f4f4; overflow:hidden;
}
.kiosk-suggestion__icon img{width:100%; height:100%; object-fit:cover; border-radius:50%;}
.kiosk-suggestion__icon svg{width:18px; height:18px;}
.kiosk-suggestion b{color:#a40e0f; font-weight:700;}
.kiosk-suggestion--empty{color:#999; cursor:default;}

/* ---------- dim backdrop while keyboard is open ---------- */
.kiosk-backdrop{
  position:fixed; inset:0; z-index:50;
  background:rgba(20,20,26,0.55);
}
.kiosk-backdrop[hidden]{display:none;}

/* ---------- on-screen keyboard ---------- */
.kiosk-keyboard{
  position:fixed; left:0; right:0; bottom:0; z-index:70;
  background:#dfe0e3;
  padding:14px 14px calc(14px + env(safe-area-inset-bottom));
  box-shadow:0 -6px 24px rgba(0,0,0,0.18);
}
.kiosk-keyboard[hidden]{display:none;}
.kiosk-keyboard__row{
  display:flex; gap:8px; margin-bottom:8px; justify-content:center;
}
.kiosk-keyboard__row:last-child{margin-bottom:0;}
.kiosk-keyboard button{
  flex:1; max-width:64px; height:56px;
  background:#fff; border-radius:8px; box-shadow:0 1px 0 rgba(0,0,0,0.15);
  font-size:20px; font-weight:600; color:#222;
  display:flex; align-items:center; justify-content:center;
}
.kiosk-keyboard button:active{background:#eee;}
.kiosk-keyboard .kk-wide{max-width:96px; background:#c7c9cd; font-size:16px;}
.kiosk-keyboard .kk-go{background:#a40e0f; color:#fff;}
.kiosk-keyboard .kk-shift{max-width:76px; background:#c7c9cd;}
.kiosk-keyboard .kk-narrow{max-width:88px; background:#c7c9cd; font-size:15px;}
.kiosk-keyboard .kk-done{background:#a40e0f; color:#fff;}
.kiosk-keyboard .kk-space{flex:6; max-width:none; background:#fff;}

@media (max-width: 700px){
  .kiosk-keyboard button{height:48px; font-size:17px;}
  .kiosk-keyboard .kk-wide, .kiosk-keyboard .kk-narrow, .kiosk-keyboard .kk-shift{font-size:13px;}
}

/* Keep search area comfortably above the keyboard when it's open */
body.kiosk-search-active .left-side{padding-bottom:340px;}

/* ---------- 1080px portrait stage (32" kiosk target) ----------
   The physical panel is ~1080px wide (1920x1080 @ portrait). We render the
   whole page inside a fixed-width stage so previews on any monitor show the
   real on-device proportions instead of stretching to the browser width.
   On the actual device (browser already ~1080px wide) this is a no-op. */
html, body{background:#3a3a3f;}
.kiosk-stage{
  max-width:1080px;
  margin:0 auto;
  background:#fff;
  min-height:100vh;
  position:relative;
  box-shadow:0 0 60px rgba(0,0,0,0.35);
}
.kiosk-keyboard, .kiosk-backdrop{
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:1080px;
}
.kiosk-backdrop{transform:translateX(-50%);}

/* ---------- whole-page scroll instead of the tablet's pinned app-shell ----------
   The tablet template keeps header+right-side fixed and only scrolls the
   gallery internally (html,body{overflow:hidden} + custom-container height
   calc()). The kiosk reference scrolls the *whole* screen instead (promo
   banner and header scroll away, product panel scrolls with the gallery). */
html, body{
  height: auto;
  min-height: 100vh;
  overflow: auto;
}
.custom-container{
  height: auto;
  align-items: flex-start;
}
.left-side{
  height: auto;
  overflow-y: visible;
}
.right-side{
  height: auto;
  overflow-y: visible;
  align-self: flex-start;
  padding: 40px 0;
}

/* Kiosk always shows the inline Delivery / Product & Quality / Language row
   (matches the reference) instead of collapsing it behind a hamburger menu. */
.header-menu{display:flex !important;}
.menu-btn{display:none !important;}

/* main.css's tablet breakpoint at max-width:1200px already sizes the product
   panel and gallery sensibly for a ~1080px-wide screen — no extra override
   needed here. Only the gallery-vs-keyboard spacing tweak above applies. */

/* ---------- bottom cart preview strip ---------- */
.kiosk-cart-preview{
  display:flex;
  align-items:center;
  gap:24px;
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.08);
  padding:20px 32px;
  position:relative;
  z-index:5;
}
.kiosk-cart-preview__title{
  font-size:20px; font-weight:700; color:#191919; flex:none;
}
.kiosk-cart-preview__title .count{color:#a7a7a7; font-weight:400; font-size:16px; margin-left:6px;}
.kiosk-cart-preview__items{
  display:flex; gap:14px; overflow-x:auto; flex:1; min-width:0;
}
.kiosk-cart-preview__item{
  flex:none; width:64px; height:64px; border-radius:10px; overflow:hidden;
  border:1px solid rgba(0,0,0,0.08);
}
.kiosk-cart-preview__item img{width:100%; height:100%; object-fit:cover;}
.kiosk-cart-preview__actions{display:flex; gap:12px; flex:none;}
.kiosk-cart-preview__actions .custom-btn{padding:16px 26px; font-size:15px;}
@media (max-width: 900px){
  .kiosk-cart-preview{flex-wrap:wrap; padding:16px 20px;}
  .kiosk-cart-preview__actions{width:100%; justify-content:flex-end;}
}
