/* The site's one stylesheet. Written with logical properties (inline-start, not left), so
   Arabic (dir="rtl") needs no second file. Phone first; wider layouts are added below. */

@font-face {
  font-family: "Readex Pro";
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/readexpro-arabic.d81b2377546d.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/readexpro-latin-ext.fb3e3a8575fc.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Readex Pro";
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/readexpro-latin.aa0c29916314.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* colours: aubergine carries the brand, rose is what you press, green is only ever the
     best price, saffron is only ever an ad */
  --paper: #ffffff;
  --tint: #f6f2f7;
  --line: #e6dee9;
  --ink: #24122b;
  --ink-soft: #6b5a72;
  --rose: #c2185b;
  --rose-deep: #9c1048;
  --best: #087a53;
  --best-tint: #e7f5ef;
  --saffron: #f4a40b;
  --saffron-tint: #fff6e0;

  /* the product page redesign: a softer page behind white cards, one chip border, and the
     green the design uses for "this is the cheapest" (darker than --best, which is text) */
  --page: #faf8fb;
  --chip-line: #e0d3e5;
  --row-line: #f0e9f2;
  --track: #efe7f2;
  --best-row: #f3fbf5;
  --best-dot: #1f7a44;

  /* type: one family for Latin and Arabic, a 1.25 scale */
  --font: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --t-small: 0.8125rem;
  --t-body: 1rem;
  --t-lead: 1.25rem;
  --t-title: 1.5625rem;
  --t-big: 1.953rem;
  --t-price: 2.75rem;

  --gap: 1rem;
  --radius: 10px;
  --radius-btn: 12px;             /* a store button */
  --radius-cta: 14px;             /* the one primary call to action */
  --radius-card: 16px;            /* a small card: an active, an alternative */
  --radius-box: 20px;             /* a main card: the shot, the price, the store list */
  --wrap: 76rem;
}

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

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

/* the product page sits on a tint so its white cards have something to be cards against.
   Scoped to that page while the redesign is only there; a browser without :has() simply
   keeps the white it has always had, and every card still carries its own border. */
body:has(.page.product) { background: var(--page); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 350;
  line-height: 1.55;
}

/* Arabic letters sit taller in the line and read small at Latin sizes */
:lang(ar) body, html:lang(ar) body { line-height: 1.75; }

h1, h2 { line-height: 1.2; font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-title); }
h2 { font-size: var(--t-lead); margin-block: 2.5rem 1rem; }
p { margin: 0 0 1rem; max-inline-size: 68ch; }
a { color: var(--rose); text-underline-offset: 0.18em; }
a:hover { color: var(--rose-deep); }
b { font-weight: 600; }
img { max-inline-size: 100%; block-size: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 4px; }

.wrap { max-inline-size: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.page { padding-block: 1.25rem 3rem; }
.soft { color: var(--ink-soft); }
.unit { font-size: 0.6em; font-weight: 400; color: var(--ink-soft); }
.lede { font-size: var(--t-lead); color: var(--ink-soft); margin-block: 0.5rem 2rem; }
.plain-list li { padding-block: 0.4rem; border-block-end: 1px solid var(--line); max-inline-size: 30rem; display: flex; justify-content: space-between; }

.visually-hidden, .skip:not(:focus) {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; inset-block-start: 0.5rem; inset-inline-start: 0.5rem; z-index: 10; background: var(--paper); padding: 0.5rem 0.75rem; }

/* ---- buttons ---- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 2.75rem; padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--rose); border-radius: var(--radius);
  background: var(--rose); color: #fff;
  font: inherit; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.button:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.button.quiet { background: var(--paper); color: var(--rose); }
.button.quiet:hover { background: var(--tint); color: var(--rose-deep); }
/* a store button is a form (TRACK-11): the form takes no room of its own, the button sits where the link did */
.out { display: contents; }
/* the honeypot link: for scripts only */
.trap { display: none; }
/* the beacon: a 1-pixel picture */
.dot { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }

/* ---- header ---- */
.top { background: var(--ink); color: #fff; }
.top .wrap { max-inline-size: none; padding-inline: clamp(1rem, 2.5vw, 2.5rem); }
.top-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1rem; align-items: center;
  padding-block: 0.75rem;
}
.wordmark { color: #fff; font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35em; }
.wordmark .mark { inline-size: 1.45em; block-size: 1.45em; flex: none; }
.wordmark:hover { color: #fff; }
.language { color: #fff; font-size: var(--t-small); grid-column: 2; grid-row: 1; }
.language:hover { color: #fff; }
.search { grid-column: 1 / -1; display: flex; }
.search input {
  flex: 1; min-inline-size: 0; min-block-size: 2.75rem; padding: 0 0.9rem;
  border: 0; border-start-start-radius: var(--radius); border-end-start-radius: var(--radius);
  font: inherit; color: var(--ink); background: #fff;
}
.search button {
  padding-inline: 1.1rem; border: 0; background: var(--rose); color: #fff; font: inherit; font-weight: 500; cursor: pointer;
  border-start-end-radius: var(--radius); border-end-end-radius: var(--radius);
}
.search button:hover { background: var(--rose-deep); }
.top :focus-visible { outline-color: #fff; }

.cats { border-block-start: 1px solid rgb(255 255 255 / 0.14); }
.cats-row { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.6rem; }
.cats a { color: #e9dfee; font-size: var(--t-small); text-decoration: none; white-space: nowrap; }
.cats a:hover { color: #fff; text-decoration: underline; }

/* ---- home ---- */
.intro { font-size: var(--t-lead); font-weight: 500; margin-block-end: 1rem; }

/* banners: a swipeable row on a phone, one large and two small on a desktop */
.banners { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gap)); padding-inline: var(--gap); }
.banner {
  flex: 0 0 86%; scroll-snap-align: center;
  display: grid; grid-template-rows: 1fr auto; gap: 1rem;
  min-block-size: 15rem; padding: 1.25rem; border-radius: 14px;
  background: var(--tint); color: var(--ink); text-decoration: none; overflow: hidden;
}
.banner:hover { color: var(--ink); }
.banner-text { display: grid; gap: 0.35rem; align-content: start; }
.banner-title { font-size: var(--t-title); line-height: 1.15; font-weight: 600; text-wrap: balance; }
.banner-line { color: var(--ink-soft); max-inline-size: 34ch; }
.banner-cta { margin-block-start: 0.4rem; color: var(--rose); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
.banner:hover .banner-cta { color: var(--rose-deep); }
.banner-shots { display: flex; gap: 0.6rem; align-items: end; }
.banner-shots img { inline-size: 5rem; block-size: 5rem; object-fit: contain; background: #fff; border-radius: 10px; padding: 0.35rem; }
.banner-image { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 10px; }
.banner-main { background: var(--ink); color: #fff; }
.banner-main:hover { color: #fff; }
.banner-main .banner-line { color: #d9cde0; }
.banner-main .banner-cta { color: #fff; }
.banner:nth-child(3) { background: #fbe9f0; }

.tiles { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.tile-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; padding-block-end: 0.4rem; margin-block-end: 0.4rem; border-block-end: 2px solid var(--ink); color: var(--ink); font-weight: 600; text-decoration: none; }
.tile-head .soft { font-size: var(--t-small); font-weight: 400; }
.tile-head:hover { color: var(--rose); border-color: var(--rose); }
.tile li a { display: block; padding-block: 0.3rem; color: var(--ink); text-decoration: none; }
.tile li a:hover { color: var(--rose); text-decoration: underline; }

.brands { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.brands a { display: block; padding: 0.35rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.brands a:hover { border-color: var(--rose); color: var(--rose); }


/* ---- footer ---- */
.foot { background: var(--tint); padding-block: 1.5rem 5.5rem; }
.foot a { color: var(--ink); }
.foot a:hover { color: var(--rose); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---- the cookie banner: at the foot of the window until accepted, over nothing that is needed ---- */
.consent {
  position: sticky; inset-block-end: 0; z-index: 6;
  background: var(--ink); color: #fff; padding: 0.9rem clamp(1rem, 2.5vw, 2.5rem);
  box-shadow: 0 -6px 18px rgb(36 18 43 / 0.18);
}
.consent-row { display: grid; gap: 0.75rem; max-inline-size: var(--wrap); margin-inline: auto; }
.consent p { margin: 0; max-inline-size: none; font-size: var(--t-small); line-height: 1.5; }
.consent a { color: #fff; }
.consent-buttons { display: flex; gap: 0.6rem; }
.consent .button { flex: 1; background: #fff; border-color: #fff; color: var(--ink); }
.consent .button:hover { background: var(--tint); border-color: var(--tint); color: var(--ink); }
.consent :focus-visible { outline-color: #fff; }

/* ---- pages of text: privacy, questions and answers ---- */
.text-page { max-inline-size: 44rem; }
.text-page h1 { margin-block-end: 0.75rem; }
.text-page h2 { margin-block: 1.75rem 0.5rem; }
.text-page ul { list-style: disc; padding-inline-start: 1.25rem; margin-block-end: 1rem; }
.text-page li { margin-block-end: 0.4rem; }
.faq { border-block-start: 1px solid var(--line); margin-block-start: 1.5rem; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary { padding-block: 0.9rem; font-weight: 500; cursor: pointer; }
.faq summary:hover { color: var(--rose); }
.faq p { margin: 0 0 1rem; color: var(--ink-soft); }
.privacy { max-inline-size: 44rem; }
.privacy h1 { margin-block-end: 0.75rem; }
.privacy h2 { margin-block: 1.75rem 0.5rem; }
.privacy ul { list-style: disc; padding-inline-start: 1.25rem; margin-block-end: 1rem; }
.privacy li { margin-block-end: 0.3rem; }
.privacy .state { padding: 0.9rem 1.1rem; background: var(--tint); border-radius: var(--radius); font-weight: 500; }
.privacy form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-start: 1.25rem; }

/* ---- forms ---- */
.contact { max-inline-size: 40rem; }
.contact h1 { margin-block-end: 0.75rem; }
.form { display: grid; gap: 1.1rem; margin-block-start: 1.5rem; }
.field label { display: block; font-weight: 500; margin-block-end: 0.3rem; }
.field input, .field textarea {
  inline-size: 100%; padding: 0.6rem 0.75rem; min-block-size: 2.75rem;
  border: 1px solid #b9a9c0; border-radius: var(--radius);
  font: inherit; color: var(--ink); background: var(--paper);
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--rose); }
.has-error input, .has-error textarea { border-color: var(--rose); }
.hint { margin: 0.3rem 0 0; font-size: var(--t-small); color: var(--ink-soft); }
.error { margin: 0.3rem 0 0; font-size: var(--t-small); color: var(--rose-deep); font-weight: 500; }
.field-trap { position: absolute; inset-inline-start: -200vw; }
.form .button { justify-self: start; min-inline-size: 11rem; }
.done { margin-block-start: 1.25rem; padding: 1.25rem; background: var(--best-tint); border-radius: var(--radius); }
.done p { margin: 0 0 0.5rem; }
.done p:last-child { margin: 0.75rem 0 0; }

/* ---- notices (404, 503, 500) ---- */
.notice { padding-block: 3rem 4rem; }
.notice h1 { margin-block-end: 0.75rem; }

/* ---- product cards: a catalogue grid ruled with hairlines, not boxes ---- */
.grid { border-block-start: 1px solid var(--line); }
.card { border-block-end: 1px solid var(--line); }
.card-link {
  display: grid; grid-template-columns: 6rem 1fr; gap: 0.9rem; align-items: center;
  padding-block: 0.9rem; color: inherit; text-decoration: none;
}
.card-shot { aspect-ratio: 1; display: grid; place-items: center; }
.card-shot img { max-block-size: 100%; object-fit: contain; }
.card-text { display: grid; gap: 0.1rem; min-inline-size: 0; }
.card-brand { font-size: var(--t-small); color: var(--ink-soft); }
.card-name { font-weight: 450; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-link:hover .card-name { text-decoration: underline; }
.card-price { margin-block-start: 0.3rem; font-variant-numeric: tabular-nums; }
.card-price b { font-size: var(--t-lead); }
.card-price .from { font-size: var(--t-small); color: var(--ink-soft); }
.card-stores { font-size: var(--t-small); color: var(--ink-soft); }
.card-stores.many { color: var(--rose); font-weight: 500; }

/* ---- ad slots (FE-08): a banner, or featured products of ours, in the same space.
   The space is fixed per kind of device, to the sizes of ads.py, so nothing moves when a
   picture loads or the day a banner is sold. Phone below 48rem, tablet to 64rem, computer above. ---- */
.slot { position: relative; margin: 2.5rem auto 0; overflow: hidden; border-radius: var(--radius); }
.slot-home, .slot-brand { max-inline-size: 320px; block-size: 100px; }
.slot-top { margin-block: 1rem 1.5rem; }
.slot-product { max-inline-size: 300px; block-size: 250px; }
.slot-ad { display: block; block-size: 100%; }
.slot-ad img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.slot-ad img.on-tablet, .slot-ad img.on-computer { display: none; }
/* which of the two shows on a device: three ranges that never overlap */
@media (max-width: 47.99rem) { .slot.has-phone .slot-house, .slot:not(.has-phone) .slot-ad { display: none; } }
@media (min-width: 48rem) and (max-width: 63.99rem) { .slot.has-tablet .slot-house, .slot:not(.has-tablet) .slot-ad { display: none; } }
@media (min-width: 64rem) { .slot.has-computer .slot-house, .slot:not(.has-computer) .slot-ad { display: none; } }
.ad-tag, .house-tag {
  position: absolute; inset-block-start: 0.35rem; inset-inline-start: 0.4rem; z-index: 1;
  font-size: 0.6875rem; font-weight: 600; padding: 0 0.4rem; border-radius: 4px;
}
.ad-tag { background: var(--saffron); color: var(--ink); }
.house-tag { background: var(--ink); color: #fff; }
.slot-house { block-size: 100%; background: var(--tint); }
.slot-house ul { display: grid; block-size: 100%; }
.slot-house li { min-block-size: 0; }
.slot-house li:nth-child(n+2) { display: none; }
.slot-house a { display: flex; align-items: center; gap: 0.75rem; block-size: 100%; padding: 0.5rem 0.75rem; color: var(--ink); text-decoration: none; }
.slot-house a:hover .house-name { color: var(--rose); }
.house-shot { flex: none; inline-size: 4.5rem; block-size: 4.5rem; background: var(--paper); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.house-shot img { max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
.house-text { display: grid; gap: 0.15rem; min-inline-size: 0; }
.house-name { font-size: var(--t-small); font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.house-price { font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.house-price b { font-size: var(--t-body); }
/* the product page's phone slot is taller: two products, one above the other */
.slot-product .slot-house ul { grid-template-rows: 1fr 1fr; }
.slot-product .slot-house li:nth-child(2) { display: block; border-block-start: 1px solid var(--line); }
.slot-product .slot-house a { padding-block-start: 1.1rem; }

@media (min-width: 48rem) {
  .slot-home, .slot-brand, .slot-product { max-inline-size: 728px; block-size: 90px; }
  .slot-ad img.on-phone { display: none; }
  .slot-ad img.on-tablet { display: block; }
  .slot-house ul, .slot-product .slot-house ul { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .slot-house li:nth-child(-n+3), .slot-product .slot-house li:nth-child(-n+3) { display: block; border-block-start: 0; }
  .slot-house li + li { border-inline-start: 1px solid var(--line); }
  .slot-house a, .slot-product .slot-house a { padding: 0.5rem 0.75rem 0.5rem; padding-block-start: 1rem; }
  .house-shot { inline-size: 3.75rem; block-size: 3.75rem; }
}
@media (min-width: 64rem) {
  .slot-home, .slot-brand, .slot-product { max-inline-size: 970px; block-size: 250px; }
  .slot-ad img.on-tablet { display: none; }
  .slot-ad img.on-computer { display: block; }
  .slot-house ul, .slot-product .slot-house ul { grid-template-columns: repeat(4, 1fr); }
  .slot-house li:nth-child(-n+4), .slot-product .slot-house li:nth-child(-n+4) { display: block; }
  .slot-house a, .slot-product .slot-house a { flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 1.75rem 1rem 1rem; }
  .house-shot { inline-size: 100%; block-size: 8.5rem; }
  .house-name { font-size: var(--t-body); }
}

/* ---- results ---- */
.found-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 1rem; margin-block-end: 0.9rem; }
.found-head h1 { grid-column: 1 / -1; }
.found-head p { margin: 0.15rem 0 0; }
.sort { font-size: var(--t-small); color: var(--ink-soft); }
.sort select, .range input {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; min-block-size: 2.25rem; padding-inline: 0.5rem;
}
.filters-fold { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.9rem; margin-block-end: 1rem; }
.filters-fold summary { font-weight: 500; cursor: pointer; }
.filters fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
.filters legend { font-weight: 600; padding: 0; margin-block-end: 0.35rem; }
.check { display: flex; gap: 0.5rem; align-items: center; padding-block: 0.3rem; }
.check input { inline-size: 1.1rem; block-size: 1.1rem; accent-color: var(--rose); }
.check .soft { margin-inline-start: auto; font-size: var(--t-small); }
.range { display: flex; align-items: center; gap: 0.5rem; }
.range input { inline-size: 5rem; }
.filters .button { margin-block-start: 1.1rem; inline-size: 100%; }
.pages { display: flex; gap: 0.4rem; align-items: center; justify-content: center; margin-block-start: 1.75rem; }
.pages a, .pages .here {
  min-inline-size: 2.5rem; min-block-size: 2.5rem; padding-inline: 0.6rem; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink);
}
.pages a:hover { border-color: var(--rose); color: var(--rose); }
.pages .here { background: var(--ink); border-color: var(--ink); color: #fff; }
.cut-note { text-align: center; margin-block-start: 1rem; }

.clear { display: block; text-align: center; margin-block-start: 0.75rem; font-size: var(--t-small); }
.branches { margin-block-end: 1rem; }
.branches h2 { font-size: var(--t-body); margin: 0 0 0.35rem; }
.branches ul { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-block-end: 0.25rem; }
.branches a { display: block; white-space: nowrap; padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--t-small); }
.branches a:hover { border-color: var(--rose); color: var(--rose); }
.nothing { padding-block: 1.5rem 2rem; }
.nothing .brands { margin-block-start: 1.5rem; }
.brands a.all { border-color: var(--ink); font-weight: 500; }

/* suggestions under the search box */
.search { position: relative; }
.suggest {
  position: absolute; inset-inline: 0; inset-block-start: calc(100% + 4px); z-index: 20;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgb(36 18 43 / 0.18); overflow: hidden;
}
.suggest li { padding: 0.6rem 0.9rem; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--tint); }

/* the index of brands */
.letters { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-block: 1rem 0.5rem; position: sticky; inset-block-start: 0; background: var(--paper); padding-block: 0.5rem; z-index: 2; }
.letters a { min-inline-size: 2.25rem; block-size: 2.25rem; display: grid; place-items: center; padding-inline: 0.4rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.letters a:hover { border-color: var(--rose); color: var(--rose); }
.letter h2 { border-block-end: 2px solid var(--ink); padding-block-end: 0.3rem; scroll-margin-block-start: 4rem; }
.letter { scroll-margin-block-start: 4rem; }
.brand-list { columns: 14rem auto; column-gap: 2rem; }
.brand-list li { break-inside: avoid; padding-block: 0.25rem; }
.brand-list a { color: var(--ink); text-decoration: none; }
.brand-list a:hover { color: var(--rose); text-decoration: underline; }
.brand-list .soft { font-size: var(--t-small); }

/* ---- product page ---- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--t-small); margin-block-end: 1rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
/* the hero: a square white card for the picture, the facts beside it. Both are cards on the
   page's own tint, which is what separates them without a rule between them. */
.product .shot {
  display: grid; place-items: center; padding: 1rem; aspect-ratio: 1;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-box);
}
.shot img { max-block-size: 16rem; object-fit: contain; }
.brand { font-weight: 600; font-size: var(--t-small); text-transform: uppercase; letter-spacing: 0.1em; color: var(--rose); }
.facts h1 {
  margin-block: 0.15rem 0.6rem; font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { background: var(--paper); border: 1px solid var(--chip-line); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: var(--t-small); }

/* the price card. White, not green: the green is spent on the one thing that is a saving,
   so the figure itself does not have to compete with its own background. */
.best {
  margin-block-start: 1.25rem; padding: clamp(1.1rem, 4vw, 1.5rem);
  display: grid; gap: 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-box);
}
.best p { margin: 0; }
.best-head { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: start; justify-content: space-between; }
.best-label { color: var(--ink-soft); font-size: var(--t-small); font-weight: 500; }
.best-price { font-variant-numeric: tabular-nums; line-height: 1.1; margin-block: 0.15rem !important; }
.best-price b { font-size: var(--t-price); font-weight: 600; letter-spacing: -0.03em; }
.best-price .unit { font-size: var(--t-lead); color: var(--ink-soft); font-weight: 600; }
.best-store { font-size: 0.875rem; }
.saving {
  background: var(--best-tint); color: var(--best); border-radius: 999px;
  padding: 0.3rem 0.8rem; font-size: var(--t-small); font-weight: 600;
}
.sold-out { margin-block-start: 1.25rem; padding: 1.1rem; background: var(--tint); border-radius: var(--radius); font-weight: 500; }
/* The design draws this one full width at 16px/600; brought down on the user's word so it
   does not tower over the row buttons. Still the page's one filled call to action. */
.best .button { inline-size: 100%; min-block-size: 2.75rem; font-size: var(--t-body); border-radius: var(--radius-cta); }
.best-foot { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; justify-content: space-between; font-size: var(--t-small); }
.best-foot a { color: #6b3d7a; font-weight: 600; }

/* the spread: every store's price on one track at once, so whether the prices are bunched or
   far apart can be seen before any of them is read. The per-row bar answers a different
   question (this price against the dearest) and both are kept. */
.spread { display: grid; gap: 0.5rem; }
.spread-track {
  position: relative; block-size: 0.5rem; border-radius: 999px;
  background: linear-gradient(to right, #cfe9d8, var(--track), #f1d9de);
}
[dir="rtl"] .spread-track { background: linear-gradient(to left, #cfe9d8, var(--track), #f1d9de); }
.spread-dot {
  position: absolute; inset-block-start: 50%; inline-size: 0.75rem; block-size: 0.75rem;
  margin-inline-start: -0.375rem; transform: translateY(-50%);
  background: var(--ink); border: 2px solid var(--paper); border-radius: 50%;
}
.spread-dot.is-best { background: var(--best-dot); }
.spread-ends { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.spread-count { font-variant-numeric: normal; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-block-start: 0.9rem; }
.share-icon {
  display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.share-icon:hover { background: var(--tint); }
.share-icon svg { inline-size: 1.625rem; block-size: 1.625rem; fill: currentColor; }
.share-icon.whatsapp { color: #128c7e; }
.share-icon.telegram { color: #229ed9; }
.share-icon.copy { color: var(--ink-soft); }
.share-icon.copy svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-done { color: var(--best); font-size: var(--t-small); }
.share [hidden] { display: none; }

/* the price ladder: one rung per store, cheapest first; each bar is that store's price
   against the dearest one, so the gap between stores can be seen before it is read */
.ladder-head { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between; }
.ladder-head h2 { margin: 0; }

/* the sort, as a segmented control: two orders, one of them always on. It reorders what is
   already in the page and fetches nothing, so it cannot disagree with the prices shown. */
.segmented { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: var(--track); border-radius: 999px; }
.segmented button {
  border: 0; background: none; border-radius: 999px; cursor: pointer;
  padding: 0.4rem 0.9rem; font: inherit; font-size: var(--t-small); font-weight: 600; color: var(--ink);
}
.segmented button.is-on { background: var(--paper); }

.ladder {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-box);
  margin-block-start: 1rem; overflow: hidden;
}
.rung {
  display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; align-items: center;
  padding: 1rem; border-block-end: 1px solid var(--row-line);
}
.rung:last-child { border-block-end: 0; }
.is-best { background: var(--best-row); }
.rung-tag {
  margin-inline-start: 0.5rem; font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--best);
}
.rung-diff { display: block; font-size: 0.75rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rung-store { display: flex; align-items: center; gap: 0.6rem; min-inline-size: 0; }
.rung-store img { inline-size: 3.5rem; block-size: 1.75rem; object-fit: contain; }
.rung-name { font-weight: 500; }
.rung-listing { grid-column: 1 / -1; grid-row: 2; font-size: var(--t-small); color: var(--ink-soft); }
.rung-price { font-variant-numeric: tabular-nums; text-align: end; }
.rung-price b { font-size: var(--t-lead); }
.rung-bar { grid-column: 1 / -1; block-size: 0.5rem; background: var(--tint); border-radius: 999px; overflow: hidden; }
.rung-bar span { display: block; block-size: 100%; background: #b9a9c0; border-radius: 999px; }
.rung .button { grid-column: 1 / -1; }
.is-best .rung-bar span { background: var(--best); }
.is-best .rung-price b { color: var(--best); }
.is-out { opacity: 0.5; filter: grayscale(1); }
.checked { font-size: var(--t-small); margin-block-start: 0.75rem; }

/* the store buttons, on this page only: the cheapest is the one filled, the rest are outlined
   in ink rather than rose, so a row of seven buttons does not read as seven calls to action.
   listing.html keeps the rose .button.quiet it has always had. */
/* the row button sits at the end of its row at its own width, not stretched across it: a
   column of full-width buttons reads as seven calls to action. 2.75rem stays, because that
   is the tap target, and only the padding and the type come down. */
/* No grid-column here: `.rung .button` is placed by the layout rules above and inside the
   40rem query, and this selector is more specific than both, so setting a column here would
   override the responsive placement at every width and drop the button onto the price. Only
   the look is set; 2.75rem stays, because that is the tap target. */
.product .rung .button {
  justify-self: end; inline-size: auto;
  min-block-size: 2.75rem; padding: 0.5rem 1rem;
  border-radius: var(--radius-btn); font-size: var(--t-small); font-weight: 600;
}
.product .rung .button.quiet { border-color: var(--ink); color: var(--ink); }
.product .rung .button.quiet:hover { background: var(--tint); color: var(--ink); }

/* what this product is, and what is in it: the list carries the features we read, the cards
   carry the actives. No percentage and no benefit line, because the registry holds neither. */
.about { display: grid; gap: 1.5rem; }
.about h2 { margin-block-end: 0.75rem; }
.active-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; }
.active-cards li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.1rem; font-weight: 600;
}
.active-cards .is-lead { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* the alternatives strip keeps partials/card.html exactly as every other page uses it; only
   the frame around the cards is the new one, so nothing outside this page changes */
.product .strip > li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 0.75rem; }
.product .strip > li:hover { border-color: var(--ink); }
.product .strip .card { border-block-end: 0; }

.sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sizes a {
  display: grid; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: var(--t-small);
}
.sizes a b { font-size: var(--t-body); }
.sizes a:hover { border-color: var(--rose); }

.also { border-block-start: 1px solid var(--line); }
.also li { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; padding-block: 0.8rem; border-block-end: 1px solid var(--line); }
.also .button { grid-column: 1 / -1; }

.sticky-buy {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--gap); background: var(--paper); border-block-start: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgb(36 18 43 / 0.08);
  font-variant-numeric: tabular-nums;
}
.sticky-buy b { font-size: var(--t-lead); }

/* ---- from a small tablet up ---- */
@media (min-width: 40rem) {
  .top-row { grid-template-columns: auto minmax(0, 36rem) 1fr; gap: 1.5rem; padding-block: 0.9rem; }
  .search { grid-column: auto; }
  .language { grid-column: 3; justify-self: end; font-size: var(--t-body); }
  .wordmark { font-size: var(--t-title); }

  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); border-inline-start: 1px solid var(--line); }
  .card { border-inline-end: 1px solid var(--line); }
  .card-link { grid-template-columns: 1fr; align-content: start; gap: 0.75rem; padding: 1.1rem; block-size: 100%; }
  .card-shot { inline-size: 100%; max-block-size: 11rem; }
  .card-shot img { max-block-size: 11rem; }

  .rung { grid-template-columns: 11rem minmax(0, 1fr) 8rem auto; }
  .rung > .rung-listing { grid-column: 2; grid-row: 1; }
  .rung > .rung-price { grid-column: 3; grid-row: 1; }
  .rung .button { grid-column: 4; grid-row: 1 / span 2; }
  .rung-bar { grid-column: 1 / 4; grid-row: 2; }
  .also li { grid-template-columns: 11rem 1fr auto; }
  .also .button { grid-column: auto; }

  .best .button { inline-size: auto; min-inline-size: 12rem; }
  .sticky-buy { display: none; }
  .foot { padding-block-end: 1.5rem; }
  .consent-row { grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
  .consent p { font-size: var(--t-body); }
  .consent .button { flex: none; }
}

/* ---- desktop ---- */
@media (min-width: 62rem) {
  .intro { font-size: var(--t-title); margin-block-end: 1.25rem; }
  .grid.five { grid-template-columns: repeat(5, 1fr); }
  .banners { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .banner { min-block-size: 11.5rem; padding: 1.5rem; }
  .banner-main { grid-row: 1 / span 2; padding: 2.5rem; }
  .banner-main .banner-shots { justify-content: flex-end; }
  .banner-main .banner-title { font-size: 2.6rem; letter-spacing: -0.02em; }
  .banner-main .banner-line { font-size: var(--t-lead); max-inline-size: 30ch; }
  .banner-main .banner-shots img { inline-size: 8.5rem; block-size: 8.5rem; padding: 0.6rem; border-radius: 14px; }
  .banner:not(.banner-main) { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .banner:not(.banner-main) .banner-shots img:nth-child(n+2) { display: none; }

  .strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .strip .card { flex: none; }
  .spec { grid-template-columns: 13rem minmax(0, 1fr); }
  .banner:not(.banner-main) .banner-shots img { inline-size: 6.5rem; block-size: 6.5rem; }

  h1 { font-size: var(--t-big); }
  .page { padding-block-start: 1.75rem; }

  .results { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .filters-fold { border: 0; padding: 0; }
  .filters-fold[open] summary { display: none; }
  .branches ul { display: block; overflow: visible; }
  .branches a { display: flex; justify-content: space-between; gap: 0.5rem; border: 0; border-radius: 0; padding: 0.3rem 0; font-size: var(--t-body); white-space: normal; }
  .branches { padding-block-end: 1rem; border-block-end: 1px solid var(--line); }
  .found .crumbs { margin-block-end: 0.4rem; }
  .filters fieldset:first-of-type { margin-block-start: 0; }
  .found-head { grid-template-columns: auto 1fr auto; align-items: baseline; }
  .found-head h1 { grid-column: auto; }
  .found-head p { margin: 0; }

  .product-top { display: grid; grid-template-columns: 26rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .product .shot { padding: 2rem; border-radius: var(--radius-box); }
  .shot img { max-block-size: 22rem; }
  .best { padding: 1.5rem; max-inline-size: 34rem; }
  .best-price b { font-size: 3.5rem; }
  /* the list and the actives side by side, which is what the design pairs them for */
  .about { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2rem; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .pages a, .sizes a { transition: background-color 0.12s, border-color 0.12s, color 0.12s; }
}

/* the product's price in a sentence (AEO-01) */
.answer { color: var(--ink-soft); margin-block: 0.75rem 1rem; max-width: 60ch; }

/* ---- what this product is (ENRICH-08) ----
   The sentence reads before the price one, so the page runs name, then what it is, then what it
   costs; it is the lead, so it keeps the full ink and the price sentence stays soft beneath it. */
.identity { margin-block-start: 0.8rem; max-width: 60ch; font-size: var(--t-lead); line-height: 1.45; }
.identity + .answer { margin-block-start: 0.45rem; }

/* The spec list: a definition list, because a feature is a field and a value. Not pills - .chips
   on this same page is the identity ("100 ml, Parfum, Men"), and a bare pill cannot carry a key,
   so a claim would lose the label that attributes it and read as our own advice. Not a table
   either: ceremony for a median of three rows, and a third column invites the confidence or the
   store, which must never be shown. */
.specs { margin-block-start: 2.5rem; }
.spec-list { margin-block-start: 0.9rem; display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr); gap: 0.5rem 1.25rem; padding-block: 0.6rem; border-block-end: 1px solid var(--line); }
.spec dt { color: var(--ink-soft); font-size: var(--t-small); line-height: 1.6; }
.spec dd { font-weight: 450; }
.spec dd::first-letter { text-transform: uppercase; }
/* `.is-claim` is a hook and styles nothing on purpose: a badge would want a legend and a colour,
   and a colour that reads as a warning would be wrong - these are the maker's own words, already
   attributed by the label ("Known to suit"). Facts and claims are separated in language only. */

/* ---- what else would do (ENRICH-08): the alternatives rail ----
   The .banners shape on a phone - one card at a time, snapped - and six columns on a computer. */
.strip-box { margin-block-start: 2.5rem; }
.strip-box > .soft { margin-block-start: 0.35rem; max-width: 70ch; }
.strip {
  margin-block-start: 1rem; display: flex; gap: 0.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gap)); padding-inline: var(--gap);
}
.strip .card { flex: 0 0 11.5rem; scroll-snap-align: start; border-block-end: 0; }
.strip .card-link { grid-template-columns: none; gap: 0.5rem; padding-block: 0; align-items: start; }
.strip .card-shot { background: var(--tint); border-radius: var(--radius); padding: 0.6rem; }
.card-diff { font-size: var(--t-small); color: var(--best); font-weight: 500; }
.card-why { margin-block-start: 0.15rem; font-size: var(--t-small); color: var(--ink-soft); line-height: 1.4; }
