:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --text: #101828;
  --muted: #475467;
  --accent: #111827;
  --accent-strong: #0f172a;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --chip-bg: #edf1f5;
  --chip-border: #e3e8ef;
  --chip-text: #334155;
  --highlight-bg: #eef2f7;
  --section-gap: 2.4rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header,
.site-footer {
  width: 100%;
}

.site-header {
  padding: 1.45rem 0 var(--section-gap);
  margin-bottom: var(--section-gap);
  background: #ffffff;
  border-bottom: 1px solid #e7edf3;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.hero-store {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero-store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 340px);
  gap: 1rem;
  align-items: center;
}

.hero-store-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero-store-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.7rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--chip-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

body.spotlight-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(15, 23, 42, 0.22);
  pointer-events: none;
}

.spotlight-target {
  position: relative;
  z-index: 999;
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
  border-color: #dbe3eb;
  scroll-margin-top: 140px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hero-store-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-store-copy .lead {
  max-width: 62ch;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-hero-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, 320px);
}

.home-hero-panel {
  display: grid;
  gap: 0.8rem;
  align-self: center;
  position: relative;
  overflow: hidden;
  padding: 1.05rem;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.9) 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-hero-panel::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0) 68%);
  pointer-events: none;
}

.home-hero-note {
  margin: 0;
  position: relative;
  z-index: 1;
  padding-top: 0.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5c6776;
}

.hero-store-tags {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-height: 100%;
  padding-top: 0;
}

.hero-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-tag-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hero-tag-link:hover,
.hero-tag-link:focus-visible {
  transform: translateY(-1px);
  border-color: #d0d7e0;
  background: #eef2f6;
  color: #111827;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.hero-store-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.hero-store-icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid #e3e8ef;
  color: #334155;
}

.hero-store-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.hero-store-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.hero-store-name {
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.hero-store-category {
  font-size: 0.78rem;
  line-height: 1.2;
  color: #6b7280;
}

.hero-store-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}

.hero-stat {
  display: grid;
  gap: 0.12rem;
  padding: 0.88rem 0.92rem 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.hero-stat-value {
  font-size: 1.48rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.hero-stat-label {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

.hero h1 {
  margin: 0 0 0.62rem;
}

.hero .lead {
  margin: 0;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.55rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.lead {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.hero .lead {
  color: var(--muted);
}

.home-page h2 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
}

body.home-page .hero .lead,
body.brand-page .hero .lead {
  max-width: 58ch;
}

.home-page .grid {
  margin: 0;
}

main.container {
  display: grid;
  gap: var(--section-gap);
  padding-bottom: 3rem;
}

#content {
  display: grid;
  gap: var(--section-gap);
  margin-bottom: 0;
}

#content > section > h2 {
  position: relative;
  margin-bottom: 1.35rem;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

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

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #f8fafc;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 0.95rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.offers-grid .card {
  padding: 22px;
  border-radius: 28px;
  border-color: #e3e8ef;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.offers-grid .card-content {
  padding: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  align-self: flex-start;
  padding: 0.3rem 0.5rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px #e6ebf1;
}

.card-header-text {
  min-width: 0;
  flex: 0 1 auto;
}

.card-header .card-media {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  margin: 2px 5px;
  border-radius: 9px;
  overflow: hidden;
  background: #ffffff;
  box-sizing: border-box;
  font-size: 0.58rem;
  font-weight: 600;
}

.card-header .card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.card-separator {
  margin: 0.95rem 0 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.card-brand {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
  color: #1f2937;
}

.card-content h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.06;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.05em * 2);
}

h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.hl-marker {
  display: inline;
  padding: 0 0.2em;
  border-radius: 0.35em;
  background: var(--highlight-bg);
}

.hl-marker-blue {
  background: var(--highlight-bg);
}

.card-content p {
  margin: 0.78rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.card-content p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.45em * 3);
}

.offers-section {
  margin-top: 0;
}

.offers-section > h2 {
  margin-bottom: 1.35rem;
}

.offers-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 0;
}

.offers-grid > li {
  display: flex;
  min-width: 0;
}

.offers-grid .card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.promo-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.promo-card .card-brand {
  font-size: 0.88rem;
  color: var(--chip-text);
}

.promo-card .card-content h3 {
  margin-top: 1rem;
  font-size: clamp(1.12rem, 1.55vw, 1.4rem);
  line-height: 1.08;
  font-weight: 650;
  color: #111827;
  min-height: calc(1.08em * 2);
  -webkit-line-clamp: 2;
}

.promo-card .card-content p {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5f6b7a;
  min-height: calc(1.5em * 3);
  -webkit-line-clamp: 3;
}

.card-header + h3 {
  margin-top: 0.95rem;
}

.promo-code-panel {
  margin-top: 1rem;
  padding: 0.75rem 0.8rem 0.82rem;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 18px;
  background: #fbfcfe;
  text-align: center;
}

.promo-code-mask {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.promo-code-usage {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 600;
  color: #94a3b8;
}

.promo-open-button {
  margin-top: 0.78rem;
  padding: 0.78rem 0.95rem;
  font-size: 0.92rem;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.promo-open-button:hover,
.promo-open-button:focus-visible {
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.2);
}

.hub-section {
  max-width: none;
  margin-inline: 0;
}

.hub-section > h2 {
  margin-bottom: 1.35rem;
}

.hub-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  align-items: stretch;
}

.hub-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 24px;
  border-color: rgba(226, 232, 240, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  min-height: 100%;
}

.hub-card-media {
  flex: 0 0 clamp(112px, 34%, 140px);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  padding: 0;
  font-size: 0.95rem;
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.hub-card-media .card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  max-width: 100%;
  max-height: 100%;
}

.hub-card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  align-items: flex-start;
  padding: 0.95rem 1rem 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.hub-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.56rem;
  border-radius: 999px;
  background: #f3f5f8;
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #667085;
  font-weight: 600;
  margin-bottom: 0.04rem;
}

.hub-card .card-content h3 {
  font-size: 1rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.hub-card .card-content p {
  margin-top: 0;
  font-size: 0.79rem;
  line-height: 1.35;
  color: #5b6778;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
}

.home-page .hub-card .card-content {
  min-height: 0;
}

.site-footer {
  padding: 0.55rem 0 0.7rem;
  color: #475467;
  font-size: 0.8rem;
  background: var(--bg);
  border-top: 0;
}

.site-footer .container {
  position: relative;
  padding-top: 0.95rem;
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
}

.footer-link-muted {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: none;
}

.footer-link-muted:hover,
.footer-link-muted:focus-visible {
  color: #475569;
  text-decoration: underline;
}

.footer-meta {
  margin-top: 0;
  max-width: 900px;
}

.footer-meta p {
  margin: 0.1rem 0;
  font-size: 0.76rem;
  line-height: 1.28;
  color: #475467;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
  box-shadow: none;
}

.footer-trigger:hover,
.footer-trigger:focus-visible {
  background: #eef2f6;
  color: #111827;
}

.dialog .footer-meta,
.dialog .footer-meta p,
.dialog .footer-meta a {
  color: #101828;
}

.breadcrumbs {
  margin-top: 0.84rem;
  display: inline-flex;
  width: fit-content;
  align-self: flex-start;
  gap: 0.45rem;
  align-items: center;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  position: relative;
  isolation: isolate;
}

.breadcrumbs a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.breadcrumbs:hover,
.breadcrumbs:focus-within {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.breadcrumbs span {
  color: #667085;
}

.card-actions {
  margin-top: auto;
  padding-top: 0.9rem;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.56rem 0.82rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border-color: #111827;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(180deg, #273244 0%, #0f172a 100%);
  border-color: #0f172a;
  color: #ffffff;
}

.btn-primary.copy-success {
  background: linear-gradient(180deg, #0f4a44 0%, #0b3531 100%);
  border-color: #0b3531;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(11, 53, 49, 0.18);
}

.btn-primary.copy-success:hover,
.btn-primary.copy-success:focus-visible {
  background: linear-gradient(180deg, #0d5a53 0%, #0a2f2c 100%);
  border-color: #0a2f2c;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  border-color: #e3e8ef;
  color: #334155;
}

.dialog[hidden] {
  display: none;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.dialog-panel {
  position: relative;
  width: min(560px, 92vw);
  max-height: 92vh;
  margin: 4vh auto 0;
  overflow: auto;
  background: var(--surface);
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  padding: 1.2rem;
}

.code-box {
  margin: 0.75rem 0;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #fbfcfe;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  padding: 0.9rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.5rem;
}

.dialog-note {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 18px;
  background: #fbfcfe;
  border: 1px solid #e3e8ef;
}

.faq {
  margin: 0 0 2.4rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.faq > h2 {
  margin-bottom: 1rem;
}

.faq-list {
  margin-top: 0;
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 1.4rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.dialog-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ad-slot {
  margin: 0;
}

.ad-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: none;
}

.ad-media {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f6f8fb;
  border: 1px solid #e3e8ef;
  color: var(--accent-strong);
  font-weight: 700;
}

.ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-content {
  min-width: 0;
}

.ad-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-transform: uppercase;
}

.ad-card h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  letter-spacing: -0.01em;
}

.ad-card p {
  margin: 0 0 0.8rem;
}

.ad-action {
  display: flex;
  justify-content: flex-end;
}

.similar-section {
  margin: 0;
}

.carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.35rem;
}

.carousel-controls {
  display: flex;
  gap: 0.45rem;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e3e8ef;
  border-radius: 9px;
  background: #ffffff;
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.chevron-left {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.chevron-right {
  transform: rotate(45deg);
  margin-right: 3px;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  border-color: #cfd7e2;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.similar-carousel {
  margin-top: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.similar-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.2rem;
}

.similar-card {
  scroll-snap-align: start;
  width: 100%;
  min-height: 100%;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding: 15px;
  border-radius: 22px;
}

.similar-card .card-content {
  padding: 0;
}

.similar-card .card-header {
  gap: 0.65rem;
}

.similar-card .card-separator {
  margin: 0.85rem 0 0.75rem;
}

.similar-card .card-brand {
  font-size: 0.84rem;
}

.similar-card .card-content h3 {
  font-size: 1.12rem;
  line-height: 1.05;
}

.similar-card .card-content p {
  font-size: 0.84rem;
}

.similar-card .card-actions {
  padding-top: 0.9rem;
}

@media (max-width: 760px) {
  .site-header {
    padding: 1.3rem 0 var(--section-gap);
    margin-bottom: var(--section-gap);
  }

  .hero {
    gap: 0;
  }

  .hero-store {
    padding: 0;
  }

  .hero-store-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .home-hero-panel {
    padding: 0.88rem;
    border-radius: 22px;
  }

  .hero-store-copy h1 {
    max-width: none;
    margin-bottom: 0.5rem;
    font-size: clamp(1.65rem, 7vw, 2.35rem);
    line-height: 1.04;
  }

  .hero-store-badge {
    margin-bottom: 0.55rem;
    padding: 0.38rem 0.68rem;
    font-size: 0.76rem;
  }

  .hero-tag-link {
    padding: 0.38rem 0.64rem;
    font-size: 0.8rem;
  }

  .hero-store-tags {
    width: 100%;
    overflow: hidden;
  }

  .hero-tag-cloud {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.4rem;
    width: 100%;
    padding: 0.1rem 0 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-tag-cloud::-webkit-scrollbar {
    display: none;
  }

  .hero-tag-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .hero-store-copy .lead {
    font-size: 0.92rem;
    line-height: 1.42;
  }

  h1 {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.15rem, 5.6vw, 1.45rem);
    line-height: 1.15;
  }

  .breadcrumbs {
    width: auto;
    max-width: 100%;
    white-space: normal;
    flex-wrap: wrap;
    padding: 0.3rem 0.65rem;
    font-size: 0.88rem;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .similar-track {
    grid-auto-columns: minmax(280px, 82vw);
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .offers-grid > li,
  .hub-grid > li,
  .similar-track > * {
    min-width: 0;
  }

  .offers-grid .card {
    padding: 18px;
    border-radius: 22px;
  }

  .offers-grid .card-media {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.56rem;
  }

  .card-header {
    gap: 0.56rem;
  }

  .card-brand {
    font-size: 0.74rem;
  }

  .card-content h3 {
    font-size: 1.02rem;
    line-height: 1.14;
    min-height: 0;
  }

  .card-content p {
    font-size: 0.82rem;
    line-height: 1.4;
    min-height: 0;
  }

  .card-actions {
    padding-top: 0.84rem;
  }

  .card-header .card-media {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    margin: 2px 5px;
    font-size: 0.54rem;
  }

  .promo-card .card-brand {
    font-size: 0.76rem;
  }

  .promo-card .card-content h3 {
    margin-top: 0.75rem;
    font-size: 1.08rem;
    line-height: 1.08;
    min-height: 0;
  }

  .card-header + h3 {
    margin-top: 0.7rem;
  }

  .promo-card .card-content p {
    margin-top: 0.6rem;
    font-size: 0.86rem;
    line-height: 1.42;
    min-height: 0;
  }

  .promo-code-panel {
    margin-top: 0.8rem;
    padding: 0.62rem 0.68rem 0.7rem;
    border-radius: 14px;
  }

  .promo-code-mask {
    font-size: 1.25rem;
  }

  .promo-code-usage {
    margin-top: 0.22rem;
    font-size: 0.72rem;
  }

  .promo-open-button {
    margin-top: 0.68rem;
    padding: 0.7rem 0.88rem;
    font-size: 0.85rem;
  }

  .home-page .hub-card-media {
    font-size: 0.86rem;
    padding: 0;
    flex-basis: 92px;
  }

  .home-page .hub-card .card-content {
    min-height: 0;
    padding: 0.72rem 0.82rem 0.82rem;
  }

  .home-page .hub-category {
    font-size: 0.66rem;
  }

  .hub-card .card-content {
    gap: 0.22rem;
  }

  .hub-card .card-content h3 {
    font-size: 0.95rem;
  }

  .hub-card .card-content p {
    font-size: 0.77rem;
  }

  .card-content {
    padding: 0;
    min-width: 0;
  }

  .offers-grid .btn {
    font-size: 0.86rem;
    padding: 0.54rem 0.76rem;
  }

  .similar-card {
    padding: 15px;
    border-radius: 18px;
  }

  .similar-card .card-content h3 {
    font-size: 0.98rem;
  }

  .similar-card .card-content p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .similar-card .card-actions {
    padding-top: 0.84rem;
  }

  .ad-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ad-media {
    display: none;
  }

  .ad-action {
    justify-content: stretch;
  }

  .ad-action .btn {
    width: 100%;
    text-align: center;
  }

  .carousel-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .carousel-controls {
    display: none;
  }
}

@media (max-width: 1200px) {
  .hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}
