:root {
  --navy: #071b29;
  --navy-soft: #0e2a3b;
  --ink: #132934;
  --ink-soft: #5d6b70;
  --warm: #f5f0e7;
  --warm-pale: #f8f4ec;
  --card: #fffcf7;
  --amber: #c99132;
  --amber-light: #edcd8b;
  --line: rgba(19, 41, 52, 0.14);
  --shadow: 0 24px 60px rgba(7, 27, 41, 0.13);
  --shell: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--warm-pale); font-family: Arial, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(201, 145, 50, 0.7); outline-offset: 3px; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; inset-inline-start: 12px; padding: 12px 16px; border-radius: 8px; color: var(--navy); background: var(--amber-light); font-size: 13px; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.catalog-header { position: static; color: #fffaf2; background: rgba(7, 27, 41, 0.97); border-bottom: 1px solid rgba(255,255,255,.11); backdrop-filter: blur(14px); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-block; font-family: Georgia, "Noto Serif", "Noto Naskh Arabic", "Times New Roman", serif; font-size: 25px; font-weight: 700; letter-spacing: -.045em; }
.brand span { color: var(--amber-light); }
.header-controls { display: flex; gap: 18px; align-items: center; }
.market-switcher { position: relative; display: inline-flex; align-items: center; }
.market-switcher select { width: 174px; min-height: 34px; padding-block: 0; padding-inline: 10px 30px; border: 1px solid rgba(237,205,139,.28); border-radius: 999px; color: #fffaf2; background: var(--navy-soft); cursor: pointer; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.market-switcher select:hover { border-color: rgba(237,205,139,.72); }
.market-switcher option { color: var(--ink); background: #fff; }
.language-switcher { display: inline-flex; gap: 5px; align-items: center; color: rgba(255,250,242,.48); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.language-switcher button { padding: 7px 1px; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; opacity: .58; }
.language-switcher button:hover, .language-switcher button[aria-pressed="true"] { color: var(--amber-light); opacity: 1; }

.catalog-hero { color: #fffaf2; background: radial-gradient(circle at 86% 10%, rgba(237,205,139,.14), transparent 32%), var(--navy); }
.hero-inner { min-height: 248px; display: flex; gap: 42px; align-items: end; justify-content: space-between; padding-block: 34px 32px; }
.eyebrow { display: flex; gap: 11px; align-items: center; margin: 0 0 12px; color: var(--amber-light); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow > span:first-child { width: 29px; height: 1px; background: currentColor; }
h1 { max-width: 900px; margin: 0; font-family: Georgia, "Noto Serif", "Noto Naskh Arabic", "Times New Roman", serif; font-size: clamp(42px, 4.9vw, 64px); font-weight: 400; line-height: .98; letter-spacing: -.05em; }
.hero-copy { max-width: 720px; margin: 14px 0 0; color: rgba(255,250,242,.7); font-family: Georgia, "Noto Serif", "Noto Naskh Arabic", "Times New Roman", serif; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.42; }
.demo-context { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-bottom: 3px; }
.demo-label { padding: 8px 12px; border: 1px solid rgba(237,205,139,.5); border-radius: 999px; color: var(--amber-light); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.active-market-label { color: rgba(255,250,242,.62); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.catalog-main { padding-block: 24px 82px; }
.filter-panel { display: grid; grid-template-columns: minmax(230px, 1.5fr) repeat(4, minmax(145px, 1fr)); gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 10px 35px rgba(7,27,41,.06); }
.filter-panel label { display: block; margin: 0 0 6px 2px; color: #87632a; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.filter-panel input::placeholder { color: #879296; }
.results-summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.results-summary p { margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.text-button { padding: 8px 0; border: 0; border-bottom: 1px solid var(--amber); color: #76541d; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }

.catalog-group + .catalog-group { margin-top: 66px; }
.group-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-heading h2 { margin: 0; font-family: Georgia, "Noto Serif", "Noto Naskh Arabic", "Times New Roman", serif; font-size: clamp(29px, 3.2vw, 39px); font-weight: 400; letter-spacing: -.04em; }
.group-heading span { color: #87632a; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.deals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.deal-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .22s, box-shadow .22s, transform .22s; }
.deal-card:hover { border-color: rgba(19,41,52,.26); box-shadow: var(--shadow); transform: translateY(-4px); }
.deal-card.selected { border-color: rgba(201,145,50,.42); }
.deal-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgba(201,145,50,.18), transparent), #ebe2d4; }
.deal-media::after { position: absolute; z-index: 0; inset: 0; display: grid; place-items: center; content: "DD"; color: rgba(7,27,41,.17); font-family: Georgia, serif; font-size: 34px; font-weight: 700; }
.deal-image { position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .65s, opacity .18s; }
.deal-image.is-unavailable { opacity: 0; }
.deal-card:hover .deal-image { transform: scale(1.04); }
.deal-badges { position: absolute; z-index: 2; top: 13px; inset-inline: 13px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.badge { padding: 7px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: var(--ink); background: rgba(255,252,247,.92); backdrop-filter: blur(8px); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.badge.editorial { color: var(--navy); background: var(--amber-light); border-color: var(--amber-light); }
.badge.score { color: #fffaf2; background: rgba(7,27,41,.86); border-color: rgba(255,255,255,.25); }
.deal-content { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.deal-meta { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 10px; color: #87632a; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.deal-meta span:last-child { color: var(--ink-soft); text-align: end; }
.deal-title { margin: 0; font-family: Georgia, "Noto Serif", "Noto Naskh Arabic", "Times New Roman", serif; font-size: clamp(21px, 2vw, 25px); font-weight: 400; line-height: 1.17; letter-spacing: -.03em; }
.deal-price { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 19px 0 23px; }
.current-price { font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.previous-price { color: #8c9699; font-size: 13px; text-decoration: line-through; }
.discount { margin-inline-start: auto; padding: 6px 9px; border-radius: 999px; color: #73521e; background: #f3e2bc; font-size: 9px; font-weight: 800; }
.deal-action { width: 100%; min-height: 44px; display: grid; place-items: center; margin-top: auto; border: 1px solid var(--navy); border-radius: 999px; color: #fffaf2; background: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .04em; transition: color .18s, background .18s; }
.deal-action:hover { color: var(--navy); background: var(--amber-light); }
.empty-state { padding: 80px 24px; border: 1px solid var(--line); border-radius: 18px; text-align: center; background: var(--card); }
.empty-state p { margin: 7px 0 0; color: var(--ink-soft); }
.empty-state .empty-title { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 28px; }
.load-more-wrap { display: flex; justify-content: center; padding-top: 46px; }
.load-more { padding: 16px 28px; border: 1px solid var(--navy); border-radius: 999px; color: #fffaf2; background: var(--navy); box-shadow: 0 10px 25px rgba(7,27,41,.12); cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.load-more:hover { color: var(--navy); background: var(--amber-light); }
.catalog-footer { padding-block: 42px; color: #fffaf2; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); }
.footer-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(240px, .7fr); align-items: start; gap: 24px; }
.footer-inner p { margin: 0; color: rgba(255,250,242,.55); font-size: 11px; }
.footer-nav { display: flex; gap: 10px 20px; justify-content: center; flex-wrap: wrap; padding-top: 4px; }
.footer-nav a { color: rgba(255,250,242,.72); font-size: 10px; font-weight: 700; }
.footer-nav a:hover { color: var(--amber-light); text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { text-align: right; }
.footer-note { margin-top: 8px !important; font-size: 9px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1050px) { .filter-panel { grid-template-columns: repeat(2, 1fr); } .search-field { grid-column: 1 / -1; } .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .shell { width: min(calc(100% - 28px), var(--shell)); } .header-inner { min-height: 60px; gap: 12px; } .brand { font-size: 22px; } .header-controls { gap: 10px; } .market-switcher select { width: 82px; min-height: 32px; padding-inline-start: 8px; } .hero-inner { min-height: auto; display: block; padding-block: 38px 40px; } h1 { font-size: clamp(40px, 13vw, 58px); } .demo-context { align-items: flex-start; margin-top: 22px; } .catalog-main { padding-block: 18px 70px; } .filter-panel { grid-template-columns: 1fr; padding: 15px; } .search-field { grid-column: auto; } .deals-grid { grid-template-columns: 1fr; } .group-heading { align-items: end; } .footer-inner { grid-template-columns: 1fr; gap: 20px; } .footer-nav { justify-content: flex-start; } .footer-meta { text-align: left; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
