:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #101725;
  --surface-2: #151e30;
  --text: #f5f7fb;
  --muted: #9aa4b8;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #ffc928;
  --brand-2: #f5a400;
  --navy: #111827;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #111827;
  --muted: #5d6678;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 201, 40, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav-inner,
.nav-links,
.brand,
.footer-minimal,
.footer-bottom,
.deal-card-head,
.deal-meta,
.deals-toolbar,
.deal-detail-kicker,
.language-switch {
  display: flex;
  align-items: center;
}

.nav-inner {
  min-height: 78px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-logo,
.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(255, 201, 40, 0.18);
}

.brand-name {
  font-size: 1.05rem;
}

.nav-links {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.language-switch a,
.theme-toggle,
.chip,
.deal-region-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--muted);
}

.nav-link,
.language-switch a {
  padding: 10px 13px;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-link.active,
.language-switch a.active,
.chip.active {
  color: #0b1020;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
}

.nav-link.muted {
  color: var(--muted);
}

.language-switch {
  gap: 4px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}

.deals-hero-section {
  padding: 58px 0 26px;
}

.home-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  padding: 42px 0 18px;
}

.home-hero-copy,
.home-hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 72%, var(--surface)));
  box-shadow: var(--shadow);
}

.home-hero-copy {
  padding: 28px;
}

.home-hero-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.home-hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.home-hero-panel-title {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.home-hero-panel-badge {
  border-radius: 999px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--brand) 18%, var(--surface-2));
  color: var(--brand);
  font-weight: 900;
  font-size: 0.75rem;
}

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 12px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.home-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.home-section-label {
  padding: 12px 0 18px;
}

.home-deals {
  padding-bottom: 18px;
}

.home-hero .page-hero-sub {
  max-width: 680px;
}

.eyebrow,
.deal-info-label,
.deal-price-label {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  max-width: 900px;
  margin: 14px 0 18px;
  font-size: clamp(2.4rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.display span {
  display: block;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.45;
  margin-top: 18px;
  font-weight: 750;
}

.page-hero-sub,
.amazon-affiliate-disclosure,
.deal-affiliate-note,
.deal-region-note,
.deal-price-note,
.deal-info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.page-hero-sub {
  max-width: 720px;
  font-size: 1.04rem;
}

.deals-filter-section {
  padding: 10px 0 22px;
}

.deals-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-weight: 800;
}

.deals-toolbar {
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.deals-result-count {
  color: var(--muted);
  font-weight: 800;
}

.deals-sort-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.deals-sort {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
}

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

.deal-card,
.deal-media-panel,
.deal-purchase-panel,
.deal-info-card,
.about-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 70%, var(--surface)));
  box-shadow: var(--shadow);
}

.deal-card {
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}

.deal-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
}

.deal-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 22px;
  overflow: hidden;
  background: #fff;
}

.deal-img-product {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.deal-img-placeholder,
.deal-detail-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--navy);
  font-weight: 1000;
}

.deal-img-placeholder {
  width: 100%;
  height: 100%;
  font-size: 5rem;
}

.deal-discount,
.tag-hot {
  background: var(--brand);
  color: #0b1020;
  border-radius: 8px;
  font-weight: 1000;
}

.deal-discount {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  padding: 7px 9px;
  font-size: 0.82rem;
}

.deal-body {
  padding: 15px;
}

.deal-card-head {
  justify-content: space-between;
  gap: 10px;
}

.deal-cat,
.tag-hot {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.deal-cat {
  color: var(--muted);
  font-weight: 900;
}

.tag-hot {
  padding: 5px 8px;
}

.deal-title {
  min-height: 4.8em;
  margin: 11px 0;
  color: var(--text);
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.deal-price-new {
  font-size: 1.35rem;
  font-weight: 1000;
  color: var(--brand);
}

.deal-price-old {
  color: var(--muted);
  text-decoration: line-through;
}

.deal-meta {
  justify-content: space-between;
  margin-top: 11px;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.86rem;
}

.deal-saving {
  color: var(--brand);
}

.deal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  padding: 34px 0 18px;
  font-weight: 750;
}

.deal-detail-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
  grid-auto-rows: max-content;
}

.deal-media-panel,
.deal-purchase-panel,
.deal-info-card {
  padding: 24px;
}

.deal-media-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  padding: 18px;
}

.deal-image-frame {
  width: min(100%, 560px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 82%, var(--surface)), var(--surface));
}

.deal-image-frame img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}

.deal-detail-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  font-size: 8rem;
}

.deal-detail-kicker {
  gap: 10px;
  flex-wrap: wrap;
}

.deal-detail-kicker a,
.deal-detail-kicker span {
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 13%, var(--surface-2));
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.deal-detail-title {
  margin: 18px 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.deal-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.deal-detail-meta div,
.deal-price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
}

.deal-detail-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-detail-meta dd {
  margin: 8px 0 0;
  font-weight: 900;
}

.deal-price-main {
  display: block;
  margin-top: 10px;
  color: var(--brand);
  font-size: 2.15rem;
}

.deal-price-old-inline {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.deal-buy-button {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 15px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1020;
  font-weight: 1000;
}

.deal-buy-button.compact {
  width: auto;
}

.deal-regions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.deal-regions h2 {
  font-size: 1.05rem;
}

.deal-region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deal-region-links a {
  padding: 10px 13px;
  font-weight: 850;
}

.deal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 76px;
}

.about-hero {
  padding: 70px 0 22px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 24px 0 90px;
}

.about-panel {
  padding: 30px;
}

.about-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 940px;
  padding: 24px 0 90px;
}

.legal-panel {
  padding: 28px 30px;
}

.legal-panel p {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}

.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, var(--bg));
  padding: 42px 0;
}

.footer-minimal {
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 800;
}

.footer-bottom {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.empty-state,
.empty-page {
  padding: 48px;
  margin: 20px auto 80px;
}

[dir="rtl"] .deal-title,
[dir="rtl"] .display,
[dir="rtl"] .page-hero-sub,
[dir="rtl"] .deal-detail-title,
[dir="rtl"] .deal-info-card p,
[dir="rtl"] .home-stat strong,
[dir="rtl"] .home-stat span {
  text-align: right;
}

[dir="rtl"] body {
  font-size: 0.94rem;
}

[dir="rtl"] .display {
  font-size: clamp(2rem, 5.4vw, 4.5rem);
  line-height: 1.04;
}

[dir="rtl"] .deal-detail-title {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.32;
}

[dir="rtl"] .page-hero-sub,
[dir="rtl"] .amazon-affiliate-disclosure,
[dir="rtl"] .deal-affiliate-note,
[dir="rtl"] .deal-region-note,
[dir="rtl"] .deal-price-note,
[dir="rtl"] .deal-info-card p,
[dir="rtl"] .about-panel p {
  font-size: 0.95rem;
}

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

  .deal-detail-shell,
  .deal-info-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-shell {
    grid-template-columns: 1fr;
  }

  .home-hero-stats {
    grid-template-columns: 1fr;
  }

  .deal-media-panel {
    min-height: auto;
  }

  .deal-image-frame {
    padding: 14px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .deal-detail-meta,
  .deals-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .deal-media-panel,
  .deal-purchase-panel,
  .deal-info-card,
  .home-hero-copy,
  .home-hero-panel {
    padding: 18px;
  }
}
