:root {
  --bg: #000032;
  --bg-elev: #0d0d45;
  --header-from: #1c1540;
  --header-to: #120c2c;
  --search-bg: #1a1450;
  --search-border: rgba(167, 139, 250, 0.45);
  --chip-bg: #2a2544;
  --chip-border: #c4b5fd;
  --chip-text: #e9d5ff;
  --lit: #4c1d95;
  --lit-border: #6d28d9;
  --lit-hover: #5b21b6;
  --surface: #221d45;
  --surface-2: #221c52;
  --purple: #7c3aed;
  --purple-bright: #8b5cf6;
  --accent: #a78bfa;
  --accent-dim: rgba(167, 139, 250, 0.4);
  --text: #ffffff;
  --text-lavender: #e9d5ff;
  --muted: #b8a8d6;
  --line: rgba(196, 181, 253, 0.22);
  --page-bg: #1a1470;
  --page-border: rgba(167, 139, 250, 0.4);
  --footer-bg: #050018;
  --radius: 22px;
  --pill: 40px;
  --shadow: 0 12px 28px -14px rgba(20, 0, 60, 0.75);
  --max: 1120px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --amazon-navy: #232f3e;
  --amazon-orange: #ff9900;
  --ali-red: #d33b16;
  --pcc-orange: #e05600;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 42% at 50% -8%, rgba(75, 43, 140, 0.28), transparent 62%),
    radial-gradient(ellipse 50% 30% at 100% 0%, rgba(28, 28, 94, 0.28), transparent 50%);
  padding: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 8px 18px 0;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 0 0 24px;
  padding: calc(22px + var(--safe-top)) 18px 26px;
  background: linear-gradient(180deg, var(--header-from) 0%, var(--header-to) 100%);
  border-bottom: 1px solid var(--accent-dim);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 40, 0.7);
}

.search,
.category-chips {
  width: 100%;
  max-width: var(--max);
}

.search-toolbar-slot {
  width: 100%;
  max-width: var(--max);
  flex-shrink: 0;
}

.search-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.search-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
}

.search-row .search {
  width: 100%;
}

.search-toolbar-logo {
  display: none;
}

.search { max-width: 520px; }

.logo {
  display: block;
  line-height: 0;
  border-radius: 16px;
  outline: none;
}

.logo img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(124, 58, 237, 0.35));
}

.logo:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}

.social {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  box-shadow: var(--shadow);
}

.social a svg { width: 20px; height: 20px; }

.social-facebook {
  background: #1a2740;
  border-color: rgba(24, 119, 242, 0.42);
  color: #8ab4f8;
}

.social-instagram {
  background: linear-gradient(135deg, rgba(245, 133, 41, 0.28), rgba(221, 42, 123, 0.3) 50%, rgba(129, 52, 175, 0.3));
  border-color: rgba(221, 42, 123, 0.4);
  color: #f7c6d8;
}

.social-youtube {
  background: #2a1516;
  border-color: rgba(255, 0, 0, 0.4);
  color: #ff6b6b;
}

.social-tiktok {
  background: #141416;
  border-color: rgba(255, 255, 255, 0.16);
  color: #f4f4f5;
  box-shadow: 0 0 0 1px rgba(37, 244, 238, 0.22), 0 0 0 2px rgba(254, 44, 85, 0.16), var(--shadow);
}

.social a:hover,
.social a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.12);
  outline: none;
}

.search {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 46px;
  border: 1px solid var(--search-border);
  border-radius: var(--pill);
  background: var(--search-bg);
  backdrop-filter: blur(8px);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -12px rgba(0, 0, 0, 0.55);
}

/* Separate rules: an unrecognized pseudo (e.g. ::-ms-clear in Blink) would drop a grouped selector list. */
input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}
input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
  -webkit-appearance: none;
  display: none;
}
input[type="search"]::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
  display: none;
}
input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.search input::placeholder { color: rgba(233, 213, 255, 0.55); }

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.35);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.search-clear:hover { color: #fff; }

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 4px 6px;
}
.category-chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--chip-border);
  border-radius: var(--pill);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip[aria-pressed="true"] {
  background: var(--lit);
  border-color: var(--lit-border);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(76, 29, 149, 0.85);
}

.chip:hover,
.chip:focus-visible {
  outline: none;
}

.chip:not([aria-pressed="true"]):hover,
.chip:not([aria-pressed="true"]):focus-visible {
  background: var(--lit-hover);
  border-color: var(--lit-border);
  color: #fff;
}

.chip[aria-pressed="true"]:hover,
.chip[aria-pressed="true"]:focus-visible {
  background: var(--lit-hover);
  border-color: var(--lit-border);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card.is-open {
  background: #15152e;
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: var(--shadow);
}

.card-toggle {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  align-content: start;
  flex: 1 1 auto;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.card-toggle:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.55);
  outline-offset: -2px;
}

.card.is-open .card-toggle:focus-visible {
  outline-color: rgba(196, 181, 253, 0.55);
}

.thumb {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: #f4f4f6;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.card-body { min-width: 0; }

.card h2 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.22);
  color: var(--text-lavender);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.panel {
  display: none;
  padding: 4px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #08081a;
}

.card.is-open .panel { display: block; }

.store-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.hint {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hint .brand { width: 16px; height: 16px; display: block; object-fit: contain; }
.hint .flag { width: 11px; height: 8px; }
.hint .store-badge { display: grid; place-items: center; }

.hint-amazon_es,
.hint-amazon_com {
  background: var(--amazon-navy);
  color: var(--amazon-orange);
  box-shadow: inset 0 0 0 1px rgba(255, 153, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.hint-aliexpress { background: var(--ali-red); color: #fff; }
.hint-pccomponentes {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.hint-official {
  background: #2a2a32;
  color: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.stores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0 8px;
}

.store-block { min-width: 0; }

.store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.store-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.store-amazon_es .brand,
.store-amazon_com .brand,
.store-aliexpress .brand,
.store-official .brand {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.store-pccomponentes .store-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.store-pccomponentes .brand {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.store-text { text-align: left; }

.store-amazon_es,
.store-amazon_com {
  background: var(--amazon-navy);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 153, 0, 0.55), 0 8px 18px -6px rgba(0, 0, 0, 0.55);
}
.store-amazon_es .brand,
.store-amazon_com .brand {
  color: var(--amazon-orange);
}

.store-aliexpress {
  background: var(--ali-red);
  color: #fff;
}

.store-pccomponentes {
  background: var(--pcc-orange);
  color: #fff;
}

.store-official {
  background: #2a2a32;
  color: #f4f4f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 18px -6px rgba(0, 0, 0, 0.55);
}

.store:hover,
.store:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.55);
  filter: brightness(1.08);
}

.store:focus-visible,
.store:active,
.store:visited {
  outline-color: rgba(196, 181, 253, 0.55);
}

.store-amazon_es:hover,
.store-amazon_es:focus-visible,
.store-amazon_com:hover,
.store-amazon_com:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255, 153, 0, 0.8), 0 12px 24px -6px rgba(0, 0, 0, 0.55);
}

.store-official:hover,
.store-official:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 12px 24px -6px rgba(0, 0, 0, 0.55);
}

.store:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.96);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.5);
}

.coupons {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coupon {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px dashed rgba(196, 181, 253, 0.35);
}

.coupon-code {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.coupon-code:hover,
.coupon-code:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.coupon-code.is-copied {
  background: var(--purple);
  color: #fff;
}

.coupon-info { min-width: 0; }

.coupon-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.35;
}

.coupon-meta {
  margin-top: 4px !important;
  color: var(--muted) !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.coupon-demo {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.18);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.yt {
  margin-top: 16px;
}

.yt-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.yt-lite {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #000 center / cover no-repeat;
  padding: 0;
}

.yt-lite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
}

.yt-lite .play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}

.yt-lite .play svg { width: 28px; height: 28px; margin-left: 3px; }

.yt-lite:hover .play,
.yt-lite:focus-visible .play {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.92);
}

.yt-lite iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.yt-lite.is-playing {
  cursor: default;
  background: #000;
}

.yt-lite.is-playing::after,
.yt-lite.is-playing .play {
  content: none;
  display: none;
  pointer-events: none;
}

.yt-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.yt-open svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.yt-open span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yt-open:hover,
.yt-open:focus-visible { color: var(--accent); }

.yt-open:focus-visible,
.yt-open:active,
.yt-open:visited {
  outline: 2px solid rgba(196, 181, 253, 0.55);
  outline-offset: 2px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
}

.pagination {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
}
.pagination::-webkit-scrollbar { display: none; }

.pagination button,
.pagination .page-ellipsis {
  flex: 0 0 auto;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--chip-border);
  border-radius: var(--pill);
  background: var(--chip-bg);
  color: var(--chip-text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
}

.pagination .page-ellipsis {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 24px;
  padding: 0 2px;
  cursor: default;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.pagination button.page-nav {
  font-size: 1.15rem;
  padding: 0 8px;
}

.pagination button[aria-current="page"] {
  background: var(--lit);
  border-color: var(--lit-border);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination button:not(:disabled):hover,
.pagination button:not(:disabled):focus-visible {
  background: var(--lit-hover);
  border-color: var(--lit-border);
  color: #fff;
  outline: none;
}

.pagination button[aria-current="page"]:not(:disabled):hover,
.pagination button[aria-current="page"]:not(:disabled):focus-visible {
  background: var(--lit-hover);
  border-color: var(--lit-border);
  color: #fff;
}


.novedades {
  margin: 4px 0 26px;
}

.novedades-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.novedades-head h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.novedades-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.novedades-row {
  display: flex;
  justify-content: center;
  justify-content: safe center;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}

.novedades-row::-webkit-scrollbar { display: none; }

.novedad {
  flex: 0 0 128px;
  display: block;
  position: relative;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.3) 0%, rgba(34, 29, 69, 0.98) 55%) padding-box,
    linear-gradient(145deg, #c4b5fd, #7c3aed 50%, #5b21b6) border-box;
  box-shadow: 0 10px 24px -12px rgba(109, 40, 217, 0.55), var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.novedad:hover,
.novedad:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(139, 92, 246, 0.7), var(--shadow);
  filter: brightness(1.06);
  outline: none;
}

.novedad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow: 0 4px 10px -3px rgba(154, 52, 18, 0.7);
  pointer-events: none;
}

.novedad-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f4f4f6;
  overflow: hidden;
}

.novedad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  box-sizing: border-box;
}

.novedad h3 {
  margin: 8px 2px 2px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card.is-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35), var(--shadow);
}

.site-footer {
  width: 100%;
  margin-top: 32px;
  padding: 22px 18px calc(26px + var(--safe-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--footer-bg);
  border-top: 1px solid rgba(90, 50, 180, 0.4);
}

.site-footer p { margin: 0; }

.site-footer .affiliate-note {
  margin: 16px auto 0;
  max-width: 36rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
  text-align: center;
}


.meta {
  margin: 0;
  text-align: center;
  color: var(--text-lavender);
  font-size: 0.92rem;
  font-weight: 500;
}



.search-toolbar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  gap: 10px;
  max-width: none;
  padding: calc(10px + var(--safe-top)) 16px 12px;
  background: linear-gradient(180deg, rgba(28, 21, 64, 0.94) 0%, rgba(18, 12, 44, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--accent-dim);
  box-shadow: 0 14px 32px -12px rgba(0, 0, 40, 0.8);
  transform: translate3d(0, -110%, 0);
  transition: none;
  pointer-events: none;
}

.search-toolbar.is-sticky.is-visible {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.search-toolbar.is-sticky.is-animating {
  transition: transform 0.28s ease;
}

.search-toolbar.is-sticky .search-row {
  width: min(100%, calc(520px + 40px + 10px));
  max-width: var(--max);
  margin-inline: auto;
  justify-content: flex-start;
  gap: 10px;
}

.search-toolbar.is-sticky .search-toolbar-logo {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  outline: none;
  line-height: 0;
}

.search-toolbar.is-sticky .search-toolbar-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(124, 58, 237, 0.4));
}

.search-toolbar.is-sticky .search-toolbar-logo:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}

.search-toolbar.is-sticky .search {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 520px;
}

.search-toolbar.is-sticky .category-chips {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .search-toolbar.is-sticky,
  .search-toolbar.is-sticky.is-animating {
    transition: none;
  }
}

@media (min-width: 600px) {
  .logo img { width: 118px; }
  .card-toggle { grid-template-columns: 104px 1fr; gap: 16px; padding: 14px; }
  .thumb { width: 104px; height: 104px; }
}

@media (min-width: 860px) {
  .search-toolbar.is-sticky {
    gap: 12px;
    padding: calc(12px + var(--safe-top)) 24px 14px;
  }
  .site-header { padding-top: calc(28px + var(--safe-top)); }
  .stores { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .card-toggle { grid-template-columns: 1fr; text-align: left; align-items: stretch; }
  .thumb {
    width: 100%;
    height: 200px;
    border-radius: 16px;
  }
  .card h2 { font-size: 1.08rem; }
  .category-chips {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
  .stores { grid-template-columns: 1fr; }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(196, 181, 253, 0.45); }
  .card.is-open:hover { border-color: rgba(196, 181, 253, 0.55); }
  .card.is-target:hover { border-color: var(--accent); }
}

.geo-unavailable {
  margin: 16px 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.1);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}
