/* ==========================================================================
   MATHAIS — Bootstrap rewrite
   Same palette and layout as main-1.css + mathais-futuristic.css, without the
   costly paint work: no backdrop-filter, no fixed full-screen layers, no
   infinite animations, and transitions only on transform/opacity/colour.
   ========================================================================== */

:root {
  /* Brand colours, sampled from the logo: use these (or the Bootstrap
     warning/danger utilities, mapped to them below) for any yellow or red. */
  --mx-yellow:     #FDCD07;
  --mx-yellow-rgb: 253, 205, 7;
  --mx-yellow-600: #E9BC00;   /* hover, borders */
  --mx-yellow-700: #B08A00;   /* yellow text on white */
  --mx-red:        #CF0A06;
  --mx-red-rgb:    207, 10, 6;
  --mx-red-600:    #CF0A06;
  --mx-red-700:    #A50805;   /* hover */
  --mx-ink:        #0B0B10;
  --mx-muted:      #6B6B79;
  --mx-line:       #E6E7EE;
  --mx-line-soft:  #F0F1F6;
  --mx-bg:         #F5F6FA;
  --mx-cream:      #FFF8DC;   /* light tint of the yellow */

  /* Buttons use background-size: 200%, so they rest on yellow and slide to red on hover */
  --mx-grad:      linear-gradient(120deg, var(--mx-yellow) 0%, var(--mx-yellow) 50%, var(--mx-red) 100%);
  --mx-grad-y:    linear-gradient(var(--mx-yellow), var(--mx-yellow));
  --mx-grad-ink:  linear-gradient(135deg, #14141C 0%, #0B0B10 100%);
  --mx-grad-line: linear-gradient(90deg, transparent, var(--mx-yellow) 20%, var(--mx-red) 80%, transparent);

  --mx-sh-sm: 0 2px 8px rgba(11,11,16,.06), 0 1px 2px rgba(11,11,16,.04);
  --mx-sh-md: 0 8px 24px rgba(11,11,16,.08), 0 2px 6px rgba(11,11,16,.04);
  --mx-sh-lg: 0 18px 48px rgba(11,11,16,.12), 0 4px 12px rgba(11,11,16,.06);

  --mx-r:    16px;
  --mx-r-lg: 22px;
  --mx-fast: .18s ease;

  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: 14px;
  --bs-body-color: var(--mx-ink);
  --bs-body-bg: var(--mx-bg);
  --bs-link-color-rgb: 11, 11, 16;
  --bs-link-hover-color-rgb: var(--mx-red-rgb);
  --bs-warning: var(--mx-yellow);
  --bs-warning-rgb: var(--mx-yellow-rgb);
  --bs-danger: var(--mx-red);
  --bs-danger-rgb: var(--mx-red-rgb);
}

/* Bootstrap components in brand colours */
.btn-warning {
  --bs-btn-color: #000; --bs-btn-bg: var(--mx-yellow); --bs-btn-border-color: var(--mx-yellow);
  --bs-btn-hover-color: #000; --bs-btn-hover-bg: var(--mx-yellow-600); --bs-btn-hover-border-color: var(--mx-yellow-600);
  --bs-btn-active-color: #000; --bs-btn-active-bg: var(--mx-yellow-600); --bs-btn-active-border-color: var(--mx-yellow-600);
  --bs-btn-disabled-color: #000; --bs-btn-disabled-bg: var(--mx-yellow); --bs-btn-disabled-border-color: var(--mx-yellow);
  --bs-btn-focus-shadow-rgb: var(--mx-yellow-rgb);
}
.btn-outline-warning {
  --bs-btn-color: #000; --bs-btn-border-color: var(--mx-yellow);
  --bs-btn-hover-color: #000; --bs-btn-hover-bg: var(--mx-cream); --bs-btn-hover-border-color: var(--mx-yellow);
  --bs-btn-active-color: #000; --bs-btn-active-bg: var(--mx-cream); --bs-btn-active-border-color: var(--mx-yellow);
  --bs-btn-focus-shadow-rgb: var(--mx-yellow-rgb);
}
.btn-check:checked + .btn-outline-warning { border-width: 2px; box-shadow: inset 0 0 0 1px var(--mx-yellow); }
.btn-danger {
  --bs-btn-bg: var(--mx-red); --bs-btn-border-color: var(--mx-red);
  --bs-btn-hover-bg: var(--mx-red-700); --bs-btn-hover-border-color: var(--mx-red-700);
  --bs-btn-active-bg: var(--mx-red-700); --bs-btn-active-border-color: var(--mx-red-700);
  --bs-btn-disabled-bg: var(--mx-red); --bs-btn-disabled-border-color: var(--mx-red);
  --bs-btn-focus-shadow-rgb: var(--mx-red-rgb);
}
.btn-outline-danger {
  --bs-btn-color: var(--mx-red); --bs-btn-border-color: var(--mx-red);
  --bs-btn-hover-bg: var(--mx-red); --bs-btn-hover-border-color: var(--mx-red);
  --bs-btn-active-bg: var(--mx-red); --bs-btn-active-border-color: var(--mx-red);
  --bs-btn-focus-shadow-rgb: var(--mx-red-rgb);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--mx-yellow);
  box-shadow: 0 0 0 .25rem rgba(var(--mx-yellow-rgb), .35);
}
.form-check-input:checked { background-color: var(--mx-red); border-color: var(--mx-red); }
/* Bootstrap would use the grey page colour */
.modal { --bs-modal-bg: #fff; }

body {
  /* The yellow/red wash from the old fixed backdrop, painted once and scrolled with the page */
  background:
    radial-gradient(60rem 32rem at 8% -8%, rgba(var(--mx-yellow-rgb), .18), transparent 62%) no-repeat,
    radial-gradient(52rem 30rem at 98% 4%, rgba(var(--mx-red-rgb), .08), transparent 60%) no-repeat,
    var(--mx-bg);
}
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--mx-ink); font-weight: 700; letter-spacing: -.02em; }
::selection { background: var(--mx-yellow); color: #000; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--mx-red);
  outline-offset: 2px;
}

@media (min-width: 1200px) {
  .container { max-width: 1610px; }
}

/* ── Home: hero ────────────────────────────────────────────────────────── */
.hero { border-radius: 10px; overflow: hidden; background: #f0f0f0; }
.hero-img { display: block; width: 100%; max-height: 400px; object-fit: cover; }
.hero .carousel-indicators { margin-bottom: 15px; }
.hero .carousel-indicators [data-bs-target] {
  width: 15px;
  height: 15px;
  margin: 0 5px;
  border: 1px solid #253D4E;
  border-radius: 30px;
  background: none;
  opacity: 1;
  transition: width var(--mx-fast);
}
.hero .carousel-indicators .active { width: 30px; background: var(--mx-yellow); border-color: var(--mx-yellow); }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 1px solid var(--mx-line);
  border-radius: 50%;
  background: #fff;
  color: var(--mx-ink);
  box-shadow: var(--mx-sh-md);
}
.hero-arrow:hover { background: var(--mx-grad-y); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
@media (max-width: 767.98px) {
  .hero-arrow { display: none; }
}

/* ── Home: generic layout ──────────────────────────────────────────────── */
.home-section {
  margin-bottom: 1.5rem;
  /* Off-screen sections skip layout and paint until they scroll into view */
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}
.scroll-row {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { display: none; }
.banner-link { display: block; }
.banner-link img { display: block; }
.banner-cover { object-fit: cover; }

.section-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 12px;
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 76px;
  height: 4px;
  border-radius: 999px;
  background: var(--mx-grad);
}
.section-head h3 { margin: 0; font-size: 1.75rem; color: #000; }
.btn-see-more {
  flex-shrink: 0;
  padding: 6px 16px;
  border: 1.5px solid var(--mx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mx-ink);
  font-size: .85rem;
  font-weight: 700;
  transition: background-color var(--mx-fast), border-color var(--mx-fast);
}
.btn-see-more:hover { background: rgba(var(--mx-yellow-rgb), .2); border-color: var(--mx-yellow-600); color: var(--mx-ink); }
@media (max-width: 767.98px) {
  .section-head { margin-bottom: 1rem; }
  .section-head h3 { font-size: 16px; }
}
@media (max-width: 575.98px) {
  .section-head h3 { font-size: 14px; }
  .section-head::after { width: 56px; height: 3px; }
}

/* Category icons: 3 per row on phones, one row of 6 from tablets up */
.category-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
@media (min-width: 768px) {
  .category-icons { grid-template-columns: repeat(6, 1fr); }
}
.category-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-r-lg);
  box-shadow: var(--mx-sh-sm);
  transition: transform var(--mx-fast);
}
.category-icon:hover { transform: translateY(-4px); }
.category-icon-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mx-cream);
}
.category-icon-img img { width: 100%; height: 100%; object-fit: cover; }
.category-icon-label { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--mx-ink); text-align: center; }
.category-icon:hover .category-icon-label { color: var(--mx-red); }

/* Shop by categories: 3-up grid, swipeable rows on phones */
.category-grid .row + .row { margin-top: 1.5rem; }
@media (max-width: 767.98px) {
  .category-grid { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-grid .row { flex-wrap: nowrap; width: max-content; min-width: 100%; margin: 0; --bs-gutter-x: 0; }
  .category-grid .col-md-4 { flex: 0 0 auto; width: 280px; padding: 0 12px; scroll-snap-align: start; }
}

/* ── Product rails ─────────────────────────────────────────────────────── */
.rail { --per-view: 2; --gap: 12px; position: relative; padding: 0 20px; }
@media (min-width: 576px)  { .rail { --per-view: 3; } }
@media (min-width: 768px)  { .rail { --per-view: 4; --gap: 16px; padding: 0 24px; } }
@media (min-width: 992px)  { .rail { --per-view: 5; } }
@media (min-width: 1200px) { .rail { --per-view: 6; } }

.rail-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-item {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  min-width: 0;
  scroll-snap-align: start;
}
.rail-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--mx-line);
  border-radius: 50%;
  background: #fff;
  color: var(--mx-ink);
  box-shadow: var(--mx-sh-md);
  transition: transform var(--mx-fast);
}
.rail-btn:hover:not(:disabled) { background: var(--mx-grad-y); transform: scale(1.08); }
.rail-btn:disabled { opacity: .35; box-shadow: none; }
.rail-prev { left: 0; }
.rail-next { right: 0; }
@media (max-width: 767.98px) {
  .rail-btn { width: 32px; height: 32px; margin-top: -16px; }
}

/* ── Product card ──────────────────────────────────────────────────────── */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-r-lg);
  box-shadow: var(--mx-sh-sm);
  transition: border-color var(--mx-fast);
}
.product-card:hover { border-color: var(--mx-yellow-600); }
.product-media {
  position: relative;
  border-radius: var(--mx-r);
  overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF, #F4F5FA);
}
.product-img { display: block; height: 140px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
@media (hover: hover) {
  .product-card:hover .product-img img { transform: scale(1.07); }
}
.product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mx-red-600), var(--mx-red-700));
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-title { height: 28px; margin: 6px 0 2px; overflow: hidden; font-size: 11px; line-height: 1.35; }
.product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--mx-ink);
  font-weight: 600;
}
.product-title a:hover { color: var(--mx-red); }
.product-price { min-height: 48px; }
.price-current { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--mx-ink); }
.price-old { font-size: 13px; font-weight: 600; color: var(--mx-red); text-decoration: line-through 1px; }
.product-stock { min-height: 12px; font-size: 10px; font-weight: 500; line-height: 1.2; color: var(--mx-red); }
.product-actions { margin-top: auto; padding-top: 6px; }

.btn-add-cart {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--mx-grad);
  background-size: 200% 200%;
  box-shadow: 0 6px 20px rgba(var(--mx-yellow-rgb), .32);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  transition: background-position var(--mx-fast), color var(--mx-fast);
}
.btn-add-cart:hover:not(:disabled) { background-position: 100% 50%; color: #fff; }
.btn-add-cart:disabled { opacity: .5; box-shadow: none; }

.qty-stepper {
  display: flex;
  height: 32px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--mx-line);
  border-radius: 999px;
}
.qty-btn { width: 25%; border: 0; background: transparent; color: var(--mx-ink); font-size: 15px; font-weight: 800; }
.qty-btn:hover { background: var(--mx-yellow); }
/* The number between - and + opens the quantity picker */
.qty-input {
  width: 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--mx-line);
  border-right: 1px solid var(--mx-line);
  background: transparent;
  color: var(--mx-ink);
  font-size: 13px;
  font-weight: 700;
}
.qty-input .fa-chevron-down { font-size: 9px; color: var(--mx-red); }
.qty-input:hover { background: var(--mx-cream); }

/* Busy while the cart is updated (cart.js): ADD TO CART shows a spinner and
   "ADDING…"; in the stepper a spinner takes the number's place. */
.btn-add-cart.is-loading:disabled { opacity: 1; cursor: progress; }
.btn-add-cart .spinner-border { --bs-spinner-width: .9rem; --bs-spinner-height: .9rem; --bs-spinner-border-width: .15em; vertical-align: -.15em; }
.js-product.is-busy .qty-btn,
.cart-line.is-busy .qty-btn,
.cart-line.is-busy .cart-line-remove { opacity: .35; }
.cart-line.is-busy .qty-btn,
.cart-line.is-busy .cart-line-remove { pointer-events: none; }
.qty-stepper.is-loading .qty-input { position: relative; cursor: progress; }
.qty-stepper.is-loading .qty-input > * { visibility: hidden; }
.qty-stepper.is-loading .qty-input::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid var(--mx-red);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}

@media (max-width: 991.98px) {
  .product-card { border-radius: var(--mx-r); }
  .product-img { height: 120px; }
}
@media (max-width: 767.98px) {
  .product-card { padding: 8px; }
  .product-img { height: 110px; }
  .btn-add-cart { font-size: 12px; padding: 9px 6px; }
}
@media (max-width: 575.98px) {
  .product-img { height: 100px; }
}

/* ── Quantity picker modal ─────────────────────────────────────────────── */
.qty-modal .modal-dialog { max-width: 400px; }
.qty-modal .modal-content { gap: 16px; padding: 20px; border: 0; background: #fff; border-radius: var(--mx-r-lg); box-shadow: var(--mx-sh-lg); }
.qty-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-modal-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--mx-r); background: var(--mx-bg); }
.qty-modal-item img { flex-shrink: 0; border-radius: 10px; background: #fff; object-fit: contain; }
.qty-modal-item .min-w-0 { min-width: 0; }
.qty-modal-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.3;
}
.qty-dial {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  padding: 6px;
  border: 1.5px solid var(--mx-line);
  border-radius: 999px;
  transition: border-color var(--mx-fast), box-shadow var(--mx-fast);
}
.qty-dial:focus-within { border-color: var(--mx-yellow); box-shadow: 0 0 0 .25rem rgba(var(--mx-yellow-rgb), .35); }
.qty-dial.is-invalid { border-color: var(--mx-red); box-shadow: none; }
.qty-dial button {
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--mx-yellow);
  color: #000;
  font-size: 16px;
  transition: background-color var(--mx-fast);
}
.qty-dial button:hover:not(:disabled) { background: var(--mx-yellow-600); }
.qty-dial button:disabled { background: var(--mx-line-soft); color: var(--mx-muted); }
.qty-dial input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--mx-ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty-dial input:focus-visible { outline: 0; }
.qty-dial input::-webkit-outer-spin-button,
.qty-dial input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.qty-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.qty-presets button {
  height: 38px;
  border: 1.5px solid var(--mx-line);
  border-radius: 10px;
  background: #fff;
  color: var(--mx-ink);
  font-weight: 700;
  transition: background-color var(--mx-fast), border-color var(--mx-fast);
}
.qty-presets button:hover { border-color: var(--mx-yellow); }
.qty-presets button[aria-pressed="true"] { border-color: var(--mx-yellow); background: var(--mx-cream); }
.qty-error { margin: -6px 0 0; color: var(--mx-red); font-size: 13px; font-weight: 600; text-align: center; }
.qty-summary { display: flex; align-items: baseline; justify-content: space-between; color: var(--mx-muted); }
.qty-summary strong { color: var(--mx-ink); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
/* Phones: a sheet that rises from the bottom, where the thumb already is.
   Used by the quantity picker and the cart changes sheet (login, checkout, branch switch). */
@media (max-width: 575.98px) {
  .qty-modal .modal-dialog { align-items: flex-end; min-height: 100%; max-width: none; margin: 0; }
  .qty-modal.fade .modal-dialog { transform: translateY(100%); transition: transform .3s ease-out; }
  .qty-modal.show .modal-dialog { transform: none; }
  .qty-modal .modal-content { max-height: 90vh; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: var(--mx-r-lg) var(--mx-r-lg) 0 0; }
}

/* Branch picker, and any modal marked .sheet-modal (the listing filters):
   on phones they rise from the bottom like the date and time sheet */
@media (max-width: 575.98px) {
  .branch-modal .modal-dialog, .sheet-modal .modal-dialog { align-items: flex-end; height: auto; min-height: 100%; max-width: none; margin: 0; }
  .branch-modal.fade .modal-dialog, .sheet-modal.fade .modal-dialog { transform: translateY(100%); transition: transform .3s ease-out; }
  .branch-modal.show .modal-dialog, .sheet-modal.show .modal-dialog { transform: none; }
  .branch-modal .modal-content, .sheet-modal .modal-content { max-height: 85vh; border-radius: var(--mx-r-lg) var(--mx-r-lg) 0 0 !important; }
  .branch-modal .modal-body, .sheet-modal .modal-body { overflow-y: auto; }
  .branch-modal .modal-content > :last-child, .sheet-modal .modal-content > :last-child { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ── Checkout: date and time ───────────────────────────────────────────── */
.slot-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1.5px dashed var(--mx-line);
  border-radius: var(--mx-r);
  background: #fff;
  color: var(--mx-ink);
  text-align: left;
  transition: border-color var(--mx-fast);
}
.slot-choice:hover { border-color: var(--mx-yellow); }
.slot-choice.is-chosen { border: 1.5px solid var(--mx-yellow); background: var(--mx-cream); }
.slot-choice-icon { flex-shrink: 0; color: var(--mx-red); font-size: 24px; }
.slot-choice-text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; line-height: 1.35; }
.slot-choice-text strong { font-size: 15px; }
.slot-choice-action { flex-shrink: 0; color: var(--mx-red); font-size: 13px; font-weight: 700; }

/* A side panel by default; on phones the same panel rises from the bottom */
.slot-sheet.offcanvas { --bs-offcanvas-width: 440px; border: 0; background: #fff; }
.slot-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 8px; }
.slot-sheet-body { flex-grow: 1; min-height: 0; padding: 8px 20px 16px; overflow-y: auto; }
.slot-sheet-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--mx-line-soft); }
.slot-sheet-label { margin: 14px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.slot-sheet .js-sheet-preview { min-height: 21px; font-weight: 600; }
@media (max-width: 991.98px) {
  .slot-sheet.offcanvas-end {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90vh;
    border-radius: var(--mx-r-lg) var(--mx-r-lg) 0 0;
    transform: translateY(100%);
  }
}
.slot-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot-time {
  padding: 11px 4px;
  border: 1.5px solid var(--mx-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mx-ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--mx-fast), border-color var(--mx-fast);
}
.slot-time:hover:not(:disabled) { border-color: var(--mx-yellow); }
.slot-time[aria-pressed="true"] { border-color: var(--mx-yellow); background: var(--mx-cream); box-shadow: inset 0 0 0 1px var(--mx-yellow); }
.slot-time:disabled { background: var(--mx-line-soft); color: var(--mx-muted); text-decoration: line-through; }
.slot-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 2px;
  border: 1.5px solid var(--mx-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mx-muted);
  font-size: 11px;
  line-height: 1.3;
  transition: background-color var(--mx-fast), border-color var(--mx-fast);
}
.slot-day strong { color: var(--mx-ink); font-size: 20px; font-weight: 800; line-height: 1.2; }
.slot-day:hover { border-color: var(--mx-yellow); }
.slot-day[aria-pressed="true"] { border-color: var(--mx-yellow); background: var(--mx-cream); box-shadow: inset 0 0 0 1px var(--mx-yellow); color: var(--mx-ink); }

/* ── Cart lines ────────────────────────────────────────────────────────── */
.cart-line {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 120px 110px auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 12px;
  background: var(--bs-light);
  transition: opacity .3s;
}
.cart-line:last-child { margin-bottom: 0; }

/* Item details: the photo at a sensible size, not the full column width */
.pd-image { max-width: 420px; margin-inline: auto; }
@media (max-width: 767.98px) { .pd-image { max-width: 320px; } }
.cart-line-total { text-align: right; }
.cart-line-remove:hover { color: var(--mx-red) !important; }
@media (min-width: 768px) {
  .cart-lines { max-height: 60vh; overflow: auto; }
}
/* Phones: item on top; quantity, total and the delete button in one row below */
@media (max-width: 767.98px) {
  .cart-line {
    grid-template-columns: 60px minmax(0, 1fr) auto auto;
    grid-template-areas: "image info info info" "qty qty total remove";
    gap: 10px;
    padding: 10px;
  }
  .cart-line > img { grid-area: image; }
  .cart-line-info { grid-area: info; }
  .cart-line-qty { grid-area: qty; width: 124px; }
  .cart-line-total { grid-area: total; }
  .cart-line-remove { grid-area: remove; padding: 6px 8px; }
}

/* Order details: the same line without the quantity buttons and delete */
.cart-line.order-line { grid-template-columns: 60px minmax(0, 1fr) auto 120px; }
@media (max-width: 767.98px) {
  .cart-line.order-line {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    grid-template-areas: "image info info" "qty qty total";
  }
  .order-line .cart-line-qty { width: auto; }
}

/* Order details: branch choice for Repeat Order */
.reorder-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.reorder-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border: 1.5px solid var(--mx-line);
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--mx-fast), background-color var(--mx-fast);
}
.reorder-branch i { color: var(--mx-muted); }
.reorder-branch small { color: var(--mx-muted); font-size: 11px; font-weight: 600; }
.reorder-branch:hover { border-color: var(--mx-yellow); }
.btn-check:checked + .reorder-branch { border-color: var(--mx-yellow); background: var(--mx-cream); box-shadow: inset 0 0 0 1px var(--mx-yellow); }
.btn-check:checked + .reorder-branch i { color: var(--mx-red); }
.btn-check:focus-visible + .reorder-branch { outline: 2px solid var(--mx-red); outline-offset: 2px; }

/* ── Cart changes modal ────────────────────────────────────────────────── */
.cart-review-list { max-height: 45vh; overflow-y: auto; }
.cart-review-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mx-line-soft); }
.cart-review-item:first-child { border-top: 0; padding-top: 0; }
.cart-review-item img { flex-shrink: 0; border-radius: 10px; background: var(--mx-bg); object-fit: contain; }

/* ── Order details: status strip on phones ─────────────────────────────── */
.order-track-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.order-track-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.order-track-steps li + li::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--mx-line);
}
.order-track-steps li.is-done + li.is-done::before { background: var(--mx-yellow); }
.order-track-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mx-line-soft);
  color: var(--mx-muted);
  font-size: 13px;
}
.order-track-steps .is-done .order-track-dot { background: var(--mx-yellow); color: #000; }
.order-track-steps .is-current .order-track-dot { box-shadow: 0 0 0 3px rgba(var(--mx-yellow-rgb), .35); }
.order-track-label { color: var(--mx-muted); font-size: 11px; line-height: 1.2; }
.order-track-steps .is-done .order-track-label { color: var(--mx-ink); font-weight: 600; }

/* ── Account: order list ───────────────────────────────────────────────── */
.order-row { cursor: pointer; }
.orders-pages {
  --bs-pagination-color: var(--mx-ink);
  --bs-pagination-border-radius: 10px;
  --bs-pagination-hover-color: var(--mx-ink);
  --bs-pagination-hover-bg: var(--mx-cream);
  --bs-pagination-focus-color: var(--mx-ink);
  --bs-pagination-focus-bg: var(--mx-cream);
  --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--mx-yellow-rgb), .35);
  --bs-pagination-active-color: #000;
  --bs-pagination-active-bg: var(--mx-yellow);
  --bs-pagination-active-border-color: var(--mx-yellow);
  gap: 4px;
}
.orders-pages .page-link { min-width: 38px; border-radius: 10px !important; font-weight: 600; text-align: center; }
.orders-pages .page-gap .page-link { min-width: 0; padding-inline: 4px; border-color: transparent; background: transparent; }
@media (max-width: 575.98px) {
  .orders-table th, .orders-table td { padding-inline: 6px; }
}

/* ── Header: branch and delivery address (phones) ──────────────────────── */
.mobile-context .container { min-height: 46px; }
.mobile-context-branch,
.mobile-context-address {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 0;
  color: var(--mx-ink);
  line-height: 1.2;
  text-align: left;
}
.mobile-context-branch { flex: 1 1 55%; border: 0; background: none; }
.mobile-context-address { flex: 1 1 45%; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--mx-line); }
.mobile-context i { flex-shrink: 0; color: var(--mx-red); }
.mobile-context-text { display: flex; flex-direction: column; min-width: 0; }
.mobile-context-label { color: var(--mx-muted); font-size: 11px; }
.mobile-context-branch strong { font-size: 15px; letter-spacing: .01em; }
.mobile-context-change { margin-left: auto; padding-left: 6px; color: var(--mx-red); font-size: 12px; font-weight: 700; }
.mobile-context-address .text-truncate { font-size: 13px; }

/* ── Login, register, forgot password ──────────────────────────────────── */
.auth-body { min-height: 100vh; background: var(--mx-bg); }
.auth-shell { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; }
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 64px;
  background:
    radial-gradient(28rem 16rem at 0% 0%, rgba(var(--mx-yellow-rgb), .22), transparent 60%),
    radial-gradient(24rem 16rem at 100% 100%, rgba(var(--mx-red-rgb), .22), transparent 62%),
    var(--mx-grad-ink);
  color: #C9C9D4;
  text-align: center;
}
.auth-logo img { width: auto; border-radius: 10px; }
.auth-tagline { margin: 14px 0 0; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.auth-tagline span { color: var(--mx-yellow); }
.auth-brand-text, .auth-perks { display: none; }
/* Phones: a small row of products under the tagline */
.auth-tiles { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.auth-tiles span { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 6px; border-radius: 14px; background: #fff; }
.auth-tiles img { width: 100%; height: 100%; object-fit: contain; }
/* The white sheet runs to the bottom of the screen */
.auth-panel { position: relative; display: flex; flex-direction: column; margin-top: -40px; }
.auth-card { flex: 1; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important; }
.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px 28px;
  border-radius: var(--mx-r-lg) var(--mx-r-lg) 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(11,11,16,.10);
}
@media (min-width: 576px) {
  .auth-panel { padding: 0 16px 32px; }
  .auth-card { flex: none; padding: 32px; border-radius: var(--mx-r-lg); box-shadow: var(--mx-sh-lg); }
}
@media (min-width: 992px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .auth-brand { display: flex; flex-direction: column; padding: 40px 56px; text-align: left; }
  .auth-brand-copy { margin: auto 0; max-width: 460px; }
  .auth-tagline { margin-top: 0; font-size: 40px; }
  .auth-brand-text { display: block; margin: 14px 0 28px; color: #B4B4C2; font-size: 16px; }
  .auth-perks { display: grid; gap: 18px; }
  .auth-perks li { display: flex; gap: 14px; align-items: flex-start; }
  .auth-perks i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(var(--mx-yellow-rgb), .14);
    color: var(--mx-yellow);
  }
  .auth-perks span { display: flex; flex-direction: column; color: #9A9AA8; font-size: 14px; }
  .auth-perks strong { color: #fff; font-size: 15px; }
  .auth-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 460px; margin-top: 0; }
  .auth-tiles span { width: auto; height: auto; aspect-ratio: 1; padding: 10px; border-radius: 16px; }
  .auth-panel { flex-direction: row; align-items: center; margin: 0; padding: 40px 24px; background: #fff; }
  .auth-card { box-shadow: none; }
}
.auth-back { display: inline-flex; align-items: center; margin-bottom: 18px; color: var(--mx-muted); font-size: 13px; font-weight: 600; }
.auth-back:hover { color: var(--mx-red); }
.auth-title { margin-bottom: 6px; font-size: 26px; font-weight: 800; }
.auth-intro { margin-bottom: 20px; color: var(--mx-muted); }
.auth-label { display: block; margin: 0 0 6px; color: var(--mx-ink); font-size: 13px; font-weight: 700; }
.auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1.5px solid var(--mx-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color var(--mx-fast), box-shadow var(--mx-fast);
}
.auth-field:focus-within { border-color: var(--mx-yellow); box-shadow: 0 0 0 .25rem rgba(var(--mx-yellow-rgb), .3); }
.auth-field > i { width: 16px; color: var(--mx-muted); text-align: center; }
.auth-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--mx-ink); font-size: 16px; }
.auth-field input:focus-visible { outline: 0; }
.auth-eye { padding: 6px; border: 0; background: none; color: var(--mx-muted); }
.auth-eye:hover { color: var(--mx-ink); }
.auth-hint { margin: -10px 0 16px; color: var(--mx-muted); font-size: 12px; }
.auth-link { color: var(--mx-red); font-weight: 700; text-decoration: none; }
.auth-link:hover { color: var(--mx-red-700); text-decoration: underline; }
.auth-switch { margin: 22px 0 0; color: var(--mx-muted); text-align: center; }
.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.auth-alert i { margin-top: 3px; }
.auth-alert.is-error { background: rgba(var(--mx-red-rgb), .08); color: var(--mx-red-700); }
.auth-alert.is-success { background: #E8F6EE; color: #146C43; }
.auth-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 16px; }
.auth-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1.5px solid var(--mx-line);
  border-radius: 14px;
  color: var(--mx-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--mx-fast), background-color var(--mx-fast);
}
.auth-branch i { color: var(--mx-muted); }
.auth-branch:hover { border-color: var(--mx-yellow); }
.btn-check:checked + .auth-branch { border-color: var(--mx-yellow); background: var(--mx-cream); box-shadow: inset 0 0 0 1px var(--mx-yellow); }
.btn-check:checked + .auth-branch i { color: var(--mx-red); }
.btn-check:focus-visible + .auth-branch { outline: 2px solid var(--mx-red); outline-offset: 2px; }
.auth-branches + .auth-hint { margin-top: -6px; }
.auth-note { margin: -4px 0 18px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-bg); font-size: 13px; }
.auth-note summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--mx-ink); font-weight: 600; cursor: pointer; list-style: none; }
.auth-note summary::-webkit-details-marker { display: none; }
.auth-note summary > span { flex: 1; }
.auth-note summary > i:first-child { color: var(--mx-yellow-700); }
.auth-note summary:focus-visible { outline: 2px solid var(--mx-red); outline-offset: 2px; border-radius: 12px; }
.auth-note-caret { color: var(--mx-muted); font-size: 11px; transition: transform var(--mx-fast); }
.auth-note[open] .auth-note-caret { transform: rotate(180deg); }
.auth-note-body { padding: 0 12px 12px 34px; color: var(--mx-muted); }
.auth-note-body p { margin-bottom: 8px; }
.auth-note-body strong { color: var(--mx-ink); }
.auth-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.auth-steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--mx-line); transition: background-color var(--mx-fast); }
.auth-steps span.is-active { background: var(--mx-yellow); }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.otp-box {
  width: 100%;
  height: 56px;
  border: 1.5px solid var(--mx-line);
  border-radius: 12px;
  color: var(--mx-ink);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}
.otp-box:focus { border-color: var(--mx-yellow); outline: 0; box-shadow: 0 0 0 .25rem rgba(var(--mx-yellow-rgb), .3); }

/* ── Account: loyalty ──────────────────────────────────────────────────── */
.loyalty-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--mx-r-lg);
  background: var(--mx-grad-ink);
  color: #fff;
  padding: 1rem;
  box-shadow: var(--mx-sh-md);
}
.loyalty-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: .9rem;
  padding: 0 .25rem .75rem;
}
.loyalty-card-head > :first-child { color: var(--mx-yellow); white-space: nowrap; }
/* White panel: the quiet zone around the bars a scanner needs */
.loyalty-barcode {
  background: #fff;
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
}
.loyalty-barcode svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.loyalty-barcode-number { color: #000; font: 700 1.6rem/1.2 monospace; letter-spacing: .12em; padding: 1rem 0; }
.loyalty-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem .75rem;
  margin-top: .75rem;
}
.loyalty-card-tip { margin: 0; text-align: center; font-size: .8rem; color: #B4B4C2; }
.loyalty-info-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border: 1px solid rgba(var(--mx-yellow-rgb), .5);
  border-radius: 999px;
  background: rgba(var(--mx-yellow-rgb), .1);
  color: var(--mx-yellow);
  font-size: .8rem;
  font-weight: 600;
  transition: background var(--mx-fast);
}
.loyalty-info-btn:hover, .loyalty-info-btn[aria-expanded="true"] { background: rgba(var(--mx-yellow-rgb), .22); }
/* Opens under the barcode inside the card; it never covers the bars */
.loyalty-info {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  line-height: 1.45;
  color: #E9E9F0;
}
.loyalty-info .fw-bold { color: #fff; }
.loyalty-info-icon { flex: none; margin-top: .15rem; font-size: 1.1rem; color: var(--mx-yellow); }

.loyalty-stat {
  display: flex;
  align-items: center;
  gap: .85rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--mx-line);
  border-radius: var(--mx-r);
  background: #fff;
}
.loyalty-stat-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.loyalty-stat-label { font-size: .8rem; color: var(--mx-muted); font-weight: 600; }
.loyalty-stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.loyalty-stat.is-earned .loyalty-stat-icon { background: #E7F6EC; color: #198754; }
.loyalty-stat.is-redeemed .loyalty-stat-icon { background: rgba(var(--mx-red-rgb), .1); color: var(--mx-red); }
.loyalty-stat.is-balance { background: var(--mx-cream); border-color: var(--mx-yellow); }
.loyalty-stat.is-balance .loyalty-stat-icon { background: var(--mx-yellow); color: #000; }

/* Purchase history: one grid row per purchase (two lines on phones) */
.loyalty-txn-head,
.loyalty-txn {
  grid-template-columns: 1.35fr 1.2fr 1fr 1.1fr .8fr 16px;
  gap: .75rem;
  align-items: center;
}
.loyalty-txn-head {
  padding: .5rem .85rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mx-muted);
  border-bottom: 1px solid var(--mx-line);
}
.loyalty-txn {
  display: grid;
  width: 100%;
  padding: .8rem .85rem;
  border: 0;
  border-bottom: 1px solid var(--mx-line-soft);
  background: #fff;
  text-align: left;
  font-size: .9rem;
  transition: background var(--mx-fast);
}
.loyalty-txn:hover, .loyalty-txn:focus-visible { background: rgba(var(--mx-yellow-rgb), .12); }
.loyalty-txn-store { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loyalty-txn-receipt { color: var(--mx-muted); font-variant-numeric: tabular-nums; }
.loyalty-txn-total { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.loyalty-txn-points { text-align: right; }
.loyalty-txn-chevron { color: #B4B4C2; font-size: .75rem; }
.loyalty-points {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.loyalty-points.is-earned { background: #E7F6EC; color: #146C43; }
.loyalty-points.is-redeemed { background: rgba(var(--mx-red-rgb), .1); color: var(--mx-red-700); }
@media (max-width: 767.98px) {
  .loyalty-txn {
    grid-template-columns: 1fr auto 12px;
    grid-template-areas: "store total chevron" "date points chevron" "receipt points chevron";
    row-gap: .15rem;
    column-gap: .75rem;
    padding-inline: .25rem;
  }
  .loyalty-txn-store { grid-area: store; }
  .loyalty-txn-total { grid-area: total; }
  .loyalty-txn-date { grid-area: date; font-size: .8rem; color: var(--mx-muted); }
  .loyalty-txn-receipt { grid-area: receipt; font-size: .8rem; }
  .loyalty-txn-points { grid-area: points; align-self: center; }
  .loyalty-txn-chevron { grid-area: chevron; align-self: center; }
}
.loyalty-unavailable { color: var(--mx-muted); }
/* Purchase history filters */
.loyalty-filters { margin-bottom: .75rem; }
.loyalty-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
}
.loyalty-filter-bar > .scroll-row { min-width: 0; max-width: 100%; }
.loyalty-chip {
  flex: none;
  padding: .35rem .85rem;
  border: 1px solid var(--mx-line);
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--mx-fast), border-color var(--mx-fast);
}
.loyalty-chip:hover { border-color: var(--mx-yellow); }
.loyalty-chip.is-active { background: var(--mx-yellow); border-color: var(--mx-yellow); color: #000; }
.loyalty-sort { display: flex; align-items: center; gap: .5rem; }
.loyalty-sort .form-select { width: auto; min-width: 9.5rem; }
.loyalty-custom-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem 1rem;
  margin-top: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--mx-r);
  background: var(--mx-bg);
  border: 1px solid var(--mx-line);
}
.loyalty-custom-range fieldset { min-width: 0; }
.loyalty-custom-range legend { float: none; width: auto; margin-bottom: .25rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mx-muted); }
.loyalty-custom-range input[type="date"] { width: 9.75rem; }
.loyalty-custom-range input[type="time"] { width: 7.25rem; }
.loyalty-filter-error { flex-basis: 100%; font-size: .85rem; font-weight: 600; color: var(--mx-red); }
.loyalty-filter-hint { flex-basis: 100%; font-size: .75rem; color: var(--mx-muted); }
@media (max-width: 575.98px) {
  .loyalty-sort { width: 100%; }
  .loyalty-sort .form-select { flex: 1; }
  .loyalty-custom-range fieldset { flex-basis: 100%; }
  .loyalty-custom-range input[type="date"], .loyalty-custom-range input[type="time"] { flex: 1; width: auto; }
  .loyalty-custom-actions, .loyalty-custom-actions .btn { width: 100%; }
}

.loyalty-txn-list { transition: opacity var(--mx-fast); }
.loyalty-txn-list.is-loading { opacity: .45; pointer-events: none; }

/* Pager under the purchase history */
.loyalty-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
}
.loyalty-pager-range { font-size: .85rem; color: var(--mx-muted); }
.loyalty-pager-list { display: flex; align-items: center; gap: .3rem; }
.loyalty-pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 .6rem;
  border: 1px solid var(--mx-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  transition: background var(--mx-fast), border-color var(--mx-fast);
}
.loyalty-pager-btn:hover:not(:disabled) { background: rgba(var(--mx-yellow-rgb), .2); border-color: var(--mx-yellow); }
.loyalty-pager-btn.is-current { background: var(--mx-yellow); border-color: var(--mx-yellow); color: #000; opacity: 1; }
.loyalty-pager-btn:disabled:not(.is-current) { color: #C4C4CF; }
.loyalty-pager-gap { min-width: 18px; text-align: center; color: var(--mx-muted); }
@media (max-width: 575.98px) {
  .loyalty-pager { flex-direction: column-reverse; }
  .loyalty-pager-btn { min-width: 34px; height: 34px; padding: 0 .45rem; }
}

/* Receipt modal: styled like a till slip */
.receipt { font-size: .875rem; }
.receipt-head { text-align: center; padding-bottom: .75rem; border-bottom: 2px dashed var(--mx-line); color: var(--mx-muted); }
.receipt-store { font-weight: 800; font-size: 1.05rem; color: var(--mx-ink); letter-spacing: .03em; }
.receipt-lines-wrap { overflow-x: auto; }
.receipt-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.receipt-lines th {
  padding: .6rem .35rem .35rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mx-muted);
  border-bottom: 1px solid var(--mx-line);
  white-space: nowrap;
}
.receipt-lines td { padding: .4rem .35rem; border-bottom: 1px dotted var(--mx-line); vertical-align: top; white-space: nowrap; }
.receipt-lines td.receipt-item { white-space: normal; min-width: 9rem; }
.receipt-note { text-align: right; font-size: .75rem; color: var(--mx-muted); padding: .35rem .35rem 0; }
.receipt-totals { margin-top: .75rem; padding-top: .5rem; border-top: 2px dashed var(--mx-line); font-variant-numeric: tabular-nums; }
.receipt-total-row { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem .35rem; }
.receipt-total-row.receipt-tax { color: var(--mx-muted); font-size: .8rem; padding-left: 1rem; }
.receipt-total-row.receipt-grand { margin-top: .35rem; padding-block: .5rem; border-block: 1px solid var(--mx-ink); font-weight: 800; font-size: 1.1rem; }
.receipt-total-row.receipt-points { margin-top: .5rem; font-weight: 700; color: #146C43; }

/* Not a member yet */
.loyalty-join { max-width: 560px; }
.loyalty-join-head {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--mx-r-lg);
  background: var(--mx-cream);
  border: 1px solid rgba(var(--mx-yellow-rgb), .6);
}
.loyalty-join-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
  background: var(--mx-yellow);
  color: #000;
  font-size: 1.6rem;
  box-shadow: 0 0 0 8px rgba(var(--mx-yellow-rgb), .25);
}
.loyalty-join-phone {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--mx-line);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.loyalty-perks { display: grid; gap: .6rem; }
.loyalty-perks li { display: flex; align-items: center; gap: .85rem; }
.loyalty-perks i {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--mx-yellow-rgb), .2);
  color: var(--mx-yellow-700);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer-mid {
  position: relative;
  padding: 40px 0;
  background:
    radial-gradient(40rem 20rem at 12% 0%, rgba(var(--mx-yellow-rgb), .10), transparent 60%),
    radial-gradient(36rem 20rem at 88% 100%, rgba(var(--mx-red-rgb), .12), transparent 62%),
    var(--mx-grad-ink);
  color: #C9C9D4;
}
.footer-mid::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--mx-grad-line);
}
.footer-logo { max-height: 60px; }
.footer-about { max-width: 450px; font-size: 14px; line-height: 1.5; color: #9A9AA8; }
/* Phones and tablets: no footer. The bottom nav bar and the menu (which has the
   policy pages) take its place, at the same breakpoint. */
@media (max-width: 991.98px) { .site-footer { display: none; } }
.footer-title {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding-bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: var(--mx-grad);
}
.footer-list li { margin-bottom: .5rem; }
.footer-list a { color: #B4B4C2; font-size: 14px; transition: color var(--mx-fast); }
.footer-list a:hover { color: var(--mx-yellow); }
.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #E9E9F0;
  transition: transform var(--mx-fast);
}
.social-icon:hover { background: var(--mx-grad); color: #000; transform: translateY(-3px); }
.app-link { display: inline-flex; align-items: center; gap: 10px; color: #E9E9F0; }
.app-link:hover { color: var(--mx-yellow); }
.footer-bottom {
  padding: 1rem;
  background: #06060A;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #9A9AA8;
  font-size: .9em;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
