/* ===================================================================
   WATERSPOT — styles.css
   Purpose: Theme tokens + layout scaffold for frontend-only phase
   Sections:
     A) THEME TOKENS (CSS variables)
     B) BASE ELEMENTS (typography, links)
     C) APP GRID LAYOUT (page skeleton)
   =================================================================== */
*,
*::before,
* ::after {
  box-sizing: border-box;
}
/* ===================== START: A) THEME TOKENS ===================== */
:root {
  /* Henwil Lichtenburg theme */
  --color-main: #ffffff; /* main color */
  --color-secondary: #d42027; /* primary red */
  --color-accent: #f7951d; /* orange */
  --color-highlight: #fac522; /* yellow */
  --color-black: #2b1b1b; /* dark neutral */
  --color-secondary-hover: #b31b21;
  --brand-gradient: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-accent) 55%,
    var(--color-highlight) 100%
  );
  --brand-gradient-hover: linear-gradient(
    135deg,
    var(--color-secondary-hover) 0%,
    var(--color-accent) 55%,
    var(--color-highlight) 100%
  );
  --sticky-gap: 12px;

  /* Helpful aliases */
  --accent-rgb: 212, 32, 39;
  --accent-warm-rgb: 247, 149, 29;
  --highlight-rgb: 250, 197, 34;
  --surface-warm-1: #fff5e6;
  --surface-warm-2: #fff1cc;
  --bg-color: var(--color-main);
  --text-color: #444444de; /* existing body text color */
  --heading-color: var(--color-secondary);
  --link-color: var(--color-secondary);
  --border-color: rgba(var(--accent-rgb), 0);
  --shadow-soft: 0 6px 20px rgba(71, 70, 70, 0.082);
}
/* ====================== END: A) THEME TOKENS ====================== */

/* ===================== START: B) BASE ELEMENTS ==================== */
html,
body {
  height: 100%;
  overflow-x: hidden;
}

@media (min-width: 720px) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: "Bruno Ace", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}
body.modal-open {
  overflow: hidden;
}

h1 {
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--heading-color);
}
h2 {
  font-size: 1.3125rem;
  color: var(--color-black);
}

a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
/* ====================== END: B) BASE ELEMENTS ===================== */

/* ==================== START: C) APP GRID LAYOUT =================== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto auto; /* header, banner, filters, products, footer */
  min-height: 100vh;
  gap: 12px;
  padding: 0 12px 12px;
  box-sizing: border-box;
  align-items: start;
}

.grid-full {
  grid-column: 1 / -1;
}

.section-box {
  background: var(--color-main);
  border: 1px dashed var(--border-color);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.products-area {
  overflow: visible; /* was auto */
  min-height: initial; /* remove min-height:0 behavior */
  min-block-size: initial; /* if you added this earlier, reset it */
}
/* ===================== END: C) APP GRID LAYOUT ==================== */

/* ================= START: PAGE WRAPPER (centered with gutters) ================ */
/* Creates 3 columns: [left gutter | content | right gutter]
   - Gutters are flexible (1fr) but can collapse to 0 on small screens.
   - Content column caps at --container-max and stays centered. */
:root {
  --container-max: 1200px; /* tweak this later if you want wider/narrower */
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(var(--container-max), 100%) minmax(
      0,
      1fr
    );
  /* Optional: ensure full viewport height so our inner 1fr row works nicely */
  min-height: 100vh;
}

/* Place the app grid into the centered column */
#appGrid {
  grid-column: 2;
}
/* ================== END: PAGE WRAPPER (centered with gutters) ================= */

/* ===================== START: HEADER STYLES ===================== */
.site-header {
  background: #fff;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 0;
  position: sticky;
  top: 0; /* small breathing space from viewport top */
  z-index: 1100;
  align-self: start;
  overflow: hidden;
}

@media (min-width: 720px) {
  #appGrid {
    padding-top: calc(var(--header-h, 0px) + 12px);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--container-max), calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin: 0;
    z-index: 1200;
  }
}

.header-top-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  color: #fff;
  background: var(--brand-gradient);
  position: relative;
  overflow: hidden;
}

.header-top-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 35%) left
      center / 40% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.header-top-message,
.header-top-links {
  position: relative;
  z-index: 1;
}

.header-top-message {
  margin: 0;
  font-size: clamp(0.72rem, 0.95vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-top-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.header-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: clamp(0.72rem, 0.92vw, 0.9rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-top-link--button {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.header-top-link:hover,
.header-top-link:focus-visible {
  text-decoration: none;
  opacity: 0.92;
}

.header-top-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  border-radius: 999px;
}

.header-top-link i {
  font-size: 0.92em;
}

.header-top-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.45);
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | nav | actions */
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  padding: 10px 14px;
}

/* Logo (asset 1500x513, scale by height) */
.brand #siteLogo {
  display: block;
  height: clamp(48px, 7vw, 84px);
  width: auto;
  object-fit: contain;
}

/* Center navigation (aligned right, grey links) */
.header-nav {
  display: flex;
  justify-content: flex-end; /* push links to the right */
  gap: clamp(18px, 3vw, 34px);
}

@media (min-width: 720px) {
  .header-nav {
    padding-right: clamp(34px, 4vw, 84px);
  }
}

.header-nav a {
  color: var(--text-color); /* same grey as Filters & Search */
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}
.header-nav a:hover {
  background: rgba(var(--highlight-rgb), 0.2);
}
.header-nav a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Right-side icon buttons (Font Awesome) */
.header-actions {
  display: inline-flex;
  gap: clamp(18px, 2vw, 30px);
  align-items: center;
  justify-self: end;
}

.header-actions-main,
.header-actions-icons {
  display: inline-flex;
  align-items: center;
}

.header-actions-main {
  gap: 12px;
}

.header-actions-icons {
  gap: 10px;
}

.icon-button {
  appearance: none;
  background: #fff;
  color: var(--color-secondary); /* brand blue icons */
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.icon-button i {
  font-size: 20px;
  line-height: 1;
}
.icon-button:hover {
  background: rgba(var(--accent-warm-rgb), 0.08);
}
.icon-button:active {
  transform: translateY(1px);
}
.icon-button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Cart badge */
.icon-button.has-badge {
  position: relative;
}
.icon-button .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 14px;
  background: var(--color-accent);
  box-shadow: 0 4px 10px rgba(var(--accent-warm-rgb), 0.35);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
.icon-button .badge.is-hidden {
  display: none;
}

/* Responsive: stack nav below on small screens */
@media (max-width: 980px) {
  .header-top-band {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .header-top-links {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .header-top-band {
    display: none;
  }

  .site-header .header-inner {
    grid-template-columns: 1fr auto; /* logo | actions */
    grid-template-rows: auto auto;
  }
  .brand {
    grid-column: 1;
  }
  .header-actions {
    grid-column: 2;
    gap: 10px;
  }
  .header-nav {
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 8px;
    flex-wrap: wrap;
    padding-right: 0;
  }
  .header-actions-main {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .header-top-links {
    gap: 10px;
  }

  .header-top-divider {
    display: none;
  }
}
/* ====================== END: HEADER STYLES ====================== */

/* ===================== START: CART DRAWER ===================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 16, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 2400;
}
.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 280ms ease;
  display: flex;
  flex-direction: column;
  z-index: 2500;
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}
.cart-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-color);
}
.cart-subtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.6);
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-empty {
  padding: 24px;
  text-align: center;
  color: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(var(--accent-rgb), 0.2);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.04);
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  background: #fff;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
}

.cart-item-sold-as {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(100, 116, 139, 0.85);
  letter-spacing: 0.03em;
  margin-top: -2px;
}

/* Volume pricing table on product cards */
.volume-pricing {
  margin: 4px 0 2px;
  padding: 5px 7px;
  background: rgba(var(--accent-rgb), 0.05);
  border-left: 2px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 0 4px 4px 0;
}
.volume-pricing-title {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(var(--accent-rgb), 0.75);
  margin-bottom: 3px;
}
.volume-pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-color);
}
.volume-pricing-range {
  font-weight: 600;
  white-space: nowrap;
}
.volume-pricing-discount {
  color: rgba(var(--accent-rgb), 0.9);
  font-weight: 500;
}

/* Tier badge next to price on product card */
.product-tier-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.12);
  color: rgba(var(--accent-rgb), 1);
  vertical-align: middle;
  letter-spacing: 0.03em;
}

/* Tier badge inside the cart drawer */
.cart-tier-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.1);
  color: rgba(var(--accent-rgb), 1);
  align-self: center;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item-price {
  font-weight: 700;
  color: var(--color-secondary);
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(var(--accent-rgb), 0.05);
}
.cart-qty button {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--color-secondary);
  font-weight: 700;
}
.cart-qty span {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  color: var(--text-color);
}
.cart-item-total {
  margin-left: auto;
  font-weight: 800;
  color: var(--text-color);
  text-align: right;
}
.cart-item-remove {
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  padding: 4px;
  margin-left: 6px;
}
.cart-footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text-color);
}
.cart-footer .btn {
  width: 100%;
}
body.cart-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  #cartDrawer {
    width: 100vw;
  }

  #cartDrawer .cart-header {
    padding: 14px 16px 12px;
    align-items: flex-start;
  }

  #cartDrawer .cart-title {
    font-size: 1rem;
    line-height: 1.1;
  }

  #cartDrawer .cart-subtitle {
    margin-top: 3px;
    font-size: 0.8rem;
  }

  #cartDrawer .cart-items {
    padding: 14px 16px 18px;
    gap: 10px;
  }

  #cartDrawer .cart-item {
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 10px;
    border-radius: 14px;
  }

  #cartDrawer .cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }

  #cartDrawer .cart-item-body {
    gap: 8px;
    min-width: 0;
  }

  #cartDrawer .cart-item-name {
    font-size: 0.84rem;
    line-height: 1.35;
    word-break: break-word;
  }

  #cartDrawer .cart-item-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
  }

  #cartDrawer .cart-item-price {
    font-size: 0.9rem;
    grid-column: 1;
    grid-row: 1;
  }

  #cartDrawer .cart-item-total {
    margin-left: 0;
    font-size: 0.88rem;
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
  }

  #cartDrawer .cart-qty {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  #cartDrawer .cart-qty button {
    padding: 3px 9px;
    font-size: 0.88rem;
  }

  #cartDrawer .cart-qty span {
    min-width: 24px;
    font-size: 0.78rem;
  }

  #cartDrawer .cart-item-remove {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-left: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    display: grid;
    place-items: center;
  }

  #cartDrawer .cart-footer {
    padding: 14px 16px 18px;
    gap: 10px;
  }

  #cartDrawer .cart-summary {
    font-size: 0.98rem;
  }

  #cartDrawer .cart-footer .btn {
    min-height: 40px;
  }
}
/* ====================== END: CART DRAWER ====================== */

/* ==================== START: FAVOURITES DRAWER ==================== */
.favorites-drawer {
  z-index: 2550;
}

.btn.btn-small {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.favorite-item {
  gap: 12px;
}

.favorite-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}

.favorite-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.favorite-item-remove {
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: #fff;
  color: var(--color-secondary);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.favorite-item-remove:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

@media (max-width: 520px) {
  .favorite-item-meta {
    flex-wrap: wrap;
  }
  .favorite-item-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* ===================== END: FAVOURITES DRAWER ===================== */
/* ======================= START: ABOUT DRAWER ======================= */
.about-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.about-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.about-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(540px, calc(100vw - 24px));
  height: 100vh;
  background: #fff;
  box-shadow: -24px 0 60px rgba(var(--accent-rgb), 0.24);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  z-index: 1400;
  overflow: auto;
}

.about-drawer.open {
  transform: translateX(0);
}

.about-drawer-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(var(--highlight-rgb), 0.3), transparent 180px),
    #fff;
}

.about-drawer-shell::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--brand-gradient);
}

.about-drawer-header,
.about-drawer-body {
  padding-inline: 24px;
}

.about-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 20px;
}

.about-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(var(--accent-rgb), 0.72);
}

.about-drawer-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: var(--text-color);
}

.about-close {
  flex: 0 0 auto;
}

.about-drawer-body {
  display: grid;
  gap: 20px;
  padding-bottom: 28px;
}

.about-copy {
  display: grid;
  gap: 14px;
}

.about-copy p {
  margin: 0;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.8);
}

.about-accent {
  color: var(--color-secondary);
  font-weight: 700;
}

.about-branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--text-color);
  font-weight: 700;
}

.about-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: linear-gradient(180deg, #fff, rgba(var(--highlight-rgb), 0.36));
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.about-media img {
  width: min(320px, 100%);
  height: auto;
  object-fit: contain;
}

.about-experience-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.18);
  display: grid;
  gap: 2px;
  font-weight: 800;
  color: var(--text-color);
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.about-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  background: #fff;
}

.about-points i {
  color: var(--color-secondary);
  margin-top: 2px;
}

@media (max-width: 980px) {
  .about-drawer {
    width: min(100vw, 620px);
  }
}

@media (max-width: 640px) {
  .about-drawer {
    width: 100vw;
  }

  .about-drawer-header,
  .about-drawer-body {
    padding-inline: 18px;
  }

  .about-drawer-header {
    padding-top: 20px;
    padding-bottom: 16px;
  }
}
/* ======================== END: ABOUT DRAWER ======================== */
/* ======================= START: CONTACT MODAL ======================= */
.modal--contact {
  display: none;
}

.modal--contact.is-visible {
  display: block;
}

.modal--contact .contact-dialog {
  width: min(980px, 94vw);
  max-width: 980px;
  max-height: min(86vh, 760px);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.modal--contact.is-open .contact-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-shell {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  background:
    linear-gradient(180deg, rgba(var(--highlight-rgb), 0.34), transparent 240px),
    #fff;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 24px 18px;
}

.contact-header-copy {
  display: grid;
  gap: 10px;
}

.contact-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(var(--accent-rgb), 0.72);
}

.contact-header-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  color: var(--text-color);
}

.contact-subtitle {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.7;
}

.contact-close {
  flex: 0 0 auto;
}

.contact-branches {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
  overflow: auto;
}

.contact-branch {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  display: grid;
  gap: 20px;
  box-shadow: 0 16px 32px rgba(var(--accent-rgb), 0.08);
}

.contact-branch-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.contact-branch-top h3 {
  margin: 0 0 6px;
  color: var(--text-color);
}

.contact-branch-top p {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.65;
}

.contact-branch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 700;
  background: rgba(var(--highlight-rgb), 0.22);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-info-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  background: rgba(var(--highlight-rgb), 0.22);
  color: inherit;
  text-decoration: none;
}

button.contact-info-card {
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-info-card--button {
  appearance: none;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--color-secondary);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.12);
}

.contact-info-icon--phone {
  color: var(--color-accent);
}

.contact-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.58);
}

.contact-info-value {
  color: var(--text-color);
  line-height: 1.6;
  font-weight: 600;
}

@media (max-width: 980px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .modal--contact .contact-dialog {
    width: min(96vw, 96vw);
    max-height: 90vh;
  }

  .contact-header,
  .contact-branches {
    padding-inline: 18px;
  }

  .contact-header {
    padding-top: 20px;
  }

  .contact-branch {
    padding: 18px;
  }

  .contact-branch-top {
    flex-direction: column;
  }
}
/* ======================== END: CONTACT MODAL ======================== */

/* ===================== START: BANNER STYLES ===================== */
.banner {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

/* Viewport with fixed cinematic ratio, responsive */
.banner-viewport {
  position: relative; /* needed for dot overlay */
  aspect-ratio: 21 / 9; /* wide hero; adjusts with width */
  min-height: 180px; /* safety on very small screens */
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(var(--accent-warm-rgb), 0.06),
    rgba(var(--highlight-rgb), 0.02)
  );
}

/* Each slide image fills, fades in/out */
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill without distortion */
  opacity: 0;
  transition: opacity 1600ms ease;
  will-change: opacity;
  pointer-events: none;
}
.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Dot controls (overlay inside the viewport) --- */
:root {
  --banner-dot-size: 10px; /* visual dot size */
  --banner-dot-gap: 10px; /* spacing between dots */
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: var(--banner-dot-gap);
  pointer-events: none; /* container ignores pointer */
}

.banner-dot {
  pointer-events: auto; /* buttons remain clickable */
  appearance: none;
  background: transparent; /* hollow by default */
  width: var(--banner-dot-size);
  height: var(--banner-dot-size);
  padding: 6px; /* bigger hit area */
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.55);
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease,
    border-color 140ms ease;
}
.banner-dot[aria-selected="true"] {
  background: var(--color-accent); /* filled when active */
  border-color: var(--color-secondary);
}
.banner-dot:hover {
  transform: scale(1.08);
}
.banner-dot:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* A11y helper */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Respect reduced motion: disable auto-rotate fade */
@media (prefers-reduced-motion: reduce) {
  .banner-slide {
    transition: none;
  }
}
/* ====================== END: BANNER STYLES ====================== */

/* =================== START: FILTERS & SEARCH STYLES =================== */
.filters {
  background: var(--brand-gradient);
  color: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.filters-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

/* Search row spans full width */
.filters-inner .search-field {
  grid-column: 1 / -1;
}

/* Below the search: 3 selects in a row on md+ screens */
.filters-inner .field {
  grid-column: span 12;
}
@media (min-width: 720px) {
  .filters-inner .field:not(.search-field) {
    grid-column: span 4;
  }
  #filtersSearch {
    position: relative;
    top: auto;
    z-index: auto;
    scroll-margin-top: calc(var(--header-h, 0px) + var(--filters-h, 0px) + 20px);
    align-self: start;
  }

  #filtersSearch.is-pinned {
    position: fixed;
    top: calc(var(--header-h, 0px) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--container-max), calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    z-index: 1150;
  }

  #appGrid.has-pinned-filters #productsSection {
    margin-top: var(--filters-h, 0px);
  }
}

@media (min-width: 980px) {
  .filters {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .filters-inner {
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 10px;
    align-items: center;
  }

  .filters-inner .search-field,
  .filters-inner .field,
  .filters-inner .field:not(.search-field) {
    grid-column: auto;
  }
}

/* Hide visible labels for selects; keep a11y via visually-hidden in HTML */
.filters .field label {
  color: rgba(255, 255, 255, 0.9);
}

/* Custom select */
.select {
  position: relative;
}
.select select {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 12px 40px 12px 12px;
  font: inherit;
  line-height: 1.2;
  outline: none;
  transition: box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

/* Make the dropdown list itself blue with white text (Chrome/Edge/Firefox) */
.select select option,
.select select optgroup {
  background: var(--color-secondary);
  color: #fff;
}

/* Focus/disabled states */
.select select:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}
.select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  rotate: 45deg;
  pointer-events: none;
}
.select select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Search input */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search i.fa-magnifying-glass {
  position: absolute;
  left: 12px;
  pointer-events: none;
  opacity: 0.9;
}
.search input[type="search"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 12px 44px 12px 36px;
  font: inherit;
  outline: none;
  transition: box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}
.search input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}
.search input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-search {
  position: absolute;
  right: 6px;
  background: #fff;
  color: var(--color-secondary);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-search:hover {
  background: rgba(255, 255, 255, 0.9);
}
.btn-search:active {
  transform: translateY(1px);
}
.btn-search:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* ==================== END: FILTERS & SEARCH STYLES ==================== */
/* ===================== START: PRODUCTS STYLES (compact) ===================== */
:root {
  --product-min: 168px; /* card min width (smaller = denser) */
  --product-gap: 10px; /* spacing between cards */
  --product-radius: 12px;
  --product-pad: 10px;
  --product-media-ratio: 4 / 3; /* shorter than square to reduce height */
  --product-name-size: 0.95rem;
  --product-price-size: 1rem;
  --btn-font-size: 0.9rem;
  --btn-pad-y: 8px;
  --btn-pad-x: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--product-min), 1fr));
  gap: var(--product-gap);
}

/* Card */
.product-card {
  background: #fff;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: var(--product-radius);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: var(--product-media-ratio);
  background: #fff;
}
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: var(--product-pad);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  flex: 1 1 auto;
}

.product-name {
  margin: 0;
  font-size: var(--product-name-size);
  color: var(--text-color);
  font-weight: 700;
  line-height: 1.25;
  min-height: calc(var(--product-name-lines) * 1.25em);
  max-height: calc(var(--product-name-lines) * 1.25em);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--product-name-lines);
  line-clamp: var(--product-name-lines);
}

.product-price {
  margin: 0;
  color: var(--color-secondary);
  font-weight: 800;
  font-size: var(--product-price-size);
}

.product-priceWrap {
  min-height: 1.35em;
  display: flex;
  align-items: flex-start;
}

.favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: #fff;
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  z-index: 2;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease,
    color 120ms ease, border-color 120ms ease;
}
.favorite-toggle i {
  font-size: 16px;
}
.favorite-toggle:hover {
  background: rgba(var(--accent-rgb), 0.08);
}
.favorite-toggle.is-active {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.25);
}

/* Actions row (compact) */
.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  padding: var(--product-pad);
  padding-top: 0;
  align-items: center;
  background: #fff;
  margin-top: auto;
}

.product-actions > * {
  min-width: 0;
}

.product-actions .qty-select {
  grid-column: 1 / -1;
}

.product-actions .btn {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}

.product-actions .qty-stepper {
  min-width: 0;
  grid-template-columns: 34px minmax(36px, 1fr) 34px;
}

.product-actions .qty-stepper-btn {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.product-actions .qty-stepper-input {
  padding-inline: 4px;
}

.qty-select {
  width: 100%;
  display: grid;
  gap: 4px;
  align-content: start;
}

.qty-hint {
  min-height: 1em;
  font-size: 0.66rem;
  line-height: 1;
  color: rgba(100, 116, 139, 0.92);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.qty-hint.is-visible {
  opacity: 1;
}

.qty-unit-label {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(100, 116, 139, 0.9);
  letter-spacing: 0.03em;
  text-align: center;
  margin-top: 2px;
}

.qty-stepper {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(44px, 1fr) 34px;
  align-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.qty-stepper:focus-within {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.qty-stepper-btn {
  appearance: none;
  border: 0;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--color-secondary);
  min-height: 40px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.qty-stepper-btn:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.14);
}

.qty-stepper-btn:disabled {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(100, 116, 139, 0.7);
  cursor: not-allowed;
}

.qty-stepper-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-color);
  padding: 8px 6px;
  font: inherit;
  font-size: var(--btn-font-size);
  font-weight: 700;
  text-align: center;
}

.qty-stepper-input:disabled {
  color: rgba(100, 116, 139, 0.7);
}

.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-select select {
  width: 100%;
  appearance: none;
  background: #fff;
  color: var(--text-color);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: var(--btn-font-size);
}

/* Buttons (compact) */
.btn {
  appearance: none;
  border-radius: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font: inherit;
  font-size: var(--btn-font-size);
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-gradient);
  border-color: var(--color-secondary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-gradient-hover);
}

.btn-ghost {
  background: #fff;
  color: var(--color-secondary);
  border-color: rgba(var(--accent-rgb), 0.28);
}
.btn-ghost:hover {
  background: rgba(var(--accent-warm-rgb), 0.08);
}

/* ----------------- Modal (unchanged, kept for continuity) ----------------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.modal.show {
  display: block;
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.modal-dialog {
  position: relative;
  width: min(860px, 92vw);
  margin: 6vh auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  margin: 0; /* center is handled by grid */
  width: min(860px, 92vw);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 12px;
  background: #fff;
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}
.modal-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.modal-details h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--text-color);
}
.modal-details .price {
  margin: 0 0 6px;
  color: var(--color-secondary);
  font-weight: 800;
}
.modal-details .desc {
  margin: 0 0 12px;
  color: var(--text-color);
  opacity: 0.9;
}
.modal-inserts {
  margin: auto 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  display: block;
  width: 100%;
  order: 2;
}
.modal-inserts h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-inserts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-inserts li {
  margin: 0;
}
.modal-inserts a {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.08);
}
.modal-inserts a:hover {
  background: rgba(var(--accent-rgb), 0.14);
}
.modal-keywords {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.05);
  display: block;
  width: 100%;
  order: 3;
}
.modal-keywords h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-keywords ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-keywords li {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.8rem;
}
.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  order: 1;
}
.modal-actions .qty-select select {
  min-width: 100px;
}
.modal-favorite-toggle {
  white-space: nowrap;
}
.modal-favorite-toggle.is-active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.modal-favorite-toggle.is-active:hover {
  background: var(--color-secondary-hover);
}
/* Bought together panel */
.bought-together-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(50% + (var(--modal-h) / 2) + 14px);
  width: min(920px, 94vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  padding: 8px 10px 10px;
  display: none;
  z-index: 2100;
}
.bought-together-panel.show {
  display: block;
}
.bought-together-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.bought-together-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-color);
}
.bought-together-controls {
  display: flex;
  gap: 8px;
}
.bought-together-nav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.bought-together-viewport {
  overflow: hidden;
  max-height: 120px;
}
.bought-together-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  align-items: center;
}
.bought-together-track::-webkit-scrollbar {
  height: 4px;
}
.bought-together-track::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
}
.bought-together-card {
  min-width: 210px;
  max-width: 240px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 10px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  background: #fff;
}
.bought-together-card img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  grid-row: 1 / span 2;
  grid-column: 1;
}
.bought-together-name {
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-color);
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bought-together-price {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--color-secondary);
  grid-column: 2;
  grid-row: 2;
}
.bought-together-card .btn {
  width: auto;
  padding: 4px 8px;
  font-size: 0.7rem;
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}
@media (max-width: 720px) {
  .bought-together-panel {
    top: auto;
    bottom: 16px;
    width: min(520px, 94vw);
  }
}
/* Collection modal: larger layout with a scrollable product grid */
.modal-dialog--collection {
  width: min(1100px, 94vw);
  height: min(82vh, 92vh);
}
.modal-collection-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 16px;
}
.modal-collection-body h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
}
.collection-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
@media (max-width: 720px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}
/* ====================== END: PRODUCTS STYLES (compact) ====================== */
/* ---------- Modal sizing & layout ---------- */
:root {
  --modal-w: 900px; /* desktop width cap */
  --modal-h: 560px; /* desktop height cap */
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}
.modal.show {
  display: grid;
  place-items: center;
}
.modal--secondary {
  z-index: 2200;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Dialog has a fixed-but-responsive box */
.modal-dialog {
  position: relative;
  width: min(var(--modal-w), 92vw);
  height: min(var(--modal-h), 90vh);
  margin: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;

  display: grid;
  /* single row — our .modal-body fills it */
  grid-template-rows: 1fr;
}

/* Close button stays the same */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 12px;
  background: #fff;
  color: var(--color-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Body fills the fixed dialog, two columns on desktop */
.modal-body {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* image | details */
  gap: 16px;
  padding: 16px;
  overflow: hidden; /* prevent content from growing the dialog */
}

/* Square image well (never stretches) */
#modalProductImg {
  width: 100%;
  height: auto; /* allow aspect-ratio to size height */
  aspect-ratio: 1 / 1; /* force a square box */
  object-fit: contain; /* letterbox inside the square */
  background: linear-gradient(
    180deg,
    var(--surface-warm-1),
    var(--surface-warm-2)
  );
  border-radius: 12px;
  display: block;
}

/* Right side can scroll if content is long */
.modal-details {
  min-width: 0;
  overflow: auto;
  padding-right: 4px; /* tiny gutter to avoid clipping scrollbar */
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.modal-details h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--text-color);
}
.modal-details .price {
  margin: 0 0 6px;
  color: var(--color-secondary);
  font-weight: 800;
}
.modal-details .desc {
  margin: 0 0 12px;
  color: var(--text-color);
  opacity: 0.9;
}

/* Banners: show pointer when a banner is clickable */
.banner-slide.is-link {
  cursor: pointer;
}

/* Mobile: stack, keep a sensible height */
@media (max-width: 720px) {
  .modal-dialog {
    width: min(540px, 94vw);
    height: min(520px, 90vh);
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
}

/* ======================= START: FOOTER STYLES ======================= */
.site-footer {
  background: transparent;
  color: var(--text-color);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 34px 12px 26px;
  margin-top: 20px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.site-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 28px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.footer-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(68, 68, 68, 0.78);
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-color);
}

.footer-tagline {
  margin: 0;
  max-width: 620px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(23, 50, 74, 0.84);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 2px 0 0;
  padding: 0;
}

.footer-link {
  color: var(--text-color);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.12s ease, opacity 0.12s ease;
}

.footer-link-btn {
  font: inherit;
}

.footer-link--strong {
  font-weight: 800;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--color-secondary);
}

.footer-meta {
  margin: 4px 0 0;
  max-width: 720px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(68, 68, 68, 0.68);
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(68, 68, 68, 0.68);
}

/* future-proof links in the footer */
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-footer {
    display: none;
  }
}
/* ======================== END: FOOTER STYLES ======================== */

/* ============ START: BODY BACKGROUND — OUTLINE RAINDROPS (SUBTLE) ============ */
/* Fewer drops via larger spacing; outline-only teardrops using SVG tiles.
   Tweak:
     --drop-size       → spacing (bigger = fewer drops)
     stroke-opacity    → visibility (0.02–0.06 recommended)
     stroke-width      → line weight (keep light) */
:root {
  --drop-size: 30px; /* was 44px — increased for lower density */
}

body {
  background-color: var(--bg-color);
  background-image:
    /* Layer 1: rotated +12° */ url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'>\
  <g fill='none' stroke='%23d42027' stroke-opacity='0.03' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke' transform='rotate(12 12 12)'>\
    <path d='M12 2 C12 2 6 10 6 14 a6 6 0 0 0 12 0 C18 10 12 2 12 2 Z'/>\
  </g>\
</svg>"),
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'>\
  <g fill='none' stroke='%23d42027' stroke-opacity='0.035' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke' transform='rotate(-10 12 12)'>\
    <path d='M12 2 C12 2 6 10 6 14 a6 6 0 0 0 12 0 C18 10 12 2 12 2 Z'/>\
  </g>\
</svg>"),
    radial-gradient(
      68% 100% at 50% 0%,
      rgba(var(--accent-rgb), 0.03) 0%,
      rgba(var(--accent-rgb), 0) 60%
    );
  background-size: var(--drop-size) var(--drop-size),
    var(--drop-size) var(--drop-size), 100% 260px;
  background-position: 0 0,
    calc(var(--drop-size) / 2) calc(var(--drop-size) / 2), 0 0;
  background-repeat: repeat, repeat, no-repeat;
}

@media (min-width: 720px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h, 0px);
    background: rgba(255, 255, 255, 0.985);
    opacity: 1;
    pointer-events: none;
    z-index: 1140;
    transition: height 0.16s ease;
  }

  body.has-pinned-filters::before {
    height: calc(var(--header-h, 0px) + var(--filters-h, 0px) + 8px);
  }
}
/* ============== END: BODY BACKGROUND — OUTLINE RAINDROPS (SUBTLE) ============== */

/* ===================== PRODUCT CARD POLISH (square + size caps) ===================== */

/* 1) Product media defaults + size caps */
:root {
  --product-media-ratio: 4 / 3;
  --product-card-max-w: 360px;
  --product-card-max-h: 520px;
}

.product-card {
  max-width: var(--product-card-max-w);
  max-height: var(--product-card-max-h);
  height: 100%;
}

.product-media img {
  object-fit: cover;
}

.product-image {
  aspect-ratio: var(--product-media-ratio);
  background: #fff;
  position: relative;
}
.product-image img,
.product-image .product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* (Optional) make each column a touch wider for a more premium look */
/* .products-grid{ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } */

/* ===================== DESKTOP PRODUCT ALIGNMENT ===================== */
@media (min-width: 980px) {
  .products-grid:not(.products-grid--promo-carousel) {
    --product-min: 176px;
    --product-gap: 10px;
    --product-radius: 10px;
    --product-pad: 8px;
    --product-media-ratio: 1 / 1;
    --product-name-lines: 3;
    --product-name-size: 0.8rem;
    --product-price-size: 0.95rem;
    --btn-font-size: 0.8rem;
    --btn-pad-y: 6px;
    --btn-pad-x: 8px;
    --product-card-max-w: 225px;
    --product-card-max-h: 410px;
    justify-items: center;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-card {
    width: 100%;
    max-width: var(--product-card-max-w);
    max-height: var(--product-card-max-h);
  }

  .products-grid:not(.products-grid--promo-carousel) .product-media,
  .products-grid:not(.products-grid--promo-carousel) .product-image {
    aspect-ratio: 1 / 1;
    background: #fff;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-media img,
  .products-grid:not(.products-grid--promo-carousel) .product-image img,
  .products-grid:not(.products-grid--promo-carousel) .product-image .product-img {
    box-sizing: border-box;
    object-fit: contain;
    padding: 10px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
    flex: 1 1 auto;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-name {
    min-height: calc(3 * 1.25em);
    max-height: calc(3 * 1.25em);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-priceWrap {
    min-height: 1.35em;
    display: flex;
    align-items: flex-start;
  }

  .products-grid:not(.products-grid--promo-carousel) .favorite-toggle {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .products-grid:not(.products-grid--promo-carousel) .favorite-toggle i {
    font-size: 13px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-actions {
    gap: 5px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-actions .qty-stepper {
    grid-template-columns: 38px minmax(42px, 1fr) 38px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-actions .qty-stepper-btn {
    min-height: 38px;
  }

  .products-grid:not(.products-grid--promo-carousel) .qty-stepper {
    border-radius: 10px;
  }

  .products-grid:not(.products-grid--promo-carousel) .qty-stepper-btn {
    min-height: 38px;
    font-size: 1.05rem;
  }

  .products-grid:not(.products-grid--promo-carousel) .qty-stepper-input {
    padding-inline: 2px;
    font-size: 0.88rem;
  }

  .products-area--promo-carousel {
    overflow: visible;
  }

  .products-grid--promo-carousel {
    display: block;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0 2px 6px;
    touch-action: pan-y;
    --product-radius: 10px;
    --product-pad: 8px;
    --product-name-lines: 3;
    --product-name-size: 0.8rem;
    --product-price-size: 0.95rem;
    --btn-font-size: 0.8rem;
    --btn-pad-y: 6px;
    --btn-pad-x: 8px;
    --product-card-max-w: 225px;
    --product-card-max-h: 410px;
  }

  .products-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    width: max-content;
    will-change: transform;
  }

  .products-grid--promo-carousel .product-card {
    flex: 0 0 var(--product-card-max-w);
    width: 100%;
    max-width: var(--product-card-max-w);
    height: auto;
    max-height: none;
  }

  .products-grid--promo-carousel .product-image,
  .products-grid--promo-carousel .product-media {
    aspect-ratio: 1 / 1;
    background: #fff;
  }

  .products-grid--promo-carousel .product-media img,
  .products-grid--promo-carousel .product-image img,
  .products-grid--promo-carousel .product-image .product-img {
    box-sizing: border-box;
    object-fit: contain;
    padding: 10px;
  }

  .products-grid--promo-carousel .product-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
    flex: 1 1 auto;
  }

  .products-grid--promo-carousel .product-name {
    min-height: calc(3 * 1.25em);
    max-height: calc(3 * 1.25em);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.25;
  }

  .products-grid--promo-carousel .product-priceWrap {
    min-height: 1.35em;
    display: flex;
    align-items: flex-start;
  }

  .products-grid--promo-carousel .favorite-toggle {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .products-grid--promo-carousel .favorite-toggle i {
    font-size: 13px;
  }

  .products-grid--promo-carousel .product-actions {
    gap: 5px;
  }

  .products-grid--promo-carousel .product-actions .qty-stepper {
    grid-template-columns: 38px minmax(42px, 1fr) 38px;
  }

  .products-grid--promo-carousel .product-actions .qty-stepper-btn {
    min-height: 38px;
  }

  .products-grid--promo-carousel .qty-stepper {
    border-radius: 10px;
  }

  .products-grid--promo-carousel .qty-stepper-btn {
    min-height: 38px;
    font-size: 1.05rem;
  }

  .products-grid--promo-carousel .qty-stepper-input {
    padding-inline: 2px;
    font-size: 0.88rem;
  }
}
/* =================== END: DESKTOP PRODUCT ALIGNMENT =================== */

/* ===================== Loader & Toast (AdminUI) ===================== */
/* Fullscreen backdrop */
.loaderBackdrop {
  position: fixed;
  inset: 0;
  display: none; /* shown via inline style in JS */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(140%) blur(2px);
  z-index: 9999; /* high enough to sit above everything */
}

/* Centered card */
.loaderInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Spinner */
.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-secondary); /* theme accent */
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loaderText {
  font-weight: 600;
  color: #111827;
}

/* Toast container (top-right stack) */
.toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10000;
}

/* Toast item */
.toast {
  min-width: 260px;
  max-width: 380px;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--color-accent); /* overridden inline per type */
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 16px 38px rgba(var(--accent-rgb), 0.18);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Enter state */
.toast.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Message + close */
.toastMessage {
  line-height: 1.3;
  font-weight: 600;
}
.toastClose {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: #0f172a;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ===================== START: AUTH + PROFILE UI ===================== */
:root {
  --auth-brand-start: var(--color-secondary);
  --auth-brand-end: var(--color-accent);
  --auth-ink: #0b2a33;
  --auth-muted: rgba(15, 23, 42, 0.65);
  --auth-border: rgba(var(--accent-rgb), 0.18);
  --auth-shadow: 0 28px 70px rgba(var(--accent-rgb), 0.28);
}

.header-actions {
  align-items: center;
}

.profile-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.3);
  transition: background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}
.profile-action:hover {
  background: var(--color-secondary-hover);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.36);
}
.profile-action i {
  font-size: 16px;
}
.profile-action:not(.is-logged-in) i {
  display: none;
}
.profile-action.is-logged-in {
  color: #fff;
}
.profile-action.is-pending,
.profile-action:disabled {
  cursor: wait;
  opacity: 0.78;
  box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.2);
}

.profile-alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-warm-rgb), 0.18);
  flex: 0 0 auto;
}

.profile-alert-dot.is-hidden {
  display: none;
}

.profile-alert-dot--action {
  position: absolute;
  top: 5px;
  right: 5px;
}

.orders-action {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-secondary);
  background: #fff;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.2);
  transition: background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}
.orders-action:hover {
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.28);
}
.orders-action.is-logged-in {
  display: inline-flex;
}
.orders-badge {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 0 0 2px rgba(var(--accent-warm-rgb), 0.2);
}
.orders-badge.is-hidden {
  display: none;
}

.modal--orders .orders-dialog {
  width: min(900px, 94vw);
  height: min(680px, 92vh);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.orders-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.orders-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-color);
}
.orders-header p {
  margin: 6px 0 0;
  color: rgba(15, 23, 42, 0.6);
}

.orders-list,
.orders-detail {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

.order-card {
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
}
.order-card.is-updated {
  border-color: rgba(var(--accent-warm-rgb), 0.45);
  box-shadow: 0 12px 28px rgba(var(--accent-warm-rgb), 0.12);
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-title {
  font-weight: 700;
  color: var(--text-color);
}

.order-status {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.order-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.order-update-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(var(--accent-warm-rgb), 0.35);
  background: rgba(var(--accent-warm-rgb), 0.12);
}
.order-expired-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.12);
}
.order-card.is-expired {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.1);
}

.order-summary {
  font-weight: 700;
  color: var(--text-color);
}

.order-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-detail-block {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.order-detail-block h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
}

.order-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
}
.order-item-row:last-child {
  border-bottom: 0;
}

.order-items-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.5fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
  font-size: 0.9rem;
}
.order-items-grid--head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
}
.order-items-grid--head span {
  padding-bottom: 6px;
}
.order-item-name {
  font-weight: 600;
}
.order-items-empty {
  padding: 10px 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.85rem;
}
.order-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.order-summary-row span:first-child {
  color: rgba(15, 23, 42, 0.6);
  font-weight: 600;
}
.order-summary-row--total {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
}

.order-change-entry {
  padding: 10px 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}
.order-change-entry:first-child {
  border-top: none;
  padding-top: 0;
}
.order-change-date {
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.5);
  margin-bottom: 4px;
}
.order-change-summary {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.order-change-reason {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
  margin-bottom: 4px;
}
.order-change-account-note {
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 6px;
}

.modal--checkout .checkout-dialog {
  width: min(820px, 94vw);
  height: min(680px, 92vh);
  padding: 20px;
}

.checkout-dialog--small {
  width: min(560px, 92vw);
  height: auto;
}

.checkout-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-eyebrow {
  margin: 0 0 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
}

.checkout-step-label {
  margin: 6px 0 0;
  color: rgba(15, 23, 42, 0.6);
}

.checkout-steps {
  display: inline-flex;
  gap: 10px;
}

.checkout-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-secondary);
  background: #fff;
}
.checkout-step.is-active {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.checkout-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 16px;
  min-height: 0;
}

.checkout-step-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.checkout-step-pane.is-hidden {
  display: none;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-label {
  font-weight: 700;
  color: var(--text-color);
}

.checkout-input {
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-color);
  background: #fff;
}
.checkout-textarea {
  resize: vertical;
}

.checkout-link {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--color-secondary);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.checkout-address-help {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: rgba(var(--accent-rgb), 0.05);
  color: var(--text-color);
  font-size: 0.92rem;
  line-height: 1.45;
}

.checkout-address-help a {
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: underline;
}

.checkout-address-help strong {
  color: var(--color-secondary);
}

/* Delivery type toggle */
.checkout-toggle-group {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.checkout-toggle-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.checkout-toggle-btn.is-active {
  background: var(--color-secondary, #d42027);
  color: #fff;
}

.checkout-toggle-btn:not(.is-active):hover {
  background: rgba(var(--accent-rgb), 0.06);
}

/* Delivery fee notice */
.checkout-delivery-fee-notice {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.06);
  font-size: 0.9rem;
  color: var(--text-color);
}

.checkout-delivery-fee-notice .fee-free {
  text-decoration: line-through;
  opacity: 0.5;
}

.checkout-delivery-fee-notice .fee-free-msg {
  color: var(--color-secondary);
  font-weight: 600;
}

.checkout-collection-notice {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: rgba(var(--accent-rgb), 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-collection-title,
.checkout-collection-address {
  margin: 0;
  color: var(--text-color);
}

.checkout-collection-title {
  font-weight: 600;
}

.checkout-collection-map-link {
  align-self: flex-start;
  color: var(--color-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
}

.checkout-collection-map-link:hover {
  color: var(--color-secondary-hover);
}

.checkout-approx-notice {
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: -4px;
}

.checkout-geolocation-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-geolocation-status.is-error {
  background: #fdecea;
  color: #b71c1c;
}

.checkout-distance-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecea;
  color: #b71c1c;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pac-container {
  z-index: 10060;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 18px 40px rgba(var(--accent-rgb), 0.18);
  font-family: inherit;
}
.pac-item {
  padding: 8px 12px;
}
.pac-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
}
.pac-item-query {
  font-weight: 600;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Session Expired Modal --- */
.modal--session-expired .session-expired-dialog {
  width: min(360px, 88vw);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--auth-shadow);
  text-align: center;
}
.session-expired-brand {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 55%),
    linear-gradient(140deg, var(--auth-brand-start), var(--auth-brand-end));
  padding: 2rem 2rem 1.5rem;
  display: flex;
  justify-content: center;
}
.session-expired-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  color: #fff;
}
.session-expired-body {
  padding: 1.5rem 2rem 2rem;
  background: #fff;
}
.session-expired-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0 0 0.4rem;
}
.session-expired-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.session-expired-actions {
  display: flex;
  justify-content: center;
}
.session-expired-btn {
  min-width: 140px;
  padding: 10px 28px;
}

.modal--auth .auth-dialog {
  width: min(980px, 94vw);
  height: min(600px, 92vh);
  box-shadow: var(--auth-shadow);
  padding: 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  height: 100%;
}

.auth-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-panel--brand {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 55%),
    linear-gradient(140deg, var(--auth-brand-start), var(--auth-brand-end));
}

.auth-panel--form {
  background: #fff;
  color: var(--auth-ink);
  overflow-y: auto;
}

.auth-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin: 0;
  opacity: 0.75;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

.auth-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.auth-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.auth-bullets li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--auth-border);
  padding-bottom: 10px;
}

.auth-tab {
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab.is-active {
  color: var(--auth-ink);
  background: rgba(var(--accent-rgb), 0.12);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form.is-hidden {
  display: none;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(11, 42, 51, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: #f7fbfd;
  font: inherit;
}

.auth-input:focus {
  outline: 2px solid rgba(var(--accent-rgb), 0.25);
  border-color: rgba(var(--accent-rgb), 0.45);
}

.auth-password {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-toggle {
  border: 1px solid var(--auth-border);
  background: #fff;
  color: var(--auth-ink);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
}

.auth-help {
  display: flex;
  justify-content: flex-end;
}

.auth-link {
  border: 0;
  background: transparent;
  color: var(--color-secondary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-message {
  min-height: 18px;
  font-size: 0.85rem;
  color: var(--auth-muted);
  margin: 0;
}

.auth-message[data-type="error"] {
  color: #cc3f3f;
}

.auth-message[data-type="success"] {
  color: #15803d;
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-switch {
  border-radius: 999px;
}

.modal--profile .profile-dialog {
  width: min(620px, 94vw);
  height: min(720px, 90vh);
  box-shadow: var(--shadow-soft);
}

.profile-shell {
  height: 100%;
  min-height: 0;
  padding: 24px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
}

.profile-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

.profile-header p {
  margin: 4px 0 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.08);
  position: sticky;
  top: 0;
  z-index: 3;
}

.profile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  background: transparent;
  color: rgba(15, 23, 42, 0.7);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease,
    box-shadow 180ms ease;
}

.profile-tab:hover {
  color: var(--text-color);
  transform: translateY(-1px);
}

.profile-tab.is-active {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.18);
}

.profile-panel[hidden] {
  display: none !important;
}

.profile-panel {
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-field--full {
  grid-column: 1 / -1;
}

.profile-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(11, 42, 51, 0.7);
}

.profile-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: #f7fbfd;
  font: inherit;
}

.profile-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.profile-account-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.profile-account-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.profile-account-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color);
}

.profile-account-header p,
.profile-account-meta {
  margin: 4px 0 0;
  color: rgba(15, 23, 42, 0.64);
  font-size: 0.88rem;
}

.profile-account-balance {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--color-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.profile-account-balance.is-credit {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.profile-account-balance.is-debit {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.profile-account-history {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-account-row {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-account-row-main,
.profile-account-row-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-account-row-main span,
.profile-account-row-meta span {
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.84rem;
}

.profile-account-row .is-credit {
  color: #15803d;
  font-weight: 700;
}

.profile-account-row .is-debit {
  color: #b91c1c;
  font-weight: 700;
}

.profile-account-empty {
  padding: 14px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.05);
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-panel--brand {
    min-height: 180px;
  }
  .modal--auth .auth-dialog {
    height: min(680px, 92vh);
  }
}

@media (max-width: 680px) {
  .profile-form {
    grid-template-columns: 1fr;
  }
  .profile-actions {
    flex-direction: column;
  }
  .profile-action {
    padding: 6px 10px;
  }
  .profile-account-header,
  .profile-account-row-main,
  .profile-account-row-meta {
    flex-direction: column;
  }
}
/* ====================== END: AUTH + PROFILE UI ====================== */

/* ===================== START: MOBILE UI ALIGNMENT ===================== */
.header-nav {
  display: none;
}

@media (min-width: 721px) {
  .header-nav {
    display: flex;
  }
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1900;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  color: var(--color-secondary);
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(var(--accent-rgb), 0.07);
}

.mobile-menu-close {
  display: none;
  align-self: center;
  background: #f7fbfd;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 12px;
  width: 36px;
  height: 36px;
  color: var(--text-color);
  font-size: 0.95rem;
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}

.mobile-nav-top {
  display: none;
}

.mobile-only-flex,
.mobile-only-inline,
.mobile-only-grid {
  display: none !important;
}

.desktop-only-flex,
.desktop-only-inline,
.desktop-only-grid {
}

.mobile-footer-nav {
  display: none;
}

.mobile-footer-link,
.mobile-footer-search {
  font: inherit;
}

.modal--mobile-search {
  z-index: 1980;
}

.mobile-search-dialog {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(460px, 100vw);
  height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.12), transparent 34%),
    linear-gradient(180deg, #fff9f3 0%, #ffffff 18%, #fffdfb 100%);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-rows: auto 1fr;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.modal--mobile-search.show .mobile-search-dialog {
  transform: translateX(0);
}

.mobile-search-header {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.mobile-search-shell {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.mobile-search-toolbar {
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  z-index: 4;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
  transition:
    opacity 160ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal--mobile-search.is-results-scrolling .mobile-search-toolbar {
  opacity: 0;
  transform: translateY(calc(-100% - 10px));
  pointer-events: none;
}

.modal--mobile-search.is-toolbar-overlay .mobile-search-toolbar,
.modal--mobile-search.is-toolbar-docked .mobile-search-toolbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-search-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.mobile-search-field {
  min-width: 0;
}

.mobile-search-field--full {
  grid-column: 1 / -1;
}

.mobile-search-controls .search input[type="search"],
.mobile-search-controls .select select {
  background: #ffffff;
  color: var(--text-color);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.mobile-search-controls .search input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.mobile-search-controls .search i.fa-magnifying-glass {
  color: var(--color-secondary);
  opacity: 0.85;
}

.mobile-search-controls .search input[type="search"]:focus,
.mobile-search-controls .select select:focus {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.mobile-search-status {
  min-height: 1.1em;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
}

.mobile-search-results {
  position: absolute;
  inset: 0 18px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 4px 8px 0;
  z-index: 1;
}

.modal--mobile-search.is-toolbar-docked .mobile-search-results {
  padding-top: calc(var(--mobile-search-toolbar-h, 0px) + 10px);
}

.mobile-search-empty {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.04);
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.mobile-search-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.mobile-search-card-media {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  overflow: hidden;
}

.mobile-search-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.mobile-search-card-body {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.mobile-search-card-top {
  display: block;
}

.mobile-search-card-name {
  margin: 0;
  min-width: 0;
  color: var(--text-color);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-search-card-priceWrap {
  min-height: 1.2em;
  display: flex;
  align-items: center;
}

.mobile-search-card .product-price {
  font-size: 0.95rem;
  line-height: 1;
}

.mobile-search-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: stretch;
  justify-items: stretch;
}

.mobile-search-card-qty {
  min-width: 0;
  width: auto;
  justify-self: start;
}

.mobile-search-card .qty-hint {
  min-height: 0;
  font-size: 0.58rem;
}

.mobile-search-card .qty-stepper {
  width: 104px;
  grid-template-columns: 28px 48px 28px;
  height: 30px;
  border-radius: 12px;
  align-items: stretch;
}

.mobile-search-card .qty-stepper-btn {
  min-height: 30px;
  height: 30px;
  padding: 0;
  font-size: 0.8rem;
}

.mobile-search-card .qty-stepper-input {
  height: 30px;
  padding-block: 0;
  padding-inline: 2px;
  font-size: 0.72rem;
  line-height: 30px;
}

.mobile-search-card .btn {
  min-height: 28px;
  font-size: 0.7rem;
  padding-inline: 7px;
  border-radius: 9px;
}

.mobile-search-card-favorite {
  position: static;
  top: auto;
  right: auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  box-shadow: none;
  background: #fff;
  border-color: rgba(var(--accent-rgb), 0.3);
}

.mobile-search-card-favorite i {
  font-size: 12px;
}

.mobile-search-card-favorite--action {
  width: 44px;
  height: auto;
  min-height: 28px;
  border-radius: 9px;
  justify-self: stretch;
  align-self: stretch;
  margin-left: 0;
  padding: var(--btn-pad-y) 0;
  line-height: 1;
  box-shadow: none;
}

.mobile-search-card-favorite--action.is-active {
  box-shadow: none;
}

.modal-sheet-header {
  display: none;
}

.modal-sheet-heading {
  display: grid;
  gap: 3px;
}

.modal-sheet-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.modal-sheet-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text-color);
}

.modal-mobile-close {
  display: none;
}

body.modal-open .mobile-footer-nav,
body.cart-open .mobile-footer-nav,
body.mobile-menu-open .mobile-footer-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

@media (max-width: 720px) {
  * {
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-tap-highlight-color: transparent;
  }

  *::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .mobile-only-flex {
    display: flex !important;
  }

  .mobile-only-inline {
    display: inline-block !important;
  }

  .mobile-only-grid {
    display: grid !important;
  }

  .desktop-only-flex,
  .desktop-only-inline,
  .desktop-only-grid {
    display: none !important;
  }

  #appGrid {
    padding-top: calc(var(--header-h, 0px) + 8px);
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: none;
    transform: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    margin: 0;
    z-index: 1901;
  }

  .header-top-band {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
    grid-area: hamburger;
    z-index: 2;
  }

  .mobile-menu-close {
    display: grid;
  }

  .site-header .header-inner {
    position: relative;
    grid-template-columns: 40px 1fr auto;
    grid-template-rows: auto;
    grid-template-areas: "hamburger brand actions";
    gap: 8px;
    min-height: 58px;
    padding: 10px 12px;
  }

  .brand {
    grid-area: brand;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .brand #siteLogo {
    height: clamp(30px, 7.8vw, 38px);
    max-width: 132px;
  }

  .header-actions {
    grid-area: actions;
    gap: 6px;
    justify-self: end;
    z-index: 2;
  }

  .header-actions-main {
    display: none;
  }

  .header-actions-icons {
    gap: 6px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  #mobileProfileBtn {
    position: relative;
  }

  .header-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 82vw);
    height: 100vh;
    background: #ffffff;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    padding: 16px 16px 28px;
    gap: 6px;
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0 24px 24px 0;
    border-right: 1px solid rgba(var(--accent-rgb), 0.08);
    justify-content: flex-start;
  }

  .header-nav.is-open {
    transform: translateX(0);
  }

  .mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }

  .mobile-nav-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-nav-brand-logo {
    width: 132px;
    height: auto;
    object-fit: contain;
  }

  .header-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 14px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
    border: 0;
    background: transparent;
  }

  .header-nav a:hover,
  .header-nav a:active {
    background: rgba(var(--accent-rgb), 0.06);
    color: var(--color-secondary);
    text-decoration: none;
  }

  .header-nav a + a {
    border-top: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: 0;
  }

  .header-nav a + a:hover {
    border-radius: 14px;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--accent-rgb), 0.12);
  }

  .mobile-nav-actions .orders-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
    border: 0;
    padding: 14px 12px;
    background: transparent;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
  }

  .mobile-nav-actions .orders-action:hover,
  .mobile-nav-actions .orders-action:active {
    background: rgba(var(--accent-rgb), 0.06);
    color: var(--color-secondary);
  }

  .mobile-nav-actions .orders-action + .orders-action {
    border-top: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: 0;
  }

  .mobile-nav-actions .orders-action + .orders-action:hover,
  .mobile-nav-actions .orders-action + .orders-action:active {
    border-radius: 14px;
  }

  #filtersSearch {
    display: none;
  }

  .section-box {
    padding: 12px;
    border-radius: 10px;
  }

  .banner {
    padding: 6px;
    border-radius: 12px;
  }

  #bannerCarousel {
    margin-top: 6px;
  }

  .banner-viewport {
    aspect-ratio: 3.2 / 1;
    min-height: clamp(82px, 12vh, 102px);
    border-radius: 14px;
    background: #fff;
  }

  .banner-slide {
    object-fit: cover;
    object-position: center center;
  }

  .banner-dots {
    bottom: 8px;
  }

  .products-grid:not(.products-grid--promo-carousel) {
    --product-min: 0;
    --product-gap: 10px;
    --product-name-lines: 2;
    --product-name-size: 0.78rem;
    --product-price-size: 0.9rem;
    --product-pad: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-card {
    max-width: none;
    border-radius: 14px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-media,
  .products-grid:not(.products-grid--promo-carousel) .product-image {
    aspect-ratio: 1 / 1;
    background: #fff8ef;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-media img,
  .products-grid:not(.products-grid--promo-carousel) .product-image img {
    object-fit: contain;
    padding: 10px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-body {
    gap: 4px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-priceWrap {
    min-height: 1.2em;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-actions {
    gap: 5px;
    padding: 0 9px 9px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-actions .qty-stepper {
    grid-template-columns: 32px minmax(34px, 1fr) 32px;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-actions .qty-stepper-btn {
    min-height: 34px;
    font-size: 0.95rem;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-actions .qty-stepper-input {
    font-size: 0.78rem;
  }

  .products-grid:not(.products-grid--promo-carousel) .product-actions .btn {
    min-height: 34px;
    font-size: 0.76rem;
  }

  .products-grid:not(.products-grid--promo-carousel) .favorite-toggle {
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
  }

  .products-grid:not(.products-grid--promo-carousel) .favorite-toggle i {
    font-size: 12px;
  }

  .products-area--promo-carousel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: clamp(10px, 1.8vh, 18px) 8px 0;
    overflow: hidden;
  }

  .products-grid--promo-carousel {
    display: block;
    min-height: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    touch-action: pan-x pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .products-grid--promo-carousel .products-carousel-track {
    display: flex;
    gap: 12px;
    padding-inline: 2px;
    align-items: flex-start;
    width: max-content;
  }

  .products-grid--promo-carousel .product-card {
    flex: 0 0 min(60vw, 214px);
    max-width: min(60vw, 214px);
    height: auto;
    max-height: 100%;
    border-radius: 20px;
    box-shadow: 0 18px 32px rgba(var(--accent-rgb), 0.05);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .products-grid--promo-carousel .product-media,
  .products-grid--promo-carousel .product-image {
    aspect-ratio: 17 / 10;
    background: #fff;
  }

  .products-grid--promo-carousel .product-media img,
  .products-grid--promo-carousel .product-image img,
  .products-grid--promo-carousel .product-image .product-img {
    box-sizing: border-box;
    object-fit: contain;
    padding: 10px;
  }

  .products-grid--promo-carousel .product-body {
    gap: 3px;
    padding: 8px 9px 3px;
  }

  .products-grid--promo-carousel .product-name {
    --product-name-lines: 2;
    min-height: calc(2 * 1.18em);
    max-height: calc(2 * 1.18em);
    font-size: 0.79rem;
    line-height: 1.18;
  }

  .products-grid--promo-carousel .product-price {
    font-size: 0.92rem;
  }

  .products-grid--promo-carousel .product-actions {
    gap: 5px;
    padding: 0 9px 9px;
  }

  .products-grid--promo-carousel .product-actions .qty-stepper {
    grid-template-columns: 30px minmax(36px, 1fr) 30px;
    min-height: 30px;
    align-items: stretch;
    border-radius: 10px;
  }

  .products-grid--promo-carousel .product-actions .qty-stepper-btn,
  .products-grid--promo-carousel .product-actions .qty-stepper-input,
  .products-grid--promo-carousel .product-actions .btn {
    min-height: 30px;
    font-size: 0.72rem;
  }

  .products-grid--promo-carousel .product-actions .qty-stepper-btn,
  .products-grid--promo-carousel .product-actions .qty-stepper-input {
    height: 100%;
  }

  .products-grid--promo-carousel .product-actions .qty-stepper-btn {
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
  }

  .products-grid--promo-carousel .product-actions .qty-stepper-input {
    padding-block: 0;
    padding-inline: 4px;
  }

  .products-grid--promo-carousel .favorite-toggle {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .products-grid--promo-carousel .favorite-toggle i {
    font-size: 12px;
  }

  .modal-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh;
    border-radius: 0 !important;
  }

  .modal-dialog--product {
    grid-template-rows: auto 1fr;
    background:
      radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.1), transparent 36%),
      linear-gradient(180deg, #fff8f2 0%, #ffffff 18%, #fffdfb 100%);
  }

  .modal-dialog--product > .modal-close {
    display: none;
  }

  .modal-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .modal-dialog--product .modal-mobile-close {
    position: static;
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .modal-dialog--product .modal-body {
    height: auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px 18px;
    align-content: start;
  }

  .modal-dialog--product .modal-details {
    overflow: visible;
    min-height: auto;
    padding-right: 0;
    gap: 10px;
  }

  .modal-dialog--product .modal-details h3 {
    font-size: 1.02rem;
    line-height: 1.28;
  }

  .modal-dialog--product .modal-details .price {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .modal-dialog--product .modal-details .desc {
    margin-bottom: 4px;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .modal-dialog--product #modalProductImg,
  .modal-dialog--product #relatedModalProductImg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 16px;
    background: #fff8ef;
  }

  .modal-dialog--product .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .modal-dialog--product .modal-actions .qty-select,
  .modal-dialog--product .modal-actions .btn {
    width: 100%;
  }

  .modal-dialog--product .modal-actions .qty-stepper {
    min-width: 0;
  }

  .mobile-footer-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    min-height: 72px;
    padding: 12px 90px 12px 18px;
    border-radius: 26px;
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(16px);
    z-index: 1186;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-footer-link {
    flex: 0 0 88px;
    min-width: 88px;
    display: grid;
    justify-items: center;
    gap: 5px;
    align-content: center;
    color: rgba(23, 50, 74, 0.7);
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .mobile-footer-link i {
    font-size: 1.1rem;
    line-height: 1;
  }

  .mobile-footer-link span {
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .mobile-footer-search {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    display: grid;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: 999px;
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 16px 30px rgba(var(--accent-rgb), 0.28);
    transform: translateY(-50%);
  }

  .mobile-footer-search i {
    font-size: 1.16rem;
    line-height: 1;
  }

  .mobile-footer-search span {
    display: none;
  }

  .mobile-search-dialog {
    width: 100vw;
    height: 100vh;
  }

  .mobile-search-shell {
    padding: 0;
  }

  .mobile-search-controls {
    gap: 8px;
  }

  .mobile-search-toolbar {
    left: 16px;
    right: 16px;
    padding: 8px;
    border-radius: 16px;
  }

  .mobile-search-controls .search input[type="search"] {
    min-height: 38px;
    padding: 8px 38px 8px 32px;
    font-size: 0.82rem;
    border-radius: 12px;
  }

  .mobile-search-controls .select select {
    min-height: 34px;
    padding: 7px 26px 7px 9px;
    font-size: 0.74rem;
    border-radius: 10px;
  }

  .mobile-search-status {
    font-size: 0.72rem;
  }

  .mobile-search-results {
    inset: 0 16px 16px;
    padding-top: 4px;
  }

  .mobile-search-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .mobile-search-card-media {
    width: 68px;
    height: 68px;
    border-radius: 11px;
  }

  .mobile-search-card-name {
    font-size: 0.8rem;
  }

  .mobile-search-card-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    gap: 5px;
  }

  .mobile-search-card .qty-stepper {
    width: 98px;
    grid-template-columns: 26px 46px 26px;
    height: 28px;
  }

  .mobile-search-card .product-price {
    font-size: 0.92rem;
  }

  .mobile-search-card-favorite--action {
    width: 42px;
    height: auto;
    min-height: 28px;
    justify-self: stretch;
    align-self: stretch;
    border-radius: 9px;
    margin-left: 0;
    padding: var(--btn-pad-y) 0;
    line-height: 1;
    box-shadow: none;
  }

  .mobile-search-card-favorite--action.is-active {
    box-shadow: none;
  }

  .mobile-search-card .qty-stepper-btn,
  .mobile-search-card .btn {
    min-height: 28px;
  }

  .mobile-search-card .qty-stepper-btn,
  .mobile-search-card .qty-stepper-input {
    height: 28px;
  }

  .modal--orders .orders-dialog {
    padding: 12px;
    height: 100vh !important;
  }

  .modal--profile .profile-dialog {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh;
    border-radius: 0 !important;
  }

  .profile-shell {
    padding: 12px;
    gap: 12px;
  }

  .profile-header {
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 20px;
    padding-left: 12px;
    margin-top: 0;
    margin-right: -12px;
    margin-bottom: 2px;
    margin-left: -12px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
  }

  .profile-header p {
    display: none;
  }

  .profile-header h3 {
    margin-bottom: 2px;
    padding-right: 28px;
    font-size: 1.05rem;
  }

  .profile-tabs {
    gap: 8px;
    padding: 4px;
    border-radius: 14px;
  }

  .profile-tab {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .profile-account-section {
    gap: 10px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .profile-account-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-account-header h4 {
    font-size: 0.95rem;
  }

  .profile-account-header p {
    display: none;
  }

  .profile-account-meta {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .profile-account-balance {
    align-self: flex-start;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .profile-account-history {
    flex: 0 0 auto;
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .profile-account-row {
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
  }

  .profile-account-row-main strong {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .profile-account-row-main span,
  .profile-account-row-meta span {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .profile-account-empty,
  .profile-account-loading,
  .profile-account-error {
    padding: 12px;
    font-size: 0.82rem;
  }

  .orders-shell {
    gap: 12px;
  }

  .orders-header {
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 20px;
    padding-left: 12px;
    margin-right: -12px;
    margin-bottom: 2px;
    margin-left: -12px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
  }

  .orders-header p {
    display: none;
  }

  .orders-header h3 {
    margin-bottom: 2px;
    padding-right: 28px;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  #orderDetailMeta {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }

  .order-detail-block {
    padding: 10px;
    font-size: 0.85rem;
    word-break: break-word;
  }

  .order-detail-block h4 {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  .order-summary-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
  }

  .order-summary-row span:first-child {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.5);
  }

  .order-summary-row span:last-child {
    margin-top: 2px;
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: left;
  }

  .order-summary-row.order-summary-row--total span:last-child {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .order-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .order-meta {
    gap: 2px;
  }

  .order-title {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
  }

  .order-summary {
    font-size: 0.9rem;
  }

  .order-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 4px;
    gap: 6px;
  }

  .order-actions .btn {
    width: 100%;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
  }

  .order-items-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(var(--accent-rgb), 0.15);
  }

  .order-items-grid--head {
    display: none;
  }

  .order-items-grid:not(.order-items-grid--head) > span:nth-child(1) {
    margin-bottom: 2px;
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 700;
  }

  .order-items-grid:not(.order-items-grid--head) > span:nth-child(2) {
    color: #555;
    font-size: 0.75rem;
  }

  .order-items-grid:not(.order-items-grid--head) > span:nth-child(2)::before {
    content: "PRICE: ";
    color: rgba(15, 23, 42, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .order-items-grid:not(.order-items-grid--head) > span:nth-child(3) {
    color: #555;
    font-size: 0.75rem;
  }

  .order-items-grid:not(.order-items-grid--head) > span:nth-child(3)::before {
    content: "QTY: ";
    color: rgba(15, 23, 42, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .order-items-grid:not(.order-items-grid--head) > span:nth-child(4) {
    margin-top: 4px;
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
  }

  .order-items-grid:not(.order-items-grid--head) > span:nth-child(4)::before {
    content: "TOTAL: ";
    color: rgba(15, 23, 42, 0.5);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
  }

  .order-item-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .order-item-name {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .order-change-entry {
    gap: 4px;
    padding: 8px 0;
  }

  .order-change-date {
    margin-bottom: 2px;
    font-size: 0.72rem;
  }

  .order-change-summary {
    color: #1a1a1a;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .order-change-reason,
  .order-change-account-note {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .modal--bottom-sheet {
    display: none;
    align-items: flex-end !important;
    padding: 0;
  }

  .modal--bottom-sheet.show,
  .modal--bottom-sheet.is-closing {
    display: flex !important;
  }

  .modal--bottom-sheet .modal-backdrop {
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .modal--bottom-sheet.show .modal-backdrop {
    opacity: 1;
  }

  .mobile-sheet-dialog {
    width: 100vw !important;
    height: auto !important;
    max-height: none;
    margin: 0;
    padding: 24px 20px 30px;
    border-radius: 20px 20px 0 0 !important;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .modal--bottom-sheet.show .mobile-sheet-dialog {
    transform: translateY(0);
  }

  .modal--bottom-sheet.is-closing .mobile-sheet-dialog {
    transform: translateY(100%);
  }

  .mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .mobile-sheet-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 800;
  }

  .mobile-sheet-header .modal-close {
    position: static;
  }

  .mobile-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .sheet-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.05);
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s ease;
  }

  .sheet-action-label {
    flex: 1 1 auto;
  }

  .sheet-action-btn i {
    color: var(--color-secondary);
    font-size: 1.3rem;
  }

  .sheet-action-btn .profile-alert-dot,
  .sheet-action-btn .orders-badge {
    position: static;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    margin-left: auto;
    box-shadow: none;
  }

  .sheet-action-btn:active {
    background: rgba(var(--accent-rgb), 0.12);
  }
}
/* ====================== END: MOBILE UI ALIGNMENT ====================== */
