:root{color-scheme:light;--blue:#4056b8;--pink:#ffa0cb;--ink:#20254b;--paper:#f9f5ee;--line:#e5dfec;font-family:system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer;border:0;border-radius:12px;padding:.7rem 1rem;background:var(--blue);color:white;font-weight:700;min-height:44px}
button:disabled{opacity:.48;cursor:default}
.wrap{max-width:1120px;margin:auto;padding-inline:clamp(1rem,4vw,3rem)}
.secondary{background:#edeafa;color:#303d87}
.browse{position:sticky;top:0;z-index:1;background:var(--paper);padding:.7rem 0;border-bottom:1px solid var(--line)}
input,select{width:100%;padding:.7rem;border:1px solid #949abc;border-radius:10px;background:white;color:var(--ink)}
nav{display:flex;gap:.5rem;overflow-x:auto}
nav button{white-space:nowrap}
nav button[aria-pressed=false]{background:#e9eafa;color:#303d87}
#menu,.category{scroll-margin-top:76px}
.category{margin:1.5rem 0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}
.card{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.card img{width:100%;height:175px;object-fit:cover}
.card div{padding:1rem;display:grid;gap:.6rem;flex:1}
.card h3,.card p{margin:0}
.card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#4f5674}
dialog{width:min(96vw,560px);max-height:88dvh;border:0;border-radius:20px;padding:1.25rem;color:var(--ink)}
dialog::backdrop{background:#151833a0}
.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:1rem}
fieldset{border:1px solid var(--line);border-radius:12px;margin:1rem 0;padding:.75rem}
.option{display:grid;grid-template-columns:1fr 68px;align-items:center;gap:.5rem;margin:.45rem 0}
.option input{padding:.45rem}
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
}

.cart-line:has(.cart-photo) {
  grid-template-columns: clamp(48px, 14vw, 68px) minmax(0, 1fr) auto;
}

.cart-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.cart-description > strong {
  display: block;
  overflow-wrap: anywhere;
}

.cart-price {
  margin-top: .3rem;
}

.cart-choices {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  font-size: .875rem;
  color: #4f5674;
}

.cart-choices li + li {
  margin-top: .25rem;
}

.cart-quantity {
  display: flex;
  align-items: center;
  background: #edeafa;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.cart-quantity button {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: #303d87;
  font-size: 1.25rem;
}

.cart-quantity > span {
  min-width: 1.25rem;
  text-align: center;
}

.trash-icon {
  position: relative;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 1.5px solid currentColor;
  border-radius: 0 0 3px 3px;
}

.trash-icon::before {
  content: '';
  position: absolute;
  inset: -4px -3px auto;
  border-top: 1.5px solid currentColor;
}

.trash-icon::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 1px;
  width: 3px;
  height: 2px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
#cart-bar{position:fixed;bottom:max(1rem,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(92%,480px);z-index:2;box-shadow:0 5px 30px #20254b44}
main{padding-bottom:6rem}
[hidden]{display:none!important}
.cover{height:clamp(150px,31vw,290px);border-radius:0 0 24px 24px;overflow:hidden;background:#fbd5e8}
.cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 42%}
.store{position:relative;margin:-28px .65rem 1rem;padding:1rem 1.2rem;background:white;border:1px solid var(--line);border-top:4px solid var(--pink);border-radius:19px;box-shadow:0 8px 25px #20254b12}
.store h1{margin:0;font-size:clamp(1.55rem,5vw,2.25rem);letter-spacing:-.045em}
.store p{margin:.45rem 0;color:#4f5674}
.store .delivery{border-top:1px solid var(--line);padding-top:.65rem}
.grid{display:block;background:white;border-radius:18px;padding:0 .85rem}
.card,.card:not(:has(img)){display:grid;grid-template-columns:minmax(0,1fr) clamp(84px,20vw,128px);align-items:center;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:.65rem 0;gap:.7rem}
.card:last-child{border-bottom:0}
.card:not(:has(img)){grid-template-columns:1fr}
.card img{grid-column:2;grid-row:1;width:100%;height:auto;min-height:0;aspect-ratio:1;border-radius:14px}
.card div{grid-column:1;grid-row:1;padding:.25rem 0;gap:.35rem}
.card h3{font-size:1rem}
.card p{-webkit-line-clamp:1;font-size:.875rem}
.price-promotion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
}

.price-promotion del {
  color: #626980;
  font-size: .875rem;
}

.offer-tag {
  padding: .1rem .42rem;
  border-radius: 6px;
  background: #e0f2e8;
  color: #165b3b;
  font-size: .8rem;
  font-weight: 750;
}

.offer-tag-featured {
  background: #ffdeac;
  color: #713300;
}
.card{position:relative}
.card-action{min-height:0;padding:0;background:transparent;color:inherit;text-align:left;font-weight:inherit}
.card-action::after{content:'';position:absolute;inset:0}
.card-action:focus-visible{outline:none}
.card-action:focus-visible::after{outline:2px solid var(--blue);outline-offset:-2px;border-radius:8px}
#details{padding:0;overscroll-behavior:contain}
#detail-content>.dialog-top,#detail-content>p{margin:0;padding:.9rem 1rem}
#detail-content>.dialog-top{position:sticky;top:0;background:white;z-index:1;border-bottom:1px solid var(--line)}
#detail-content h2{font-size:1.1rem;margin:0}
#detail-content fieldset{margin:.6rem 1rem}
.group-note{display:flex;justify-content:space-between;gap:.5rem;align-items:center;color:#4f5674}
.group-note b{background:#e9eafa;color:#303d87;border-radius:6px;padding:.2rem .4rem;font-size:.8rem}
.option{grid-template-columns:minmax(0,1fr) auto auto;padding:.4rem 0;border-top:1px solid var(--line);cursor:pointer}
.option span{margin:0;font-weight:400}
.option small{display:block;color:#4f5674;font-size:.85rem}
.option img{width:42px;height:42px;object-fit:cover;border-radius:8px}
.option input{grid-column:3;width:56px}
.option input:is([type=radio],[type=checkbox]){width:22px;height:22px;accent-color:var(--blue)}
.item-footer{position:sticky;bottom:0;background:white;border-top:1px solid var(--line);padding:.6rem 1rem}
.item-footer p{margin:0 0 .35rem;font-size:.9rem}
.item-footer button{width:100%}
.brand-logo{width:56px;height:56px;object-fit:cover;border-radius:14px;float:right;margin:0 0 .4rem .6rem}
.cover{position:relative}
.cover-search{position:absolute;inset:1rem 1rem auto;display:flex;justify-content:flex-end;align-items:center;gap:.5rem}
#search-box{width:min(100%,19rem)}
#search-toggle{flex:0 0 46px;border-radius:50%;width:46px;height:46px;padding:0;background:#28346b;display:grid;place-items:center}
#search-toggle span{width:17px;height:17px;border:2px solid white;border-radius:50%;position:relative}
#search-toggle span::after{content:'';position:absolute;width:8px;border-top:2px solid white;right:-6px;bottom:-3px;transform:rotate(45deg)}
#search-toggle[aria-expanded=true] span{width:18px;height:2px;border:0;background:white;border-radius:0;transform:rotate(45deg)}
#search-toggle[aria-expanded=true] span::after{inset:0;width:100%;transform:rotate(90deg)}
.store{margin-top:-14px;padding-top:2.4rem}
.brand-logo{float:none;position:absolute;top:-30px;left:50%;transform:translateX(-50%);border:3px solid white;width:62px;height:62px;border-radius:50%;margin:0}
.bag-dock{position:fixed;bottom:max(.7rem,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(94%,520px);z-index:2;background:white;padding:.65rem;border-radius:16px;box-shadow:0 5px 30px #20254b44;display:grid;gap:.4rem}
#cart-bar{position:static;transform:none;width:100%;box-shadow:none}
#discount-progress{display:grid;gap:.2rem;padding-inline:.25rem;font-size:.85rem}
#discount-progress progress{width:100%;height:.55rem;accent-color:var(--blue)}
main{padding-bottom:8rem}
.suggestions .suggestion{display:flex;align-items:center;gap:.6rem;border-top:1px solid var(--line);padding:.55rem 0}
.suggestion div{flex:1}
.suggestion img{width:46px;height:46px;border-radius:8px;object-fit:cover}
.suggestion small{display:block}
.coupon-offer,.minimum{background:#fbe5f0;color:#4a3060;border-radius:12px;padding:.8rem 1rem;margin:1rem 0}
.coupon-offer{display:grid;gap:.15rem;width:fit-content}
#cart .dialog-top{position:sticky;top:0;background:white;z-index:1;padding:.4rem 0}
#checkout-form fieldset{padding:1rem}
#checkout-form label{display:block;margin:.55rem 0}
#checkout-form input:is([type=radio],[type=checkbox]){width:auto;accent-color:var(--blue)}
#checkout-form .delivery-choice{display:flex;gap:.65rem;align-items:center;border:1px solid var(--line);padding:.65rem;border-radius:10px}
.delivery-choice span{flex:1}
.delivery-choice small{display:block}
.summary dl div{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--line)}
#review {
  position: fixed;
  inset: auto 0 0;
  width: min(calc(100% - 1rem), 26rem);
  max-height: min(65dvh, 26rem);
  margin: 0 auto max(.5rem, env(safe-area-inset-bottom));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 -4px 28px rgb(32 37 75 / 15%);
  overscroll-behavior: contain;
}

#review::backdrop {
  background: rgb(21 24 51 / 23%);
}

#review-title {
  margin: 0;
  font-size: 1.25rem;
}

.review-list {
  margin: .65rem 0;
}

.review-list div {
  display: grid;
  grid-template-columns: minmax(6.5rem, .8fr) minmax(0, 1fr);
  gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
}

.review-list dt {
  font-weight: 650;
}

.review-list dd {
  margin: 0;
  color: #4f5674;
  overflow-wrap: anywhere;
}

.review-list .review-total {
  border-bottom: 0;
  font-weight: 750;
}

.review-total dd {
  color: inherit;
}

.review-footer p {
  margin: 0 0 .5rem;
  color: #4f5674;
  font-size: .875rem;
}

.review-footer #finish-order {
  width: 100%;
  min-height: 50px;
}

.review-footer #change-order {
  display: block;
  margin: .35rem auto 0;
  padding: 0 .6rem;
  background: transparent;
  font-size: .875rem;
}

@media (prefers-reduced-motion: no-preference) {
  #review[open] {
    animation: review-enter 220ms cubic-bezier(.22, 1, .36, 1);
  }

  #review[open]::backdrop {
    animation: review-dim 220ms ease-out;
  }
}

@keyframes review-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes review-dim {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .wrap { padding-inline: .75rem; }
  .cover-search { inset-inline: .75rem; }
  #search-box { min-width: 0; }
  .card { gap: .5rem; }
  .card h3 { overflow-wrap: anywhere; }

  #cart, #details {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    max-height: 90dvh;
    border-radius: 18px 18px 0 0;
    overscroll-behavior: contain;
  }

  #cart { padding: .85rem; }
  .item-footer { padding-bottom: max(.65rem, env(safe-area-inset-bottom)); }
  #checkout-form fieldset { min-width: 0; padding: .75rem; }
  #checkout-form input:not([type=radio]):not([type=checkbox]),
  #search { font-size: 16px; }

  .cart-line, .cart-line:has(.cart-photo) {
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem .65rem;
  }

  .cart-line:has(.cart-photo) { grid-template-columns: 54px minmax(0, 1fr); }
  .cart-quantity { grid-column: -2 / -1; justify-self: start; }
  .cart-choices { overflow-wrap: anywhere; }
  .cart-quantity button { min-width: 44px; }
  .bag-dock { width: calc(100% - 1.5rem); }
}

@media (max-width: 600px), (max-height: 600px) {
  #cart, #details, #review { max-height: min(90dvh, calc(var(--visible-height, 100dvh) - 1rem)); }
  #cart, #details { bottom: var(--keyboard-gap, 0px); }
  #review { bottom: var(--keyboard-gap, 0px); max-height: min(65dvh, calc(var(--visible-height, 100dvh) - 1rem), 26rem); }
}

.option-stepper {
  grid-column: 3;
  display: flex;
  align-items: center;
  background: #edeafa;
  border-radius: 10px;
  color: #303d87;
}
.option-stepper button {
  min-width: 36px;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 1.2rem;
}
.option-stepper output { min-width: 1.2rem; text-align: center; }

.mobile-handoff {
  display: none;
}

@media (min-width: 760px) and (hover: hover) and (pointer: fine) {
  .mobile-storefront {
    display: none;
  }

  .mobile-handoff {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 2rem;
    background: radial-gradient(ellipse at top, #e6e8ff, var(--paper) 70%);
  }

  .handoff-card {
    display: grid;
    justify-items: center;
    max-width: 30rem;
    padding: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: white;
    text-align: center;
  }

  .handoff-card h1 {
    margin: 1rem 0 0;
    font-size: 1.75rem;
  }

  .handoff-card p {
    margin: .5rem 0 1rem;
    color: #4f5674;
  }

  .handoff-logo {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
  }

  .handoff-qr {
    margin-bottom: .75rem;
  }

  .handoff-card a {
    color: var(--blue);
  }
}
