/* ==========================================================================
   Clone design system — Currys-like storefront
   Palette, type scale, layout primitives and every component the pages need.
   ========================================================================== */

/* Real Currys Sans webfonts, lifted from currys.co.uk */
@font-face {
  font-family: "Currys Sans";
  src: url("../fonts/CurrysSans-Regular.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Currys Sans Headline";
  src: url("../fonts/CurrysSans-Headline.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #ffecb7;
  --brand-dark: #ffe38f;
  --pink: #ff529f;
  --magenta: #d3006a;
  --magenta-soft: #f9d2e5;
  --purple: #4c12a1;
  --ink: #213038;
  --ink-2: #33434a;
  --muted: #56707a;
  --line: #e9eaeb;
  --line-2: #cdd8df;
  --bg: #ffffff;
  --bg-2: #f9f9f9;
  --bg-3: #fefaf1;
  --red: #d0021b;
  --green: #0a7d33;
  --blue: #0b57c9;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .18);
  --wrap: 1360px;
  --gutter: 20px;
  --font: "Currys Sans", Helvetica, Arial, sans-serif;
  --font-head: "Currys Sans Headline", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; font-family: var(--font-head); }
h1 { font-size: 1.9rem; color: var(--purple); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.pdp > *, .plp > *, .basket > *, .checkout > *, .grid > *, .chips > * { min-width: 0; }
.pdp h1, .card-title, .bline a { overflow-wrap: anywhere; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.tiny { font-size: .74rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.stack > * + * { margin-top: .75rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 12px 20px; font-weight: 700; font-size: .95rem; line-height: 1.1;
  background: var(--bg-2); color: var(--ink); transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--line); color: var(--ink); }
.btn-primary { background: var(--brand); color: var(--ink); border: 1px solid #e8d79f; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:hover { background: var(--brand-dark); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- header ---------- */
.utility {
  background: #fff; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: .78rem;
}
.utility .wrap { display: flex; justify-content: flex-end; gap: 18px; padding-top: 6px; padding-bottom: 6px; }
.utility a { color: var(--ink-2); }
.utility a:hover { color: var(--purple); }

.masthead { background: var(--brand); color: var(--ink); padding: 14px 0 16px; }
.masthead .wrap { display: flex; align-items: center; gap: 22px; }
.logo {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--brand);
  white-space: nowrap;
}
.logo span { color: var(--ink); }
.searchbar { flex: 1; display: flex; position: relative; }
.searchbar input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 1rem;
  border: 2px solid var(--ink); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: #fff; color: var(--ink);
}
.searchbar input:focus { outline: 3px solid rgba(76, 18, 161, .25); outline-offset: 1px; }
.searchbar button {
  border: 2px solid var(--ink); border-left: 0; background: var(--ink); color: #fff;
  padding: 0 20px; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700;
}
.searchbar button:hover { background: #33434a; }
.suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  background: #fff; color: var(--ink); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.suggest[hidden] { display: none; }
.suggest a { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.suggest a:hover { background: var(--bg-2); }
.suggest a img { width: 34px; height: 34px; object-fit: contain; }
.suggest .head { padding: 8px 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-3); }

.head-actions { display: flex; gap: 6px; }
.head-action {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink); font-size: .72rem; padding: 8px 12px; border-radius: var(--radius); background: none; border: 0;
}
.head-action:hover { color: var(--ink); background: var(--brand-dark); }
.head-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.badge-count {
  position: absolute; transform: translate(14px, -8px); min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- primary nav ---------- */
.nav { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a.nav-item {
  color: var(--ink); padding: 12px 14px; font-size: .9rem; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav a.nav-item:hover, .nav a.nav-item[aria-expanded="true"] { color: var(--purple); border-bottom-color: var(--purple); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 70; background: #fff;
  border-bottom: 3px solid var(--brand); box-shadow: var(--shadow-lg);
}
.mega[hidden] { display: none; }
.mega .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 26px; padding: 24px 20px 28px; }
.mega h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .5rem; }
.mega ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.mega li a { display: block; padding: 5px 0; font-size: .9rem; }
.mega .all { font-weight: 700; text-decoration: underline; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .8rem; color: var(--muted); padding: 14px 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

/* ---------- hero ---------- */
.hero { background: var(--bg-2); padding: 20px 0; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.hero-copy { padding: 40px; }
.hero-copy .kicker {
  display: inline-block; background: var(--brand); color: var(--ink); font-weight: 800;
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; margin-bottom: 14px;
}
.hero-copy h1 { font-size: 2.5rem; letter-spacing: -.02em; }
.hero-copy p { color: var(--ink-2); font-size: 1.05rem; }
.hero-copy .price { font-size: 1.5rem; font-weight: 800; margin: 10px 0 18px; }
.hero-copy .price s { color: var(--muted); font-weight: 500; font-size: 1rem; margin-left: 8px; }
.hero-art { background: var(--bg-3); height: 100%; display: grid; place-items: center; padding: 22px; }
.hero-art img { max-height: 340px; object-fit: contain; }

/* ---------- section headings ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head a { font-size: .88rem; font-weight: 700; text-decoration: underline; }

/* ---------- category chips ---------- */
.chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.chip {
  border: 1px solid var(--line); border-radius: 6px; padding: 16px 12px; text-align: center;
  background: #fff; transition: border-color .15s, transform .15s;
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip .ico { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.chip span { font-size: .85rem; font-weight: 600; }

/* ---------- product grid / card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { border: 1px solid var(--line); border-radius: 6px; background: #fff; display: flex; flex-direction: column; position: relative; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card-media { position: relative; padding: 14px; background: #fff; }
.card-media img { height: 170px; width: 100%; object-fit: contain; }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 7px; border-radius: 3px; }
.tag-save { background: var(--red); color: #fff; }
.tag-new { background: var(--ink); color: #fff; }
.tag-save { background: var(--magenta-soft); color: var(--magenta); }
.tag-offer { background: var(--brand); color: var(--ink); }
.card-body { padding: 0 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: .92rem; font-weight: 600; margin: 4px 0 6px; min-height: 2.6em; }
.stars { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
.stars b { color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.price .now { font-size: 1.25rem; font-weight: 800; }
.price .was { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.price .save { font-size: .8rem; color: var(--magenta); font-weight: 700; }
.permo { font-size: .78rem; color: var(--ink-2); margin-bottom: 8px; }
.stock { font-size: .78rem; font-weight: 700; }
.stock.in { color: var(--green); }
.stock.out { color: var(--red); }
.card .btn { margin-top: auto; }

/* ---------- PLP ---------- */
.plp { display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding-bottom: 50px; }
.filters { border: 1px solid var(--line); border-radius: 6px; padding: 0; height: max-content; position: sticky; top: 12px; }
.filters h3 { font-size: .95rem; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fgroup { border-bottom: 1px solid var(--line); padding: 12px 16px; }
.fgroup:last-child { border-bottom: 0; }
.fgroup > strong { display: block; font-size: .84rem; margin-bottom: 8px; }
.fgroup label { display: flex; gap: 8px; align-items: center; font-size: .86rem; padding: 3px 0; cursor: pointer; }
.fgroup .count { color: var(--muted); font-size: .76rem; margin-left: auto; }
.fgroup input[type="number"] { width: 100%; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 3px; }
.plp-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.plp-bar .count { font-size: .88rem; color: var(--muted); }
.plp-bar select { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-chips a { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 5px 12px; font-size: .8rem; }
.empty { border: 1px dashed var(--line-2); border-radius: 6px; padding: 50px; text-align: center; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; padding-bottom: 40px; }
.gallery-main { border: 1px solid var(--line); border-radius: 6px; padding: 26px; display: grid; place-items: center; background: #fff; }
.gallery-main img { max-height: none; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs a { border: 1px solid var(--line); border-radius: 4px; padding: 6px; }
.thumbs a:hover, .thumbs a.on { border-color: var(--ink); }
.thumbs img { width: 56px; height: 56px; object-fit: contain; }
.pdp h1 { font-size: 1.6rem; margin-bottom: .35em; }
.pdp .price .now { font-size: 2rem; }
.buybox { border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin: 16px 0; background: var(--bg-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 1.1rem; }
.qty input { width: 46px; height: 40px; border: 0; text-align: center; font-size: 1rem; }
.buyrow { display: flex; gap: 10px; align-items: stretch; }
.buyrow .btn { flex: 1; }
.usps { list-style: none; padding: 0; margin: 16px 0 0; font-size: .86rem; }
.usps li { display: flex; gap: 8px; padding: 4px 0; color: var(--ink-2); }
.tabs { border-top: 1px solid var(--line); margin-top: 10px; }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabbar button { border: 0; background: none; padding: 14px 16px; font-weight: 700; font-size: .9rem; border-bottom: 3px solid transparent; }
.tabbar button.on { border-bottom-color: var(--brand); }
.tabpanel { padding: 20px 0; font-size: .92rem; }
.spec { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--ink-2); margin: 0; }
.spec dd { margin: 0; }

/* ---------- basket ---------- */
.basket { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding-bottom: 50px; }
.bline { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bline img { width: 110px; height: 110px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; padding: 6px; }
.summary { border: 1px solid var(--line); border-radius: 6px; padding: 18px; height: max-content; position: sticky; top: 12px; }
.summary .line { display: flex; justify-content: space-between; font-size: .92rem; padding: 5px 0; }
.summary .total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }

/* ---------- checkout ---------- */
.stages { display: flex; gap: 8px; margin: 18px 0 26px; flex-wrap: wrap; }
.stage { font-size: .84rem; font-weight: 700; padding: 10px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); }
.stage.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.stage.done { border-color: var(--ink); color: var(--ink); }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding-bottom: 50px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 18px; margin: 0 0 18px; }
legend { font-weight: 800; padding: 0 6px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field .err { color: var(--red); font-size: .78rem; font-weight: 700; margin-top: 4px; display: none; }
.field.bad input, .field.bad select { border-color: var(--red); }
.field.bad .err { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 6px; padding: 14px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card input { margin-top: 3px; }
.radio-card b { display: block; font-size: .95rem; }
.radio-card small { color: var(--muted); }

/* ---------- misc ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 20px; }
.trust b { display: block; font-size: .9rem; margin-bottom: 3px; }
.trust span { font-size: .82rem; color: var(--muted); }

.breadcrumb-json, .footnote { font-size: .78rem; color: var(--muted); }
.notice { border: 1px solid var(--brand); background: #fffbe6; border-radius: 6px; padding: 12px 14px; font-size: .88rem; margin-bottom: 16px; }
.notice.error { border-color: var(--red); background: #fdecee; }

footer.site { background: var(--bg-2); color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 26px; font-size: .86rem; }
footer.site .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
footer.site h4 { color: var(--ink); font-size: .9rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 5px 0; }
footer.site a { color: var(--ink-2); }
footer.site a:hover { color: var(--purple); }
footer.site .base { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- drawer + toast ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: #fff; z-index: 100;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer .items { flex: 1; overflow-y: auto; padding: 12px 16px; }
.drawer .ditem { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer .ditem img { width: 64px; height: 64px; object-fit: contain; }
.drawer footer { border-top: 1px solid var(--line); padding: 16px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 24px; font-size: .9rem;
  box-shadow: var(--shadow-lg);
}
.close { border: 0; background: none; font-size: 1.5rem; line-height: 1; }

/* ---------- AVM blocks + modals ---------- */
.avms { display: grid; gap: 8px; margin: 14px 0; }
.avm { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 4px; padding: 10px 12px; display: block; }
.avm b { display: block; font-size: .9rem; }
.avm span { font-size: .8rem; color: var(--muted); }
.avm:hover { border-color: var(--line-2); background: var(--bg-3); }
.modal { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 8px; padding: 22px; max-width: 460px; width: 100%; position: relative; box-shadow: var(--shadow-lg); }
.modal-box .close { position: absolute; top: 10px; right: 12px; }

/* ---------- admin ---------- */
.adm-kpis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 20px; }
.adm-kpis > div { border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--bg-3); }
.adm-kpis span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.adm-kpis b { font-size: 1.15rem; }
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table.adm { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 720px; }
table.adm th { text-align: left; background: var(--bg-2); padding: 10px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); }
table.adm td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.adm img { border-radius: 4px; object-fit: contain; background: #fff; }
input.adm-num { width: 92px; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: 3px; }

/* ---------- mobile sticky buy bar ---------- */
.buybar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; gap: 12px; align-items: center; box-shadow: 0 -4px 14px rgba(0,0,0,.09); }
.buybar .now { font-size: 1.1rem; font-weight: 800; }
.buybar .btn { flex: 1; }

.filter-toggle {
  display: none; align-items: center; justify-content: space-between; width: 100%;
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px;
  background: #fff; font-weight: 700; margin-bottom: 12px;
}

@media (max-width: 720px) {
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .buybar { display: flex; }
  .pdp { padding-bottom: 90px; }
  .filter-toggle { display: flex; }
  .filters { display: none; margin-bottom: 14px; }
  .filters.open { display: block; }
  .gallery-main img { max-height: none; }
  .nav .wrap { padding-bottom: 2px; }
  .section { padding: 22px 0; }
  .hero-copy h1 { font-size: 1.6rem; }
  .masthead .wrap { gap: 10px; padding-bottom: 2px; }
  .searchbar { flex: 1 1 100%; min-width: 0; }
  .thumbs { flex-wrap: wrap; }
  .tabbar { flex-wrap: wrap; }
  .buyrow { flex-wrap: wrap; }
  body { overflow-x: hidden; }
}


/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .plp, .basket, .checkout, .pdp { grid-template-columns: 1fr; }
  .filters, .summary { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 26px; }
  .hero-copy h1 { font-size: 1.9rem; }
  .mega .wrap, .trust .wrap, footer.site .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .masthead .wrap { flex-wrap: wrap; }
  .searchbar { order: 3; flex-basis: 100%; }
  .card-media img { height: 130px; }
  .bline { grid-template-columns: 80px 1fr; }
  .bline img { width: 80px; height: 80px; }
  .two, .three { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- Black Friday campaign ---- */
.nav .nav-bf span { background:#1f2626; color:#fff; padding:6px 10px; border-radius:4px; display:inline-block; }
.nav .nav-bf { font-weight:700; }
.tag-bf { background:#1f2626; color:#fff; }
.bf-hero { background:#1f2626; color:#fff; margin:0 0 8px; }
.bf-hero .wrap { display:grid; grid-template-columns:1.15fr .85fr; gap:28px; align-items:center; padding-top:28px; padding-bottom:28px; }
.bf-hero img { width:100%; border-radius:10px; display:block; }
.bf-kicker { background:var(--brand); color:var(--ink); font-weight:800; text-transform:uppercase; letter-spacing:.06em; font-size:.72rem; padding:5px 10px; border-radius:4px; display:inline-block; }
.bf-hero h1 { color:#fff; font-size:2.1rem; line-height:1.15; margin:12px 0 10px; }
.bf-hero p { color:#d8d8d8; margin:0 0 16px; }
.bf-brands { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px,1fr)); gap:8px; }
.bf-brand { display:flex; justify-content:space-between; align-items:center; gap:8px; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font-weight:700; font-size:.85rem; }
.bf-brand span { color:var(--muted); font-weight:400; }
.bf-brand:hover { border-color:var(--ink); text-decoration:none; }
.bf-info { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.bf-info > div { border:1px solid var(--line); border-radius:10px; padding:14px; }
.bf-info b { display:block; margin-bottom:4px; }
.bf-info span { color:var(--muted); font-size:.85rem; }
.pager { display:flex; gap:6px; flex-wrap:wrap; margin:22px 0 6px; }
.pager .page { border:1px solid var(--line); border-radius:6px; padding:7px 12px; font-size:.85rem; }
.pager .page.on { background:var(--ink); color:#fff; border-color:var(--ink); }
@media (max-width: 720px) {
  .bf-hero .wrap { grid-template-columns:1fr; padding-top:16px; padding-bottom:20px; }
  .bf-hero h1 { font-size:1.5rem; }
  .bf-info { grid-template-columns:1fr; }
}
.hero-card { background: var(--bg-2); }
.hero-card .hero-inner { display:grid; grid-template-columns:1.1fr .9fr; align-items:center; }
.hero-card .hero-copy { padding:28px; }
.hero-card .hero-copy h2 { font-size:1.7rem; margin:6px 0 8px; }
@media (max-width: 720px) { .hero-card .hero-inner { grid-template-columns:1fr; } .hero-card .hero-copy { padding:18px; } }

/* ---- homepage shop-deals slider ---- */
.catslider { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(150px,1fr); gap:12px; overflow-x:auto; scrollbar-width:none; padding-bottom:4px; }
.catslider::-webkit-scrollbar { display:none; }
.cattile { border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--bg-3); text-align:center; display:flex; flex-direction:column; }
.cattile img { width:100%; aspect-ratio:1; object-fit:cover; display:block; }
.cattile-cta { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding:10px 8px 0; }
.cattile-label { font-weight:800; color:var(--purple); padding:2px 8px 12px; font-size:.92rem; }
.cattile:hover { border-color:var(--purple); text-decoration:none; }
@media (max-width: 720px) { .catslider { grid-auto-columns:46%; } }

/* ---- 9:16 phone layout ---- */
@media (max-width: 480px) {
  :root { --gutter: 12px; }
  .wrap { padding: 0 var(--gutter); }
  .card-media img { height: auto; aspect-ratio: 1 / 1; }
  .grid, .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { border-radius: 10px; overflow: hidden; }
  .card-media { padding: 8px; }
  .card-body { padding: 0 10px 12px; }
  .card-brand { font-size: .66rem; letter-spacing: .04em; }
  .card-title { font-size: .82rem; line-height: 1.35; margin: 3px 0 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .stars { font-size: .68rem; }
  .price { gap: 6px; margin: 6px 0 2px; }
  .price .now { font-size: 1.02rem; }
  .price .was { font-size: .72rem; }
  .price .save { font-size: .72rem; }
  .permo, .price-date { font-size: .66rem; }
  .card .btn { font-size: .78rem; padding: 8px 10px; }
  .tag { font-size: .6rem; padding: 3px 5px; }
  .chips { gap: 8px; }
  .chip { font-size: .8rem; padding: 8px 10px; }
  .section-head h2 { font-size: 1.15rem; }
  .section { padding: 18px 0; }
  .pdp h1 { font-size: 1.25rem; line-height: 1.3; }
  h1 { font-size: 1.45rem; }
  .plp h1 { font-size: 1.35rem; }
  .pdp .price .now { font-size: 1.6rem; }
  .buybox { padding: 12px; }
  .buyrow .btn-primary { flex: 1 1 auto; }
  .tabs .tabbar button { font-size: .8rem; padding: 10px 8px; }
  .modal-box { padding: 16px; }
  .bf-hero h1 { font-size: 1.35rem; }
  .cattile-label { font-size: .84rem; }
}

/* ---- suggestions ---- */
.searchbar { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(33,48,56,.16); padding: 6px; max-height: 68vh; overflow: auto; z-index: 70; }
.suggest .head { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.suggest a:hover, .suggest a.on { background: #fdf3e0; }
.suggest .sg-title { display: block; font-size: .84rem; line-height: 1.3; }
.suggest .sg-prod img { width: 44px; height: 44px; object-fit: contain; background: #f5f5f5; border-radius: 6px; flex: none; }
.suggest .sg-all { font-weight: 700; color: var(--purple); }
.suggest .stars.small { font-size: .68rem; }

/* ---- mini basket ---- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(33,48,56,.45); z-index: 80; }
body.drawer-open { overflow: hidden; }
.minibasket { position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 100%); background: #fff; z-index: 90; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.mb-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mb-head .close { background: none; border: 0; font-size: 1.4rem; line-height: 1; }
.mb-body { flex: 1; overflow: auto; padding: 8px 16px; }
.mb-line { display: grid; grid-template-columns: 56px 1fr 28px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mb-line img { width: 56px; height: 56px; object-fit: contain; background: #f7f7f7; border-radius: 8px; }
.mb-line a { color: var(--ink); font-size: .84rem; font-weight: 600; display: block; }
.mb-line button { background: none; border: 0; font-size: 1.2rem; color: var(--muted); }
.mb-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.mb-foot .btn { margin: 0; }

/* ---- pager, chips, view toggle ---- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 22px 0 8px; }
.pager button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; font-weight: 600; color: var(--ink); }
.pager button.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.pager span { margin-right: auto; }
.plp-bar .viewtype { display: inline-flex; gap: 4px; }
.plp-bar .viewtype button { padding: 6px 9px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.plp-bar .viewtype button.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.chip.clear { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.link { background: none; border: 0; padding: 6px 0; color: var(--purple); font-weight: 600; text-decoration: underline; }
.filters .clear-all { margin-top: 4px; }

/* ---- list view ---- */
.grid.listview { grid-template-columns: 1fr; gap: 10px; }
.grid.listview .card { display: grid; grid-template-columns: 132px 1fr; align-items: start; }
.grid.listview .card-body { padding: 10px 12px 12px 0; }

/* ---- gallery ---- */
.view-large { display: inline-block; font-size: .78rem; color: var(--muted); text-decoration: underline; margin-top: 6px; }

/* ---- checkout ---- */
.co-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-secure { font-size: .78rem; color: var(--muted); }
.co-h3 { font-size: .95rem; margin: 0 0 8px; }
.co-perks { display: block; margin: 4px 0 10px; line-height: 1.4; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1 1 auto; }
.inline .btn { flex: 0 0 auto; }
.store-list { display: grid; gap: 8px; margin-top: 10px; }
.co-thanks { background: #f9fef7; border: 1px solid #cfe8c5; border-radius: 12px; padding: 18px; }
.co-thanks h2 { color: #2c6e2f; margin: 0 0 8px; }
.checkout .radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.checkout .radio-card small { display: block; color: var(--muted); font-size: .76rem; }
.checkout .radio-card:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple) inset; }
.checkout .summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }

.suggest .sg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 10px; }
.suggest .sg-chip { background: #fdf3e0; border: 1px solid #f0dfc0; border-radius: 999px; padding: 6px 11px; font-size: .8rem; font-weight: 600; }
.suggest .sg-chip:hover { background: #fbe7c6; }

.minibasket[hidden], .drawer-backdrop[hidden] { display: none; }

.bline-tools label { display: inline-flex; align-items: center; gap: 6px; }
.bline-tools select { padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-weight: 600; }

/* ---- price block: price + was on one line, save mark on its own clean line ---- */
.price { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 6px; row-gap: 4px; margin: 8px 0 6px; min-width: 0; }
.price .now { grid-column: 1; grid-row: 1; white-space: nowrap; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price .was { grid-column: 2; grid-row: 1; white-space: nowrap; }
.price .save { grid-column: 1 / -1; grid-row: 2; justify-self: start; display: inline-block; max-width: 100%;
  background: var(--magenta-soft); color: var(--magenta); font-size: .68rem; font-weight: 800; line-height: 1.25;
  padding: 2px 6px; border-radius: 4px; white-space: nowrap; letter-spacing: .01em; }
.price .save::before { content: ""; }
.card .price { margin: 6px 0 4px; }
.pdp .price .save { font-size: .8rem; padding: 3px 8px; }
.pdp .price .was { font-size: .95rem; }

/* keep price lines inside narrow cards */
.price { overflow: hidden; }
.price .now { font-size: clamp(.92rem, 4.1vw, 1.22rem); }
.price .was { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .price .now { font-size: .95rem; } .price .save { font-size: .64rem; padding: 2px 5px; } }

@media (max-width: 480px) { .card .price .now { font-size: clamp(.95rem, 4.4vw, 1.08rem); } }

/* ---- phone PLP toolbar: wraps into clean rows instead of running off ---- */
@media (max-width: 600px) {
  .plp-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 6px; align-items: center; }
  .plp-bar .count { grid-column: 1 / -1; }
  .plp-bar select { width: 100%; min-width: 0; }
  .plp-bar select[data-sort] { grid-column: 1 / -1; }
  .plp-bar .viewtype { grid-column: 2; justify-self: end; }
  .pager { row-gap: 8px; }
}

/* ---- comfortable phone tap targets ---- */
@media (max-width: 600px) {
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 40px; }
  .nav-item { min-height: 44px; display: inline-flex; align-items: center; }
  .head-action { min-height: 44px; justify-content: center; }
  .masthead .wrap { align-items: center; }
  .buybar { padding: 10px 14px 12px; }
  .buybar .btn { min-height: 46px; }
  .qty button { min-width: 40px; min-height: 40px; }
  .modal .close, .mb-head .close { min-width: 40px; min-height: 40px; }
  .filters label { min-height: 40px; display: flex; align-items: center; }
  .chip { min-height: 40px; display: inline-flex; align-items: center; }
  .pdp { padding-bottom: 104px; }
}

/* ---- equal-height cards so rows stay tidy ---- */
.card { display: flex; flex-direction: column; }
.card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.card-title { min-height: calc(3 * 1.35em); }
.card .price { min-height: 46px; align-content: start; }
.card .btn { margin-top: auto; }

/* ================= perfecting pass: real Currys CTA + white tiles + header ==== */
/* real site: add-to-basket / primary CTA is purple #5c21b2, hover #6819dc, active #1e0740 */
.btn-primary,
.add-to-basket,
[data-add] {
  background: #5c21b2;
  border: 1px solid #5c21b2;
  color: #fff;
  font-weight: 700;
}
.btn-primary:hover,
.add-to-basket:hover,
[data-add]:hover { background: #6819dc; border-color: #6819dc; color: #fff; }
.btn-primary:active,
.add-to-basket:active,
[data-add]:active { background: #1e0740; border-color: #1e0740; color: #fff; }
.btn-primary:focus-visible,
.add-to-basket:focus-visible,
[data-add]:focus-visible { outline: 2px solid #4c12a1; outline-offset: 2px; }
[data-add] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
[data-add] .atb-icon { width: 18px; height: 18px; flex: 0 0 18px; }
[data-add] .atb-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* category tiles stay white, like the real home page */
.cattile { background: #fff; }
.cattile:hover { background: #fff; }

/* header: saved + menu */
.head-action svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.saved-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
.saved-heart svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.saved-heart[aria-pressed="true"] svg { fill: #d3006a; stroke: #d3006a; }
.card-media { position: relative; }

/* menu sheet */
.menu-sheet {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 360px);
  background: #fff;
  z-index: 120;
  transform: translateX(-102%);
  transition: transform .22s ease;
  overflow: auto;
  box-shadow: 4px 0 26px rgba(0, 0, 0, .18);
  padding-bottom: 30px;
}
.menu-sheet.open { transform: none; }
.menu-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .38); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .22s; }
.menu-scrim.open { opacity: 1; pointer-events: auto; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.menu-head b { font-size: 1rem; }
.menu-sheet nav { padding: 8px 0; }
.menu-sheet a { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f1f2f3; font-size: .95rem; }
.menu-sheet a:hover { background: #f7f7f8; }
.menu-sheet .menu-group { padding: 14px 16px 6px; font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* Black Friday money-saving boxes, styled like the real home page cards */
.bfboxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bfbox { display: block; background: #1f2626; border-radius: 10px; overflow: hidden; text-decoration: none; color: #fff; }
.bfbox img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.bfbox-body { padding: 10px 12px 14px; }
.bfbox h3 { margin: 0 0 6px; font-size: .86rem; line-height: 1.3; color: #fff; font-weight: 700; }
.bfbox p { margin: 0; font-size: .82rem; color: #fff; }
.bfbox .save-amt { color: #d3006a; font-weight: 800; }
@media (min-width: 700px) { .bfboxes { grid-template-columns: repeat(4, 1fr); } }

/* thin progress bar while a page loads */
#pgbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: #5c21b2; z-index: 200; transition: width .25s ease, opacity .3s; opacity: 0; }
#pgbar.on { opacity: 1; }

/* header actions must never push the page wider than the phone */
@media (max-width: 700px) {
  .head-actions { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .head-actions::-webkit-scrollbar { display: none; }
  .head-action { flex: 0 0 auto; font-size: .72rem; gap: 4px; }
  .head-action svg { width: 18px; height: 18px; }
}

/* narrow phones: icons only so all five actions fit without a swipe */
@media (max-width: 400px) {
  .head-action { font-size: 0; gap: 0; padding: 9px 11px; }
  .head-action svg { width: 22px; height: 22px; }
  .head-action .count { font-size: .62rem; }
}

/* white header band behind the search bar */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .logo { color: var(--purple); }
.searchbar input { border-color: var(--line-2); background: #f6f7f8; }
.searchbar input:focus { background: #fff; }
.searchbar button { border-color: var(--ink); }
.head-action:hover { background: #f2f3f4; }

/* deal of the day as a proper Black Friday promotion */
.hero-card { background: #1f2626; color: #fff; border-radius: 12px; overflow: hidden; }
.hero-card .hero-copy h2 { color: #fff; }
.hero-card .hero-copy p { color: #ccd4d6; }
.hero-card .hero-art { background: #fff; }
.hero-card .price { margin: 12px 0 16px; }
.hero-card .price .now { color: #fff; font-size: 1.7rem; font-weight: 800; }
.hero-card .price .was { color: #9aa6aa; font-size: 1rem; }
.hero-card .price .save { background: var(--magenta); color: #fff; font-weight: 800; font-size: .82rem; padding: 4px 9px; border-radius: 4px; align-self: center; }
.bf-hero-pill { display: inline-block; background: #fff; color: #1f2626; font-weight: 800; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.hero-card .btn-primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.hero-card .btn-primary:hover { background: #b8005c; border-color: #b8005c; }

/* make the promo label read as a deal badge, not a chip */
.bf-hero-pill { background: var(--magenta); color: #fff; }

/* ---- header: logo + search on top, the five actions in a row underneath ---- */
.masthead .wrap { display: block; }
.head-top { display: flex; align-items: center; gap: 10px; }
.head-actions {
  display: flex; justify-content: space-between; gap: 2px; margin-top: 10px;
  border-top: 1px solid var(--line); padding-top: 6px;
}
.head-action { flex: 1 1 0; min-width: 0; font-size: .68rem; padding: 6px 2px; }
.head-action svg { width: 21px; height: 21px; }
@media (max-width: 340px) { .head-action { font-size: 0; gap: 0; } }

/* ---- rounded edges: search bar and buttons ---- */
.searchbar input { border-radius: 999px 0 0 999px; padding-left: 18px; }
.searchbar button { border-radius: 0 999px 999px 0; }
.btn, .btn-sm, .btn-primary, .btn-block { border-radius: 999px; }

/* ---- black friday promo: compact two-up card, no dead space ---- */
.hero-card .hero-inner { grid-template-columns: 42% 1fr; gap: 0; align-items: stretch; }
.hero-card .hero-copy { padding: 16px 16px 18px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-card .hero-art { order: -1; padding: 12px; display: grid; place-items: center; }
.hero-card .hero-art img { max-height: 100%; width: 100%; object-fit: contain; }
.hero-card .hero-copy h2 {
  font-size: 1rem; line-height: 1.25; margin: 8px 0 10px; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.bf-hero-pill { font-size: .62rem; padding: 4px 8px; }
.hero-card .price { margin: 0 0 12px; gap: 6px 8px; }
.hero-card .price .now { font-size: 1.25rem; }
.hero-card .price .was { font-size: .85rem; }
.hero-card .price .save { font-size: .72rem; padding: 3px 8px; margin-top: 4px; }
.hero-card .btn { margin-top: auto; width: 100%; text-align: center; padding: 11px 14px; font-size: .92rem; }
@media (min-width: 720px) {
  .hero-card .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-card .hero-copy { padding: 26px; }
  .hero-card .hero-copy h2 { font-size: 1.45rem; -webkit-line-clamp: 5; }
  .hero-card .price .now { font-size: 1.6rem; }
  .hero-card .btn { width: auto; padding: 12px 22px; }
  .hero-card .hero-art { order: 0; }
}

/* tighten the two-row header and let the promo title breathe */
.masthead { padding: 10px 0 10px; }
.masthead .logo img { width: 52px; height: 52px; }
.head-actions { margin-top: 8px; padding-top: 5px; }
.head-action { padding: 5px 2px; }
.hero-card .hero-copy h2 { -webkit-line-clamp: 5; font-size: .95rem; }

/* search bar sits under the logo + action row */
.head-top { justify-content: space-between; align-items: center; gap: 8px; }
.head-actions { margin-top: 0; padding-top: 0; border-top: 0; flex: 1 1 auto; justify-content: flex-end; }
.head-action { flex: 0 1 auto; padding: 6px 8px; }
.searchbar { margin-top: 8px; }

/* promo detail lines so the card is not half empty */
.hero-over { display: block; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: #9aa6aa; margin: 8px 0 2px; }
.hero-micro { margin: 8px 0 12px; font-size: .72rem; color: #9aa6aa; line-height: 1.35; }
.hero-card .hero-inner { grid-template-columns: 46% 1fr; }
.hero-card .hero-art { background: #f4f5f6; }
@media (min-width: 720px) { .hero-card .hero-inner { grid-template-columns: 1.05fr .95fr; } }

/* ---------- product tile, mirrored from the real currys.co.uk listing ---------- */
.card.product-tile {
  display: flex; flex-direction: column; background: #fff; border: 0; border-radius: 10px;
  padding: 0 0 10px; min-height: 13.4em; position: relative; gap: 0;
}
.card.product-tile .list-product-tile-name { padding: 16px 12px 8px 0; }
.card.product-tile .pdp-grid-product-name {
  font-size: 16px; line-height: 22px; font-weight: 400; color: #213038; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card.product-tile .mobile-ratings { display: block; line-height: 0; }
.card.product-tile .ratings {
  display: flex; align-items: center; gap: 2px; padding: 2px 0 8px; height: 20px; text-align: left;
}
.card.product-tile .nvda_star_reading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card.product-tile .svg-icon.star { width: 13px; height: 13px; display: inline-block; }
.card.product-tile .svg-icon.star.full { background: #d3006a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7 .9-5 4.9 1.2 7-6.2-3.4L5.8 21.4 7 14.4 2 9.5l7-.9Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7 .9-5 4.9 1.2 7-6.2-3.4L5.8 21.4 7 14.4 2 9.5l7-.9Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.card.product-tile .svg-icon.star.half { background: linear-gradient(90deg, #d3006a 50%, #e3e6e8 50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7 .9-5 4.9 1.2 7-6.2-3.4L5.8 21.4 7 14.4 2 9.5l7-.9Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7 .9-5 4.9 1.2 7-6.2-3.4L5.8 21.4 7 14.4 2 9.5l7-.9Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.card.product-tile .svg-icon.star.empty { background: #e3e6e8; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7 .9-5 4.9 1.2 7-6.2-3.4L5.8 21.4 7 14.4 2 9.5l7-.9Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3 6.6 7 .9-5 4.9 1.2 7-6.2-3.4L5.8 21.4 7 14.4 2 9.5l7-.9Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.card.product-tile .average-reviews { font-size: 12px; color: #213038; margin: 0 6px 0 3px; line-height: 1.3; }
.card.product-tile .rating-count { font-size: 12px; color: #56707a; text-decoration: underline; line-height: 1.3; }
.card.product-tile .card-media { padding: 0; background: #fff; }
.card.product-tile .card-media img { height: auto; max-height: none; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.card.product-tile .js-tile-container { display: block; padding: 0 8px; }
.card.product-tile .productimageStickers .productStickerImage { height: 24px; width: auto; margin-bottom: 8px; }
.card.product-tile .price-bundle-add-section { padding: 8px 0 0; }
.card.product-tile .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin: 0; font-size: 20px; }
.card.product-tile .price .value { font-size: 20px; font-weight: 700; color: #213038; }
.card.product-tile .worse-price { color: #e5006d; font-weight: 700; font-size: 14px; }
.card.product-tile .worse-price .primary-save-price { margin-left: 3px; }
.card.product-tile .price-date { font-size: 12px; color: #56707a; margin-top: 2px; }
.card.product-tile .monthly-amount { font-size: 12px; color: #213038; margin-top: 2px; }
.card.product-tile .monthly-amount b { font-weight: 700; }
.card.product-tile .avm-block {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; margin: 8px 0 0;
  font-size: 12px; color: #213038; line-height: 1.3;
}
.card.product-tile .avm-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.product-tile .avm-more-offers { color: #e5006d; white-space: nowrap; }
.card.product-tile .js-add-to-cart-list-view { margin-top: 10px; }
.card.product-tile .add-to-cart { font-size: 14px; padding: 10px 14px; border-radius: 999px; }
@media (max-width: 767px) { .card.product-tile .price-date { display: none; } }

.card.product-tile .js-tile-container { padding: 0; }
.card.product-tile .list-product-tile-name { padding: 16px 12px 8px 0; margin-left: 0; }
.card.product-tile .price-bundle-add-section { padding-right: 0; }

.card.product-tile .add-to-cart { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; line-height: 1.2; }

.card.product-tile .avm-block { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 7px; margin: 8px 0 0; font-size: 12px; line-height: 1.3; color: #213038; }
.card.product-tile .avm-block .voucher-icon svg { width: 14px; height: 14px; fill: #4c12a1; display: block; }
.card.product-tile .avm-title-block { min-width: 0; }
.card.product-tile .avm-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.product-tile .avm-more-offers { display: block; color: #e5006d; }

/* ---------- listing polish: calmer, real-site rhythm ---------- */
.grid { gap: 10px 10px; }
.card.product-tile { padding-bottom: 14px; }
.card.product-tile .list-product-tile-name { padding: 14px 8px 6px 0; }
.card.product-tile .ratings { gap: 1px; padding: 0 0 10px; }
.card.product-tile .svg-icon.star.full { background: #f1bf42; }
.card.product-tile .svg-icon.star.half { background: linear-gradient(90deg, #f1bf42 50%, #e3e6e8 50%); }
.card.product-tile .svg-icon.star.empty { background: #e3e6e8; }
.card.product-tile .svg-icon.star { width: 12px; height: 12px; }
.card.product-tile .average-reviews { margin: 0 5px 0 3px; color: #56707a; }
.card.product-tile .card-media img { padding: 2px 0; }
.card.product-tile .productimageStickers { display: flex; gap: 6px; margin: 2px 0 0; }
.card.product-tile .sticker-grid-height { display: none; }
.card.product-tile .productStickers img.productStickerImage { margin: 0; height: 24px; width: auto; }
.card.product-tile .price-bundle-add-section { padding: 8px 0 0; }
.card.product-tile .price { gap: 0 7px; margin: 0 0 6px; }
.card.product-tile .worse-price { font-size: 13px; }
.card.product-tile .monthly-amount { font-size: 11.5px; color: #56707a; margin: 0 0 10px; }
.card.product-tile .avm-block {
  border: 0; border-radius: 0; padding: 0; margin: 0 0 12px; gap: 6px; font-size: 12px; color: #56707a;
}
.card.product-tile .avm-block .voucher-icon svg { width: 13px; height: 13px; fill: #56707a; }
.card.product-tile .avm-title { color: #56707a; }
.card.product-tile .avm-more-offers { font-weight: 700; }
.card.product-tile .js-add-to-cart-list-view { margin-top: auto; padding-top: 2px; }
.card.product-tile .add-to-cart { font-size: 13.5px; min-height: 44px; }

/* ---------- deal of the day: white Currys promo card ---------- */
.hero-card {
  background: #fff; color: var(--ink); border: 1px solid #e3e6e8; border-radius: 12px; overflow: hidden;
}
.hero-card .hero-copy { padding: 16px; }
.hero-card .hero-art { background: #f7f7f7; }
.hero-card .hero-copy h2 { color: var(--ink); font-weight: 600; }
.hero-card .hero-copy p { color: var(--muted); }
.hero-card .bf-hero-pill,
.bf-hero-pill {
  background: none; color: #d3006a; font-weight: 800; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 0;
}
.hero-over { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .74rem; }
.hero-card .price { align-items: baseline; }
.hero-card .price .now { color: var(--ink); font-weight: 800; }
.hero-card .price .was { color: var(--muted); }
.hero-card .price .save {
  background: none; color: #e5006d; font-weight: 800; font-size: .84rem; padding: 0; border-radius: 0;
}
.hero-micro { color: var(--muted); }
.hero-card .btn-primary { background: var(--purple); border-color: var(--purple); }
.hero-card .btn-primary:hover { background: #6819dc; border-color: #6819dc; }

.hero-card .btn { width: 100%; text-align: center; justify-content: center; }
@media (min-width: 720px) { .hero-card .btn { width: auto; } }

/* phone: deal card stacks like a product spotlight */
@media (max-width: 719px) {
  .hero-card .hero-inner { grid-template-columns: 1fr; }
  .hero-card .hero-art { order: -1; padding: 10px; }
  .hero-card .hero-art img { max-height: 208px; }
  .hero-card .hero-copy { padding: 14px 16px 16px; }
  .hero-card .hero-copy h2 { font-size: 1.02rem; line-height: 1.32; }
  .hero-card .price .now { font-size: 1.45rem; }
  .hero-card .btn { width: 100%; }
}

/* ---------- checkout: sticky summary on desktop, banner under the steps on phones ---------- */
@media (min-width: 900px) {
  .checkout { align-items: start; }
  .checkout .summary { position: sticky; top: 14px; height: auto; max-height: calc(100vh - 28px); overflow: auto; }
}
@media (max-width: 899px) {
  .checkout .summary { order: -1; margin: 0 0 16px; background: #fafafa; }
  .checkout .summary h2 { font-size: .95rem; }
}
.checkout .select, .checkout select { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; }
.checkout .two .field { min-width: 0; }

/* ---------- crisp artwork: 3x sticker sprite, bigger breathing image, softer stars ---------- */
.card.product-tile .productStickers img.productStickerImage { height: 24px; width: auto; image-rendering: auto; }
.card.product-tile .card-media img.tile-image { padding: 4px 6px; box-sizing: border-box; }
.card.product-tile .price .value { font-weight: 800; letter-spacing: -.01em; }
.card.product-tile .add-to-cart[data-added] { background: #eff6ee; color: #0f7b3f; }

/* stickers keep their own proportion (no squashing) */
.card.product-tile .productStickers .productStickerImage { height: 22px !important; width: auto !important; max-width: none; object-fit: contain; }

/* sticker boxes: exact slot, art never squashed by the product photo rule */
.card.product-tile .card-media img.productStickerImage { width: auto; max-height: 22px; height: 22px; padding: 0; aspect-ratio: auto; }
.card.product-tile .productStickers { display: flex; gap: 6px; align-items: center; }

/* no sticker ever overflows a narrow tile */
.card.product-tile .card-media img.productStickerImage { max-width: 100%; }
.card.product-tile .productStickers { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 380px) { .card.product-tile .card-media img.productStickerImage { height: 20px; max-height: 20px; } }

/* checkout summary: visible item lines, bold balance line */
.checkout .summary { background: #fafafa; }
.checkout .co-sum-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.checkout .co-sum-head h2 { font-size: 1rem; margin: 0; }
.checkout .co-items { border-bottom: 1px solid var(--line); margin-bottom: 10px; padding-bottom: 6px; }
.checkout .co-items .line { border: 0; padding: 7px 0; align-items: flex-start; }
.checkout .co-empty { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }
.checkout .co-totals .line { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 5px 0; }
.checkout .co-totals .co-balance { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 10px; font-size: 1.08rem; font-weight: 800; }
.checkout .co-totals .co-balance span:last-child { color: var(--ink); }
.checkout .co-note { margin: 10px 0 0; }
@media (max-width: 899px) {
  .checkout .summary { background: #fafafa; border: 1px solid var(--line-2); }
}

/* summary first: phone order must beat the base rule */
.checkout { align-items: start; }
.checkout > .summary { order: 0; }
.checkout > form, .checkout > [data-stage-panel] { order: 1; }
@media (max-width: 899px) {
  .checkout { display: flex; flex-direction: column; gap: 14px; }
  .checkout .summary { position: static; margin-bottom: 4px; }
}

/* summary is a main child here: put it directly under the steps */
main.wrap > .summary { order: 2; margin: 16px 0 40px; }


/* no star icons on tiles: keep score + review count only */
.card .mobile-ratings .ratings > i,
.card .mobile-ratings .ratings .svg-icon.star { display: none; }
.card .mobile-ratings .ratings { display: flex; align-items: center; gap: 6px; }
.card .mobile-ratings .ratings .average-reviews { font-weight: 700; color: #213038; }


/* ---- PLP tidy-up: result/sort row, filter panel, checkbox rows ---- */
.plp-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid #ececec;
}
.plp-bar .count { font-size: 13px; color: #5c6b73; white-space: nowrap; }
.plp-bar .custom-select {
  -webkit-appearance: none;
  appearance: none;
  height: 40px;
  max-width: 200px;
  border: 1px solid #d5d5d5;
  border-radius: 22px;
  padding: 0 34px 0 14px;
  font-size: 14px;
  font-weight: 400;
  color: #213038;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23213038' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  box-shadow: none;
  text-overflow: ellipsis;
}
.plp-bar .custom-select:focus-visible { outline: 2px solid #4c12a1; outline-offset: 2px; }

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d5d5d5;
  border-radius: 22px;
  background: #fff;
  color: #213038;
  font-size: 14px;
  font-weight: 500;
}
.filter-toggle span { font-size: 11px; }

.filters { padding: 4px 0 10px; border-bottom: 1px solid #ececec; margin-bottom: 8px; }
.filters > h3 {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7a82;
  margin: 12px 0 4px;
}
.filters .fgroup { padding: 8px 0; border-bottom: 1px solid #f1f1f1; }
.filters .fgroup:last-child { border-bottom: 0; }
.filters .fgroup > strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #213038;
  margin-bottom: 4px;
}
.filters .fgroup label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 14px;
  color: #213038;
}
.filters .fgroup label input[type="checkbox"],
.filters .fgroup label input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1.5px solid #b9b9b9;
  border-radius: 4px;
  background: #fff;
  margin: 0;
  position: relative;
}
.filters .fgroup label input[type="radio"] { border-radius: 50%; }
.filters .fgroup label input:checked { border-color: #5c21b2; background: #5c21b2; }
.filters .fgroup label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filters .fgroup label input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.filters .fgroup label .count { margin-left: auto; font-size: 13px; color: #7b878d; }
.filters .fgroup .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .fgroup .two input {
  height: 40px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  width: 100%;
  min-width: 0;
}
.filters .apply-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 10px; }


/* applied filter chips: pill with clear affordance */
.active-chips { align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.active-chips > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 18px;
  background: #fff;
  color: #213038;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.active-chips > *:hover { border-color: #5c21b2; color: #5c21b2; }

/* footer pages nested in a category: tidy the chip list under the title */
.plp-head { margin-bottom: 4px; }


/* menu: the "More" items continue inside the Shop column instead of a separate block */
.mega .wrap > div:first-child li.merged-start { margin-top: 4px; padding-top: 8px; border-top: 1px solid #ececec; }
.mega .wrap > div:first-child li.merged-start::before {
  content: "More";
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7a82;
  margin-bottom: 2px;
}


/* remove the "buy now, pay in 10 months" sticker — Black Friday sticker stays alone */
.card .productimageStickers .productStickerImage[alt*="months"],
.card .productimageStickers .productStickerImage[alt*="Pay in"],
.pdp .productStickers .productStickerImage[alt*="months"],
.pdp .productStickers .productStickerImage[alt*="Pay in"] { display: none !important; }
.card .productStickers { display: flex; align-items: center; gap: 6px; }
.card .productStickers .productStickerImage { height: 20px; width: auto; max-width: 100%; }
.card .productimageStickers:not(:has(img:not([alt*="months"]):not([alt*="Pay in"]))) { display: none; }

/* note under a heading when a page was topped up with related lines */
.plp-note { margin: -4px 0 12px; font-size: 13px; color: #6b7a82; }

/* ---- small-phone hardening: never let content squeeze or overhang ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, iframe { max-width: 100%; }
table, pre { max-width: 100%; }

@media (max-width: 420px) {
  :root { --gutter: 10px; }
  .wrap { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
  .grid, .grid-5 { gap: 8px; }
  .card, .product-tile { min-width: 0; }
  h1 { font-size: 1.3rem; line-height: 1.25; }
  h2 { font-size: 1.05rem; }
  .card-title, .pdp-grid-product-name { font-size: 14px; line-height: 1.3; }
  .price .now, .card .price .value { font-size: 1rem !important; }
  .btn, .btn-sm, .head-action { min-height: 42px; }
  .searchbar input { font-size: 16px; }
  .mega .wrap, .trust .wrap, footer.site .cols { grid-template-columns: 1fr; }
  .checkout .summary { padding: 12px; }
}

@media (max-width: 330px) {
  .grid, .grid-5 { grid-template-columns: 1fr; }
  h1 { font-size: 1.2rem; }
}

/* ---- absolute guarantee: no tile, image or row can exceed the screen ---- */
.grid > *, .grid-5 > *, .card, .card > *, .card-media, .list-image-wrapper,
.plp > *, .plp-bar, .plp-bar > * { min-width: 0; max-width: 100%; }
.grid { grid-auto-columns: minmax(0, 1fr); }
.catslider { grid-auto-columns: minmax(120px, 1fr); }
img.tile-image, .card-media img { width: 100%; height: auto; display: block; }


/* ==========================================================================
   REAL HOMEPAGE STRUCTURE — message strip, service bar, hero slider,
   promo tile rail, promo blocks, "why shop with Currys"
   ========================================================================== */

.msgstrip { background: #1f2626; color: #fff; display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 12px; font-size: 13px; line-height: 17px; }
.msgstrip a { color: #fff; flex: 1; text-align: center; }
.msgstrip strong { font-weight: 700; }
.msgstrip[hidden] { display: none; }
.msgstrip-close { background: none; border: 0; padding: 2px; margin-left: auto; cursor: pointer; flex: none; }
.msgstrip-close img { width: 12px; height: 12px; display: block; }

.servicebar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  border-bottom: 1px solid var(--line); margin: 10px 0 4px; }
.servicebar a { display: flex; align-items: center; gap: 8px; padding: 8px 4px; font-size: 13px;
  line-height: 17px; color: var(--ink); }
.servicebar a:hover { text-decoration: none; background: var(--brand); }
.servicebar .svc-ico { width: 24px; height: 24px; flex: none; object-fit: contain; }
.servicebar b { font-weight: 700; }
@media (max-width: 767px) {
  .servicebar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; gap: 0; margin: 0 calc(var(--gutter) * -1) 4px; padding: 0 var(--gutter); }
  .servicebar::-webkit-scrollbar { display: none; }
  .servicebar a { flex: 0 0 auto; scroll-snap-align: start; max-width: 88%; }
  .servicebar a + a { border-left: 1px solid var(--line); }
}

.hero-slider { position: relative; margin: 12px 0 10px; border-radius: 10px; overflow: hidden;
  background: var(--bg-2); }
.hero-track { list-style: none; margin: 0; padding: 0; position: relative; }
.hero-slide { display: none; }
.hero-slide.is-on { display: block; }
.hero-slide img { width: 100%; height: auto; display: block; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); cursor: pointer; }
.hero-dot.is-on { background: #fff; }
@media (max-width: 767px) { .hero-slider { margin: 8px calc(var(--gutter) * -1) 10px; border-radius: 0; } }

.skinny { margin: 10px 0 18px; border-radius: 8px; overflow: hidden; }
.skinny img { width: 100%; height: auto; display: block; }

.hprow { margin: 0 0 26px; }
.hp-title { font-family: var(--font-head); font-size: 20px; line-height: 24px; color: var(--ink);
  text-align: center; margin: 0 0 18px; font-weight: 400; }
.hp-title-left, .hp-dark-title { font-family: var(--font-head); font-size: 20px; line-height: 24px;
  color: var(--ink); font-weight: 400; margin: 0 0 12px; }
.hp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hp-head a { font-size: 14px; color: var(--purple); }

.promo-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr);
  gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px;
  scrollbar-width: thin; }
.promo-tile { scroll-snap-align: start; text-align: center; }
.promo-tile:hover { text-decoration: none; }
.promo-art { display: flex; align-items: center; justify-content: center; }
.promo-art img { width: 100px; height: 100px; object-fit: contain; border-radius: 50%;
  transition: transform .4s cubic-bezier(.76, 0, .24, 1); }
.promo-tile:hover .promo-art img { transform: scale(1.08); }
.promo-label { display: block; margin-top: 8px; font-size: 16px; line-height: 1.38; color: var(--ink); }
@media (max-width: 767px) {
  .promo-rail { grid-auto-columns: 45%; gap: 8px; }
  .promo-label { font-size: 14px; }
}

.brand-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
  gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.brand-pill { display: flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; font-weight: 700;
  font-size: 14px; text-align: center; background: #fff; }
.brand-pill:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }

.promo-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.promo-block { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden;
  background: #1f2626; color: #fff; }
.promo-block:hover { text-decoration: none; }
.promo-block-img { width: 100%; height: auto; display: block; background: #1f2626; }
.promo-block-body { padding: 10px 12px 14px; }
.promo-block-body h4 { color: #fff; font-family: var(--font-head); font-size: 16px; line-height: 21px;
  font-weight: 700; margin: 0 0 6px; }
.promo-block-body p { margin: 0; font-size: 14px; line-height: 19px; color: #fff; }
.promo-block-body .bf-magenta { color: #ff4fa3; font-weight: 700; }
@media (max-width: 1023px) { .promo-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .promo-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .promo-block-body h4 { font-size: 14px; line-height: 18px; } .promo-block-body p { font-size: 13px; line-height: 17px; } }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.why-tile { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; color: var(--ink); }
.why-tile:hover { text-decoration: none; }
.why-tile img { width: 100%; height: auto; display: block; }
.why-body { padding: 10px 12px 14px; }
.why-body h4 { font-family: var(--font-head); font-size: 16px; line-height: 21px; margin: 0 0 4px; color: var(--ink); }
.why-body p { margin: 0; font-size: 14px; line-height: 19px; color: var(--ink-2); }
@media (max-width: 767px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .why-body h4 { font-size: 14px; line-height: 18px; } .why-body p { font-size: 13px; line-height: 17px; } }

.rep-example { font-size: 12px; line-height: 17px; color: var(--muted); margin: 0 0 24px; }



/* ---- PDP fulfilment, actions, warning (real PDP) ---- */
.pdp-actions { display: flex; gap: 16px; margin: 4px 0 12px; }
.pdp-actions a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pdp-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pdp-actions a:hover { color: var(--purple); text-decoration: none; }
.pdp-fulfil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.fulfil-card { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; }
.fulfil-card h3 { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 22px; margin: 0 0 6px; }
.fulfil-card h3 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fulfil-card p { margin: 0 0 6px; }
.fulfil-free { color: var(--green); font-weight: 700; font-size: 14px; }
.fulfil-link { font-size: 14px; text-decoration: underline; color: var(--ink); }
.pdp-warning { background: var(--brand); border-radius: 6px; padding: 8px 12px; font-size: 14px; margin: 10px 0; }
@media (max-width: 420px) { .pdp-fulfil { grid-template-columns: minmax(0, 1fr); } }



/* ---- PLP filter header + reset (real refinement bar) ---- */
.filters-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.filters-head h3 { margin-bottom: 10px; }
.filters-reset { font-size: 14px; text-decoration: underline; color: var(--ink); }
.filters-reset:hover { color: var(--purple); }
.fgroup-oos { border-bottom: 0; padding-bottom: 0; }



/* ---- PDP care plan + bundle rail (real PDP) ---- */
.care-plan { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; margin: 14px 0; background: var(--bg-3); }
.care-main h3 { font-size: 16px; line-height: 21px; margin: 0 0 4px; }
.care-main p { margin: 0; }
.care-cta { grid-row: 1 / span 2; grid-column: 2; border: 2px solid var(--purple); color: var(--purple);
  border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.care-cta:hover { background: var(--purple); color: #fff; text-decoration: none; }
.care-note { grid-column: 1; }
.bundle { margin: 22px 0; }
.bundle h2 { font-size: 20px; line-height: 24px; margin: 0 0 12px; }
.bundle-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 10px;
  overflow-x: auto; padding-bottom: 6px; }
.bundle-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex;
  flex-direction: column; gap: 4px; }
.bundle-card:hover { border-color: var(--purple); text-decoration: none; }
.bundle-card img { width: 100%; height: auto; border-radius: 4px; }
.bundle-name { font-size: 13px; line-height: 18px; color: var(--ink); }
.bundle-price { font-weight: 700; font-size: 15px; color: var(--ink); }
@media (max-width: 420px) {
  .care-plan { grid-template-columns: 1fr; }
  .care-cta { grid-row: auto; grid-column: 1; text-align: center; }
}



/* ---- 9:16 phone tap targets: everything actionable gets 44px ---- */
@media (max-width: 480px) {
  .add-to-cart, .js-add-to-cart-list-view .btn, .buyrow .btn,
  .qty button, .buybar .btn { min-height: 44px; }
  .saved-heart { width: 44px; height: 44px; top: 4px; right: 4px; }
  /* Inside the PLP card the heart is a text link on the bottom row, so it must
     not become a fixed 44px box or it breaks that row. */
  .plp .saved-heart { width: auto; height: auto; min-width: 0; min-height: 0; top: auto; right: auto; }
  .head-action { min-height: 44px; }
  .hero-dot { width: 11px; height: 11px; position: relative; }
  .hero-dot::after { content: ""; position: absolute; inset: -14px -4px; }
  .promo-tile, .why-tile, .promo-block { min-height: 44px; }
  .filters-head h3 { font-size: 1.05rem; }
  .filters-reset, .fgroup label, .chip, .custom-select, .filter-toggle { min-height: 44px; }
  .fgroup label { display: flex; align-items: center; }
  .fulfil-link, .pdp-actions a, .care-cta { min-height: 44px; display: inline-flex; align-items: center; }
}



/* ---- 9:16: finish every remaining sub-44px target ---- */
@media (max-width: 480px) {
  .add-to-cart, .btn, .btn-primary, .btn-sm, .btn-outline { min-height: 44px; }
  .bf-brand, a.bf-brand { min-height: 44px; display: flex; align-items: center; }
  .pager button, .pager a { min-width: 44px; height: 44px; }
  .tabs .tabbar button, .tabbar button { min-height: 44px; }
  .qty input { height: 44px; }
  .view-large { min-height: 44px; display: inline-flex; align-items: center; }
  .chips .chip, .chip { min-height: 44px; display: inline-flex; align-items: center; }
  .saved-heart { min-width: 44px; min-height: 44px; }
  input, select { min-height: 44px; }
}



/* ---- 9:16: section-head links and slider dots get real hit areas ---- */
@media (max-width: 480px) {
  .hp-head a, .section-head a { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-dots { bottom: 2px; gap: 14px; }
  .hero-dot::after { inset: -17px -6px; }
}



/* ---- 9:16: inline text links get a 44px row ---- */
@media (max-width: 480px) {
  .basket a[href], .checkout a[href], .tabs a[href], .suggest a, .hprow a.inline {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .basket h1 + p a, .basket .back, a[href*="index.html"] { min-height: 44px; display: inline-flex; align-items: center; }
}



/* ---- 9:16: wide admin table scrolls in its own box, never the page ---- */
@media (max-width: 767px) {
  .adm-wrap, .adm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .adm-wrap table.adm, .adm-scroll table.adm { min-width: 680px; }
}



/* ---- 9:16: search layout toggle buttons get a 44px row ---- */
@media (max-width: 480px) {
  .sortbar button, .toolbar button, .results-head button, .viewtoggle button, button.on { min-height: 44px; min-width: 44px; }
}



/* ---- servicebar: grey tick boxes instead of the broken icon images ---- */
.svc-tick {
  width: 22px; height: 22px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; background: #e3e6e8; color: #213038;
}
.svc-tick svg { display: block; }



/* ---- hero slide 1: "Shop now" CTA over the Black Friday artwork ---- */
.hero-slide > a { position: relative; display: block; }
.hero-cta {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: #5c21b2; color: #fff;
  font-weight: 700; font-size: 15px; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  transition: background .15s ease;
}
.hero-slide > a:hover .hero-cta { background: #6819dc; }
.hero-cta svg { display: block; }
@media (max-width: 767px) {
  .hero-cta { left: 12px; bottom: 12px; padding: 10px 16px; font-size: 14px; min-height: 44px; }
}
@media (max-width: 380px) {
  .hero-cta { left: 10px; bottom: 10px; padding: 9px 14px; font-size: 13px; }
}



/* ---- single-slide hero: "Shop now" sits under the advert headline ---- */
.hero-single .hero-track { transform: none !important; }
.hero-single .hero-dots { display: none; }

.hero-slide > a { position: relative; display: block; }

/* centre the CTA under the headline block: text spans ~24%-70% wide,
   clean band under it starts ~35% down the artwork */
.hero-cta {
  position: absolute;
  left: 47%;
  top: 40%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  background: #5c21b2; color: #fff;
  font-weight: 700; font-size: 16px; line-height: 1;
  white-space: nowrap;
  box-shadow: 0 3px 14px rgba(0,0,0,.25);
  transition: background .15s ease;
}
.hero-slide > a:hover .hero-cta { background: #6819dc; }
.hero-cta svg { display: block; }

@media (max-width: 767px) {
  .hero-cta { left: 50%; top: 33%; padding: 12px 20px; font-size: 15px; min-height: 44px; }
}
@media (max-width: 480px) {
  .hero-cta { top: 31%; padding: 11px 18px; font-size: 14px; }
}



/* ---- fix: CTA must be a compact pill, never stretched ---- */
.hero-slide .hero-cta,
.hero-slide > a .hero-cta {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: auto;
  padding: 12px 24px;
  top: 42% !important;
}
@media (max-width: 767px) {
  .hero-slide .hero-cta { top: 34% !important; padding: 12px 20px; }
}
@media (max-width: 480px) {
  .hero-slide .hero-cta { top: 32% !important; padding: 11px 18px; }
}



/* ---- CTA: anchor by top only (bottom:auto overrides the earlier bottom rule) ---- */
.hero-slide .hero-cta,
.hero-slide > a .hero-cta {
  bottom: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 24px;
  line-height: 1;
}



/* ==== hero: advert, then a clean white footer bar holding "Shop now" ==== */
.hero-single .hero-track { transform: none !important; }
.hero-single .hero-dots { display: none !important; }
.hero-single .hero-slide { border-radius: 10px; overflow: hidden; border: 1px solid #e6e8ea; }

.hero-single .hero-art { display: block; line-height: 0; }
.hero-single .hero-art picture,
.hero-single .hero-art img { display: block; width: 100%; height: auto; }

/* the strip: below the artwork, never on it */
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 1px solid #e6e8ea;
  padding: 12px 16px;
}

.hero-slide .hero-foot .hero-cta,
.hero-slide > a .hero-cta {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box;
  padding: 0 26px;
  border-radius: 999px;
  background: #5c21b2;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition: background .15s ease;
}
.hero-slide .hero-foot .hero-cta:hover { background: #6819dc; color: #fff; }
.hero-slide .hero-foot .hero-cta svg { display: block; }

@media (max-width: 767px) {
  .hero-foot { padding: 10px 12px; }
  .hero-slide .hero-foot .hero-cta { width: 100%; max-width: 320px; height: 48px !important; min-height: 48px !important; font-size: 15px; }
}



/* ==== poster must fill the hero edge-to-edge (no inset, no beige frame) ==== */
.hero-single .bf-poster {
  display: block;
  width: 100%;
  line-height: 0;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  place-items: stretch !important;
}
.hero-single .bf-poster picture {
  display: block;
  width: 100%;
}
.hero-single .bf-poster img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover;
  margin: 0 !important;
}
/* the card border belongs to the whole hero, not the poster alone */
.hero-single .hero-slide { border: 0; border-radius: 0; overflow: visible; }
.hero-single {
  border: 1px solid #e6e8ea;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
@media (max-width: 767px) {
  .hero-single { border-radius: 0; }
}

/* ---------- laptop / desktop PLP: keep filters in the sidebar, products in the main column ----------
   The PLP markup is: .filter-toggle, aside.filters, div(results). On phones the toggle is visible and
   the filters collapse, all in one column. Above 720 px the toggle is display:none but still took a
   grid cell, so the results div auto-placed into row 2 / column 1 (250 px) and the products were
   squeezed to 55 px wide while the filters got the whole main column. Pin the columns explicitly. */
@media (min-width: 721px) {
  .plp { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .plp > .filter-toggle { display: none; }
  .plp > aside.filters { grid-column: 1; grid-row: 1 / span 3; }
  .plp > div:not(.filters):not(.filter-toggle) { grid-column: 2; min-width: 0; }
  .plp > .plp-bar { grid-column: 2; }
  .plp .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mid widths (tablet / small laptop): narrower rail, three across */
@media (min-width: 860px) {
  .plp { grid-template-columns: 230px minmax(0, 1fr); }
  .plp .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Laptop and up: comfortable sidebar, four across, tiles stay ~250-300 px */
@media (min-width: 1200px) {
  .plp { grid-template-columns: 250px minmax(0, 1fr); }
  .plp .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Laptop widths: the home / promo grids also cap out at a sane tile size */
@media (min-width: 1024px) {
  .grid, .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- wider screens: content runs to the edges ----------
   `--wrap` was capped at 1360 px, so a 1440 screen lost 40 px on each side and a 1920 screen
   lost 280 px -- the page visibly stopped short of the edges. Raise the cap so the layout fills
   the viewport on laptops/desktops, keeping only the normal gutter. Phones are unaffected
   (the cap never bites below 1360 px). Nothing else about the look changes. */
@media (min-width: 1361px) {
  :root { --wrap: 100%; }
}

/* Keep a sane maximum on very large monitors so lines don't get unreadably long */
@media (min-width: 2200px) {
  :root { --wrap: 2200px; }
}

/* Very wide screens: add a column rather than stretching tiles to 390 px */
@media (min-width: 1700px) {
  .plp .grid, .grid, .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 2100px) {
  .plp .grid, .grid, .grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


/* ---- PDP: "What you'll need to make it even better" sits directly under the
   description. .pdp's bottom padding (40px desktop / 104px phone, the latter
   reserving room for the sticky buybar) left a large blank band between the
   description panel and the bundle rail. Close it without moving anything else. */
.pdp { padding-bottom: 0; }
.pdp + .bundle { margin-top: 8px; }
@media (max-width: 600px) {
  /* keep the buybar clearance on phones - it is needed there */
  .pdp { padding-bottom: 92px; }
  .pdp + .bundle { margin-top: 8px; }
}

/* Corrected: .buybar is position:fixed, so the 92px padding on .pdp below 600px
   was not buybar clearance at all - it was a blank band sitting between the
   description and the bundle rail. Drop it entirely and put the buybar clearance
   on the page bottom instead, where a fixed bar actually needs it. */
@media (max-width: 600px) {
  .pdp { padding-bottom: 0; }
  .pdp + .bundle { margin-top: 10px; }
  body { padding-bottom: 76px; }
}

/* ============================================================================
   PLP LIST VIEW - matched to currys.co.uk /computing/laptops/laptops
   Measured from the master at 1440px:
     sidebar 338px @ x=43 | product column 1013px @ x=414
     tile 983 x 460-535, image column col-3 (~127px wide), text column right
     H1 "All laptops" 24px/500 rgb(33,48,56)
     primary button rgb(76,18,161) radius 24px
     secondary button white, 1.6px solid rgb(76,18,161), radius 24px
   ========================================================================= */

/* ---- title ---- */
.plp-h1 {
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: #213038;
  margin: 18px 0 14px;
}

/* ---- two-column shell: 338px sidebar + fluid products ---- */
.plp {
  display: grid;
  grid-template-columns: 338px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
@media (max-width: 1100px) { .plp { grid-template-columns: 300px minmax(0, 1fr); gap: 24px } }
@media (max-width: 860px)  { .plp { grid-template-columns: minmax(0, 1fr); gap: 16px } }

/* ---- sidebar ---- */
.plp .filters {
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.filters-head { padding: 0 0 12px; }
.filter-heading {
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #213038;
  margin: 0;
}
.plp .fgroup { border-top: 1px solid #CDD8DF; padding: 16px 0; }
.plp .fgroup:first-of-type { border-top: 0; }
.plp .fgroup h3 {
  font-family: "Currys Sans Headline", "Currys Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #213038;
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
}
.plp .fgroup label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #444;
  padding: 5px 0;
  cursor: pointer;
  line-height: 1.35;
}
.plp .fgroup label:hover span { color: #4C12A1 }
.plp .fgroup input[type=checkbox],
.plp .fgroup input[type=radio] {
  width: 18px; height: 18px; margin: 0; flex: none;
  accent-color: #4C12A1;
  cursor: pointer;
}
.plp .fgroup .count { margin-left: auto; color: #6A6F72; font-size: 13px }
.filters-head,
.plp .filters-head { display: block }
.plp .fgroup .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px }
.plp .fgroup .two input {
  width: 100%; padding: 9px 10px; font-size: 14px;
  border: 1px solid #CDD8DF; border-radius: 6px; color: #213038;
}
.plp .fgroup .two input:focus { outline: 2px solid #4C12A1; outline-offset: 1px }
.plp .fgroup .rate-stars { color: #E5006D; letter-spacing: 1px; font-size: 13px }

/* ---- sort bar ---- */
.plp-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 0 14px;
}
.plp-bar .count { font-size: 14px; color: #213038 }
.plp-bar .custom-select,
.plp-bar select {
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 14px; color: #213038; background: #fff;
  border: 1px solid #CDD8DF; border-radius: 24px;
  padding: 9px 34px 9px 16px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213038' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
.plp-bar .custom-select:focus { outline: 2px solid #4C12A1; outline-offset: 1px }

/*
 * The real listing is a 3-across grid on desktop (Bootstrap `col-lg-4` =
 * 33.3333% at >=992px) collapsing to a single column below that. It is not a
 * full-width row per product. Each cell keeps 15px side padding and 16px below,
 * and the white card sits inside it.
 */
.plp .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 30px;
  align-items: start;
}
@media (min-width: 992px) {
  .plp .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/*
 * Each product is a separate white card with empty page-background between
 * them, exactly like the real listing: a 10px radius, no border, no shadow,
 * and 24px of space below each card (16px on narrower screens). The gap is
 * what separates the cards; a divider line is wrong.
 *
 * The selector carries .card to outrank the older `.card.product-tile` block
 * further up, which otherwise wins on specificity.
 */
.plp .card.product-tile {
  display: block;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0 0 24px;
  margin: 0 0 24px;
  box-shadow: none;
  min-height: 0;
}
@media (max-width: 1200px) {
  .plp .card.product-tile { margin-bottom: 16px }
}
.plp .card.product-tile:hover { box-shadow: none }

.plp .plp-tile-wrapper {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
@media (max-width: 700px) {
  .plp .plp-tile-wrapper { grid-template-columns: 120px minmax(0, 1fr); gap: 16px }
}

/* image column */
.plp .image-icon-section { position: relative }
.plp .list-image-wrapper {
  position: relative; width: 100%; aspect-ratio: 210 / 190;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.plp .list-image-wrapper .tile-image {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  margin: 0 auto; display: block;
}
.plp .gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 6px;
  display: flex; gap: 6px; justify-content: center;
}
.plp .gdot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: #CDD8DF;
}
.plp .gdot.on { background: #4C12A1 }

/* text column */
.plp .tile-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start }
.plp .pdp-grid-product-name {
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 20px; font-weight: 500; line-height: 1.28;
  color: #213038; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.plp .pdpLink { text-decoration: none }
.plp .pdpLink:hover .pdp-grid-product-name { text-decoration: underline }

.plp .ratings {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: #444; text-decoration: none;
  margin-bottom: 10px;
}
.plp .ratings .nvda_star_reading {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.plp .ratings .svg-icon.star {
  width: 15px; height: 15px; display: inline-block;
  background: #E5006D;
  -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .9-5 4.8 1.2 7L12 18l-6.2 3.3L7 14.3l-5-4.8 7-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .9-5 4.8 1.2 7L12 18l-6.2 3.3L7 14.3l-5-4.8 7-.9z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plp .ratings .svg-icon.star.empty { background: #CDD8DF }
.plp .ratings .average-reviews { color: #444; font-size: 14px }
.plp .ratings .rating-count { color: #6A6F72; font-size: 14px }

/* real spec bullets, master style */
.plp .product-specs {
  list-style: none; margin: 0 0 12px; padding: 0;
  max-width: 640px;
}
.plp .product-specs li {
  font-size: 14px; line-height: 1.55; color: #213038;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.plp .product-specs .curry-sansreg-headline { font-weight: 600 }
.plp .product-specs .curry-sansreg-font { font-weight: 400 }

/* price block */
.plp .price-row { margin: 6px 0 10px }
.plp .price {
  display: flex; align-items: baseline; gap: 10px;
  font-family: "Currys Sans", system-ui, sans-serif;
}
.plp .price .value { font-size: 20px; font-weight: 500; color: #213038 }
.plp .price .prod-discount,
.plp .price .worse-price {
  font-size: 14px; color: #E5006D; display: inline-flex; gap: 4px;
}
.plp .price .primary-save-price { font-weight: 500 }
.plp .price-date { font-size: 13px; color: #6A6F72; margin-top: 2px }
.plp .monthly-amount { font-size: 14px; color: #213038; margin-top: 4px }
.plp .monthly-amount b { font-weight: 500 }

/* offer / trade-in / availability lines */
.plp .avm-line {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: #4C12A1; text-decoration: none;
  margin: 4px 0;
}
.plp .avm-line:hover { text-decoration: underline }
.plp .avm-line .voucher-icon svg { width: 16px; height: 16px; stroke: #4C12A1; fill: none; stroke-width: 1.8 }
.plp .tradein-link { font-size: 14px; color: #4C12A1; margin: 4px 0; display: inline-block }
.plp .avail-lines { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 4px }
.plp .avail-line {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; color: #213038;
}
.plp .avail-line svg { flex: none; color: #213038 }

/* actions
 * Matches the real listing: the two real buttons are 32px tall, and Compare
 * and Save for later are plain text links on one row at the bottom of the
 * card, not bordered pills.
 */
.plp .card.product-tile .tile-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 12px;
  width: 100%;
}
.plp .card.product-tile .btn.btn-primary,
.plp .card.product-tile .add-to-cart {
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 16px; font-weight: 400;
  background: #4C12A1; color: #fff;
  border: 0; border-radius: 24px;
  padding: 0 22px; line-height: 1.25;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; min-height: 32px;
}
.plp .card.product-tile .btn.btn-primary:hover,
.plp .card.product-tile .add-to-cart:hover { background: #3C0C82 }
.plp .card.product-tile .add-to-cart:focus-visible { outline: 2px solid #213038; outline-offset: 2px }

/* Buy a bundle is the magenta-outlined companion button. */
.plp .card.product-tile .buy-a-bundle {
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 14px; font-weight: 400;
  background: transparent; color: #213038;
  border: 1.6px solid #E5006D; border-radius: 16px;
  padding: 0 16px; height: 32px; min-height: 32px;
  cursor: pointer; display: inline-flex; align-items: center;
}
.plp .card.product-tile .buy-a-bundle:hover { background: #FDECF5 }

/* Compare and Save for later: plain text links, no border, no background. */
.plp .card.product-tile .tile-compare {
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 14px; font-weight: 400;
  background: transparent; color: #213038;
  border: 0; border-radius: 0;
  padding: 0; min-height: 0; height: auto;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
}
.plp .card.product-tile .tile-compare:hover { text-decoration: underline }

/* Compare sits left, Save for later right, on one row at the card foot. */
.plp .card.product-tile .tile-links {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 14px; width: 100%;
}
/* Below ~360px the two labels only fit if they stay on one line each. */
.plp .card.product-tile .tile-links > * { white-space: nowrap }
.plp .card.product-tile .tile-links .saved-heart { margin-left: auto; flex: 0 0 auto }
.plp .card.product-tile .tile-links .tile-compare { flex: 0 0 auto }
.plp .card.product-tile .saved-heart {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 0; cursor: pointer;
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 14px; color: #213038; padding: 0;
  width: auto; height: auto; min-width: 0; min-height: 0;
  border-radius: 0; margin-left: auto;
  position: static; top: auto; right: auto;
}
.plp .card.product-tile .saved-heart svg {
  width: 18px; height: 18px; fill: none;
  stroke: #213038; stroke-width: 1.8;
}
.plp .card.product-tile .saved-heart[aria-pressed="true"] svg { fill: #4C12A1; stroke: #4C12A1 }
.plp .card.product-tile .saved-heart:hover svg { stroke: #4C12A1 }
.plp .card.product-tile .saved-heart:hover span { text-decoration: underline }

/* mobile: tighten the row */
@media (max-width: 700px) {
  .plp-h1 { font-size: 20px }
  .plp .pdp-grid-product-name { font-size: 16px }
  .plp .price .value { font-size: 18px }
  .plp .product-specs li { font-size: 13px }
  .plp .tile-actions { gap: 8px }
  .plp .btn.btn-primary, .plp .add-to-cart { padding: 0 18px; font-size: 15px; height: 32px; min-height: 32px }
}

/* ---- specificity lock: beat the older .card.product-tile rules above ---- */
.plp .card.product-tile .pdp-grid-product-name,
.plp .product-tile .pdp-grid-product-name {
  font-family: "Currys Sans", system-ui, sans-serif;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.28;
  color: #213038 !important;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plp .card.product-tile .price .value,
.plp .product-tile .price .value {
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  color: #213038;
}
.plp .card.product-tile .price,
.plp .product-tile .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  min-height: 0;
}
@media (max-width: 700px) {
  .plp .card.product-tile .pdp-grid-product-name,
  .plp .product-tile .pdp-grid-product-name { font-size: 16px !important }
  .plp .card.product-tile .price .value,
  .plp .product-tile .price .value { font-size: 18px !important }
}

/* ---- column geometry: nail the master's 983px tile inside a 1013px column ---- */
/* master: sidebar 338 @ x=43, product column 1013 @ x=414, tile 983 (30px gutter) */
@media (min-width: 1361px) {
  .plp { grid-template-columns: 338px 1013px; gap: 33px; justify-content: start; }
  .plp .product-tile { width: 983px; }
}
@media (min-width: 1101px) and (max-width: 1360px) {
  .plp { grid-template-columns: 300px minmax(0, 1fr); }
  .plp .product-tile { width: 100%; }
}

/* ---- collapsible filter groups (master uses details/summary cards) ---- */
.plp .fgroup {
  border-top: 1px solid #CDD8DF;
  padding: 0;
  margin: 0;
}
.plp .fgroup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
}
.plp .fgroup > summary::-webkit-details-marker { display: none }
.plp .fgroup > summary h3 {
  font-family: "Currys Sans Headline", "Currys Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #213038;
  margin: 0;
}
.plp .fgroup > summary::after {
  content: "";
  width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213038' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .15s ease;
}
.plp .fgroup[open] > summary::after { transform: rotate(180deg) }
.plp .fgroup .fopt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #444;
  padding: 5px 0;
  cursor: pointer;
  line-height: 1.35;
}
.plp .fgroup .fopt-label { flex: 1 1 auto; min-width: 0 }
.plp .fgroup .fopt:hover .fopt-label { color: #4C12A1; text-decoration: underline }
.plp .fgroup .fopt input { width: 18px; height: 18px; flex: none; accent-color: #4C12A1; margin: 0 }
.plp .fgroup .fopt:last-child { padding-bottom: 14px }
.filters-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 0 0 6px;
}
.filters-reset { font-size: 13px; color: #4C12A1; text-decoration: none }
.filters-reset:hover { text-decoration: underline }

/* pager */
.plp .pager { display: flex; gap: 8px; margin: 26px 0 40px; flex-wrap: wrap }
.plp .pager a {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #CDD8DF; border-radius: 24px;
  font-size: 15px; color: #213038; text-decoration: none;
}
.plp .pager a:hover { border-color: #4C12A1; color: #4C12A1 }
.plp .pager a.on { background: #4C12A1; border-color: #4C12A1; color: #fff }

/* ---- stars render as real SVG, 14px, purple, tightly spaced ---- */
.plp .ratings { display: inline-flex; align-items: center; gap: 2px; text-decoration: none }
.plp .ratings .star-svg {
  width: 14px; height: 14px; display: block; flex: none;
}
.plp .ratings .nvda_star_reading {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.plp .ratings .average-reviews { font-size: 13px; color: #213038; margin-left: 4px }
.plp .ratings .rating-count { font-size: 13px; color: #667; margin-left: 6px }

/* ---- stickers stay small, top-left of the image, never stretched ---- */
.plp .productStickers {
  position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.plp .productStickerImage {
  width: 40px !important; height: 24px !important;
  max-width: 40px; object-fit: contain; display: block;
}

/* ---- product photo: consistent box, whole laptop visible, never cropped ---- */
.plp .list-image-wrapper { position: relative }
.plp .tile-image {
  width: 170px; height: 150px;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* ------------------------------------------------------------------------ *
 * PLP tile typography and controls, measured from the real listing.
 * Title is 20px/500 and the price 18px -- earlier blocks below set 16px
 * with !important, so these carry the same weight at the end of the file.
 * ------------------------------------------------------------------------ */
.plp .card.product-tile .pdp-grid-product-name,
.plp .product-tile .pdp-grid-product-name {
  font-size: 20px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
  color: #213038;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plp .card.product-tile .price,
.plp .product-tile .price { font-size: 18px !important; margin-bottom: 0 }
.plp .card.product-tile .price .value,
.plp .product-tile .price .value { font-size: 18px !important; font-weight: 700 }

/* Real Add to basket keeps a 1.6px purple border and sits 32px tall. */
.plp .card.product-tile .btn.btn-primary,
.plp .card.product-tile .add-to-cart {
  border: 1.6px solid #4C12A1;
  border-radius: 24px;
  height: 32px;
  min-height: 32px;
  font-size: 16px;
  line-height: 20px;
}
.plp .card.product-tile .btn.btn-primary:hover,
.plp .card.product-tile .add-to-cart:hover { border-color: #3C0C82 }

/* Buy a bundle: 163x32, 16px radius, magenta hairline, 14px. */
.plp .card.product-tile .buy-a-bundle {
  border: 1.6px solid #E5006D;
  border-radius: 16px;
  height: 32px;
  min-height: 32px;
  font-size: 14px;
  line-height: 21px;
  background: transparent;
}

/* Card padding mirrors the real tile: a little top, more bottom, 16px inset. */
.plp .card.product-tile { padding: 6px 0 10px 16px }

/* Below 992px the real grid is one column and the card loses its left inset,
   because the card itself is the full width of the page there. */
@media (max-width: 991px) {
  .plp .card.product-tile { padding: 6px 12px 10px }
}

/* ------------------------------------------------------------------------ *
 * Grid geometry. The old list layout pinned each card to a fixed 983px so it
 * filled a single 1013px column; the real site instead fits three tiles per
 * row inside that column. Release the fixed width and let the grid own it.
 * ------------------------------------------------------------------------ */
.plp .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important }
.plp .card.product-tile { width: 100% !important; max-width: 100% !important }

@media (max-width: 991px) {
  .plp .grid { grid-template-columns: minmax(0, 1fr) !important }
}
/* On a wide screen the real listing still shows only three across. */
@media (min-width: 992px) {
  .plp .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important }
}

/* ------------------------------------------------------------------------ *
 * Controls, measured from the live first two tiles of
 * https://www.currys.co.uk/computing/laptops/laptops
 *
 * Add to basket is not sized to its label: it is display:block at width:100%
 * and fills the card (469px inside a 501px tile). Buy a bundle is a fixed
 * 163x32 pill that sits ABOVE it, magenta hairline, transparent fill.
 * Compare and Save for later are borderless 14px text pinned to the foot.
 * ------------------------------------------------------------------------ */
.plp .card.product-tile .tile-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}
.plp .card.product-tile .buy-a-bundle {
  width: 163px;
  max-width: 100%;
  align-self: flex-start;
  order: 1;
}
.plp .card.product-tile .btn.btn-primary,
.plp .card.product-tile .add-to-cart {
  order: 2;
  display: block;
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1.6px solid #4C12A1;
  border-radius: 24px;
  background: #4C12A1;
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}
.plp .card.product-tile .btn.btn-primary:hover,
.plp .card.product-tile .add-to-cart:hover { background: #3C0C82; border-color: #3C0C82 }

/* Delivery and collection rows: 20px Currys icon then 14px text. */
.plp .card.product-tile .avail-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 12px }
.plp .card.product-tile .avail-line { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 21px; color: #213038 }
.plp .card.product-tile .avail-icon { width: 20px; height: 20px; flex: 0 0 20px; display: block }
.plp .card.product-tile .avail-text { font-size: 14px; line-height: 21px; color: #213038 }

/* Feefo stars: 13x14 each, yellow #F8D246, with the real soft drop shadow. */
.plp .card.product-tile .average-reviews { font-size: 14px; color: #213038; margin: 0 6px 0 3px }
.plp .card.product-tile .rating-count { font-size: 14px; color: #213038 }
.plp .card.product-tile .ratings,
.plp .card.product-tile a.ratings { display: flex; align-items: center; gap: 2px; font-size: 14px; color: #213038; text-decoration: none; line-height: 21px }
.plp .card.product-tile .nvda_star_reading {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.plp .card.product-tile .ratings svg,
.plp .card.product-tile a.ratings svg {
  width: 13px; height: 14px; flex: 0 0 13px; display: block;
  filter: drop-shadow(rgba(0,0,0,.5) .5px .5px .5px);
}
@media (max-width: 991px) {
  /* The real card loses its 16px left inset below the grid breakpoint. */
  .plp .card.product-tile .tile-actions { align-items: stretch }
}

/* ------------------------------------------------------------------------ *
 * Inside the card the real tile stacks: image on top, then title, ratings,
 * price, offers, buttons, delivery rows, and finally the Compare / Save row.
 * Our older markup split it into a 210px image column plus a text column,
 * which left the buttons only ~66px wide. Stack it and let every child fill.
 * ------------------------------------------------------------------------ */
.plp .card.product-tile .plp-tile-wrapper {
  display: block;
  grid-template-columns: none;
  gap: 0;
  width: 100%;
  padding: 0;
}
.plp .card.product-tile .image-icon-section {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 0 12px;
}
.plp .card.product-tile .list-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 0;
}
.plp .card.product-tile .list-image-wrapper .tile-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.plp .card.product-tile .tile-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding: 0;
}
/* Every stacked row fills the card width. */
.plp .card.product-tile .tile-info > * { width: 100% }

@media (max-width: 700px) {
  .plp .card.product-tile .plp-tile-wrapper { grid-template-columns: none }
}