:root {
  --red: #d71920;
  --red-dark: #af1017;
  --text: #171717;
  --muted: #666;
  --line: #f0d1d3;
  --cream: #fcf1f2;
  --soft: #fff8f8;
  --amber: #f59e0b;
  --green: #0f9f66;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, sans-serif; background: #f7f7f7; color: var(--text); }
body { min-height: 100vh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { appearance:none; -webkit-appearance:none; }
.hidden { display: none !important; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}
.hero {
  background: linear-gradient(180deg, #be0f16, var(--red));
  color: white;
}
.hero.compact { padding: 18px 0; }
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-lockup { display: flex; gap: 18px; align-items: center; }
.brand-logo { object-fit: contain; display: block; }
.hero-logo { width: 110px; height: 110px; background: rgba(255,255,255,.07); border-radius: 20px; padding: 10px; }
.page-logo, .topbar-logo { width: 72px; height: 72px; background: rgba(255,255,255,.07); border-radius: 16px; padding: 8px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .9; }
.hero h1 { margin: 8px 0 8px; font-size: clamp(34px, 6vw, 60px); line-height: 1; }
.hero p { margin: 0; font-size: 20px; max-width: 780px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.badge.light {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.main-layout { max-width: 1280px; margin: 0 auto; padding: 18px 18px 32px; }
.toolbar {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.search-wrap { flex: 1; }
.search-wrap input {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 18px;
}
.primary-btn, .ghost-btn {
  border: 0;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}
.primary-btn { background: var(--red); color: white; }
.primary-btn:hover { background: var(--red-dark); }
.ghost-btn { background: #f5f5f5; color: var(--text); }
.ghost-btn.danger { background: #fff0f0; color: var(--red); }
.full { width: 100%; }
.category-sticky-shell {
  position: sticky;
  top: 0;
  z-index: 25;
  padding-top: 10px;
  background: linear-gradient(to bottom, #f7f7f7 0%, #f7f7f7 78%, rgba(247,247,247,0) 100%);
}
.category-strip-wrap { margin-top: 12px; padding: 14px; }
.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-btn {
  flex: 0 0 auto;
  border: 0;
  background: var(--cream);
  color: var(--red);
  padding: 16px 22px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.category-btn.active { background: var(--red); color: white; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 130px;
}
.product-card { overflow: hidden; }
.product-image {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: #f7e4e6;
}
.product-body { padding: 16px; }
.product-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.product-title { font-size: 18px; font-weight: 800; }
.price { color: var(--red); font-weight: 800; font-size: 18px; }
.desc { color: var(--muted); min-height: 44px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
}
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  justify-content: flex-end;
  z-index: 60;
}
.drawer-panel {
  width: min(540px, 100vw);
  height: 100%;
  overflow: auto;
  background: white;
  padding: 18px;
}
.drawer-header, .modal-header, .panel-head, .kitchen-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cart-items { margin: 18px 0; display: grid; gap: 12px; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 18px;
  align-items: start;
}
.cart-row-rich .cart-option { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cart-row-rich .muted-line { opacity: .9; }
.cart-meta, .cart-qty { font-weight: 700; }
.checkout-form { padding: 18px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr auto; }
input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  width: 100%;
  background: white;
}
textarea { min-height: 110px; resize: vertical; }
.total-line { display: flex; justify-content: space-between; margin: 14px 0; font-size: 19px; font-weight: 800; }
.tiny-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.order-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.switch-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  padding: 14px 12px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}
.switch-btn.active { background: var(--red); color: white; border-color: var(--red); }
.basket-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(760px, calc(100vw - 22px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
  padding: 18px 20px;
  z-index: 55;
  cursor: pointer;
}
.basket-bar-copy { display: flex; flex-direction: column; gap: 4px; }
.basket-bar-copy span { color: var(--muted); }
.basket-bar-copy strong { font-size: 22px; }
.basket-bar-action {
  background: var(--red);
  color: white;
  border-radius: 20px;
  padding: 16px 24px;
  font-weight: 800;
  white-space: nowrap;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-card {
  width: min(680px, 100%);
  padding: 20px;
}
.modal-price { color: var(--red); font-weight: 800; margin: 8px 0 0; }
.modal-sections { display: grid; gap: 16px; margin: 18px 0; }
.option-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: var(--soft);
}
.option-box h3 { margin-top: 0; margin-bottom: 12px; font-size: 16px; letter-spacing: .04em; }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.check-row input { width: auto; accent-color: var(--red); }
.inline-box {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--soft);
}
.modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.checks-column { display: grid; gap: 2px; }
.admin-layout {
  max-width: 1200px;
  margin: 22px auto;
  padding: 0 16px 32px;
  display: grid;
  gap: 18px;
}
.panel { padding: 18px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-item {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 14px;
  margin-top: 12px;
}
.admin-thumb {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #f5e4e6;
}
.kitchen-body { background: #faf7f7; }
.kitchen-topbar {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.kitchen-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.board-column { padding: 14px; min-height: calc(100vh - 120px); }
.board-title {
  padding: 12px 14px;
  border-radius: 16px;
  color: white;
  font-weight: 800;
  margin-bottom: 14px;
}
.board-title.red { background: var(--red); }
.board-title.amber { background: var(--amber); }
.board-title.green { background: var(--green); }
.board-list { display: grid; gap: 12px; }
.order-card { padding: 14px; }
.order-card h3 { margin: 0 0 8px 0; font-size: 18px; }
.order-card p { margin: 4px 0; font-size: 14px; }
.order-lines { margin: 10px 0; padding-left: 18px; }
.order-lines li { margin-bottom: 8px; }
.order-subline { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.soft { background: #fffdfd; }
.stack-mobile { align-items: center; }
@media (max-width: 980px) {
  .hero-inner, .panel-head, .kitchen-topbar, .modal-footer, .stack-mobile { flex-direction: column; align-items: stretch; }
  .brand-lockup { align-items: flex-start; }
  .hero-logo { width: 88px; height: 88px; }
  .page-logo, .topbar-logo { width: 64px; height: 64px; }
  .hero p { font-size: 16px; }
  .kitchen-grid { grid-template-columns: 1fr; }
  .admin-item { grid-template-columns: 1fr; }
  .desktop-cart-summary { display: none; }
  .basket-bar {
    width: calc(100vw - 18px);
    bottom: 10px;
    padding: 14px 16px;
    border-radius: 24px;
  }
  .basket-bar-action { padding: 14px 18px; border-radius: 18px; }
  .basket-bar-copy strong { font-size: 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 1fr; }
}
.profile-btn { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.22); padding:12px 16px; border-radius:18px; font-weight:800; }
.profile-avatar { width:22px; height:22px; border-radius:999px; background:#fff; position:relative; display:inline-block; }
.profile-avatar::before { content:''; position:absolute; left:5px; top:3px; width:12px; height:12px; border:2px solid var(--red); border-radius:50%; background:transparent; }
.profile-avatar::after { content:''; position:absolute; left:3px; bottom:1px; width:16px; height:9px; border:2px solid var(--red); border-top:none; border-radius:0 0 12px 12px; }
.white-icon::before, .white-icon::after { border-color: var(--red); }
.field-stack { display:grid; gap:6px; }
.field-label { font-size:13px; font-weight:700; color:var(--muted); }
.status-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:14px; }
.status-card { border:1px solid var(--line); border-radius:20px; padding:16px; background:#fff; display:grid; gap:8px; }
.status-card strong { font-size:22px; }
.status-card-button { width:100%; text-align:center; cursor:pointer; color: var(--red); appearance:none; -webkit-appearance:none; }
.status-card-accent { background:linear-gradient(180deg,#d71920,#b91016); border-color:#ff8d93; box-shadow:0 0 0 1px rgba(215,25,32,.18), 0 0 30px rgba(215,25,32,.30), inset 0 1px 0 rgba(255,255,255,.12); animation:statusPulse 1.9s ease-in-out infinite; }
.status-card-accent strong, .status-card-accent span { color: #fff; }
.status-card-accent:hover { transform:translateY(-1px); box-shadow:0 0 0 1px rgba(215,25,32,.24), 0 12px 34px rgba(215,25,32,.34), inset 0 1px 0 rgba(255,255,255,.14); }
.profile-order-row, .review-invite-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-top:1px solid #eee; }
.profile-order-row:first-child, .review-invite-row:first-child { border-top:0; }
.status-pill { padding:8px 12px; border-radius:999px; font-size:12px; font-weight:800; text-transform:uppercase; }
.status-pill.new { background:#fff3f3; color:var(--red); }
.status-pill.accepted { background:#fff7e6; color:#a16207; }
.status-pill.completed, .status-pill.delivered { background:#eefbf4; color:#0f9f66; }
.order-again-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.order-again-card { border:1px solid var(--line); border-radius:20px; overflow:hidden; background:#fff; }
.order-again-thumb { height:130px; background-size:cover; background-position:center; background-color:#f6e4e6; }
.order-again-body { padding:12px; display:grid; gap:10px; }
.review-item { border-top:1px solid #eee; padding:14px 0; }
.review-item:first-child { border-top:0; }
.review-top { display:flex; justify-content:space-between; gap:12px; font-weight:800; }
.product-rating-inline { color:var(--muted); font-size:13px; margin-top:4px; }
.price-block { text-align:right; }
.old-price { text-decoration:line-through; color:#888; font-size:14px; }
.subtle-row { color:var(--red); font-size:16px; }
.basket-bar-copy strong { color: var(--red); }
.confirm-actions { display:flex; gap:12px; justify-content:flex-end; }
.kitchen-sidebar { position:fixed; inset:0 auto 0 0; width:280px; background:#fff; border-right:1px solid #eee; padding:20px; transform:translateX(-100%); transition:.2s ease; z-index:80; }
.kitchen-sidebar.open { transform:translateX(0); }
.sidebar-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:70; }
.sidebar-link { display:block; width:100%; text-align:left; margin-top:10px; border:1px solid var(--line); background:#fff; color:var(--text); padding:14px 16px; border-radius:16px; font-weight:800; }
.sidebar-link.active { background:var(--red); color:#fff; border-color:var(--red); }
.admin-review-list { display:grid; gap:12px; }
@media (max-width:980px) {
  .hero-logo { width:116px; height:116px; }
  .status-grid { grid-template-columns:1fr; }
  .profile-btn { align-self:flex-start; }
}

.profile-avatar { background: transparent; }
.profile-avatar.white-icon::before { border-color: #fff; background: transparent; }
.profile-avatar.white-icon::after { border-color: #fff; }
.profile-avatar-user { width: 24px; height: 24px; }
.product-rating-inline, .store-rating-hero, .store-rating-box, .review-top span { color: #f6c948; font-weight: 800; }
.store-rating-hero .tiny-light, .store-rating-box small { color: #f6c948; opacity: .95; }
.tag-option-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
.tag-check { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:16px; padding:12px 14px; background:var(--soft); }
.tag-check input { width:auto; accent-color: var(--red); }
.full-span { grid-column: 1 / -1; }
.admin-menu-toggle { margin-right: 8px; }
.admin-section-stack { display:grid; gap:18px; }
.admin-sidebar .sidebar-link { margin-top: 12px; }
@media (max-width: 980px) { .admin-menu-toggle { align-self:flex-start; } }

.status-pill.ready { background:#eaf2ff; color:#1d4ed8; }


/* polished visual updates */
.hero { position: relative; overflow: hidden; }
.hero::after { content:''; position:absolute; inset:auto -120px -120px auto; width:320px; height:320px; background:radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 65%); animation: floatGlow 5s ease-in-out infinite; }
@keyframes floatGlow { 0%,100% { transform: translateY(0) scale(1);} 50% { transform: translateY(-14px) scale(1.06);} }
.sticky-category-wrap { backdrop-filter: blur(8px); }
.category-btn[data-category="MOST POPULAR"], .category-btn:first-child { box-shadow: 0 0 0 rgba(215,25,32,.2); animation: popularPulse 2s ease-in-out infinite; }
@keyframes popularPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(215,25,32,.18), 0 0 0 rgba(255,214,102,.0);} 50% { box-shadow: 0 0 0 8px rgba(215,25,32,.08), 0 0 20px rgba(255,214,102,.45);} }
.product-card { transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0,0,0,.08); }
.profile-btn { background: rgba(255,255,255,.16); }
.outline-user-icon { width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; color:#fff; background:transparent; border-radius:0; }
.outline-user-icon svg { width:24px; height:24px; display:block; }
.profile-avatar::before, .profile-avatar::after { content:none !important; }
.product-rating-inline, .store-rating-hero, .store-rating-box, .review-top span, .store-rating-hero strong, .store-rating-box strong { color: #ffd84d; }
.sidebar-link { text-decoration: none; }
.kitchen-actions-wide { align-items: center; }
.clock-box { display:grid; gap:4px; text-align:right; min-width: 180px; }
.clock-box strong { font-size: 24px; }
.clock-box span { color: var(--muted); font-size: 12px; }
.password-rules { display:grid; gap:6px; margin-top:-4px; }
.password-rule { font-size:12px; font-weight:700; }
.password-rule.invalid { color: var(--red); }
.password-rule.valid { color: var(--green); }
.courier-login-screen { min-height:100vh; display:grid; place-items:center; padding:18px; }
.courier-login-card { width:min(520px, 100%); padding:24px; text-align:center; }
.courier-login-logo { width:96px; height:96px; margin:0 auto 14px; background:rgba(215,25,32,.06); border-radius:18px; padding:10px; }
.admin-section-stack.hidden { display:none !important; }
@media (max-width: 980px) {
  .hero-logo { width:132px; height:132px; }
  .clock-box { text-align:left; }
}

.alt-user-icon svg{width:28px;height:28px}.alt-user-icon{color:#fff}.profile-inner-tabs{margin-bottom:14px;flex-wrap:wrap}.profile-tab-pane.hidden{display:none !important}.verification-help{padding:12px 14px;border-radius:14px;background:#fff7f7;border:1px solid #f2c8c8}.courier-actions-head{display:flex;gap:10px;flex-wrap:wrap}.inline-row{display:flex;gap:10px;flex-wrap:wrap}.inline-row .ghost-btn,.inline-row .primary-btn{flex:1}.sidebar-link.plain-active{background:#fff;color:var(--text);border-color:var(--line)}


.tiny-list{margin:8px 0 0 18px;padding:0;color:var(--muted);}
.admin-orders-stats{margin-bottom:16px;}
.status-card-accent{
  background: linear-gradient(135deg, #d71920 0%, #ff4d57 100%);
  color: white;
  border-color: rgba(215,25,32,.35);
  box-shadow: 0 0 0 rgba(215,25,32,.25), 0 12px 24px rgba(215,25,32,.18);
  animation: pulseAccent 2s ease-in-out infinite;
}
.status-card-accent span, .status-card-accent strong { color: white !important; }
@keyframes pulseAccent {
  0%,100% { transform: translateY(0); box-shadow: 0 0 0 rgba(215,25,32,.18), 0 12px 24px rgba(215,25,32,.18); }
  50% { transform: translateY(-2px); box-shadow: 0 0 0 8px rgba(215,25,32,.08), 0 18px 34px rgba(215,25,32,.22); }
}

@keyframes statusPulse { 0%,100% { box-shadow:0 0 0 1px rgba(215,25,32,.18), 0 0 22px rgba(215,25,32,.20), inset 0 1px 0 rgba(255,255,255,.12); } 50% { box-shadow:0 0 0 1px rgba(215,25,32,.28), 0 0 38px rgba(215,25,32,.42), inset 0 1px 0 rgba(255,255,255,.16); } }

.profile-order-card { border-top:1px solid #eee; }
.profile-order-card:first-of-type { border-top:0; }
.profile-order-toggle { width:100%; background:transparent; border:0; cursor:pointer; text-align:left; }
.profile-order-toggle.expanded { background:rgba(215,25,32,0.04); }
.profile-order-detail { padding:0 0 14px 0; border-top:1px dashed #f1c8ca; }
.profile-order-detail.hidden { display:none; }
.order-detail-meta { display:grid; gap:6px; padding:12px 0; color:#555; }
.order-detail-items { display:grid; gap:10px; }
.order-detail-item { background:#fff7f7; border:1px solid #f3d2d4; border-radius:16px; padding:12px; }
.order-detail-item-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:6px; }
.order-detail-line { color:#555; font-size:14px; margin-top:4px; }
.order-detail-summary { display:grid; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid #f1d7d8; }
.order-detail-summary > div { display:flex; justify-content:space-between; gap:12px; }
.order-detail-actions { margin-top:14px; display:flex; justify-content:flex-end; }
.line-through { text-decoration:line-through; opacity:.7; }

.pill-success{background:#eafaf0;color:#0f9f66;font-weight:800}
.pill-danger{background:#fff0f0;color:#d71920;font-weight:800}
.align-end{display:flex;align-items:end}


.product-card-unavailable{
  opacity:.68;
  filter:grayscale(.12);
}
.out-of-stock-price{
  color:#8b8b8b !important;
  font-weight:800;
}
.disabled-btn,
.primary-btn.disabled-btn,
.primary-btn:disabled{
  background:#d8d8d8 !important;
  color:#666 !important;
  cursor:not-allowed !important;
}


.weekly-hours-grid{
  display:grid;
  gap:12px;
}
.weekly-hours-row{
  display:grid;
  grid-template-columns: 150px 140px 140px minmax(180px,1fr);
  gap:12px;
  align-items:end;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.weekly-hours-row .day-label{
  font-weight:800;
  font-size:16px;
}
.closed-check{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  font-weight:700;
  color:var(--muted);
}
.top-gap{ margin-top:14px; }
@media (max-width: 860px){
  .weekly-hours-row{
    grid-template-columns: 1fr;
    align-items:stretch;
  }
}


/* Basket button polish */
.desktop-cart-summary{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width: 180px;
}
#openCartBtn{
  min-width: 132px;
  height: 48px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(215,25,32,.18);
}
.toolbar.compact-toolbar{
  grid-template-columns: 1fr auto;
  display:grid;
  align-items:center;
  gap:18px;
}
@media (max-width: 860px){
  .toolbar.compact-toolbar{
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .desktop-cart-summary{
    width:100%;
    justify-content:flex-end;
  }
}


/* Basket button polish v2 */
.toolbar.compact-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
}
.toolbar.compact-toolbar .search-wrap input{
  width:100%;
  max-width:none;
}
.desktop-cart-summary{
  min-width:auto;
  justify-content:flex-end;
}
#openCartBtn{
  min-width:150px;
  height:52px;
  padding:0 22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 14px 28px rgba(215,25,32,.16);
}
#openCartBtn span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(255,255,255,.2);
}
@media (max-width: 860px){
  .toolbar.compact-toolbar{
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  .desktop-cart-summary{
    width:100%;
    justify-content:flex-end;
  }
}


.live-tracking-card, .tracking-box{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--soft);
}
.live-tracking-head, .tracking-box-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.tracking-timeline{
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap:12px;
  align-items:start;
}
.tracking-step{
  position:relative;
  text-align:center;
}
.tracking-step:not(:last-child)::after{
  content:"";
  position:absolute;
  top:11px;
  left:calc(50% + 16px);
  width:calc(100% - 8px);
  height:3px;
  background:#ead9da;
  border-radius:999px;
}
.tracking-step.done:not(:last-child)::after{
  background:var(--green);
}
.tracking-dot{
  width:22px;
  height:22px;
  border-radius:50%;
  border:3px solid #ead9da;
  background:#fff;
  margin:0 auto 10px;
  position:relative;
  z-index:1;
}
.tracking-step.done .tracking-dot{
  border-color:var(--green);
  background:var(--green);
}
.tracking-step.current .tracking-dot{
  box-shadow:0 0 0 6px rgba(15,159,102,.12);
}
.tracking-label{
  font-size:13px;
  font-weight:700;
  color:var(--muted);
}
.tracking-step.done .tracking-label,
.tracking-step.current .tracking-label{
  color:var(--text);
}
@media (max-width: 760px){
  .tracking-timeline{
    grid-template-columns:1fr;
    gap:10px;
  }
  .tracking-step{
    display:flex;
    align-items:center;
    gap:12px;
    text-align:left;
  }
  .tracking-step:not(:last-child)::after{
    left:10px;
    top:26px;
    width:3px;
    height:calc(100% + 6px);
  }
  .tracking-dot{
    margin:0;
    flex:0 0 22px;
  }
}


.bottom-grid.single-panel{
  display:block;
}
.support-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:68px;
  height:68px;
  border-radius:50%;
  border:0;
  background:var(--red);
  color:#fff;
  box-shadow:0 14px 28px rgba(215,25,32,.32);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:70;
}
.support-fab svg{
  width:34px;
  height:34px;
}
.support-modal-card{
  width:min(680px, calc(100vw - 24px));
}
.support-modal-card textarea{
  min-height:150px;
  resize:vertical;
}
@media (max-width:760px){
  .support-fab{
    right:14px;
    bottom:18px;
    width:62px;
    height:62px;
  }
  .support-fab svg{
    width:31px;
    height:31px;
  }
}


.support-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(215,25,32,.28);
  z-index: 80;
  text-decoration: none;
}
.support-fab:hover{
  background: var(--red-dark);
  transform: translateY(-2px);
}
.support-fab svg{
  width: 30px;
  height: 30px;
}
.support-page-shell{
  max-width: 980px;
  margin: 28px auto;
  padding: 26px;
}
.support-page-head{
  margin-bottom: 20px;
}
.support-page-grid{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.support-page-copy{
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
}
.support-hero-icon{
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: #fff;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(215,25,32,.08);
}
.support-hero-icon svg{
  width: 42px;
  height: 42px;
}
.support-page-form{
  display: grid;
  gap: 14px;
}
.support-page-form textarea{
  min-height: 200px;
  resize: vertical;
}
.support-page-two{
  grid-template-columns: 220px 1fr;
}
@media (max-width: 760px){
  .support-fab{
    right: 14px;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }
  .support-fab svg{
    width: 28px;
    height: 28px;
  }
  .support-page-shell{
    margin: 16px auto;
    padding: 18px;
  }
  .support-page-grid{
    grid-template-columns: 1fr;
  }
  .support-page-two{
    grid-template-columns: 1fr;
  }
}

.tracking-map-card{
  margin-top:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.02);
}

.tracking-map{
  width:100%;
  height:260px;
  border-radius:16px;
  overflow:hidden;
  margin-top:12px;
  border:1px solid rgba(255,255,255,.08);
}

.tracking-map-empty{
  margin-top:12px;
  padding:18px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.12);
  color:rgba(255,255,255,.7);
  font-size:.95rem;
}

.courier-track-btn{
  margin-right:10px;
}

@media (max-width: 640px){
  .tracking-map{
    height:220px;
  }

  .courier-track-btn{
    margin-right:0;
    margin-bottom:10px;
  }
}


.modal {
  z-index: 1000;
}

.modal-card {
  position: relative;
  z-index: 1001;
}

.profile-order-detail,
.tracking-box,
.tracking-map-card {
  overflow: hidden;
}

.tracking-map,
.tracking-map-card {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.tracking-map {
  isolation: isolate;
}

.tracking-map .leaflet-container,
.tracking-map .leaflet-pane,
.tracking-map .leaflet-top,
.tracking-map .leaflet-bottom,
.tracking-map .leaflet-control {
  z-index: 1 !important;
}

.modal-card,
.profile-modal-shell,
.profile-orders-box,
.profile-order-detail {
  position: relative;
}

.modal-card {
  isolation: isolate;
}


.pwa-install-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  border: none;
  border-radius: 999px;
  background: #e11d2a;
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 14px 18px;
  box-shadow: 0 16px 34px rgba(225, 29, 42, 0.24);
  cursor: pointer;
}

.pwa-ios-tip {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(92vw, 460px);
  z-index: 1200;
  background: #fff;
  border: 1px solid rgba(225, 29, 42, 0.15);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.pwa-ios-tip strong {
  display: block;
  margin-bottom: 4px;
}

.pwa-ios-tip span {
  display: block;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .pwa-install-btn {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    text-align: center;
  }

  .pwa-ios-tip {
    width: calc(100vw - 28px);
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}


.support-fab{
  position:fixed;
  right:18px;
  bottom:86px;
  width:64px;
  height:64px;
  border-radius:50%;
  border:0;
  background:var(--red);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 16px 30px rgba(215,25,32,.28);
  z-index:95;
  text-decoration:none;
  cursor:pointer;
}
.support-fab:hover{
  background:var(--red-dark);
  transform:translateY(-2px);
}
.support-chat-panel{
  position:fixed;
  max-height:min(70vh,560px);
  right:18px;
  bottom:160px;
  width:min(92vw,380px);
  background:#fff;
  border:1px solid rgba(225,29,42,.16);
  border-radius:24px;
  box-shadow:0 28px 60px rgba(15,23,42,.18);
  z-index:96;
  overflow:hidden;
}
.support-chat-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 12px;
  border-bottom:1px solid rgba(225,29,42,.1);
  background:linear-gradient(180deg, rgba(225,29,42,.06), rgba(225,29,42,0));
}
.support-chat-body{
  padding:16px 18px 18px;
  display:grid;
  gap:12px;
  overflow:auto;
}
.support-chat-bubble{
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:18px 18px 18px 8px;
  padding:12px 14px;
  color:#475569;
  line-height:1.5;
}
.compact-support-grid{
  grid-template-columns:140px 1fr;
}
.support-chat-panel textarea{
  min-height:120px;
  resize:vertical;
}
.support-chat-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.support-chat-actions .tiny-note{
  margin:0;
  flex:1;
}
@media (max-width:760px){
  .support-fab{
    right:14px;
    bottom:88px;
    width:58px;
    height:58px;
  }
  .support-chat-panel{
    right:14px;
    left:14px;
    bottom:160px;
    width:auto;
  }
  .compact-support-grid{
    grid-template-columns:1fr;
  }
  .support-chat-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .support-chat-actions .primary-btn{
    width:100%;
  }
}

.pwa-ios-tip-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.pwa-ios-tip-actions .primary-btn,
.pwa-ios-tip-actions .ghost-btn{
  white-space:nowrap;
}
@media (max-width:640px){
  .pwa-ios-tip-actions{
    width:100%;
    justify-content:flex-end;
  }
}

.site-footer-payments{
  width:min(1180px, calc(100% - 32px));
  margin:24px auto 140px;
  display:flex;
  justify-content:flex-end;
}
.site-footer-payments-inner{
  display:flex;
  justify-content:flex-end;
  width:100%;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.payment-icons{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.payment-icons img{
  height:22px;
  width:auto;
  display:block;
  object-fit:contain;
}
@media (max-width:760px){
  .site-footer-payments{
    width:calc(100% - 28px);
    margin:18px auto 150px;
  }
  .site-footer-payments-inner{
    justify-content:center;
  }
  .payment-icons{
    justify-content:center;
    gap:8px;
  }
  .payment-icons img{
    height:20px;
  }
}


.delivered-confirm-card {
  width: min(92vw, 420px);
  text-align: center;
}
.delivered-confirm-card h3 {
  margin: 0 0 10px;
}
.delivered-confirm-card p {
  margin: 0 0 18px;
  color: #4b5563;
}
.delivered-confirm-card .row-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.delivered-confirm-card .ghost-btn,
.delivered-confirm-card .primary-btn {
  min-width: 110px;
}

.password-field-wrap{position:relative;}
.password-field-wrap input{padding-right:52px;}
.password-toggle-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#6b7280;font-size:20px;line-height:1;cursor:pointer;padding:4px 6px;border-radius:8px;}
.password-toggle-btn:hover{background:rgba(0,0,0,.05);color:#111827;}
.password-toggle-btn:focus-visible{outline:2px solid #d71920;outline-offset:2px;}
