/* Ishaat store front.
   Laid out on the same bones as a large online bookshop — dark header, search bar with a
   department selector, dark nav strip, horizontally scrolling product rails — with our
   own identity on top: Islamic green wherever that store uses its own accent colour, and
   the Ishaat wordmark in white.

   Colour roles:
     --green   Islamic green. Prime, the basket count, primary buttons.
     --gold    search button and star ratings.
     --orange  Ishaat Digital, "deal" flashes.
     --red     limited-time offers. */

:root {
  --nav: #131921;
  --nav-2: #232f3e;
  --nav-2-hover: #37475a;
  --green: #00763e;
  --green-dark: #005c30;
  --green-light: #e6f2ec;
  /* Prime green and Digital orange are too dark to read on the near-black nav and
     on the promo panels, so each has a brighter twin for use on a dark ground. */
  --green-bright: #45c47c;
  --orange-bright: #ff9f38;
  --gold: #f3b93d;
  --gold-dark: #d99b16;
  --orange: #e0700a;
  --red: #cc0c39;
  --ink: #0f1111;
  --ink-soft: #565959;
  --link: #007185;
  --link-hover: #c7511f;
  --line: #d5d9d9;
  --page: #eaeded;
  --card: #ffffff;
  --shadow: 0 2px 5px rgba(15, 17, 17, .15);
  --radius: 8px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Amazon Ember", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

img { max-width: 100%; }

/* The drawn covers and phone mock-ups carry a width attribute, which max-width on img
   does not cover. Without this a 330px cover overflows a 320px column. */
svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5rem; }
/* Blazor focuses the h1 after each navigation for screen readers; that should not paint
   a focus ring around a heading nobody can interact with. */
[tabindex="-1"]:focus { outline: none; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }

.shell { max-width: 1500px; margin: 0 auto; padding: 0 14px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------------ header */

.masthead { background: var(--nav); color: #fff; }

.masthead a { color: #fff; text-decoration: none; }
.masthead a:hover { color: #fff; }

.mast-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  max-width: 1500px;
  margin: 0 auto;
  /* The header carries a lot. Let it wrap rather than push the page wider than the
     window — an overflowing header drags every other section out with it. */
  flex-wrap: wrap;
}

.mast-item {
  display: flex;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
}
.mast-item:hover { border-color: #fff; }

.brand { display: flex; flex-direction: column; gap: 2px; }
.brand img { height: 26px; width: auto; display: block; }
.brand .brand-sub {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  align-self: flex-end;
  margin-top: -3px;
  letter-spacing: .3px;
}

.deliver-to { display: flex; align-items: flex-end; gap: 4px; line-height: 1.1; }
.deliver-to .small { font-size: 12px; color: #ccc; display: block; }
.deliver-to .strong { font-size: 14px; font-weight: 700; }

/* search: department selector + input + submit, all one rounded pill */
.searchbar {
  flex: 1 1 auto;
  display: flex;
  min-width: 220px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.searchbar:focus-within { outline: 3px solid var(--gold); }

.searchbar select {
  border: 0;
  background: #f3f3f3;
  color: #555;
  font-size: 12px;
  padding: 0 8px;
  max-width: 140px;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.searchbar input {
  flex: 1;
  border: 0;
  padding: 0 10px;
  font-size: 15px;
  min-width: 0;
  color: var(--ink);
}
.searchbar input:focus { outline: none; }
.searchbar button {
  border: 0;
  background: var(--gold);
  color: var(--nav);
  width: 45px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.searchbar button:hover { background: var(--gold-dark); }

.mast-stack { display: flex; flex-direction: column; line-height: 1.15; }
.mast-stack .small { font-size: 12px; }
.mast-stack .strong { font-size: 14px; font-weight: 700; }

.basket-link { display: flex; align-items: flex-end; gap: 2px; position: relative; }
.basket-count {
  position: absolute;
  top: -4px;
  left: 18px;
  color: #fff;
  background: var(--green);
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 19px;
  padding: 0 4px;
}
.basket-word { font-weight: 700; font-size: 14px; padding-bottom: 1px; }

/* ------------------------------------------------------------------ nav strip */

.navstrip { background: var(--nav-2); color: #fff; }
.navstrip .mast-row { padding: 0 12px; gap: 0; }
.navstrip a {
  color: #fff;
  font-size: 14px;
  padding: 9px 9px;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
}
.navstrip a:hover { border-color: #fff; }
.navstrip a.current { border-color: rgba(255, 255, 255, .55); background: var(--nav-2-hover); }
.navstrip .all { font-weight: 700; display: flex; align-items: center; gap: 6px; }

.navstrip .nav-links {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  /* A flex item will not shrink below its content width unless told to. Without this
     the nav strip sets a floor on the page width and the whole site scrolls sideways
     on a phone. */
  flex: 1 1 auto;
  min-width: 0;
}
.navstrip .nav-links::-webkit-scrollbar { display: none; }

/* The two sub-brand nav items. They sit slightly proud of the plain links — their own
   colours, a little more weight, and a tinted panel on hover — because they are the two
   destinations we most want people to notice. */
.navstrip .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  padding: 6px 11px;
  margin-left: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
}
.navstrip .nav-brand:hover { background: rgba(255, 255, 255, .16); border-color: transparent; }
.navstrip .nav-brand.current {
  background: rgba(255, 255, 255, .18);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

/* the promo slot on the right of the nav strip */
.sermon-promo {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px !important;
  font-size: 14px;
}
.sermon-promo img.thumb {
  width: 26px; height: 26px; border-radius: 3px; object-fit: cover; flex: none;
}
.sermon-promo img.mta { height: 17px; width: auto; display: block; }

/* ------------------------------------------------------------------ layout */

main { padding-bottom: 40px; }

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 14px 0;
}

.crumbs { font-size: 12px; color: var(--ink-soft); padding: 10px 0 0; }
.crumbs a { color: var(--link); }

/* ------------------------------------------------------------------ rails */

.rail { background: var(--card); border-radius: var(--radius); padding: 16px 20px 20px; margin: 14px 0; }
.rail-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.rail-head h2 { margin: 0; }
.rail-head .sub { color: var(--ink-soft); font-size: 13px; }
.rail-head .more { margin-left: auto; font-size: 13px; }

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.rail-track > * { scroll-snap-align: start; }

/* ------------------------------------------------------------------ product card */

.card { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

/* Bundle covers, fanned. Each cover slides over the one before it — the first must not
   slide over the edge of the box. */
.fan { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.fan img { box-shadow: 2px 2px 8px rgba(0, 0, 0, .3); border-radius: 2px; }
.fan img + img { margin-left: -22px; }
.card .thumb {
  height: 190px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.card .thumb img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  /* Quran page scans are almost white, so every cover gets a lift off the page. */
  box-shadow: 0 1px 5px rgba(15, 17, 17, .22);
}
.card .title {
  font-size: 13px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card a.title:hover { color: var(--link-hover); text-decoration: underline; }
.card .byline { font-size: 12px; color: var(--ink-soft); }

.price { font-size: 18px; color: var(--ink); white-space: nowrap; }
.price .sym { font-size: 12px; vertical-align: .55em; }
.price .frac { font-size: 12px; vertical-align: .55em; }
.was { font-size: 12px; color: var(--ink-soft); }
.was s { text-decoration: line-through; }

.stars { color: var(--gold-dark); font-size: 13px; letter-spacing: -1px; }
.stars + .count { font-size: 12px; color: var(--link); letter-spacing: 0; margin-left: 5px; }

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  background: var(--red);
}
.badge.deal { background: var(--red); }
.badge.new { background: var(--green); }
.badge.stock { background: #6c7778; }

/* The eligibility flag on a product card. It is the most repeated piece of Prime
   branding on the site, so it carries the swoosh rather than a bare tick. */
.prime-flag {
  font-size: 13px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: -.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prime-flag .tick {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.prime-flag .word { position: relative; padding-bottom: 6px; }
.prime-flag .swoosh {
  position: absolute;
  left: 1px;
  right: -2px;
  bottom: 0;
  width: auto;
  height: 6px;
  overflow: visible;
}

.delivery-note { font-size: 12px; color: var(--ink-soft); }
.delivery-note b { color: var(--ink); }

/* ------------------------------------------------------------------ grids */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px 16px;
}
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 7px 15px;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.chip:hover { background: #f7fafa; color: var(--ink); text-decoration: none; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

/* Chips for the two sub-brands, so they read as destinations rather than filters. */
.brand-chip { font-weight: 700; }
.brand-chip.prime { color: var(--green-dark); border-color: var(--green); background: var(--green-light); }
.brand-chip.prime:hover { background: var(--green); color: #fff; }
.brand-chip.digital { color: #a04f00; border-color: var(--orange); background: #fdf1e3; }
.brand-chip.digital:hover { background: var(--orange); color: #fff; }

/* ------------------------------------------------------------------ buttons + forms */

.btn {
  display: inline-block;
  border: 1px solid var(--gold-dark);
  background: linear-gradient(#f7dfa5, #f0c14b);
  color: var(--ink);
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: linear-gradient(#f5d78e, #eeb933); color: var(--ink); text-decoration: none; }

.btn.primary {
  background: var(--green);
  border-color: var(--green-dark);
  color: #fff;
  font-weight: 600;
}
.btn.primary:hover { background: var(--green-dark); color: #fff; }

.btn.ghost { background: #fff; border-color: var(--line); border-radius: 8px; }
.btn.ghost:hover { background: #f7fafa; }

.btn.block { display: block; width: 100%; }
.btn.big { padding: 11px 20px; font-size: 15px; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #888c8c;
  border-radius: 3px;
  padding: 7px 9px;
  font: inherit;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,17,17,.08) inset;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 118, 62, .25);
}
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.qty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px;
  background: #f0f2f2;
  box-shadow: var(--shadow);
  font: inherit;
}

.notice {
  border-left: 4px solid var(--red);
  background: #fff4f4;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 12px 0;
}
.notice.ok { border-color: var(--green); background: var(--green-light); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: linear-gradient(160deg, #0d2b1e 0%, #0b3d28 45%, #0f5133 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 32px;
  overflow: hidden;
}
.hero h1 { color: #fff; font-size: 34px; max-width: 22ch; }
.hero p { max-width: 62ch; font-size: 15px; color: #dfeee6; }
.hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero .pattern { position: absolute; inset: 0; opacity: .16; pointer-events: none; }

/* ------------------------------------------------------------------ product page */

.product {
  display: grid;
  /* minmax(0, …) on the middle column: without it a wide table or rail sets the
     column's minimum to its own content width and the page scrolls sideways. */
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr) minmax(230px, 280px);
  gap: 26px;
}
.product .gallery { background: #fff; display: grid; place-items: start center; padding: 10px; }
.product .gallery img { max-height: 520px; }
.product h1 { font-size: 24px; margin-bottom: 4px; }
.buybox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}
.in-stock { color: #007600; font-size: 17px; }
.out-of-stock { color: var(--red); font-size: 17px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.spec-table th { width: 34%; color: var(--ink-soft); font-weight: 600; }

/* ------------------------------------------------------------------ basket + checkout */

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }

.basket-line { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e7e7e7; }
.basket-line .thumb { height: 160px; display: grid; place-items: center; }
.basket-line .thumb img { max-height: 160px; }

.totals { font-size: 14px; }
.totals .row { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .row.grand { font-size: 19px; font-weight: 700; color: var(--red); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }

.progress-free { background: var(--green-light); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.progress-free b { color: var(--green-dark); }

/* ------------------------------------------------------------------ collection points */

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.point { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.point .avatar { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; align-self: center; box-shadow: var(--shadow); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hours-table td { padding: 3px 0; border-bottom: 1px solid #f0f0f0; }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.hours-table tr.today td { font-weight: 700; color: var(--ink); }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { position: relative; padding-left: 46px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

/* ------------------------------------------------------------------ Ishaat Digital */

/* ------------------------------------------------------- the two sub-brands */

/* Ishaat Digital: the wordmark, "digital" in orange, a green book throwing waves. */
.digital-mark { display: inline-flex; align-items: center; gap: 7px; }
.digital-mark img { height: 22px; }
.digital-mark .word {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -.5px;
}
.digital-mark .waves { color: var(--green); }
.digital-mark.on-dark .word { color: var(--orange-bright); }
.digital-mark.on-dark .waves { color: var(--green-bright); }

/* Ishaat Prime: the wordmark, then "prime" under a swoosh. */
.prime-mark { display: inline-flex; align-items: center; gap: 7px; }
.prime-mark .word {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.5px;
  line-height: 1;
  position: relative;
  padding-bottom: 9px;
}
.prime-mark.on-dark .word { color: var(--green-bright); }
.prime-mark .swoosh {
  position: absolute;
  left: 2px;
  right: -3px;
  bottom: 0;
  width: auto;
  height: 9px;
  overflow: visible;
}

.digital-page { background: linear-gradient(#f7f4ef, #ffffff 420px); }

/* A narrow left rail of subjects, like a bookshop's own department list. As a class
   rather than an inline style so the small-screen rule below can actually override it. */
.digital-layout { grid-template-columns: 220px minmax(0, 1fr); }
.digital-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 40px 0;
}
.digital-hero h1 { font-size: 40px; }
.feature-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; text-align: center; padding: 26px 0; }
.feature-trio .icon { color: var(--orange); font-size: 30px; }

.sidebar-nav { font-size: 13px; }
.sidebar-nav h3 { font-size: 14px; margin: 16px 0 6px; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { padding: 2px 0; }

/* ------------------------------------------------------------------ Prime */

.prime-word { color: var(--green); font-weight: 700; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan.featured { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.plan .amount { font-size: 32px; font-weight: 700; }
.plan .amount span { font-size: 14px; font-weight: 400; color: var(--ink-soft); }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.benefits li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.benefits .tick { color: var(--green); font-weight: 700; }

.terms-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
  padding: 12px 14px;
  max-height: 190px;
  overflow-y: auto;
  font-size: 12px;
  color: var(--ink-soft);
}
.terms-box h4 { font-size: 13px; margin: 10px 0 4px; color: var(--ink); }
.terms-box p { margin: 0 0 8px; }

/* ------------------------------------------------------------------ footer */

.to-top { background: var(--nav-2); color: #fff; text-align: center; padding: 15px; font-size: 13px; }
.to-top:hover { background: var(--nav-2-hover); }

footer.site { background: var(--nav-2); color: #ddd; }

/* A strip across the top of the footer so the two sub-brands close the page as well as
   open it. Each half takes its own accent on hover. */
.footer-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brands a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  font-size: 13px;
  color: #b9c2cc;
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.footer-brands a:last-child { border-right: 0; }
.footer-brands a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }

/* ------------------------------------------------- the sub-brand promo band */

.promo-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.promo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 26px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.promo.prime { background: linear-gradient(150deg, #061f13 0%, #08301e 55%, #0a3d26 100%); }
.promo.digital { background: linear-gradient(150deg, #1c1512 0%, #2c1d10 55%, #3d2712 100%); }
.promo .pattern { position: absolute; inset: 0; opacity: .13; pointer-events: none; }
.promo > * { position: relative; }
.promo h2 { color: #fff; font-size: 25px; margin: 0; max-width: 20ch; }
.promo p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 46ch; }
.promo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.promo li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.promo .tick { font-weight: 700; }
.promo.prime .tick { color: var(--green-bright); }
.promo.digital .tick { color: var(--orange-bright); }
.promo .cta { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.promo .price-note { font-size: 13px; color: rgba(255, 255, 255, .72); }

.btn.prime-cta {
  background: var(--green);
  border-color: var(--green-dark);
  color: #fff;
  font-weight: 700;
}
.btn.prime-cta:hover { background: #0a8a49; color: #fff; }

/* On a green ground the dark-green fill disappears into the panel, so the Prime call to
   action flips to the bright green with dark text. */
.hero .btn.prime-cta,
.promo.prime .btn.prime-cta {
  background: #00a85a;
  border-color: #00a85a;
  color: #fff;
}
.hero .btn.prime-cta:hover,
.promo.prime .btn.prime-cta:hover { background: #00c469; color: #fff; }

.btn.digital-cta {
  background: var(--orange);
  border-color: #b85c00;
  color: #fff;
  font-weight: 700;
}
.btn.digital-cta:hover { background: #f28218; color: #fff; }

/* A Prime upsell block, used in the buy box and beside the basket total. */
.prime-panel {
  border: 1px solid var(--green);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--green-light);
  padding: 10px 12px;
  font-size: 13px;
}
.prime-panel a { color: var(--green-dark); font-weight: 700; }
footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  padding: 34px 14px;
  max-width: 1100px;
  margin: 0 auto;
}
footer.site h4 { color: #fff; font-size: 15px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 3px 0; }
footer.site a { color: #ddd; font-size: 13px; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .base { background: var(--nav); text-align: center; padding: 22px 14px; font-size: 12px; color: #999; }
footer.site .base img { height: 22px; margin-bottom: 10px; }

/* ------------------------------------------------------------------ small screens */

/* Below a full desktop width the header sheds its optional pieces, widest first:
   the collection-point line and the language picker, then the sermon promo, then the
   account and returns links. What is left is who we are, search, and the basket. */
@media (max-width: 1080px) {
  .deliver-to { display: none; }
}

@media (max-width: 940px) {
  .navstrip .sermon-promo { display: none; }
  .mast-hide-medium { display: none; }
}

@media (max-width: 900px) {
  .product,
  .two-col,
  .digital-layout,
  .digital-hero,
  .two-up { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .mast-row { flex-wrap: wrap; }
  .searchbar { order: 10; flex-basis: 100%; margin-top: 4px; }

  .mast-hide-small { display: none; }

  .brand img { height: 22px; }
  .mast-item { padding: 6px; }
  .basket-word { display: none; }
  .basket-count { left: 20px; }

  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
  .rail, .panel { padding: 14px; }

  .basket-line { grid-template-columns: 96px 1fr; }
  .basket-line .thumb { height: 96px; }
  .basket-line .thumb img { max-height: 96px; }
}
