*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #faf9f7;
  --white: #ffffff;
  --ink: #0f0e0c;
  --mid: #4a4640;
  --border: #e8e4de;
  --card: #ffffff;
  --accent: #1a1a2e;
  --gold: #c9922a;
  --gold-light: #f0c040;
  --green: #1a7a4a;
  --red: #c0392b;
  --blue: #1a4fa0;
  --radius: 14px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --accent-hover: #2a2a4e;
  --on-accent: #f0c040;
  --nav-surface: rgba(255, 255, 255, 0.93);
  --cat-bar-bg: #ffffff;
  --store-bg-layer: linear-gradient(165deg, #fdfcfa 0%, #f4efe8 42%, #e8e2d8 100%);
}
html {
  scroll-behavior: smooth;
  min-height: 100%;
}
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--store-bg-layer);
  pointer-events: none;
}
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  background: transparent;
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--nav-surface);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: max(0, env(safe-area-inset-top)) 2rem 0 2rem;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo .mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.nav-logo .mark svg {
  width: 18px;
  height: 18px;
  fill: #f0c040;
}
.nav-logo span {
  font-family: "Source Serif 4", "Georgia", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.nav-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.8rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.88rem;
  outline: none;
  color: var(--ink);
  transition: border-color 0.2s;
}
.nav-search input:focus {
  border-color: var(--accent);
}
.nav-search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--mid);
  fill: none;
  stroke-width: 2;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--mid);
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-btn:hover {
  background: var(--bg);
  color: var(--ink);
}
.nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.cart-btn {
  background: var(--accent);
  color: #f0c040 !important;
  border-radius: 10px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  position: relative;
}
.cart-btn:hover {
  background: #2a2a4e !important;
  color: #f0c040 !important;
}
.cart-count {
  background: var(--gold-light);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}
.currency-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
}
.currency-nav label {
  font-size: 0.7rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.currency-nav select {
  border: none;
  background: transparent;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  width: fit-content;
  max-width: min(9rem, 100%);
  min-width: 3.25rem;
}
.currency-nav label,
.currency-nav select {
  color: var(--ink);
}

.hero {
  background: var(--accent);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(240, 192, 64, 0.15), transparent);
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}
.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  margin-bottom: 2rem;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}
.hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.hero-search input {
  flex: 1;
  padding: 0.9rem 1.4rem;
  border: none;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.hero-search button {
  padding: 0.9rem 1.8rem;
  background: var(--gold-light);
  color: var(--accent);
  border: none;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.hero-search button:hover {
  background: #e0b030;
}

.cat-bar {
  background: var(--cat-bar-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 64px;
  z-index: 200;
  overflow-x: auto;
}
.cat-bar::-webkit-scrollbar {
  display: none;
}
.cat-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: max-content;
}
.cat-pill {
  padding: 0.42rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 0.8rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: var(--mid);
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  font-weight: 600;
}

.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}
.sidebar-section {
  margin-bottom: 1.8rem;
}
.sidebar-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}
.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.price-range input {
  width: 80px;
  padding: 0.45rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.8rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  outline: none;
}
.price-range input:focus {
  border-color: var(--accent);
}
.price-range span {
  color: var(--mid);
  font-size: 0.8rem;
}
.sort-sel {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--card);
  outline: none;
  cursor: pointer;
}
.sort-sel:focus {
  border-color: var(--accent);
}
.sidebar-hint {
  font-size: 0.72rem;
  color: var(--mid);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.store-dist-section .dist-store-line {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.6rem;
  background: rgba(26, 26, 46, 0.06);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.store-dist-section .dist-store-line strong {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--accent);
  font-weight: 600;
}
.store-dist-section .dist-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}
.store-dist-section .dist-inputs input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.8rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  outline: none;
  background: var(--card);
}
.store-dist-section .dist-inputs input:focus {
  border-color: var(--accent);
}
.dist-btn {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.35rem;
}
.dist-btn:first-of-type {
  margin-top: 0;
}
.dist-btn-secondary {
  margin-top: 0.35rem;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
}
.dist-btn-secondary:hover {
  background: rgba(26, 26, 46, 0.06);
  border-color: var(--accent);
}
.dist-your-location {
  font-size: 0.74rem;
  color: var(--mid);
  margin: 0.5rem 0 0;
  line-height: 1.45;
}
.dist-btn:hover {
  background: var(--accent-hover);
}
.dist-result {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink);
}
.dist-result strong {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--accent);
}
.subcat-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.subcat-item {
  padding: 0.38rem 0.6rem;
  border-radius: 7px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--mid);
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.subcat-item:hover,
.subcat-item.active {
  background: rgba(26, 26, 46, 0.07);
  color: var(--accent);
  border-color: var(--border);
  font-weight: 500;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.result-count {
  font-size: 0.85rem;
  color: var(--mid);
}
.view-toggles {
  display: flex;
  gap: 0.3rem;
}
.view-btn {
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn.active,
.view-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.view-btn.active svg,
.view-btn:hover svg {
  stroke: var(--on-accent);
}
.view-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--mid);
  fill: none;
  stroke-width: 2;
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.prod-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  cursor: pointer;
  position: relative;
}
.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 26, 46, 0.2);
}
.prod-card.list-view {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
}
.prod-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0ede8, #e8e4de);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.prod-img.list-view {
  height: 130px;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-img svg {
  width: 40px;
  height: 40px;
  stroke: #ccc;
  fill: none;
  stroke-width: 1;
}
.prod-img[data-open-detail] {
  cursor: pointer;
}
.disc-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}
.wishlist-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    background 0.2s,
    transform 0.15s;
  z-index: 3;
}
.wishlist-btn:hover {
  background: #ffe8e8;
  transform: scale(1.06);
}
.wishlist-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--mid);
  fill: none;
  stroke-width: 2;
  transition:
    fill 0.2s,
    stroke 0.2s;
}
.wishlist-btn.active svg {
  fill: var(--red);
  stroke: var(--red);
}
.fav-only-label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
}
.fav-only-label input[type="checkbox"] {
  accent-color: var(--accent);
}
.fav-count {
  display: inline-block;
  min-width: 1.2rem;
  padding: 0 0.35rem;
  background: rgba(26, 26, 46, 0.08);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
}
.prod-body {
  padding: 1rem;
}
.prod-cat-tag {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.3rem;
}
.prod-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.prod-brand {
  font-size: 0.75rem;
  color: var(--mid);
  margin-bottom: 0.5rem;
}
.prod-desc-short {
  font-size: 0.78rem;
  color: var(--mid);
  margin-bottom: 0.6rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  letter-spacing: 0.01em;
}
.prod-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.p-was {
  font-size: 0.8rem;
  color: var(--mid);
  text-decoration: line-through;
}
.p-now {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.p-save {
  font-size: 0.7rem;
  background: rgba(192, 57, 43, 0.1);
  color: var(--red);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}
.prod-stock {
  font-size: 0.7rem;
  color: var(--green);
  margin-bottom: 0.8rem;
}
.add-to-cart {
  width: 100%;
  padding: 0.65rem;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 9px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.add-to-cart:hover {
  background: var(--accent-hover);
  transform: scale(1.01);
}
.add-to-cart:active {
  transform: scale(0.99);
}
.add-to-cart svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  color: var(--ink);
}
.qty-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.qty-val {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 24px;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.overlay.open {
  display: block;
  opacity: 1;
}
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  max-width: 95vw;
  background: var(--card);
  z-index: 500;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  padding-top: env(safe-area-inset-top);
}
.cart-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.drawer-close:hover {
  background: var(--bg);
}
.drawer-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-items::-webkit-scrollbar {
  width: 4px;
}
.cart-items::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
.cart-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 36px;
  gap: 0.8rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item .ci-body {
  min-width: 0;
}
.ci-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ci-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ci-img svg {
  width: 24px;
  height: 24px;
  stroke: #ccc;
  fill: none;
  stroke-width: 1.2;
  margin: 18px auto;
  display: block;
}
.ci-name {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.ci-sub {
  font-size: 0.75rem;
  color: var(--mid);
  margin-bottom: 0.4rem;
}
.ci-price {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}
.ci-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition:
    color 0.2s,
    background 0.2s;
}
.ci-remove:hover {
  color: var(--red);
  background: rgba(192, 57, 43, 0.08);
}
.ci-remove svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.cart-ship-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mid);
}
.cart-ship-note {
  font-size: 0.72rem;
  color: var(--mid);
  line-height: 1.4;
  margin: 0 0 0.5rem;
}
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--mid);
}
.cart-empty svg {
  width: 48px;
  height: 48px;
  stroke: var(--border);
  fill: none;
  stroke-width: 1;
  margin: 0 auto 1rem;
  display: block;
}
.drawer-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 0.4rem;
}
.cart-summary-row.total {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.cart-summary-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0 0.25rem;
  opacity: 0.9;
}
.cart-tax-note {
  font-size: 0.72rem;
  color: var(--mid);
  margin: -0.15rem 0 0.35rem;
  line-height: 1.35;
}
.tax-pill {
  display: inline-block;
  font-size: 0.62rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--mid);
  margin-left: 0.35rem;
  vertical-align: middle;
}
.notif-btn {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e11;
  font-size: 0.65rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 5px;
  box-shadow: 0 0 0 2px var(--card);
}
.notif-overlay-el {
  z-index: 10010 !important;
}
.notif-drawer {
  z-index: 10011 !important;
}
.notif-drawer[hidden] {
  display: none !important;
}
.order-summary-mini .osm-tax-note {
  font-size: 0.75rem;
  color: var(--mid);
  margin: 0.35rem 0;
  line-height: 1.45;
}
.order-summary-mini .osm-vat-ref {
  font-size: 0.78rem;
  color: var(--ink);
  margin: 0.25rem 0 0.5rem;
}
.tax-invoice-mini {
  text-align: left;
  max-width: 26rem;
  margin: 1rem auto;
  padding: 1rem 1.1rem;
  background: rgba(26, 26, 46, 0.04);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.tax-inv-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.tax-inv-meta,
.tax-inv-vat {
  font-size: 0.78rem;
  color: var(--mid);
  margin: 0 0 0.5rem;
}
.tax-inv-lines {
  font-size: 0.82rem;
}
.tax-inv-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.tax-inv-line.tax-inv-strong {
  font-weight: 600;
}
.tax-inv-line.tax-inv-total {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  border-bottom: none;
}
.tax-inv-note {
  font-size: 0.75rem;
  color: var(--mid);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.notif-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.notif-head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.notif-gear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  line-height: 1;
}
.notif-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.notif-tb {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
}
.notif-body {
  padding: 0.75rem 1.2rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  max-height: calc(100vh - 140px);
}
.notif-group {
  margin-bottom: 1rem;
}
.notif-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid);
  margin: 0 0 0.4rem;
}
.notif-card {
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid #f0c040;
  cursor: pointer;
}
.notif-card.notif-unread {
  background: rgba(240, 192, 64, 0.08);
}
.notif-card.notif-unread .notif-time,
.notif-card.notif-unread .notif-msg {
  color: var(--ink);
}
.notif-card:hover .notif-time {
  color: var(--ink);
}
.notif-border-gold {
  border-left-color: #f0c040;
}
.notif-border-red {
  border-left-color: #e11;
}
.notif-border-green {
  border-left-color: #2e7d32;
}
.notif-border-blue {
  border-left-color: #1565c0;
}
.notif-border-purple {
  border-left-color: #6a1b9a;
}
.notif-icon {
  margin-right: 0.35rem;
}
.notif-msg {
  margin: 0.35rem 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
}
.notif-announce-thread {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}
.notif-thread-lines {
  max-height: 12rem;
  overflow-y: auto;
}
.notif-thread-line {
  margin: 0.35rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.notif-thread-who {
  font-weight: 600;
  color: var(--mid);
  font-size: 0.7rem;
}
.notif-thread-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
}
.notif-thread-empty,
.notif-thread-hint {
  margin: 0 0 0.4rem;
  color: var(--mid);
  font-size: 0.72rem;
}
.notif-thread-reply {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.notif-customer-reply-ta {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 0.8rem;
  resize: vertical;
}
.notif-customer-reply-send {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  cursor: pointer;
}
.notif-customer-reply-send:disabled {
  opacity: 0.6;
  cursor: wait;
}
.notif-time {
  font-size: 0.68rem;
  color: var(--mid);
  margin: 0;
}
.notif-empty {
  text-align: center;
  color: var(--mid);
  padding: 2rem 0.5rem;
}
.notif-flash-banner {
  background: linear-gradient(90deg, #c62828, #e53935);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
  border-radius: 0;
}
.notif-settings-panel {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.03);
}
.notif-settings-panel h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.notif-pref {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin: 0.35rem 0;
}
.notif-hour {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}
.notif-hour input {
  width: 4rem;
  margin-left: 0.35rem;
}
.notif-test {
  margin-top: 0.75rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  font-weight: 600;
}
.notif-push-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.notif-push-inner {
  background: var(--card);
  max-width: 400px;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.notif-push-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.notif-push-yes,
.notif-push-later {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.notif-push-yes {
  background: var(--accent);
  color: var(--on-accent);
}
.notif-push-later {
  background: var(--border);
}
@media (max-width: 520px) {
  .notif-drawer {
    width: 100% !important;
    max-width: 100vw !important;
  }
}
.checkout-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.9rem;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 10px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.checkout-btn:hover {
  background: var(--accent-hover);
}
.checkout-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open {
  display: flex;
}
.modal-box {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.35s ease;
  border: 1px solid var(--border);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-box::-webkit-scrollbar {
  width: 4px;
}
.modal-box::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
.modal-head {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mid);
  transition: all 0.3s;
}
.step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f0c040;
}
.step.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.step-line {
  width: 24px;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}
.step-line.done {
  background: var(--green);
}
.modal-body {
  padding: 2rem;
}
.section-label {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.form-grid.full {
  grid-template-columns: 1fr;
}
.fg {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fg label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}
.fg input,
.fg textarea {
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  outline: none;
  background: var(--card);
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.fg select {
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  outline: none;
  background: var(--card);
  transition: border-color 0.2s;
  box-sizing: border-box;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 7rem);
  align-self: start;
  min-height: 2.5rem;
}
.fg textarea {
  min-height: 5rem;
  resize: vertical;
}
.fg input {
  min-height: 2.5rem;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--accent);
}
.fg select.fg-select-full {
  width: 100%;
  max-width: 100%;
}
.fg.full {
  grid-column: 1/-1;
}
.checkout-select {
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 7rem);
  align-self: start;
}
.pay-country-bar {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pay-country-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}
.pay-country-row label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}
.pay-country-select {
  flex: 1;
  min-width: min(100%, 200px);
  max-width: 420px;
}
.pay-meta {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.45;
}
.pay-meta code {
  font-size: 0.72rem;
  background: rgba(26, 26, 46, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.country-pay-ref-panel {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: rgba(26, 26, 46, 0.03);
}
.country-pay-ref-panel summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.mobile-pay-systems-panel {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: rgba(26, 26, 46, 0.03);
}
.mobile-pay-systems-panel summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.mobile-pay-sys-count {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--mid);
}
.mobile-pay-sys-intro {
  margin-top: 0.5rem;
}
.mobile-pay-sys-empty {
  margin-top: 0.5rem;
}
.mobile-pay-sys-more {
  margin: 0.5rem 0 0;
}
.mobile-pay-sys-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.mobile-pay-sys-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mobile-pay-sys-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.78rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
}
.mobile-pay-sys-pick {
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  text-align: left;
  width: 100%;
  font: inherit;
}
.mobile-pay-sys-pick:hover {
  border-color: var(--accent);
  background: rgba(26, 26, 46, 0.04);
}
.mobile-pay-sys-pick:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mobile-pay-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mobile-pay-select-hint {
  font-size: 0.65rem;
  color: var(--mid);
  line-height: 1.35;
}
.mobile-pay-mm-id {
  font-size: 0.62rem;
  background: rgba(26, 26, 46, 0.06);
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
}
.mobile-pay-sys-api-details {
  margin: 0 0 0 0.25rem;
  border-left: 2px solid var(--border);
  padding-left: 0.6rem;
}
.mobile-pay-sys-api-details summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.mobile-pay-provider-block {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.03);
  border: 1px solid var(--border);
}
.mobile-pay-provider-pre {
  margin: 0.35rem 0 0;
  padding: 0.5rem;
  font-size: 0.65rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  overflow: auto;
  max-height: 180px;
}
.mobile-pay-flag {
  font-size: 1.1rem;
  line-height: 1;
}
.mobile-pay-name {
  font-weight: 600;
  color: var(--ink);
}
.mobile-pay-meta {
  font-size: 0.7rem;
  color: var(--mid);
  text-align: right;
  max-width: 48%;
}
@media (max-width: 520px) {
  .mobile-pay-sys-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .mobile-pay-meta {
    text-align: left;
    grid-column: 1/-1;
    max-width: 100%;
  }
}
.pay-ref-disclaimer {
  font-size: 0.72rem;
  color: var(--mid);
  line-height: 1.5;
  margin: 0.5rem 0 0.75rem;
}
.pay-ref-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.pay-ref-apis {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.pay-ref-api-list {
  list-style: none;
  padding-left: 0 !important;
}
.pay-ref-apis a {
  color: var(--accent);
  word-break: break-word;
}
.pay-mock-auth {
  font-size: 0.82rem;
  color: var(--mid);
  margin: 0.75rem auto 0;
  max-width: 28rem;
  line-height: 1.5;
}
.pay-mock-auth code {
  font-size: 0.78rem;
  background: rgba(26, 26, 46, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.pay-method {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: #fff;
}
.pay-method:hover {
  border-color: var(--accent);
  background: rgba(26, 26, 46, 0.03);
}
.pay-method.selected {
  border-color: var(--accent);
  background: rgba(26, 26, 46, 0.05);
}
.pay-method .pm-icon {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}
.pay-method .pm-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.pay-method .pm-sub {
  font-size: 0.66rem;
  color: var(--mid);
}
.pay-category {
  margin-bottom: 1.4rem;
}
.pay-category-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}
.card-form {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 0.8rem;
  border: 1.5px solid var(--border);
}
.card-form .form-grid {
  margin-bottom: 0;
}
.pay-instrument {
  margin-top: 0.25rem;
}
.pay-instrument-hint {
  font-size: 0.74rem;
  color: var(--mid);
  line-height: 1.45;
  margin: -0.15rem 0 0.45rem;
}
.pay-instrument-note {
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.5;
  margin: 0.5rem 0 0.75rem;
}
.modal-footer {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  position: sticky;
  bottom: 0;
  background: var(--card);
}
.back-btn {
  padding: 0.7rem 1.4rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--mid);
  transition: all 0.2s;
}
.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.next-btn {
  padding: 0.7rem 2rem;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 9px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.next-btn:hover {
  background: var(--accent-hover);
}
.next-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.order-summary-mini {
  background: var(--bg);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.osm-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  color: var(--mid);
}
.osm-item.total {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.success-screen {
  text-align: center;
  padding: 2.5rem 2rem;
}
.success-screen .check {
  width: 70px;
  height: 70px;
  background: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  animation: popIn 0.4s ease;
}
@keyframes popIn {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.success-screen .check svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  fill: none;
  stroke-width: 3;
}
.success-screen h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.success-screen p {
  color: var(--mid);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.order-num {
  display: inline-block;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0;
}
.continue-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 10px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.continue-btn:hover {
  background: var(--accent-hover);
}

.toast {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 800;
  display: none;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: min(42rem, calc(100vw - 2rem));
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.toast.show {
  display: block;
  animation: toastPop 0.3s ease forwards;
}
@keyframes toastPop {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.no-products {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--mid);
}
.no-products svg {
  width: 48px;
  height: 48px;
  stroke: var(--border);
  fill: none;
  stroke-width: 1;
  margin: 0 auto 1rem;
  display: block;
}

.store-banner {
  background: #fff3cd;
  border: 1px solid #e6d89c;
  color: #6b5900;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
}
.store-banner a {
  color: var(--accent);
  font-weight: 600;
}
.api-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.api-banner-inner > p {
  margin-bottom: 0.5rem;
}
.api-banner-meta {
  font-size: 0.78rem;
  opacity: 0.9;
  margin: 0.35rem 0;
}
.api-banner-hint {
  font-size: 0.74rem;
  opacity: 0.85;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.api-retry-btn {
  margin-top: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.api-retry-btn:hover {
  filter: brightness(1.08);
}
.store-banner code {
  font-size: 0.78em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 570;
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.detail-overlay.open {
  display: block;
  opacity: 1;
}
.detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 580;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.detail-modal.open {
  display: flex;
  opacity: 1;
}
.detail-box {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
  pointer-events: auto;
  border: 1px solid var(--border);
}
.detail-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  touch-action: manipulation;
}
.detail-close:hover {
  background: var(--border);
}
.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
}
@media (max-width: 768px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }
}
.pd-gallery {
  padding: 1.25rem 1rem 1.25rem 1.25rem;
  border-right: 1px solid var(--border);
}
@media (max-width: 768px) {
  .pd-gallery {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
.pd-main-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f0ede8, #e8e4de);
  border-radius: 12px;
  overflow: hidden;
}
.pd-main-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: object-fit 0.2s;
}
.pd-main-img.pd-zoom-out {
  object-fit: contain;
  background: #1a1a1a;
}
.pd-no-img {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  color: var(--mid);
  font-size: 0.9rem;
}
.pd-no-img.show {
  display: grid;
}
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    transform 0.15s;
  z-index: 6;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pd-nav:hover {
  background: var(--card);
  transform: translateY(-50%) scale(1.05);
}
.pd-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: translateY(-50%);
}
.pd-prev {
  left: 0.6rem;
}
.pd-next {
  right: 0.6rem;
}
.pd-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.pd-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--bg);
  flex-shrink: 0;
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-thumb.active {
  border-color: var(--accent);
}
.pd-zoom-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.pd-zoom-btn:hover {
  border-color: var(--accent);
  background: var(--bg);
}
.pd-side {
  padding: 1.5rem 1.25rem 1.5rem 1rem;
}
@media (max-width: 768px) {
  .pd-side {
    padding: 1.25rem;
  }
}
.pd-cat {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.35rem;
}
.pd-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.pd-brand {
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 0.75rem;
}
.pd-desc {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.pd-price-row {
  margin-bottom: 0.6rem;
}
.pd-stock {
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.pd-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
}
.pd-fav-btn:hover {
  border-color: var(--accent);
}
.pd-fav-btn svg {
  stroke: var(--mid);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.pd-fav-btn[aria-pressed="true"] {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.06);
  color: var(--red);
}
.pd-fav-btn[aria-pressed="true"] svg {
  fill: var(--red);
  stroke: var(--red);
}
.pd-add-cart {
  flex: 1;
  min-width: 160px;
  padding: 0.72rem 1.2rem;
  border: none;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}
.pd-add-cart:hover {
  background: var(--accent-hover);
}

.prod-shop-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.prod-shop-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
}
.prod-shop-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-shop-av-ph {
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(26, 26, 46, 0.08);
}
.prod-shop-name {
  font-size: 0.78rem;
  color: var(--mid);
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}
.prod-shop-row:hover .prod-shop-name,
.prod-shop-row:focus-visible .prod-shop-name {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.prod-shop-row:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 6px;
}

.shop-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--mid);
}
.shop-filter-text {
  line-height: 1.4;
}
.shop-filter-clear {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
.shop-filter-clear:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.shop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 528;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.shop-overlay.open {
  display: block;
  opacity: 1;
}
.shop-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(440px, 100vw);
  max-width: 100%;
  background: var(--card);
  z-index: 532;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  padding-top: env(safe-area-inset-top);
}
.shop-drawer.open {
  transform: translateX(0);
}
.shop-drawer-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  flex: 1;
}
.shop-drawer-banner {
  position: relative;
  padding: 1.25rem 1.25rem 1.1rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-hover) 55%, var(--accent) 100%);
  color: #fff;
}
.shop-drawer-banner-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.shop-drawer-brand-row {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 1;
}
.shop-drawer-logo-hit {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
}
.shop-drawer-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  display: block;
}
.shop-drawer-logo-ph {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 700;
  font-family: "Source Serif 4", Georgia, serif;
  color: #fff;
}
.shop-drawer-banner-title {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}
.shop-drawer-stars {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin: 0.3rem 0 0.15rem;
  line-height: 1;
}
.shop-star {
  color: rgba(255, 255, 255, 0.35);
}
.shop-star.on {
  color: var(--gold-light);
}
.shop-drawer-count {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.88;
}
.shop-drawer-head-bar {
  flex-shrink: 0;
}
.shop-drawer-head-label {
  font-size: 0.92rem !important;
  opacity: 0.9;
}
.shop-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.shop-drawer-body::-webkit-scrollbar {
  width: 4px;
}
.shop-drawer-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.shop-panel-block {
  margin-bottom: 1.25rem;
}
.shop-panel-h {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.shop-panel-muted {
  color: var(--mid);
  font-size: 0.88rem;
  line-height: 1.45;
}
.shop-panel-desc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
}
.shop-panel-desc p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}
.shop-panel-desc .shop-panel-muted {
  color: var(--mid);
}
.shop-panel-loc {
  font-size: 0.85rem;
  margin: 0.25rem 0 0.45rem;
  color: var(--ink);
}
.shop-panel-maplink {
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
}
.shop-panel-maplink:hover {
  color: var(--accent);
}
.shop-panel-contact {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}
.shop-contact-line {
  margin-bottom: 0.55rem;
}
.shop-contact-label {
  display: inline-block;
  min-width: 3.6rem;
  color: var(--mid);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.35rem;
}
.shop-panel-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.shop-contact-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.78rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.shop-contact-primary:hover {
  background: var(--accent-hover);
}
.shop-panel-more {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.25rem;
}
.shop-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 0.65rem;
}
.shop-mini {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font: inherit;
  color: inherit;
}
.shop-mini:hover,
.shop-mini:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.shop-mini:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
.shop-mini img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.shop-mini-ph {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f0ede8, #e8e4de);
  display: block;
}
.shop-mini-name {
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 0.35rem 0.5rem 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-mini-price {
  padding: 0 0.5rem 0.42rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}
.shop-mini-was {
  text-decoration: line-through;
  color: var(--mid);
  font-weight: 500;
  margin-right: 0.25rem;
  font-size: 0.68rem;
}
.shop-more-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}
.shop-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.shop-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.9rem;
  border-radius: 100px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.shop-pill-btn:hover {
  background: var(--accent-hover);
}
.shop-soc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.shop-soc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.shop-soc:hover {
  border-color: var(--accent);
  background: rgba(26, 26, 46, 0.06);
}
.shop-panel-cta {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.shop-cta-contact-buy {
  width: 100%;
  padding: 0.82rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--gold-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: "Source Sans 3", system-ui, sans-serif;
  transition:
    filter 0.2s,
    transform 0.15s;
}
.shop-cta-contact-buy:hover {
  filter: brightness(1.05);
}
.shop-cta-contact-buy:active {
  transform: scale(0.99);
}
.shop-cta-hint {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  text-align: center;
}

.store-page-footer {
  background: var(--accent);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4rem;
  padding: 0;
  line-height: 1.55;
}
.store-api-footer-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-right: 0.15rem;
}
.store-api-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.store-api-footer a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 192, 64, 0.45);
}
.store-api-footer a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}
.store-page-footer-copy {
  text-align: center;
  padding: 1.5rem 2rem 2rem;
  font-size: 0.85rem;
  margin: 0;
}
.store-page-footer-copy strong {
  color: var(--gold-light);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}
footer.store-page-footer {
  border: none;
}

@media (max-width: 900px) {
  .main {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}
@media (max-width: 640px) {
  .shop-drawer {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: min(92vh, 760px);
    border-radius: 16px 16px 0 0;
    transform: translateY(110%);
    padding-top: 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  }
  .shop-drawer.open {
    transform: translateY(0);
  }
  .shop-drawer-inner {
    max-height: min(92vh, 760px);
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .pay-methods {
    grid-template-columns: 1fr 1fr;
  }
  .nav-search {
    display: none;
  }
  .theme-picker-label {
    display: none;
  }
  .theme-swatch {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Store themes: full-page backgrounds + palette (html[data-store-theme]) —— */
.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-right: 0.15rem;
}
.theme-picker-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--mid);
  white-space: nowrap;
  font-weight: 600;
}
.theme-swatches {
  display: flex;
  gap: 0.32rem;
  align-items: center;
  flex-wrap: wrap;
}
.theme-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    border-color 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.theme-swatch:hover {
  transform: scale(1.1);
}
.theme-swatch:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
.theme-swatch.active {
  box-shadow:
    0 0 0 2px var(--white),
    0 0 0 4px var(--accent),
    0 3px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}
.theme-swatch-classic {
  background: linear-gradient(145deg, #f5f0e8 40%, #1a1a2e 40%);
}
.theme-swatch-midnight {
  background: linear-gradient(145deg, #58a6ff 0%, #0d1117 65%);
}
.theme-swatch-sunset {
  background: linear-gradient(145deg, #fb923c 0%, #fff7ed 100%);
}
.theme-swatch-forest {
  background: linear-gradient(145deg, #34d399 0%, #064e3b 100%);
}
.theme-swatch-ocean {
  background: linear-gradient(145deg, #22d3ee 0%, #0f766e 100%);
}
.theme-swatch-violet {
  background: linear-gradient(145deg, #c4b5fd 0%, #6d28d9 100%);
}
.theme-swatch-rose {
  background: linear-gradient(145deg, #fda4af 0%, #9f1239 100%);
}
.theme-swatch-nord {
  background: linear-gradient(145deg, #38bdf8 0%, #1e3a8a 100%);
}
.theme-swatch-ember {
  background: linear-gradient(145deg, #fbbf24 0%, #431407 100%);
}
.theme-swatch-slate {
  background: linear-gradient(145deg, #a5b4fc 0%, #312e81 100%);
}
.theme-swatch-aurora {
  background: linear-gradient(145deg, #5eead4 0%, #7c3aed 100%);
}
.theme-swatch-cocoa {
  background: linear-gradient(145deg, #d4a574 0%, #451a03 100%);
}

html[data-store-theme="midnight"] {
  --bg: #13171f;
  --ink: #e6edf3;
  --mid: #a8b3c0;
  --border: #30363d;
  --card: #1c2128;
  --accent: #58a6ff;
  --gold: #d29922;
  --gold-light: #e3b341;
  --green: #3fb950;
  --red: #f85149;
  --blue: #58a6ff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 14px 48px rgba(0, 0, 0, 0.55);
  --accent-hover: #79b8ff;
  --on-accent: #0d1117;
  --nav-surface: rgba(22, 27, 34, 0.92);
  --cat-bar-bg: #161b22;
  --store-bg-layer:
    radial-gradient(ellipse 95% 60% at 12% -8%, rgba(88, 166, 255, 0.16), transparent 52%),
    radial-gradient(ellipse 75% 50% at 92% 102%, rgba(227, 179, 65, 0.1), transparent 48%),
    linear-gradient(168deg, #0d1117 0%, #161b22 42%, #1c2433 100%);
}
html[data-store-theme="sunset"] {
  --bg: #fff8f4;
  --ink: #431407;
  --mid: #7c2d12;
  --border: #fdba74;
  --card: #ffffff;
  --accent: #c2410c;
  --gold: #b45309;
  --gold-light: #fb923c;
  --green: #15803d;
  --red: #dc2626;
  --blue: #0369a1;
  --shadow: 0 3px 22px rgba(194, 65, 12, 0.12);
  --shadow-lg: 0 10px 40px rgba(194, 65, 12, 0.18);
  --accent-hover: #9a3412;
  --on-accent: #fffbeb;
  --nav-surface: rgba(255, 252, 248, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.9);
  --store-bg-layer:
    radial-gradient(ellipse 85% 55% at 18% -5%, rgba(251, 146, 60, 0.4), transparent 52%),
    radial-gradient(ellipse 60% 45% at 95% 15%, rgba(253, 186, 116, 0.35), transparent 50%),
    linear-gradient(168deg, #fff7ed 0%, #ffedd5 35%, #fed7aa 68%, #fdba74 100%);
}
html[data-store-theme="forest"] {
  --bg: #ecfdf5;
  --ink: #064e3b;
  --mid: #047857;
  --border: #99f6e4;
  --card: #ffffff;
  --accent: #047857;
  --gold: #a16207;
  --gold-light: #34d399;
  --green: #059669;
  --red: #dc2626;
  --blue: #0d9488;
  --shadow: 0 3px 22px rgba(4, 120, 87, 0.1);
  --shadow-lg: 0 10px 40px rgba(4, 120, 87, 0.15);
  --accent-hover: #065f46;
  --on-accent: #ecfdf5;
  --nav-surface: rgba(236, 253, 245, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.92);
  --store-bg-layer:
    radial-gradient(ellipse 80% 50% at 78% 8%, rgba(52, 211, 153, 0.32), transparent 50%),
    radial-gradient(ellipse 55% 40% at 5% 90%, rgba(167, 243, 208, 0.45), transparent 50%),
    linear-gradient(172deg, #ecfdf5 0%, #d1fae5 42%, #a7f3d0 100%);
}
html[data-store-theme="ocean"] {
  --bg: #f0fdfa;
  --ink: #134e4a;
  --mid: #0d5c56;
  --border: #5eead4;
  --card: #ffffff;
  --accent: #0f766e;
  --gold: #ca8a04;
  --gold-light: #22d3ee;
  --green: #0d9488;
  --red: #e11d48;
  --blue: #0891b2;
  --shadow: 0 3px 22px rgba(15, 118, 110, 0.1);
  --shadow-lg: 0 10px 40px rgba(15, 118, 110, 0.16);
  --accent-hover: #115e59;
  --on-accent: #ecfeff;
  --nav-surface: rgba(240, 253, 250, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.9);
  --store-bg-layer:
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(34, 211, 238, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(45, 212, 191, 0.22), transparent 48%),
    linear-gradient(175deg, #f0fdfa 0%, #ccfbf1 38%, #99f6e4 100%);
}
html[data-store-theme="violet"] {
  --bg: #faf5ff;
  --ink: #4c1d95;
  --mid: #5b21b6;
  --border: #ddd6fe;
  --card: #ffffff;
  --accent: #6d28d9;
  --gold: #b45309;
  --gold-light: #c4b5fd;
  --green: #059669;
  --red: #dc2626;
  --blue: #7c3aed;
  --shadow: 0 3px 22px rgba(109, 40, 217, 0.1);
  --shadow-lg: 0 10px 40px rgba(109, 40, 217, 0.18);
  --accent-hover: #5b21b6;
  --on-accent: #faf5ff;
  --nav-surface: rgba(250, 245, 255, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.9);
  --store-bg-layer:
    radial-gradient(ellipse 70% 50% at 100% -5%, rgba(139, 92, 246, 0.25), transparent 45%),
    radial-gradient(ellipse 55% 45% at 0% 85%, rgba(196, 181, 253, 0.4), transparent 50%),
    linear-gradient(168deg, #faf5ff 0%, #ede9fe 48%, #e0e7ff 100%);
}

html[data-store-theme="rose"] {
  --bg: #fff1f4;
  --ink: #611036;
  --mid: #9d174d;
  --border: #fecdd3;
  --card: #ffffff;
  --accent: #be123c;
  --gold: #a16207;
  --gold-light: #fda4af;
  --green: #15803d;
  --red: #e11d48;
  --blue: #be123c;
  --shadow: 0 3px 22px rgba(190, 18, 60, 0.1);
  --shadow-lg: 0 10px 40px rgba(190, 18, 60, 0.16);
  --accent-hover: #9f1239;
  --on-accent: #fff5f7;
  --nav-surface: rgba(255, 241, 244, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.9);
  --store-bg-layer:
    radial-gradient(ellipse 72% 52% at 95% 5%, rgba(251, 113, 133, 0.38), transparent 48%),
    radial-gradient(ellipse 58% 46% at 0% 82%, rgba(244, 114, 182, 0.28), transparent 50%),
    linear-gradient(168deg, #fff1f4 0%, #ffe4e8 45%, #fecdd3 100%);
}
html[data-store-theme="nord"] {
  --bg: #f8fafc;
  --ink: #0f172a;
  --mid: #475569;
  --border: #cbd5e1;
  --card: #ffffff;
  --accent: #2563eb;
  --gold: #b45309;
  --gold-light: #38bdf8;
  --green: #059669;
  --red: #dc2626;
  --blue: #1d4ed8;
  --shadow: 0 3px 22px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
  --accent-hover: #1d4ed8;
  --on-accent: #f8fafc;
  --nav-surface: rgba(248, 250, 252, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.92);
  --store-bg-layer:
    radial-gradient(ellipse 82% 56% at 10% 8%, rgba(59, 130, 246, 0.2), transparent 50%),
    radial-gradient(ellipse 62% 46% at 100% 100%, rgba(14, 165, 233, 0.16), transparent 48%),
    linear-gradient(168deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}
html[data-store-theme="ember"] {
  --bg: #1c1410;
  --ink: #fef3e8;
  --mid: #c9b8a8;
  --border: #3d3028;
  --card: #2a2019;
  --accent: #ea580c;
  --gold: #fbbf24;
  --gold-light: #fcd34d;
  --green: #4ade80;
  --red: #f87171;
  --blue: #60a5fa;
  --shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 48px rgba(0, 0, 0, 0.55);
  --accent-hover: #f97316;
  --on-accent: #1c1410;
  --nav-surface: rgba(36, 28, 22, 0.93);
  --cat-bar-bg: #221a14;
  --store-bg-layer:
    radial-gradient(ellipse 92% 58% at 50% -10%, rgba(234, 88, 12, 0.38), transparent 50%),
    radial-gradient(ellipse 62% 46% at 100% 100%, rgba(251, 191, 36, 0.14), transparent 48%),
    linear-gradient(168deg, #1c1410 0%, #261c14 40%, #1a1008 100%);
}
html[data-store-theme="slate"] {
  --bg: #f1f5f9;
  --ink: #1e293b;
  --mid: #475569;
  --border: #94a3b8;
  --card: #ffffff;
  --accent: #4f46e5;
  --gold: #d97706;
  --gold-light: #a5b4fc;
  --green: #059669;
  --red: #dc2626;
  --blue: #6366f1;
  --shadow: 0 3px 22px rgba(30, 41, 59, 0.1);
  --shadow-lg: 0 10px 40px rgba(30, 41, 59, 0.16);
  --accent-hover: #4338ca;
  --on-accent: #eef2ff;
  --nav-surface: rgba(241, 245, 249, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.9);
  --store-bg-layer:
    radial-gradient(ellipse 76% 52% at 18% 0%, rgba(99, 102, 241, 0.22), transparent 50%),
    radial-gradient(ellipse 52% 42% at 100% 90%, rgba(148, 163, 184, 0.38), transparent 50%),
    linear-gradient(170deg, #f1f5f9 0%, #e2e8f0 45%, #cbd5e1 100%);
}
html[data-store-theme="aurora"] {
  --bg: #f0fdfa;
  --ink: #312e81;
  --mid: #5b21b6;
  --border: #99f6e4;
  --card: #ffffff;
  --accent: #0d9488;
  --gold: #ca8a04;
  --gold-light: #c4b5fd;
  --green: #059669;
  --red: #e11d48;
  --blue: #6366f1;
  --shadow: 0 3px 22px rgba(13, 148, 136, 0.12);
  --shadow-lg: 0 10px 40px rgba(91, 33, 182, 0.14);
  --accent-hover: #0f766e;
  --on-accent: #ecfeff;
  --nav-surface: rgba(240, 253, 250, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.9);
  --store-bg-layer:
    radial-gradient(ellipse 72% 56% at 8% 8%, rgba(45, 212, 191, 0.36), transparent 50%),
    radial-gradient(ellipse 62% 52% at 92% 82%, rgba(167, 139, 250, 0.32), transparent 50%),
    linear-gradient(172deg, #f0fdfa 0%, #e0e7ff 50%, #ccfbf1 100%);
}
html[data-store-theme="cocoa"] {
  --bg: #faf7f2;
  --ink: #422006;
  --mid: #78350f;
  --border: #e7d5c4;
  --card: #ffffff;
  --accent: #92400e;
  --gold: #b45309;
  --gold-light: #d4a574;
  --green: #15803d;
  --red: #b91c1c;
  --blue: #1d4ed8;
  --shadow: 0 3px 22px rgba(66, 32, 6, 0.1);
  --shadow-lg: 0 10px 40px rgba(66, 32, 6, 0.15);
  --accent-hover: #78350f;
  --on-accent: #fffbeb;
  --nav-surface: rgba(250, 247, 242, 0.94);
  --cat-bar-bg: rgba(255, 255, 255, 0.9);
  --store-bg-layer:
    radial-gradient(ellipse 72% 52% at 100% 0%, rgba(212, 165, 116, 0.38), transparent 50%),
    radial-gradient(ellipse 52% 42% at 0% 100%, rgba(146, 64, 14, 0.14), transparent 50%),
    linear-gradient(168deg, #faf7f2 0%, #f5ebe0 48%, #eddac7 100%);
}

/* Product measurements — spec pills, detail, unit converter */
.store-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.15rem;
  align-items: center;
}
.store-spec-pill {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: #eceae6;
  color: var(--mid);
  line-height: 1.35;
  max-width: 100%;
  word-break: break-word;
}
.store-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.2rem 0 0;
}
.store-spec-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  line-height: 1.2;
}
.store-spec-badge--frozen {
  background: #dbeafe;
  color: #1e40af;
}
.store-spec-badge--cold {
  background: #e0f2fe;
  color: #0369a1;
}
.store-spec-badge--hot {
  background: #ffedd5;
  color: #c2410c;
}
.store-spec-badge--care {
  background: #fef3c7;
  color: #92400e;
}
.store-spec-badge--fragile {
  background: #fee2e2;
  color: #b91c1c;
}
.store-spec-badge--haz {
  background: #f3e8ff;
  color: #6b21a8;
}
.store-vol-hint {
  margin: 0.15rem 0 0;
  font-size: 0.65rem;
  color: var(--red);
  line-height: 1.35;
  font-weight: 600;
}
.pd-meas-badges {
  margin: 0.25rem 0;
}
.pd-meas-pills {
  margin: 0.35rem 0;
}
.pd-ship-vol-note {
  margin: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  line-height: 1.4;
}
.pd-unit-toggle-row {
  margin: 0.35rem 0;
}
.pd-convert-units-btn {
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--gold-light);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--accent);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.pd-convert-units-btn:hover {
  background: #fff7e6;
  border-color: var(--gold);
}
.pd-weight-calc {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.pd-wc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mid);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pd-wc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.pd-wc-input {
  flex: 1;
  min-width: 100px;
  max-width: 160px;
  padding: 0.5rem 0.65rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}
.pd-wc-total {
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.pd-spec-table-wrap {
  margin: 1rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.pd-spec-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.pd-spec-dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
}
@media (max-width: 520px) {
  .pd-spec-dl {
    grid-template-columns: 1fr;
  }
}
.pd-spec-dl dt {
  margin: 0;
  color: var(--mid);
  font-weight: 600;
  padding-top: 0.2rem;
}
.pd-spec-dl dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}
.store-unit-fab {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  z-index: 620;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  background: var(--accent);
  color: var(--gold-light);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  transition:
    transform 0.2s,
    background 0.2s;
}
.store-unit-fab:hover {
  transform: scale(1.06);
  background: var(--accent-hover);
}
.store-unit-modal {
  position: fixed;
  inset: 0;
  z-index: 625;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.store-unit-modal[aria-hidden="false"] {
  display: flex;
}
.store-unit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, 0.45);
  backdrop-filter: blur(3px);
}
.store-unit-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 0 0 0;
  background: var(--card);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  padding: 1rem 1.1rem 1.25rem;
  border: 1px solid var(--border);
}
@media (min-width: 540px) {
  .store-unit-modal {
    align-items: center;
    padding: 1rem;
  }
  .store-unit-modal-panel {
    border-radius: 16px;
    margin: 0 auto;
  }
}
.store-unit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.store-unit-modal-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.store-unit-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.store-unit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.store-unit-tab {
  flex: 1;
  min-width: 4.5rem;
  padding: 0.45rem 0.4rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
  color: var(--mid);
}
.store-unit-tab.active {
  border-color: var(--accent);
  background: rgba(26, 26, 46, 0.06);
  color: var(--accent);
}
.store-unit-pane {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
}
.store-unit-pane.active {
  display: flex;
}
.store-unit-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid);
}
.store-unit-field input,
.store-unit-field select {
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
}
.store-unit-out {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
  padding: 0.55rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--ink);
  word-break: break-word;
}
.store-unit-hint {
  font-size: 0.72rem;
  color: var(--mid);
  margin-top: 0.25rem;
}

/* —— Dynamic product & shop rotation (storefront) —— */
.rotation-countdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.rotation-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #1a1a2e;
  color: #e8c547;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.rotation-pill--pulse {
  animation: rotationPillPulse 1.2s ease-in-out infinite;
}
@keyframes rotationPillPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(232, 197, 71, 0.35);
  }
}

.featured-shop-banner {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #fff7e0 0%, #f5e6c8 45%, #edd9a8 100%);
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  transform: translateY(0);
  opacity: 1;
}
.featured-shop-banner[hidden] {
  display: none !important;
}
.featured-shop-banner--enter {
  animation: featuredBannerIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.featured-shop-banner--exit {
  animation: featuredBannerOut 0.35s ease forwards;
}
@keyframes featuredBannerIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes featuredBannerOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-18px);
    opacity: 0;
  }
}

.featured-shop-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
}
.featured-shop-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}
.featured-shop-logo-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(212, 175, 55, 0.5);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.featured-shop-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-shop-logo-ph {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}
.featured-shop-text {
  min-width: 0;
}
.featured-shop-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c5e10;
  margin-bottom: 0.2rem;
}
.featured-shop-name {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.featured-shop-desc {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-shop-countdown {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5c4a12;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 599px) {
  .featured-shop-banner-inner {
    padding: 0.55rem 0.75rem;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }
  .featured-shop-text .featured-shop-desc {
    display: none;
  }
  .featured-shop-text .featured-shop-badge {
    display: none;
  }
  .featured-shop-badge {
    font-size: 0.58rem;
  }
  .featured-shop-name {
    font-size: 0.92rem;
  }
  .featured-shop-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .featured-shop-countdown {
    font-size: 0.65rem;
    flex-shrink: 0;
  }
}

.products-grid--reshuffle-out .prod-card {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.products-grid--reshuffle-in .prod-card {
  opacity: 0;
  animation: prodStaggerFade 0.3s ease forwards;
}
@keyframes prodStaggerFade {
  to {
    opacity: 1;
  }
}
.products-grid--reshuffle-in .prod-card {
  animation-delay: calc(var(--sd, 0) * 50ms);
}

.prod-trending-badge {
  position: absolute;
  top: 2.4rem;
  right: 0.6rem;
  left: auto;
  z-index: 4;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6b35, #e11d48);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.35);
  animation: trendingBadgeFade 60s ease forwards;
}
@keyframes trendingBadgeFade {
  0%,
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.disc-tag ~ .prod-trending-badge {
  top: 2.35rem;
}
.prod-img.list-view .prod-trending-badge {
  top: auto;
  bottom: 0.55rem;
  right: 0.55rem;
}

.toast.toast--rotation {
  left: auto;
  right: max(1rem, env(safe-area-inset-right));
  transform: translateX(0) translateY(20px);
  max-width: min(20rem, calc(100vw - 2rem));
  text-align: left;
}
.toast.toast--rotation.show {
  animation: toastCornerPop 0.3s ease forwards;
}
@keyframes toastCornerPop {
  from {
    transform: translateX(0) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

.prod-card--flip-t {
  transition:
    transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.45s ease;
}
.products-grid--mobile-shuffle .prod-card {
  transition: opacity 0.28s ease;
}
