:root {
  --ink: #0a2342;
  --ink-2: #183b63;
  --green: #18a875;
  --green-dark: #0f8058;
  --cream: #f7f8f3;
  --white: #fff;
  --line: #e5e9e5;
  --muted: #6c7c8e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, .store-brand {
  font-family: Poppins, Inter, sans-serif;
}

.store-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10,35,66,.08);
}

.store-nav-inner {
  max-width: 1180px;
  min-height: 72px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--green), #5ed2a5);
  box-shadow: 0 8px 24px rgba(24,168,117,.28);
  font-size: 13px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  border-radius: 8px;
}

.price-was {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 13px;
}

.price-save {
  color: #c2410c;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.price-channel-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5ef;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 600;
}

.price-block { margin-bottom: 8px; }
.price-block-compact .product-price { font-size: 18px; }

.store-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-nav-actions {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.store-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.store-menu-backdrop {
  display: none;
}

.store-link-cart-desktop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-link {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 13px;
  border-radius: 10px;
}

.store-link:hover { background: #eef6f2; color: var(--green-dark); }

.cart-pill {
  color: white;
  background: var(--ink);
  border-radius: 999px;
}
.cart-pill:hover { color: white; background: var(--ink-2); }

.store-main {
  max-width: 1180px;
  margin: auto;
  padding: 44px 24px 70px;
}

.store-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 2px 10px rgba(10,35,66,.05);
}
.store-searchbar > .bi-search { color: var(--muted); font-size: 15px; }
.store-searchbar input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.store-searchbar .btn-store { padding: 10px 22px; font-size: 14px; }
.searchbar-clear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}
.searchbar-clear:hover { background: #eef2f6; color: var(--ink); }

/* Promo billboard: main slideshow plus a stack of static promo cards. */
.store-billboard {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.store-billboard.is-wide { grid-template-columns: minmax(0, 1fr); }
.store-billboard.is-side-only { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.billboard-side {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}
.store-billboard.is-side-only .billboard-side {
  grid-column: 1 / -1;
  grid-template-rows: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.store-billboard.is-side-only .side-card { aspect-ratio: 2.4; }

.side-card {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0b1f3a;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.side-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10,35,66,.16); }
.side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.side-card-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  background: linear-gradient(to top, rgba(6,24,45,.86), rgba(6,24,45,0));
}
.side-card-caption strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.side-card-caption span { font-size: 11.5px; color: #d3e3ee; }

.store-banners {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0b1f3a;
  /* Ratio comes from the uploaded artwork so nothing is cropped by a fixed box. */
  aspect-ratio: var(--banner-ratio, 2.625);
  max-height: 440px;
}
.store-billboard.is-wide .store-banners { border-radius: 24px; }

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease, background .18s ease;
}
.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }
.banner-nav:hover { background: #fff; }
.store-banners:hover .banner-nav,
.banner-nav:focus-visible { opacity: 1; }
.banner-track { position: relative; width: 100%; height: 100%; }
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.banner-slide.is-active { opacity: 1; pointer-events: auto; }
.banner-link, .banner-slide > div.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  max-width: min(520px, 70%);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 28, 53, .72);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.banner-caption strong { font-size: 18px; font-weight: 600; }
.banner-caption span { font-size: 13px; color: #d8e7ef; }
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}
.banner-dots button.is-active { background: #fff; }

.category-filter {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 6px;
  scrollbar-width: thin;
}
.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.category-chip.is-active {
  border-color: #0b1f3a;
  background: #0b1f3a;
  color: #fff;
}
.category-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3f7;
  color: #0b1f3a;
  overflow: hidden;
}
.category-chip.is-active .category-icon { background: rgba(255,255,255,.16); color: #fff; }
.category-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-icon i { font-size: 15px; }

.subcategory-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.subcategory-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
}
.subcategory-chip.is-active {
  border-color: #1FA971;
  color: #0b1f3a;
  background: #eefaf4;
  font-weight: 600;
}

.store-hero {
  overflow: hidden;
  position: relative;
  min-height: 390px;
  padding: 64px;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(87,215,166,.45), transparent 30%),
    linear-gradient(125deg, #071c35 0%, #0e3b5a 58%, #0a6c53 100%);
  box-shadow: 0 28px 70px rgba(10,35,66,.18);
}
.store-hero-compact {
  min-height: auto;
  padding: 36px 42px;
  margin-top: 8px;
}
.store-hero-compact h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 12px; }

.store-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.04), 0 0 0 95px rgba(255,255,255,.025);
}

.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.hero-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #bdf5dc;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.store-hero h1 { margin: 20px 0 14px; font-size: clamp(36px, 5vw, 62px); line-height: 1.05; }
.store-hero p { max-width: 580px; color: #d8e7ef; font-size: 17px; line-height: 1.7; }

.store-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 16px;
  background: white;
}
.store-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  color: var(--ink);
}

.btn-store {
  border: 0;
  padding: 12px 20px;
  border-radius: 11px;
  background: var(--green);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}
.btn-store:hover { transform: translateY(-1px); background: var(--green-dark); color: white; }
.btn-store-dark { background: var(--ink); }
.btn-store-dark:hover { background: var(--ink-2); }

.section-head {
  margin: 32px 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.section-head h2 { margin: 0; font-size: 27px; }
.section-head p { margin: 5px 0 0; color: var(--muted); }

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

.product-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(10,35,66,.11); }

.product-visual {
  min-height: 180px;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(24,168,117,.12), rgba(10,35,66,.04)),
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255,255,255,.45) 18px, rgba(255,255,255,.45) 19px);
}
.product-visual.has-image {
  padding: 0;
  background: #eef2f6;
}
.product-visual.has-image .product-icon { display: none; }
.product-photo {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}
.product-visual[style*="min-height:400px"] .product-photo,
.product-visual.has-image[style*="min-height"] .product-photo {
  min-height: inherit;
}
.product-icon {
  width: 94px;
  height: 94px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--ink), var(--green));
  box-shadow: 0 18px 30px rgba(10,35,66,.2);
  font-size: 36px;
}
.product-body { padding: 22px; }
.product-code { color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-title { margin: 7px 0 6px; font-size: 18px; }
.product-meta { color: var(--muted); font-size: 13px; }
.product-foot { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-price { font-family: Poppins, sans-serif; font-size: 19px; font-weight: 700; }
.stock-tag { padding: 6px 9px; border-radius: 999px; color: var(--green-dark); background: #eaf8f1; font-size: 11px; font-weight: 700; }
.stock-tag.out { color: #a14b42; background: #fff0ee; }

.store-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 15px 45px rgba(10,35,66,.06);
}

/* ===== Checkout ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
  align-items: start;
}
.checkout-summary { position: sticky; top: 92px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  font-size: 13px;
}
.summary-row.muted-row { color: var(--muted); }
.summary-row.summary-total {
  font-size: 19px;
  margin: 18px 0 8px;
}
.summary-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}
.checkout-discount {
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf8;
}
.discount-apply {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.discount-apply .form-control-store {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
}
.discount-apply .btn-store {
  flex-shrink: 0;
  white-space: nowrap;
}
.discount-available {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.discount-chip {
  border: 1px dashed #b7c9bc;
  background: white;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
}
.discount-chip:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: #eaf8f1;
}
.checkout-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dest-search-wrap { position: relative; }
.dest-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 240px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(10,35,66,.12);
}
.dest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.dest-item:last-child { border-bottom: 0; }
.dest-item:hover { background: #f3faf6; color: var(--green-dark); }

.shipping-options {
  display: grid;
  gap: 12px;
}
.ship-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.ship-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f5f8f6;
  border-bottom: 1px solid var(--line);
}
.ship-courier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.ship-courier-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.ship-group-list { display: grid; }
.ship-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease;
}
.ship-option:last-child { border-bottom: 0; }
.ship-option:hover { background: #f7fbf9; }
.ship-option:has(input:checked) {
  background: #eaf8f1;
}
.ship-option input {
  margin: 0;
  accent-color: var(--green);
}
.ship-option-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ship-option-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.ship-option-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.ship-option-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

.auth-shell {
  max-width: 480px;
  margin: 35px auto;
}

.form-control-store {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dbe2e4;
  border-radius: 11px;
  outline: none;
}
.form-control-store:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24,168,117,.12); }
.form-label-store { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.form-group-store { margin-bottom: 17px; }

.flash {
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 13px;
}
.flash-success { color: #126445; background: #e4f7ee; }
.flash-error { color: #8b342c; background: #ffebe8; }

.store-table { width: 100%; border-collapse: collapse; }
.store-table th { padding: 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; text-transform: uppercase; }
.store-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); }

.store-footer {
  padding: 38px 24px;
  color: #aebdca;
  background: #071c35;
  text-align: center;
  font-size: 12px;
}

.lookup-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(24,168,117,.17), transparent 25%),
    radial-gradient(circle at 90% 5%, rgba(45,112,155,.22), transparent 28%),
    #06182e;
}
.lookup-wrap { max-width: 1000px; margin: auto; padding: 30px 24px 60px; }
.lookup-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 70px; }
.lookup-nav .store-brand { color: white; }

.lookup-store-link {
  flex-shrink: 0;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}
.lookup-store-link:hover {
  color: white;
  background: rgba(255,255,255,.14);
}

/* Uploaded logos are often dark artwork, so keep a light plate behind them. */
.lookup-nav .brand-logo-img,
.lookup-footer .brand-logo-img {
  padding: 5px 9px;
  background: rgba(255,255,255,.93);
  border-radius: 10px;
}

.lookup-footer {
  max-width: 1000px;
  margin: auto;
  padding: 26px 24px 44px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.lookup-footer .brand-logo-img { height: 30px; max-width: 110px; }
.lookup-footer-links { display: flex; align-items: center; gap: 18px; }
.lookup-footer-links a {
  color: #cfe0ec;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.lookup-footer-links a:hover { color: #fff; }
.lookup-footer p { margin: 0; color: #8ea3b6; font-size: 12px; }
.lookup-hero { color: white; text-align: center; }
.lookup-hero h1 { max-width: 760px; margin: 0 auto 15px; font-size: clamp(35px, 6vw, 60px); line-height: 1.08; }
.lookup-hero p { color: #b8cad8; font-size: 16px; }
.lookup-form {
  max-width: 680px;
  margin: 34px auto;
  padding: 9px;
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
}
.lookup-form input { flex: 1; min-width: 0; border: 0; border-radius: 11px; padding: 15px 17px; outline: none; font-size: 15px; }
.lookup-result {
  max-width: 780px;
  margin: 40px auto 0;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  color: white;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  text-align: left;
}
.lookup-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.lookup-field { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.06); }
.lookup-field small { display: block; margin-bottom: 5px; color: #91a9ba; text-transform: uppercase; letter-spacing: .07em; }
.lookup-field strong { color: white; }

/* ===== Customer account ===== */
.account-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.account-side {
  position: sticky;
  top: 92px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.account-nav { display: grid; gap: 4px; }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.account-nav-link:hover,
.account-nav-link.active {
  background: rgba(24,168,117,.1);
  color: var(--green-dark);
}
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.account-header h1 { margin: 0 0 6px; font-size: 28px; }
.account-header p { margin: 0; color: var(--muted); }
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.account-stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.account-stat small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  margin-bottom: 6px;
}
.account-stat strong { font-size: 26px; font-family: Poppins, Inter, sans-serif; }
.account-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.account-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.account-card-head h2 { margin: 0; font-size: 17px; }
.account-card-head a { color: var(--green-dark); font-weight: 700; font-size: 13px; text-decoration: none; }
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.order-row:last-child { border-bottom: 0; }
.order-row:hover strong { color: var(--green-dark); }
.order-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.muted { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.empty-box {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}
.account-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.account-filters .form-control-store { max-width: 220px; margin: 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eef2f6;
  color: var(--ink-2);
}
.status-pending, .payment-unpaid { background: #fff7e6; color: #d48806; }
.status-confirmed, .status-processing { background: #e6f4ff; color: #1677ff; }
.status-shipped { background: #f0f5ff; color: #2f54eb; }
.status-completed, .payment-paid { background: #f6ffed; color: #389e0d; }
.status-cancelled, .payment-failed, .payment-cancelled { background: #fff1f0; color: #cf1322; }
.payment-partial, .payment-pending, .payment-refunded { background: #fff7e6; color: #d48806; }
.order-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.order-meta small { display: block; color: var(--muted); margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.order-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.timeline-step { text-align: center; position: relative; opacity: .45; }
.timeline-step.done, .timeline-step.current { opacity: 1; }
.timeline-dot {
  width: 14px; height: 14px; border-radius: 50%;
  margin: 0 auto 8px;
  background: #d9e2ec;
}
.timeline-step.done .timeline-dot,
.timeline-step.current .timeline-dot { background: var(--green); }
.timeline-label { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.pagination { justify-content: center; gap: 4px; }
.pagination .page-link {
  border-radius: 10px !important;
  color: var(--ink-2);
  border-color: var(--line);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pager-btn {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.pager-btn.disabled { opacity: .45; pointer-events: none; }
.pager-info { color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .account-shell,
  .account-grid,
  .account-stats,
  .order-meta,
  .order-timeline { grid-template-columns: 1fr; }
  .account-side { position: static; }
}

@media (max-width: 900px) {
  /* Stack the billboard: slideshow first, promo cards swipe horizontally below. */
  .store-billboard,
  .store-billboard.is-side-only { grid-template-columns: minmax(0, 1fr); }

  .billboard-side {
    grid-template-rows: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .billboard-side::-webkit-scrollbar { display: none; }
  .side-card,
  .store-billboard.is-side-only .side-card { aspect-ratio: 2.6; scroll-snap-align: start; }
  .banner-nav { display: none; }
}

@media (max-width: 800px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .store-hero { padding: 42px 28px; min-height: auto; }

  .store-nav-inner {
    min-height: 62px;
    gap: 12px;
    position: relative;
    z-index: 2;
  }
  .store-brand { font-size: 17px; gap: 8px; }
  .brand-logo-img { height: 32px; max-width: 108px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }

  .store-nav-actions {
    display: flex;
    position: relative;
    z-index: 3;
  }
  .store-menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 3;
  }
  .store-link-cart-desktop { display: none; }

  .store-links {
    display: none;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 18px 40px rgba(10,35,66,.16);
  }
  .store-menu-open .store-nav { z-index: 1040; }
  .store-menu-open .store-links {
    display: flex;
    pointer-events: auto;
  }
  .store-menu-open .store-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(6, 24, 46, .35);
  }
  .store-links .store-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .store-logout-form { margin: 0; }

  .store-banners { border-radius: 18px; }
  .banner-caption { left: 16px; bottom: 16px; max-width: 82%; padding: 10px 12px; }
  .banner-caption strong { font-size: 16px; }
  .banner-caption span { font-size: 12px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .store-nav-inner { padding: 0 15px; min-height: 56px; gap: 8px; }
  .store-main { padding: 25px 15px 50px; }
  .store-brand .brand-name { display: none; }
  .lookup-grid { grid-template-columns: 1fr; }
  .lookup-form { flex-direction: column; }
  .lookup-wrap { padding: 24px 15px 44px; }
  .lookup-nav { margin-bottom: 44px; }
  .lookup-store-link { font-size: 12.5px; padding: 9px 12px; }
  .lookup-footer { padding: 22px 15px 34px; gap: 10px; }
  .lookup-footer .brand-logo-img { height: 26px; max-width: 94px; }

  .brand-logo-img { height: 28px; max-width: 92px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 11px; }
  .store-link { padding: 8px 10px; font-size: 12.5px; }
  .store-links { gap: 4px; }

  .store-banners { border-radius: 14px; }
  .banner-caption { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 9px 11px; border-radius: 11px; }
  .banner-caption strong { font-size: 14px; }
  .banner-caption span { font-size: 11.5px; }
  .banner-dots { bottom: 8px; gap: 6px; }
  .banner-dots button { width: 7px; height: 7px; }

  .store-billboard { gap: 10px; margin-bottom: 18px; }
  .billboard-side { gap: 10px; grid-auto-columns: 82%; }
  .side-card { border-radius: 13px; }
  .side-card-caption { padding: 18px 11px 9px; }
  .side-card-caption strong { font-size: 13px; }

  .store-searchbar { padding: 5px 5px 5px 13px; border-radius: 12px; margin-bottom: 14px; }
  .store-searchbar input { font-size: 13.5px; padding: 9px 0; }
  .store-searchbar .btn-store { padding: 9px 16px; font-size: 13px; }

  .section-head { margin: 22px 0 14px; }
  .section-head h2 { font-size: 22px; }
}

@media (max-width: 380px) {
  .brand-logo-img { height: 25px; max-width: 78px; }
  .store-link { padding: 7px 8px; font-size: 12px; }
}
