/* ordering, offers and the announcement bar */
:root{--promo:0px}

/* ---------- announcement bar ---------- */
.promo{position:fixed;inset:0 0 auto 0;z-index:55;display:flex;align-items:center;gap:6px;background:var(--ink);color:var(--cream);padding:5px 8px;padding-top:max(5px,env(safe-area-inset-top));min-height:34px}
.promo a{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;font-size:13.5px;line-height:1.45;text-align:center}
.promo b{flex:none;background:var(--yellow);color:var(--ink);border-radius:99px;padding:0 9px;font:700 12px/20px var(--en);direction:ltr}
.promo button{flex:none;width:26px;height:26px;border-radius:50%;color:var(--cream);font-size:19px;line-height:1;opacity:.75}
.promo button:hover{opacity:1;background:rgba(255,255,255,.14)}
.top{top:var(--promo)}
.progress{z-index:60}
.hero{padding-top:calc(100px + var(--promo))}
.bar{top:calc(70px + var(--promo))}
html{scroll-padding-top:calc(84px + var(--promo))}
@media(max-width:900px){.bar{top:calc(68px + var(--promo))}}
@media(max-width:700px){
  .hero{padding-top:calc(84px + var(--promo))}
  .promo a{font-size:12px;gap:7px}
}

/* ---------- goes well with ---------- */
.with{margin-top:20px;border-top:1.5px dashed var(--blue-d);padding-top:14px;min-width:0}
.with h5{font-family:var(--h);font-size:17px;line-height:1.5}
.deal{display:inline-block;background:#fdeec2;border-radius:99px;padding:1px 12px;font-size:13px;font-weight:700;margin-top:4px}
.withrow{display:flex;gap:10px;overflow-x:auto;padding:10px 2px 4px;scrollbar-width:thin}
.mini{flex:none;width:122px;background:#fff;border-radius:14px;padding:6px;display:flex;flex-direction:column;gap:6px}
.mini-open{display:block;padding:0;text-align:center}
.mini img{width:100%;aspect-ratio:7/8;object-fit:cover;border-radius:10px}
.mini span{display:block;font-size:12.5px;line-height:1.4;margin-top:5px;min-height:35px;overflow:hidden}
.mini small{display:block;color:var(--soft);font-size:11.5px}
.mini-add{margin-top:auto;background:var(--blue);border-radius:99px;padding:5px;font-weight:700;font-size:12.5px;min-height:32px}
.mini-add:hover{background:var(--yellow)}
.bag-list{grid-template-columns:minmax(0,1fr)}
.bag-list .with{margin-top:4px}

/* ---------- checkout ---------- */
.drawer .sheet>*{flex:none}
.trap{position:absolute!important;opacity:0;pointer-events:none;width:1px!important;height:1px;padding:0!important;inset-inline-start:-9999px}
.sum{display:grid;gap:5px}
.sum:empty{display:none}
.sum p{display:flex;justify-content:space-between;gap:12px;font-size:14.5px}
.sum p b{white-space:nowrap}
.sum .off{color:#3d6b12}
.sum .big{font-size:17px;font-weight:700;border-top:1.5px solid var(--blue);padding-top:6px}
.sum .dep{background:#fdeec2;border-radius:12px;padding:7px 12px;font-weight:700}
.sum .note{display:block;font-size:13px;color:var(--soft)}
.checkout .btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.btn.busy{opacity:.6;pointer-events:none}
.hint{font-size:13px;color:var(--soft);text-align:center;line-height:1.6}
.hint:empty{display:none}
.err{background:#fde7e7;color:#8d2323;border-radius:12px;padding:8px 12px;font-size:14px}
.linkish{display:block;margin:0 auto;padding:12px 16px calc(14px + env(safe-area-inset-bottom));font-weight:700;text-decoration:underline;text-underline-offset:4px;font-size:14px}
.flow{display:grid;gap:14px;padding:16px 18px 4px}
.flow form{display:grid;gap:11px}
.flow label{display:grid;gap:4px;font-size:14px;font-weight:500;min-width:0}
.flow input{border-color:var(--blue)}
.flow-h{font-family:var(--h);font-size:20px}
.done{display:grid;justify-items:center;text-align:center;gap:6px}
.done img{width:76px;height:76px;object-fit:contain;animation:pop .6s var(--ease) both}
.done h4{font-family:var(--h);font-size:23px;line-height:1.4}
.done p{color:var(--soft)}
.code,.payto,.amount{background:#fff;border-radius:18px;padding:12px 16px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px}
.code span,.payto span,.amount span{grid-column:1;font-size:13px;color:var(--soft)}
.code b,.payto b{grid-column:1;font:700 19px var(--en);text-align:start;overflow-wrap:anywhere}
.payto small{grid-column:1;color:var(--soft)}
.code button,.payto button{grid-column:2;grid-row:1/4;background:var(--blue);border-radius:99px;padding:7px 14px;font-weight:700;font-size:13px}
.amount{background:#fdeec2;grid-template-columns:1fr;text-align:center}
.amount b{font:700 30px/1.3 var(--h)}
.amount small{color:var(--soft)}
.methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.methods button{display:grid;justify-items:center;gap:5px;background:#fff;border:2px solid transparent;border-radius:16px;padding:9px 5px;font-size:12.5px;font-weight:700}
.methods img{width:100%;height:50px;object-fit:contain}
.methods button[aria-checked=true]{border-color:var(--yellow);box-shadow:var(--sh)}
.drop{position:relative;background:#fff;border:2px dashed var(--blue-d);border-radius:16px;padding:12px;text-align:center;cursor:pointer}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop span{color:var(--soft);font-weight:400;overflow-wrap:anywhere}
.drop img{max-height:170px;margin:6px auto 0;border-radius:10px}
.drop:focus-within{border-color:var(--green)}
.send{display:grid;gap:9px}
.send small{color:var(--soft);font-size:12.5px;text-align:center}
.ai-log .btn{margin-top:8px;min-height:40px;padding:6px 18px;font-size:14px}

/* the floating hero leaf stays clear of the logo on phones */
@media(max-width:900px){
  .hero .field span:nth-child(3){left:84%!important;top:36%!important;width:46px!important}
}

/* with a window or the order drawer open, messages show at the top so they never sit on a button */
body.lock .toast{bottom:auto;top:calc(12px + env(safe-area-inset-top));transform:translate(-50%,-200%)}
body.lock .toast.on{transform:translate(-50%,0)}

/* ---------- hero hook: the brides number up front ---------- */
.hero h1 em{font-style:normal;color:var(--coral);direction:ltr;unicode-bidi:isolate}
.proof{display:flex;gap:10px;margin-top:22px}
.proof div{background:#fff;border-radius:18px;padding:10px 18px;text-align:center;box-shadow:var(--sh)}
.proof b{display:block;font:700 clamp(20px,2.2vw,28px)/1.2 var(--en);direction:ltr}
.proof span{display:block;font-size:13px;line-height:1.5;color:var(--soft)}
.story .vine{margin-top:10px}
@media(max-width:900px){.proof{justify-content:center}.hero-logo img{width:min(220px,52vw)}.proof div{flex:0 1 170px}}
@media(max-width:700px){.proof{gap:7px;margin-top:18px}.proof div{min-width:0;padding:8px 4px;border-radius:15px}.proof span{font-size:11.5px}}

/* ---------- hero circles lead to their collection ---------- */
.hero-strip a{position:relative;display:block;width:clamp(104px,12.5vw,172px);aspect-ratio:1;border-radius:50%;margin-bottom:26px;transition:transform .5s var(--ease)}
.hero-strip a:nth-child(3){width:clamp(116px,14.5vw,200px)}
.hero-strip a:nth-child(even){transform:translateY(18px)}
.hero-strip a:hover{transform:translateY(-8px) rotate(-1.5deg)}
.hero-strip a::before{content:"";position:absolute;inset:-9px;border-radius:50%;border:1.5px dashed var(--yellow);animation:turn 40s linear infinite}
.hero-strip a:hover::before{animation-duration:9s}
.hero-strip a .bud{position:absolute;width:34px;height:34px;object-fit:contain;right:-6px;bottom:2px;transition:transform .7s var(--ease)}
.hero-strip a:hover .bud{transform:rotate(150deg) scale(1.25)}
.hero-strip a span{position:absolute;top:calc(100% + 13px);left:-12px;right:-12px;text-align:center;font-weight:700;font-size:14px;line-height:1.35}
@media(max-width:700px){.hero-strip{row-gap:6px}.hero-strip a,.hero-strip a:nth-child(3){width:calc((100% - 44px)/3);max-width:100px;margin-bottom:38px}.hero-strip a:nth-child(even){transform:none}.hero-strip a::before{inset:-7px}.hero-strip a .pho{border-width:3px}.hero-strip a .bud{width:24px;height:24px}.hero-strip a span{font-size:11px;left:-6px;right:-6px;top:calc(100% + 10px)}}

/* ---------- the shop page ---------- */
body:not(.page-shop) #shop{display:none}
body.page-shop main>:not(#shop){display:none}
body.page-shop #shop{min-height:100vh;padding-top:calc(88px + var(--promo))}
.back{display:flex;width:max-content;align-items:center;gap:9px;margin:0 auto 14px 0;background:#fff;border-radius:99px;padding:7px 18px;box-shadow:var(--sh);font-size:14.5px}
.back span{width:8px;height:8px;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg)}
html[dir=rtl] .back{margin:0 0 14px}
html[dir=ltr] .back{margin:0 0 14px}
html[dir=ltr] .back span{transform:rotate(-135deg)}
#shop .sh{margin-bottom:22px}
#shop .sh .sh-fl{width:40px;height:40px;margin-bottom:4px}
#shop .sh h2{font-size:clamp(28px,3.6vw,40px)}
#shop.one .sh{display:none}
#shop .group:first-child{padding-top:14px}
@media(max-width:700px){body.page-shop #shop{padding-top:calc(76px + var(--promo))}#shop .sh .sh-fl,#shop .sh .en{display:none}#shop .sh{margin-bottom:14px}#shop .sh p{font-size:13.5px}}

/* ---------- photos are shown whole: the frame follows the photo, no bars ---------- */
.pm-img{background:var(--cream)}
.pm-img>img,.pm-img.multi>img{object-fit:cover}
.pm-info{min-height:0}
@media(min-width:701px){
  #pm .sheet{--hh:min(640px,calc(100dvh - 40px));--iw:min(calc(var(--hh) * var(--ar,.75)),calc(100vw - 420px));grid-template-columns:var(--iw) 380px;grid-template-rows:var(--hh);width:calc(var(--iw) + 380px);height:var(--hh)}
  #pm .pm-img{align-self:center;width:100%;aspect-ratio:var(--ar,.75)}
  #pm .pm-img.multi>img{height:100%}
}
@media(max-width:700px){
  #pm .sheet{display:block;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
  #pm .sheet::-webkit-scrollbar{display:none}
  #pm .x{position:sticky;display:block;top:12px;margin:12px auto -52px 12px}
  html[dir=ltr] #pm .x{margin:12px 12px -52px auto}
  #pm .pm-img{width:100%}
  #pm .pm-img>img,#pm .pm-img.multi>img{position:relative;display:block;inset:auto;width:100%;height:auto;aspect-ratio:var(--ar,.75)}
  #pm .pm-thumbs{position:relative;background:var(--cream)}
  #pm .pm-img.zoom .pm-thumbs{display:flex;visibility:hidden}
  #pm .pm-img .nav{top:calc(50vw / var(--ar,.75))}
  #pm .pm-info{overflow:visible;padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}
/* price posters keep their own shape in the grid too */
.card.poster .ph{aspect-ratio:auto}
.card.poster .ph img{height:auto;display:block}
.card.poster:hover .ph img{transform:none}
.grid:not(:has(>.card:not(.poster))){display:block;columns:4;column-gap:clamp(10px,1.6vw,22px)}
.grid:not(:has(>.card:not(.poster)))>.card{break-inside:avoid;margin-bottom:clamp(10px,1.6vw,22px)}
@media(max-width:900px){.grid:not(:has(>.card:not(.poster))){columns:2}}

/* ---------- product photos: see-through arrows, finger swipe, no bounce ---------- */
#pm .pm-img .nav{background:rgba(20,20,20,.16);color:#fff;border:1px solid rgba(255,255,255,.45);text-shadow:0 0 6px rgba(0,0,0,.7);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);-webkit-tap-highlight-color:transparent}
#pm .pm-img .nav:active{background:rgba(20,20,20,.34)}
#pm .pm-img>img{touch-action:pan-y pinch-zoom;-webkit-user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#pm .pm-img.zoom>img{touch-action:none}
#pm .pm-img>img.dragging{transition:none}
#pm .sheet,#pm .pm-info,.drawer .sheet{overscroll-behavior:none}
html:has(body.lock){overscroll-behavior:none}
