/* Mimi Cakes online store: GroFresh layout, Mimi branding. Loaded after site.css (shares its colour tokens). */
body.shop { background: #F7F3F6; font-size: 15px; padding-bottom: 0; }
/* Keep the page steady: no sideways drift on phones, no zoom-in when a box is tapped (iPhone zooms on text under 16px) */
html:has(body.shop) { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.shop { overflow-x: clip; overscroll-behavior-x: none; }
.shop input, .shop select, .shop textarea { font-size: max(16px, 1em); }
.shop-wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.shop .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.small { font-size: 13px; }
.icon-only { width: 48px; padding: 0 !important; }
[hidden] { display: none !important; }

/* Page loader */
.page-loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(247, 243, 246, .96); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
body.is-loading .page-loader, body.is-leaving .page-loader { opacity: 1; visibility: visible; transition: opacity .2s ease; }
body.is-leaving .page-loader { transition-delay: .25s; } /* fast pages never flash the loader */
.pl-box { position: relative; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 16px 40px rgba(55, 28, 78, .14); }
.pl-box img { width: 84px; height: auto; }
.pl-ring { position: absolute; inset: -6px; border-radius: 50%; border: 4px solid var(--blush-2); border-top-color: var(--pink); border-right-color: var(--plum); animation: pl-spin .9s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.nav-bar { position: fixed; top: 0; left: 0; z-index: 210; height: 3px; width: 0; background: linear-gradient(90deg, var(--pink), var(--pink-bright)); opacity: 0; }
body.is-leaving .nav-bar { opacity: 1; animation: nav-grow 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes nav-grow { from { width: 0; } to { width: 92%; } }

/* Top strip */
.shop-topbar { background: var(--plum); color: var(--on-dark-muted); font-size: 13px; }
.shop-topbar .shop-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.shop-topbar span, .shop-topbar a { display: inline-flex; align-items: center; gap: 6px; }
.shop-topbar nav { display: flex; gap: 20px; }
.shop-topbar a { color: var(--on-dark); }
.shop-topbar a:hover { color: var(--pink-bright); }

/* Header */
.shop-header { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.shop-header-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.shop-brand img { width: 96px; height: auto; }
.cat-menu { position: relative; }
.cat-menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--blush); color: var(--plum); font: 700 15px var(--sans); cursor: pointer; }
.cat-menu-btn:hover { background: var(--blush-2); }
.cat-menu-list { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(55, 28, 78, .16); }
.cat-menu-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.cat-menu-list a:hover { background: var(--blush); color: var(--plum); }
.cat-menu-list img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.shop-search { flex: 1; display: flex; align-items: center; height: 48px; background: #F4EEF3; border: 1.5px solid transparent; border-radius: 12px; transition: border-color .2s, background .2s; }
.shop-search:focus-within { border-color: var(--pink); background: #fff; }
.shop-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 16px; font: 16px var(--sans); color: var(--ink); outline: none; }
.shop-search button { width: 44px; height: 40px; margin-right: 4px; border: 0; border-radius: 10px; background: var(--pink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.shop-search button:hover { background: var(--pink-hover); }
.shop-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 12px; border: 0; background: transparent; color: var(--plum); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--blush); color: var(--plum); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: #fff; font: 700 11px/19px var(--sans); text-align: center; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px; background: var(--plum); color: #fff; font-weight: 700; }
.account-btn:hover { background: var(--plum-2); color: #fff; }
.shop-nav { border-top: 1px solid var(--line); }
.shop-nav .shop-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.shop-nav .shop-wrap::-webkit-scrollbar { display: none; }
.shop-nav a { flex: none; padding: 12px 14px; color: var(--muted); font-weight: 500; border-bottom: 2.5px solid transparent; }
.shop-nav a:hover { color: var(--plum); }
.shop-nav a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--pink); font-weight: 700; }
.shop-nav .nav-custom { margin-left: auto; color: var(--pink); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* Hero carousel */
.shop-hero { padding: 24px 0 8px; }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: 20px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 calc(50% - 8px); scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: var(--blush); aspect-ratio: 2 / 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--plum); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(55, 28, 78, .2); cursor: pointer; }
.carousel-arrow:hover { background: var(--plum); color: #fff; }
.carousel-arrow.prev { left: -14px; }
.carousel-arrow.next { right: -14px; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #D9C9D6; cursor: pointer; transition: width .25s, background .25s; }
.carousel-dots button[aria-current="true"] { width: 24px; background: var(--pink); }

/* Sections */
.shop-section { padding: 28px 0; }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-head h1, .shop-head h2 { font-size: clamp(22px, 2.4vw, 28px); color: var(--plum); }
.eyebrow { font-size: 12px; }

/* Round categories */
.cat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cat-row .cat-chip { width: 140px; }
.cat-chip { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; border-radius: 18px; background: #fff; color: var(--ink); text-align: center; transition: transform .2s, box-shadow .2s; }
.cat-chip:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(55, 28, 78, .12); color: var(--plum); }
.cat-img { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--blush); box-shadow: 0 0 0 4px var(--blush); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-weight: 700; font-size: 14px; }

/* Product cards */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.p-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.p-row > * { scroll-snap-align: start; }
.p-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.p-card:hover { box-shadow: 0 14px 34px rgba(55, 28, 78, .12); transform: translateY(-2px); }
.p-card-img { position: relative; display: block; aspect-ratio: 1; background: var(--blush); overflow: hidden; }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:hover .p-card-img img { transform: scale(1.04); }
.p-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; }
.p-fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--plum); display: grid; place-items: center; cursor: pointer; }
.p-fav:hover { color: var(--pink); }
.p-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.p-name { font: 700 16px/1.3 var(--sans); letter-spacing: 0; }
.p-name a { color: var(--ink); }
.p-name a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.p-meta, .p-rating { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.p-rating svg { color: #F2A93B; fill: #F2A93B; }
.p-price-row { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.p-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.p-price small { width: 100%; font-size: 12px; color: var(--muted); }
.p-price strong { font-size: 18px; color: var(--plum); }
.p-price del { font-size: 13px; color: var(--muted); }
.p-add { position: relative; z-index: 2; width: 40px; height: 40px; flex: none; border-radius: 12px; border: 0; background: var(--pink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.p-add:hover { background: var(--plum); color: #fff; transform: scale(1.06); }
.p-fav { z-index: 2; }

/* Tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border-radius: 12px; overflow-x: auto; max-width: 100%; }
.tabs button { flex: none; border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font: 700 14px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--plum); }
.tabs button[aria-selected="true"] { background: var(--plum); color: #fff; }

/* Custom cake banner */
.custom-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 36px; border-radius: 22px; background: linear-gradient(120deg, var(--plum) 0%, var(--plum-2) 60%, #6B2A6B 100%); color: var(--on-dark); flex-wrap: wrap; }
.custom-cta .eyebrow { color: var(--pink-bright); }
.custom-cta h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; margin: 6px 0; }
.custom-cta p { color: var(--on-dark-muted); max-width: 520px; }

/* Flash deal */
.flash { padding: 24px; border-radius: 22px; background: var(--blush); }
.flash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Perks */
.shop-perks { padding: 20px 0 40px; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perks > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 18px; border-radius: 16px; background: #fff; }
.perks svg { grid-row: span 2; color: var(--pink); }
.perks strong { color: var(--plum); font-size: 15px; }
.perks span { color: var(--muted); font-size: 13px; }

/* Breadcrumbs */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 20px 0 16px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--pink); }
.crumbs span[aria-current] { color: var(--plum); font-weight: 700; }

/* Product details */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 28px; background: #fff; border-radius: 24px; }
.pd-main { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--blush); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--blush); }
.pd-thumbs button.active { border-color: var(--pink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: flex; flex-direction: column; gap: 14px; }
.pd-cat { align-self: flex-start; padding: 4px 12px; border-radius: 99px; background: var(--blush); color: var(--plum); font-size: 13px; font-weight: 700; }
.pd-info h1 { font-size: clamp(28px, 3.4vw, 40px); color: var(--plum); }
.pd-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.pd-rating .dot { color: var(--line); }
.in-stock { color: #1C7C54; font-weight: 700; }
.out-stock { color: var(--pink); font-weight: 700; }
.stars { --r: 0; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; background: linear-gradient(90deg, #F2A93B calc(var(--r) / 5 * 100%), #E3D6E0 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: #FBF6F9; }
.pd-price strong { font-size: 28px; color: var(--pink); font-family: var(--sans); }
.pd-price del { color: var(--muted); }
.pd-form { display: flex; flex-direction: column; gap: 18px; }
.opt-group { border: 0; margin: 0; padding: 0; }
.opt-group legend { padding: 0; margin-bottom: 10px; font-weight: 700; color: var(--ink); }
.opt-picked { font-weight: 500; color: var(--muted); }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { position: relative; }
.opt-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 14px; transition: all .15s; }
.opt-chip:hover span { border-color: var(--pink-bright); }
.opt-chip input:checked + span { border-color: var(--pink); background: var(--blush); color: var(--plum); font-weight: 700; }
.opt-chip input:focus-visible + span { outline: 3px solid var(--pink-bright); outline-offset: 2px; }
.pd-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: #FBF6F9; color: var(--plum); display: grid; place-items: center; cursor: pointer; }
.qty button:hover { background: var(--blush); }
.qty input { width: 54px; height: 46px; border: 0; text-align: center; font: 700 16px var(--sans); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pd-total { color: var(--muted); }
.pd-total strong { margin-left: 6px; font-size: 22px; color: var(--plum); }
.pd-warn { color: var(--pink); font-weight: 500; font-size: 14px; }
.pd-ctas { display: flex; gap: 10px; }
.pd-ctas .btn-primary { flex: 1; min-height: 52px; }
.pd-ctas .btn[disabled] { opacity: .5; cursor: not-allowed; }
.pd-perks { list-style: none; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.pd-perks li { display: flex; gap: 12px; align-items: flex-start; }
.pd-perks svg { flex: none; color: var(--pink); margin-top: 1px; }
.pd-perks strong { color: var(--ink); display: block; }
.pd-tabs { margin: 24px 0 36px; padding: 24px 28px; background: #fff; border-radius: 24px; }
.pd-tabs .tabs { background: #F4EEF3; margin-bottom: 18px; }
.pd-panel { max-width: 780px; color: var(--muted); line-height: 1.7; }
.pd-panel p + p { margin-top: 12px; }
.empty-note { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px; text-align: center; color: var(--muted); }
.empty-note svg { color: var(--pink-bright); }
.empty-note.big { padding: 56px 24px; background: #fff; border-radius: 20px; }
.empty-note .btn { margin-top: 10px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--ink); }
.pd-sticky { display: none; }

/* Listing (category & search) */
.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding-bottom: 48px; }
.listing-side { align-self: start; position: sticky; top: 140px; padding: 18px; background: #fff; border-radius: 20px; }
.listing-side h2 { font: 700 15px var(--sans); color: var(--plum); margin-bottom: 10px; }
.listing-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.listing-side a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.listing-side a:hover, .listing-side a[aria-current="page"] { background: var(--blush); color: var(--plum); }
.listing-side a[aria-current="page"] { font-weight: 700; }
.listing-side img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* Footer */
.shop-footer { background: var(--plum); color: var(--on-dark-muted); padding: 56px 0 24px; }
.shop-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.shop-footer h3 { font: 700 15px var(--sans); color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.shop-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-footer a { color: var(--on-dark); }
.shop-footer a:hover { color: var(--pink-bright); }
.shop-footer .footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 12px; }
.sf-brand p { margin: 14px 0; max-width: 320px; }
.sf-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sf-trust svg { color: var(--pink-bright); }
.shop-footer .footer-contact li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.shop-footer .fc-icon { color: var(--pink-bright); flex: none; }
.shop-footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--plum-line); font-size: 13px; }

/* Mobile tab bar, sheets, drawer, toast */
.shop-tabbar { display: none; }
.sheet, .drawer { position: fixed; inset: 0; z-index: 80; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(42, 23, 51, .45); animation: fade .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow: auto; padding: 8px 20px 28px; background: #fff; border-radius: 24px 24px 0 0; animation: up .25s ease-out; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 14px; }
.sheet-head h2 { font-size: 22px; color: var(--plum); }
.sheet-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sheet-cats a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 13px; text-align: center; }
.sheet-cats img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; padding: 8px 22px 22px; background: #fff; animation: slide .25s ease-out; }
.cart-items { flex: 1; overflow: auto; display: grid; align-content: start; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--blush); }
.cart-item h3 { font: 700 15px var(--sans); }
.cart-item h3 a { color: var(--ink); }
.cart-item .ci-var { font-size: 12px; color: var(--muted); }
.cart-item .ci-price { font-weight: 700; color: var(--plum); }
.cart-item .qty button { width: 32px; height: 32px; }
.cart-item .qty input { width: 34px; height: 32px; font-size: 16px; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-remove { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--pink-bright); text-align: center; }
.cart-empty p { color: var(--ink); }
.cart-foot { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cart-sub { display: flex; justify-content: space-between; font-size: 17px; }
.cart-sub strong { color: var(--plum); font-size: 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); animation: up .25s ease-out; width: max-content; max-width: calc(100% - 32px); }
.toast button { border: 0; background: var(--pink); color: #fff; padding: 8px 12px; border-radius: 10px; font: 700 13px var(--sans); cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translate(var(--tx, 0), 24px); opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.toast { --tx: -50%; }
body.locked { overflow: hidden; }

@media (max-width: 1100px) {
  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }
  .shop-footer-grid { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body.shop { padding-bottom: 68px; }
  .shop-topbar .shop-wrap > span { display: none; }
  .shop-topbar .shop-wrap { justify-content: flex-end; }
  .hide-sm, .cat-menu { display: none; }
  .shop-header-row { flex-wrap: wrap; gap: 10px 12px; padding: 10px 0 12px; min-height: 0; }
  .shop-brand img { width: 78px; }
  .shop-actions { margin-left: auto; }
  .shop-search { order: 3; flex-basis: 100%; height: 46px; }
  .shop-nav { display: none; }
  .carousel-slide { flex-basis: 88%; }
  .carousel-arrow { display: none; }
  .shop-hero { padding-top: 14px; }
  .shop-section { padding: 20px 0; }
  /* Three categories per row, like the app */
  .cat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .cat-row .cat-chip { width: auto; }
  .cat-chip { padding: 12px 6px; background: #fff; border-radius: 16px; }
  .cat-chip:hover { box-shadow: none; }
  .cat-img { width: 76px; height: 76px; box-shadow: 0 0 0 3px #fff; }
  .cat-name { font-size: 13px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-row { grid-auto-columns: 46%; gap: 12px; margin-right: -16px; padding-right: 16px; }
  .p-card { border-radius: 16px; }
  .p-card-body { padding: 10px 12px 12px; }
  .p-name { font-size: 14px; }
  .p-price strong { font-size: 16px; }
  .p-add { width: 36px; height: 36px; border-radius: 10px; }
  .shop-head { margin-bottom: 12px; }
  .shop-head .tabs { width: 100%; }
  .custom-cta { padding: 24px; }
  .custom-cta .btn { width: 100%; }
  .pd { grid-template-columns: 1fr; gap: 20px; padding: 0; background: transparent; }
  .pd-main { border-radius: 20px; }
  .pd-info { padding: 20px; background: #fff; border-radius: 20px; }
  .pd-ctas { display: none; }
  .pd-tabs { padding: 18px; margin-bottom: 20px; }
  .pd-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 68px; z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; box-shadow: 0 -6px 20px rgba(55, 28, 78, .1); }
  .pd-sticky small { display: block; color: var(--muted); font-size: 12px; }
  .pd-sticky strong { font-size: 20px; color: var(--plum); }
  .pd-sticky .btn { flex: 1; max-width: 220px; }
  body.has-sticky { padding-bottom: 140px; }
  .listing { grid-template-columns: 1fr; }
  .listing-side { display: none; }
  .shop-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 68px; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .shop-tabbar a, .shop-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font: 500 11px var(--sans); cursor: pointer; }
  .shop-tabbar [aria-current="page"] { color: var(--pink); font-weight: 700; }
  .tb-cart { position: relative; }
  .tb-cart .cart-count { top: -6px; right: -12px; }
  .toast { bottom: 150px; }
  .shop-footer { padding-top: 40px; }
  .shop-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .perks > div { grid-template-columns: 1fr; padding: 14px; gap: 4px; }
  .perks svg { grid-row: auto; }
  .wa-float { display: none; }
}
/* ===== Account menu, flash messages, favourites ===== */
.acct-menu { position: relative; }
.acct-menu .account-btn { border: 0; cursor: pointer; font: 700 15px var(--sans); }
.acct-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(55, 28, 78, .16); z-index: 50; }
.acct-list a, .acct-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.acct-list a:hover, .acct-list button:hover { background: var(--blush); color: var(--plum); }
.flash-msg { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: #E7F5EE; color: #145C3E; font-weight: 500; }
.flash-msg.is-err { background: #FCE8EF; color: var(--pink-hover); }
.p-fav.is-fav, .fav-btn.is-fav { color: var(--pink); }
.p-fav.is-fav svg, .fav-btn.is-fav svg { fill: currentColor; }
.note-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px dashed var(--blush-2); font-size: 14px; color: var(--muted); }
.note-bar svg { color: var(--pink); flex: none; }
.link-btn { border: 0; background: none; padding: 0; color: var(--pink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.btn-sm { min-height: 38px !important; padding: 0 14px !important; font-size: 14px !important; }
.btn.is-disabled { opacity: .5; }
.panel { background: #fff; border-radius: 20px; padding: 22px 24px; }
.panel h2 { font: 700 18px var(--sans); color: var(--plum); margin-bottom: 14px; letter-spacing: 0; }
.center { text-align: center; }
.note { color: var(--muted); }

/* ===== Forms ===== */
.form-stack { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.shop input[type=text], .shop input[type=email], .shop input[type=tel], .shop input[type=password], .shop input[type=number], .shop input:not([type]), .shop select, .shop textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 16px var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.shop textarea { min-height: 0; resize: vertical; line-height: 1.5; }
.shop input:focus, .shop select:focus, .shop textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(240, 127, 168, .25); }
.shop .shop-search input, .shop .qty input, .shop .map-search input, .shop .coupon-row input { border: 0; box-shadow: none; min-height: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; display: grid; place-items: center; }
.otp-input { text-align: center; letter-spacing: .4em; font-size: 22px !important; font-weight: 700 !important; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #FCE8EF; color: var(--pink-hover); font-size: 14px; }
.form-alert svg { flex: none; margin-top: 2px; }
.form-alert p + p { margin-top: 4px; }

/* ===== Auth ===== */
.auth-wrap { display: grid; place-items: center; padding: 40px 0 64px; }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 18px 50px rgba(55, 28, 78, .08); }
.auth-card.wide { width: min(620px, 100%); }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blush); color: var(--pink); margin-bottom: 12px; }
.auth-head h1 { font-size: 30px; color: var(--plum); margin-bottom: 6px; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-alt a { font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== Account layout ===== */
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px 0 56px; align-items: start; }
.acct-nav { position: sticky; top: 140px; display: grid; gap: 4px; padding: 12px; background: #fff; border-radius: 20px; }
.acct-nav a, .acct-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: none; border-radius: 12px; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; text-align: left; }
.acct-nav a:hover, .acct-nav button:hover { background: var(--blush); color: var(--plum); }
.acct-nav a[aria-current="page"] { background: var(--plum); color: #fff; font-weight: 700; }
.acct-nav svg { flex: none; }
.acct-main { display: grid; gap: 18px; min-width: 0; }
.acct-main > .shop-head { margin-bottom: 0; }
.acct-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px; border-radius: 22px; background: linear-gradient(120deg, var(--plum), var(--plum-2)); color: var(--on-dark); }
.acct-hero h1 { font-size: 26px; color: #fff; }
.acct-hero .muted { color: var(--on-dark-muted); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-bright); color: var(--plum); font: 700 22px var(--sans); }
.acct-stats { margin-left: auto; display: flex; gap: 12px; }
.acct-stats div { padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.acct-stats small { display: block; color: var(--on-dark-muted); font-size: 12px; }
.acct-stats strong { color: #fff; font-size: 18px; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tabs a { flex: none; padding: 9px 16px; border-radius: 9px; font: 700 14px var(--sans); color: var(--muted); }
.tabs a[aria-selected="true"] { background: var(--plum); color: #fff; }

/* Addresses */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.addr-card { padding: 18px; background: #fff; border-radius: 18px; display: grid; gap: 8px; align-content: start; }
.addr-top { display: flex; justify-content: space-between; align-items: center; }
.addr-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--blush); color: var(--plum); font-weight: 700; font-size: 13px; }
.addr-actions { display: flex; gap: 2px; }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 10px; }
.addr-line { font-weight: 500; }
.addr-form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.addr-fields { display: grid; gap: 16px; }
.map-box { position: relative; height: 520px; border-radius: 20px; overflow: hidden; background: #E9E3E8; }
.map { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.map.map-failed { background: repeating-linear-gradient(45deg, #EFE8EE 0 12px, #F6F1F5 12px 24px); }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -100%); color: var(--pink); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.map-pin svg { fill: #fff; }
.map-search { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 10; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; background: #fff; border-radius: 14px; box-shadow: 0 6px 20px rgba(55, 28, 78, .15); color: var(--muted); }
.map-search input { flex: 1; height: 100%; background: transparent; font: 16px var(--sans); color: var(--ink); outline: none; padding: 0 !important; }
.map-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(55, 28, 78, .18); max-height: 280px; overflow: auto; }
.map-results button { display: block; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; font: 14px var(--sans); color: var(--ink); border-radius: 10px; cursor: pointer; }
.map-results button:hover { background: var(--blush); }
.map-results .none { padding: 10px 12px; color: var(--muted); font-size: 14px; }
.map-locate { position: absolute; right: 12px; bottom: 56px; z-index: 10; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--plum); color: #fff; font: 700 14px var(--sans); cursor: pointer; box-shadow: 0 6px 20px rgba(55, 28, 78, .25); }
.map-locate:hover { background: var(--pink); }
.map-hint { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 10; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .95); font-size: 13px; color: var(--ink); }
.map-hint.bad { color: var(--pink-hover); }
.leaflet-container { font-family: var(--sans); }

/* Orders */
.order-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: 18px; color: var(--ink); transition: box-shadow .2s; }
.order-row:hover { box-shadow: 0 10px 26px rgba(55, 28, 78, .1); color: var(--ink); }
.order-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blush); color: var(--pink); }
.order-main { display: grid; }
.order-amt { color: var(--plum); }
.status { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #F1ECF3; color: var(--plum); white-space: nowrap; }
.status.big { font-size: 14px; padding: 6px 14px; }
.s-pending { background: #FFF3DC; color: #8A5A00; }
.s-confirmed, .s-processing { background: #E6EEFF; color: #2849A8; }
.s-out_for_delivery { background: #F3E6FF; color: #6A2BA0; }
.s-delivered { background: #E7F5EE; color: #145C3E; }
.s-canceled, .s-failed, .s-returned { background: #FCE8EF; color: var(--pink-hover); }
.pay-paid { color: #145C3E; font-weight: 700; }
.pay-unpaid, .pay-partially_paid { color: #8A5A00; font-weight: 700; }
.track { padding: 22px 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.current::before { background: var(--pink); }
.steps .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); color: #fff; }
.steps li.done .dot, .steps li.current .dot { background: var(--pink); border-color: var(--pink); }
.steps li.current { color: var(--plum); font-weight: 700; }
.steps li.current .dot { box-shadow: 0 0 0 6px rgba(240, 127, 168, .25); }
.track-stopped { display: flex; align-items: center; gap: 10px; color: var(--pink-hover); font-weight: 700; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.order-side { display: grid; gap: 18px; }
.line-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.line-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.line-list img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--blush); }
.line-list.mini img { width: 48px; height: 48px; }
.line-list li > div { display: grid; }
.line-list small { font-size: 13px; }
.totals { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 500; }
.totals .grand { padding-top: 10px; border-top: 1px dashed var(--line); font-size: 18px; }
.totals .grand dt { color: var(--ink); font-weight: 700; }
.totals .grand dd { color: var(--plum); font-weight: 700; font-size: 22px; }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.bank-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #FBF6F9; border: 1px solid var(--blush-2); display: grid; gap: 8px; }
.bank-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.bank-row span { color: var(--muted); min-width: 110px; }
.copy-btn { margin-left: auto; border: 0; background: var(--plum); color: #fff; font: 700 12px var(--sans); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.help-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.help-line a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.done-hero { text-align: center; padding: 40px 20px 28px; display: grid; justify-items: center; gap: 8px; }
.done-ic svg { width: 40px; height: 40px; stroke-width: 3; }
.done-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #1C7C54; color: #fff; box-shadow: 0 0 0 10px #E7F5EE; margin-bottom: 12px; }
.done-hero h1 { font-size: clamp(26px, 3.4vw, 36px); color: var(--plum); }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0 6px; }
.done-hero + .panel, .done-hero ~ .order-grid { margin-bottom: 18px; }
.done-hero ~ .order-grid { margin-bottom: 48px; }

/* ===== Cart & checkout ===== */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; padding-bottom: 56px; }
.co-main { display: grid; gap: 16px; counter-reset: step; }
.co-side { position: sticky; top: 140px; }
.co-summary h2 { margin-bottom: 12px; }
.co-summary .btn { margin-top: 10px; }
.co-step:not([hidden]) { counter-increment: step; }
.co-step h2 { display: flex; align-items: center; gap: 10px; }
.co-step .n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--plum); color: #fff; font-size: 14px; }
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.step-head h2 { margin: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, background .15s; }
.choice svg { color: var(--pink); }
.choice small { color: var(--muted); font-size: 13px; }
.choice:hover > span { border-color: var(--pink-bright); }
.choice input:checked + span { border-color: var(--pink); background: #FDF5F8; box-shadow: inset 0 0 0 1px var(--pink); }
.choice input:focus-visible + span { outline: 3px solid var(--pink-bright); outline-offset: 2px; }
.addr-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.addr-choice strong { display: inline-flex; align-items: center; gap: 6px; }
.edit-link { position: relative; z-index: 2; justify-self: start; font-size: 13px; font-weight: 700; margin-top: 4px; }
.empty-inline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: #FBF6F9; border: 1.5px dashed var(--blush-2); }
.empty-inline svg { color: var(--pink); }
.empty-inline .btn { margin-left: auto; }
.date-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.date-chip { position: relative; }
.date-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.date-chip span { display: grid; justify-items: center; min-width: 96px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.date-chip small { color: var(--muted); font-size: 12px; }
.date-chip input:checked + span { border-color: var(--plum); background: var(--plum); color: #fff; }
.date-chip input:checked + span small { color: var(--on-dark-muted); }
.date-chip input:focus-visible + span { outline: 3px solid var(--pink-bright); outline-offset: 2px; }
.opt-chip span svg { margin-right: 4px; }
.opt-chip span { gap: 2px; }
.pay-list { display: grid; gap: 10px; }
.pay-choice > span { grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.pay-choice > span > span:last-child { display: grid; }
.pay-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blush); overflow: hidden; }
.pay-ic img { width: 34px; height: 34px; object-fit: contain; }
.pay-extra { margin-top: 14px; display: grid; gap: 14px; }
.coupon { margin: 14px 0 0; }
.coupon-row { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1.5px dashed var(--pink-bright); border-radius: 12px; color: var(--pink); }
.coupon-row input { flex: 1; min-width: 0; height: 40px; padding: 0 !important; background: transparent; font: 600 16px var(--sans); text-transform: uppercase; outline: none; }
.coupon-row .btn { margin: 0 !important; }
.coupon-on { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #E7F5EE; color: #145C3E; font-weight: 700; font-size: 14px; }
.coupon-on .link-btn { margin-left: auto; color: #145C3E; }
.co-sticky { display: none !important; }
.stage-off { display: none !important; }
.co-stepper { position: sticky; top: 118px; z-index: 30; display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 10px 16px; background: rgba(247, 243, 246, .96); backdrop-filter: blur(6px); }
.co-stepper[hidden] { display: none; }
.co-back { width: 38px; height: 38px; flex: none; border: 0; border-radius: 12px; background: #fff; color: var(--plum); display: grid; place-items: center; cursor: pointer; }
.co-stepper ol { flex: 1; list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.co-stepper li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 12px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 700; }
.co-stepper li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 12px; }
.co-stepper li.current { background: var(--plum); color: #fff; }
.co-stepper li.current span { background: var(--pink-bright); color: var(--plum); }
.co-stepper li.done { color: var(--plum); }
.co-stepper li.done span { background: var(--pink); color: #fff; }
.cp-lines { display: grid; }
.cp-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cp-line:last-child { border-bottom: 0; }
.cp-line img, .cp-line .img-ph { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: var(--blush); }
.cp-line.is-bad { opacity: .75; }
.cp-info { display: grid; gap: 2px; }
.cp-info a { color: var(--ink); }
.cp-unit { color: var(--plum); font-weight: 700; font-size: 14px; }
.cp-unit del { color: var(--muted); font-weight: 400; }
.cp-qty { display: grid; justify-items: center; gap: 6px; }
.cp-qty .qty button { width: 36px; height: 38px; font-size: 18px; }
.cp-qty .qty input { width: 40px; height: 38px; }
.cp-total { min-width: 90px; text-align: right; color: var(--plum); }

@media (max-width: 1000px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-side { position: static; }
  .order-grid, .addr-form { grid-template-columns: 1fr; }
  .map-box { height: 380px; }
}
@media (max-width: 860px) {
  .acct { grid-template-columns: 1fr; padding-top: 12px; gap: 14px; }
  .acct-nav { position: static; display: flex; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav a, .acct-nav button { flex: none; width: auto; padding: 9px 12px; font-size: 14px; }
  .acct-nav form { flex: none; }
  .acct-stats { margin-left: 0; width: 100%; }
  .acct-stats div { flex: 1; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .panel { padding: 18px; border-radius: 18px; }
  .auth-wrap { padding: 20px 0 40px; }
  .auth-card { padding: 24px 20px; border-radius: 20px; }
  .choice-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
  .order-row .status { grid-column: 2; justify-self: start; }
  .order-row .order-amt { grid-column: 3; grid-row: 1; }
  .order-row > svg { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { flex-direction: row; text-align: left; padding: 6px 0; gap: 12px; }
  .steps li::before { top: auto; bottom: 50%; right: auto; left: 12px; width: 3px; height: 100%; }
  .cp-line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .cp-line img, .cp-line .img-ph { width: 72px; height: 72px; }
  .cp-qty { grid-column: 2; justify-items: start; grid-row: 2; display: flex; align-items: center; gap: 14px; }
  .cp-total { grid-column: 3; grid-row: 1; min-width: 0; }
  .page-checkout .co-summary > .btn[data-place] { display: none; }
  .page-checkout .co-sticky { display: flex !important; }
  .page-checkout { padding-bottom: 140px !important; }
  .map-box { height: 340px; margin: 0 -16px; border-radius: 0; }
  .date-chip span { min-width: 84px; }
  .empty-inline .btn { margin-left: 0; width: 100%; }
}

@media (hover: none) {
  .btn-outline:hover { background: transparent; color: var(--ink); }
  .p-card:hover { transform: none; box-shadow: none; }
}
@media (max-width: 860px) {
  .map-locate { bottom: 70px; right: 28px; }
  .map-hint { left: 28px; right: 28px; }
  .map-search { left: 28px; right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-ring { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
