:root {
  --ink: #18201d;
  --muted: #69736e;
  --paper: #f3f0e8;
  --surface: #fffdf8;
  --line: #dcd8cd;
  --accent: #e9582b;
  --accent-dark: #b83c18;
  --green: #1f7354;
  --dark: #17221e;
  --shadow: 0 18px 45px rgba(25, 35, 31, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.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; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.language-picker select { height: 32px; padding: 0 8px; color: #d8e0dc; background: #24322d; border: 1px solid #46534e; border-radius: 6px; font-size: 11px; font-weight: 800; }

.site-header {
  height: 60px;
  padding: 0 clamp(22px, 5vw, 74px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 20px; letter-spacing: -.5px; }
.brand strong { color: #ff7b4e; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ff7b4e; border-radius: 50%; color: #ff7b4e; font-size: 11px; font-weight: 800; letter-spacing: -.5px; }
.local-pill { display: inline-flex; align-items: center; gap: 8px; color: #c7d0cc; font-size: 13px; }
.local-pill i, .fresh-dot { width: 7px; height: 7px; border-radius: 50%; background: #4bd19b; box-shadow: 0 0 0 4px rgba(75, 209, 155, .12); }

.hero {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .5fr);
  align-items: end;
  gap: 50px;
  padding: 38px clamp(22px, 7vw, 105px) 34px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 15%, rgba(233,88,43,.26), transparent 24%),
    linear-gradient(120deg, #17221e 0%, #20332c 62%, #17221e 100%);
  overflow: hidden;
  position: relative;
}
.hero::after { content: ""; position: absolute; width: 430px; height: 430px; right: -130px; bottom: -290px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.018); }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 2.2px; }
.hero h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 62px); line-height: .96; letter-spacing: -2.8px; font-weight: 500; }
.hero h1 em { color: #ff8055; font-weight: 400; }
.hero-text { max-width: 650px; margin: 16px 0 0; color: #bfc9c4; font-size: 14px; line-height: 1.55; }
.hero-stat { position: relative; z-index: 1; border-left: 1px solid rgba(255,255,255,.2); padding-left: 34px; padding-bottom: 6px; }
.hero-stat span { font-family: Georgia, serif; color: #ff8055; font-size: 56px; line-height: .8; }
.hero-stat p { margin: 16px 0 0; color: #bfc9c4; font-size: 13px; line-height: 1.5; }

.demo-notice { margin: 0; padding: 17px clamp(22px, 7vw, 105px); display: flex; gap: 13px; align-items: center; background: #fff2df; border-bottom: 1px solid #ead9bc; color: #685132; font-size: 13px; line-height: 1.5; }
.demo-notice > span { color: var(--accent); font-size: 19px; }

.catalog { padding: 38px clamp(18px, 6vw, 90px) 100px; max-width: 1600px; margin: auto; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.catalog h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -1.5px; }
.filter-toggle { display: block; min-height: 48px; padding: 11px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.category-rail { display: flex; gap: 8px; overflow-x: auto; margin: 32px 0 20px; padding-bottom: 4px; scrollbar-width: thin; }
.category-chip { white-space: nowrap; border: 1px solid var(--line); background: rgba(255,255,255,.45); color: #59635e; border-radius: 999px; padding: 10px 16px; font-size: 13px; transition: .2s ease; }
.category-chip:hover { border-color: #a8aaa3; }
.category-chip.active { background: var(--dark); border-color: var(--dark); color: white; }

.catalog-tools { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(210px, 260px) auto; gap: 12px; align-items: end; margin-bottom: 12px; }
.search-box { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 5px 18px rgba(30,40,35,.035); }
.search-box > span { color: var(--accent); font-size: 25px; line-height: 1; transform: rotate(-15deg); }
.search-box input { width: 100%; height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #8d938f; }
.sort-box { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.sort-box select { width: 100%; height: 48px; margin-top: 5px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: 0; }

.filters { display: none; grid-template-columns: repeat(7, minmax(125px, 1fr)); gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 25px rgba(30,40,35,.04); }
.filters.open { display: grid; }
.filters label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.filters select, .filters input { width: 100%; margin-top: 8px; height: 42px; padding: 0 10px; border: 1px solid #d9d7ce; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; outline: none; }
.filters select:focus, .filters input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,88,43,.1); }
.clear-button { align-self: end; height: 42px; border: 0; border-radius: 7px; color: var(--accent-dark); background: #fff0ea; font-size: 12px; font-weight: 700; }
.results-line { display: flex; justify-content: space-between; align-items: center; margin: 25px 2px 16px; color: var(--muted); font-size: 13px; }
.legend { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.legend .fresh-dot { display: inline-block; }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: 0 3px 12px rgba(30,40,35,.035); transition: transform .25s ease, box-shadow .25s ease; }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e5dc; }
.product-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: white; }
.image-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: #a5a79e; background: radial-gradient(circle at center, #f5f2e9, #e4e1d7); }
.image-placeholder span { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #b8bab1; border-radius: 50%; font-weight: 800; letter-spacing: -1px; }
.image-placeholder small { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.discount-badge, .condition-badge { position: absolute; top: 13px; z-index: 2; padding: 7px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .4px; }
.discount-badge { left: 13px; color: white; background: var(--accent); }
.discount-badge.unknown { color: #696d68; background: #ecebe5; }
.condition-badge { right: 13px; color: white; background: rgba(23,34,30,.88); }
.card-body { padding: 20px; }
.market-badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; margin-bottom: 8px; }
.market-badges:empty { display: none; }
.promotion-badge, .best-price-badge { padding: 5px 7px; border-radius: 5px; font-size: 9px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.promotion-badge { color: #714015; background: #f7e6c8; }
.best-price-badge { color: #fff; background: var(--green); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.product-store { color: #858b87; text-align: right; }
.product-model { margin: 11px 0 4px; min-height: 48px; font-family: Georgia, serif; font-size: 21px; line-height: 1.14; font-weight: 600; }
.product-name { height: 36px; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.55; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 10px; margin: 18px 0 13px; }
.price-from { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.current-price { font-size: 24px; letter-spacing: -.7px; }
.price-range { flex-basis: 100%; color: #737a76; font-size: 11px; }
.card-status { min-height: 42px; padding: 11px 0; border-top: 1px solid #e6e2d9; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.minimum-note { color: var(--green); font-weight: 800; }
.availability { color: var(--green); font-weight: 700; }
.availability::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.verified { text-align: right; }
.verified.stale { color: #a4482c; }
.store-offers { display: grid; gap: 9px; }
.store-offer { padding: 11px; border: 1px solid #e6e2d9; border-radius: 9px; background: #faf9f5; }
.store-offer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.store-offer-name { overflow-wrap: anywhere; font-size: 12px; }
.store-offer-price { flex: 0 0 auto; color: var(--ink); font-size: 15px; font-weight: 800; }
.store-offer-details { display: flex; flex-wrap: wrap; gap: 6px 9px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.store-offer-reference { text-decoration: line-through; }
.store-offer-discount { color: var(--accent-dark); font-weight: 800; }
.store-offer-availability { color: var(--green); font-weight: 700; }
.store-link { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; padding: 12px 14px; border-radius: 7px; color: white; background: var(--dark); text-decoration: none; font-size: 12px; font-weight: 700; transition: background .2s; }
.store-link:hover { background: var(--accent-dark); }
.empty-state { padding: 75px 20px; text-align: center; color: var(--muted); }
.empty-state > span { font-size: 46px; color: var(--accent); }
.empty-state h3 { margin-bottom: 6px; color: var(--ink); font-family: Georgia, serif; font-size: 28px; }
.empty-state p { margin-top: 0; }
.load-more-row { display: flex; justify-content: center; padding-top: 28px; }
.load-more { min-width: 210px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--dark); border-radius: 8px; color: white; background: var(--dark); font-weight: 700; }
.load-more:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.load-more:disabled { opacity: .55; cursor: wait; }

footer { min-height: 150px; padding: 42px clamp(22px, 6vw, 90px); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #c3ccc8; background: var(--dark); }
footer p { font-size: 12px; }
footer a { color: #dce4e0; }
.header-directory-link { color: #dce4e0; font-size: 13px; font-weight: 700; text-decoration: none; }
.store-directory { max-width: 1280px; min-height: 70vh; margin: auto; padding: 64px clamp(20px, 7vw, 90px) 90px; }
.store-directory h1 { max-width: 850px; margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 62px); font-weight: 500; letter-spacing: -2px; }
.store-directory-intro { max-width: 760px; margin: 20px 0 50px; color: var(--muted); line-height: 1.7; }
.store-country { margin-top: 48px; }
.store-country h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.store-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-directory-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 4px 16px rgba(30,40,35,.035); }
.store-directory-card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 21px; }
.store-directory-card h3 a { color: var(--ink); }
.store-directory-card p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.store-directory-card .store-directory-count { color: var(--accent-dark); font-weight: 800; }
.directory-offers-link { display: inline-block; margin-top: 12px; color: var(--green); font-size: 12px; font-weight: 800; }
.directory-transparency { margin-top: 60px; padding: 22px; border: 1px solid #ead9bc; border-radius: 10px; background: #fff2df; color: #685132; font-size: 13px; line-height: 1.6; }

@media (max-width: 1250px) {
  .filters { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
}
@media (max-width: 820px) {
  .store-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: 310px; gap: 22px; padding-top: 34px; }
  .hero h1 { letter-spacing: -2.5px; }
  .hero-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 22px 0 0; display: flex; align-items: end; gap: 18px; }
  .hero-stat span { font-size: 58px; }
  .hero-stat p { margin: 0; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-tools { grid-template-columns: 1fr auto; }
  .search-box { grid-column: 1 / -1; }
  .sort-box { min-width: 200px; }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .filters.open { display: grid; }
}
@media (max-width: 540px) {
  .store-directory { padding-top: 42px; }
  .store-directory-grid { grid-template-columns: 1fr; }
  .site-header { height: 58px; }
  .local-pill { font-size: 0; }
  .hero { min-height: 290px; padding-top: 30px; }
  .hero h1 { font-size: 39px; }
  .hero-text { font-size: 15px; }
  .catalog { padding-top: 34px; }
  .catalog-heading { align-items: center; }
  .catalog h2 { font-size: 32px; }
  .filters { grid-template-columns: 1fr; }
  .catalog-tools { grid-template-columns: 1fr; }
  .search-box { grid-column: auto; }
  .sort-box { min-width: 0; }
  .filter-toggle { width: 100%; }
  .offer-grid { grid-template-columns: 1fr; }
  .product-model { min-height: 0; }
  .results-line { align-items: flex-start; gap: 10px; }
  .legend { max-width: 125px; text-align: right; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

