/* ============================================================
   Randall Photos — Mobile-First Stylesheet
   Palette: cream bg, stone/ink text, accent #8c7355
   Fonts: Cormorant Garamond (display) / Jost (body)
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --color-bg:       #faf8f5;
  --color-surface:  #f2ede6;
  --color-text:     #1c1a18;
  --color-muted:    #6b6460;
  --color-accent:   #8c7355;
  --color-accent-h: #705c43;
  --color-error:    #c0392b;
  --color-success:  #27ae60;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --radius: 4px;
  --transition: 200ms ease;
  --max-width: 1400px;
}

/* ── Reset / Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-h); text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}
h1 { font-size: 2.25rem; margin-bottom: 0.5em; }
h2 { font-size: 1.75rem; margin-bottom: 0.4em; }
h3 { font-size: 1.25rem; margin-bottom: 0.3em; }

p { margin-bottom: 1em; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section { padding-block: 3rem; }
.section--tinted { background: var(--color-surface); }

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.lead { font-size: 1.125rem; color: var(--color-muted); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-h);
  color: #fff;
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}
.btn--disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--danger { background: var(--color-error); color: #fff; border-color: var(--color-error); }
.btn--sm { min-height: 36px; padding: 0.35rem 0.9rem; font-size: 0.875rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Header / Navigation ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-header__logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.site-header__logo:hover { text-decoration: none; }

/* Hamburger */
.site-header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.site-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}
.site-header__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav (hidden by default) */
.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1rem;
  gap: 0.25rem;
}
.site-nav.is-open { display: flex; }
.site-nav__link {
  display: block;
  padding: 0.6rem 0.5rem;
  min-height: 44px;
  color: var(--color-text);
  font-weight: 400;
}
.site-nav__link:hover { color: var(--color-accent); text-decoration: none; }
.site-nav__link--cta { color: var(--color-accent); font-weight: 500; }

/* Tablet+ nav */
@media (min-width: 640px) {
  .site-header__hamburger { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    border: none;
    padding: 0;
    gap: 0;
    align-items: center;
  }
  .site-nav__link { padding: 0.4rem 0.75rem; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 70svh;
  min-height: 320px;
  overflow: hidden;
  background: #111;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
}
/* Transparent copy-protection layer — sits above the image,
   blocks drag-copy while remaining visually invisible */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;  /* keep text/buttons above the protective layer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem;
  color: #fff;
}
.hero__overlay .btn {
  position: absolute;
  bottom: 2.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin-bottom: 0;
}

/* ── Gallery Grid ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.gallery-grid__item {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
}
/* Transparent copy-protection layer — same as masonry grid */
.gallery-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* allow click-through to the JS handler */
}
.gallery-grid__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.gallery-grid__item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}
.gallery-grid__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
}

/* ── Category Filter ────────────────────────────────────── */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.category-filter__item {
  padding: 0.4rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-accent);
  border-radius: 2rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}
.category-filter__item:hover,
.category-filter__item.active {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

/* Section description shown when a gallery category is active */
.gallery-section-desc {
  margin: -0.5rem 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  max-width: 680px;
  line-height: 1.6;
}

/* ── Masonry grid (simple CSS columns) ─────────────────── */
.masonry-grid {
  columns: 1;
  gap: 4px;
}
.masonry-grid__item {
  break-inside: avoid;
  margin-bottom: 4px;
  position: relative;
  cursor: zoom-in;
}
.masonry-grid__item img { width: 100%; display: block; }

/* Transparent overlay — sits above the image, blocks drag-copy
   while remaining visually invisible. Right-click is already
   disabled on the <img> via oncontextmenu="return false;" */
.masonry-grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* allow click-through to the JS handler */
}
.masonry-grid__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.buy-link { color: var(--color-accent); font-weight: 500; }

@media (min-width: 640px)  { .masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .masonry-grid { columns: 3; } }

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__image {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

/* ── Photo Detail ───────────────────────────────────────── */
.photo-detail {
  display: grid;
  gap: 2rem;
  padding-block: 2rem;
}
.photo-detail__image-wrap {
  position: relative;
}
.photo-detail__image { width: 100%; height: auto; display: block; }
/* Same transparent overlay as gallery grid */
.photo-detail__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
}
@media (min-width: 1024px) {
  .photo-detail { grid-template-columns: 1fr 380px; align-items: start; }
}

/* ── Buy Panel (mobile: slides from bottom) ─────────────── */
.buy-panel {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.buy-panel h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.buy-panel__option {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.buy-panel__option.sold-out { opacity: 0.5; }
.buy-panel__price { font-family: var(--font-display); font-size: 1.5rem; }
.buy-panel__edition { font-size: 0.8125rem; color: var(--color-muted); }

/* ── Shop Grid ──────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 640px)  { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-card { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.shop-card--sold-out { opacity: 0.65; }
.shop-card__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.shop-card__body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.shop-card__title { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 0.75rem; }

/* Size list */
.shop-card__sizes { list-style: none; margin: 0 0 0.75rem; padding: 0; border-top: 1px solid rgba(0,0,0,0.07); }
.shop-card__size-row { display: flex; justify-content: space-between; align-items: center;
    padding: 0.35rem 0; border-bottom: 1px solid rgba(0,0,0,0.07); font-size: 0.8125rem; }
.shop-card__size-row--sold-out { opacity: 0.5; }
.shop-card__size-label { color: var(--color-text); }
.shop-card__size-price { font-weight: 600; white-space: nowrap; margin-left: 0.5rem; }

/* Badges */
.shop-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 0.1em 0.45em; border-radius: 3px; vertical-align: middle; margin-left: 0.3rem; text-transform: uppercase; }
.shop-badge--sold-out { background: #e8e0d5; color: #777; }
.shop-badge--limited  { background: #fdf3e3; color: #9a6700; }

/* Card footer: "from £X" + button */
.shop-card__footer { display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 0.75rem; gap: 0.5rem; flex-wrap: wrap; }
.shop-card__from { font-family: var(--font-display); font-size: 1.25rem; }

/* Printer info section */
.shop-printer-section {
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    margin: 0 0 1.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-surface); border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius);
}
.shop-printer-logo { max-height: 56px; max-width: 120px; flex-shrink: 0; object-fit: contain; }
.shop-printer-text { font-size: 1rem; color: var(--color-muted); line-height: 1.5; }
.shop-printer-text p { margin: 0 0 0.25rem; }
.shop-printer-text p:last-child { margin-bottom: 0; }

/* ── Events ─────────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.event-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
}
.event-card:hover { text-decoration: none; background: #eae4db; }
.event-card__thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  flex-shrink: 0;
}
.event-card__body { flex: 1; min-width: 0; }
.event-card__title { font-family: var(--font-display); font-size: 1.25rem; }
.event-card__date { color: var(--color-muted); font-size: 0.875rem; margin-bottom: 0.3rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge--public  { background: #d5e8d4; color: #2d6a2e; }
.badge--private { background: #dae4f0; color: #2c4a7c; }
.badge--paid    { background: #d5e8d4; color: #2d6a2e; }
.badge--pending { background: #fff3cd; color: #7d5a00; }
.badge--refunded { background: #f8d7da; color: #842029; }

.access-code-form { max-width: 400px; margin: 2rem 0; }

/* ── Event action bar (sticky download/basket bar) ───────── */
.event-action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #2b2420;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
}
.event-action-bar__count  { font-family: var(--font-display); font-size: 1.05rem; flex: 1; min-width: 160px; }
.event-action-bar__actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.event-action-bar__email  { min-width: 200px; }
.input--code { text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.25rem; }

/* ── Event masonry gallery ───────────────────────────────── */
/* Slightly tighter gap so the overlay buttons are snug */
.event-masonry { gap: 6px; }
.event-masonry .masonry-grid__item { margin-bottom: 6px; }

/* Each photo item: relative so the button can be positioned over it */
.event-photo-item { cursor: default; }
.event-photo-item img { width: 100%; display: block; }

/* Overlay button — sits at the bottom of each photo */
.event-select-btn {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  display: block;
  width: 100%;
  padding: 0.45rem 0.5rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  font-size: 0.78rem;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
/* Always visible on touch devices; hover-reveal on desktop */
@media (hover: hover) {
  .event-photo-item:hover .event-select-btn { opacity: 1; }
}
@media (hover: none) {
  .event-select-btn { opacity: 1; }
}
/* Selected state */
.event-select-btn.is-selected {
  background: rgba(140,115,85,0.85);
  opacity: 1;
}

.private-access-panel {
  background: var(--color-surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0 2.5rem;
  max-width: 540px;
}
.private-access-panel__title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.4rem; }
.private-access-panel__form  { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.private-access-panel__form .input--code { flex: 1; min-width: 160px; }
.events-section-heading { margin-top: 1rem; }

/* ── Enquiry Form ───────────────────────────────────────── */
.enquiry-form-wrap { max-width: 560px; margin-top: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.9375rem; }
.input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color var(--transition);
}
.input:focus { outline: none; border-color: var(--color-accent); }
.input--textarea { height: auto; resize: vertical; }
.input--sm { min-height: 36px; padding: 0.4rem 0.6rem; font-size: 0.875rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: 18px; height: 18px; cursor: pointer; }

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.alert--success { background: #d5e8d4; color: #1e4f20; }
.alert--error   { background: #f8d7da; color: #842029; }
.alert--warning { background: #fff3cd; color: #7d5a00; }

/* ── Download list ──────────────────────────────────────── */
.download-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }

/* ── About ──────────────────────────────────────────────── */
.about-page { max-width: 680px; padding-block: 3rem; }
.about-page .btn { margin-right: 0.75rem; margin-top: 1rem; }

/* ── Wedding page ────────────────────────────────────────── */
.wedding-page { max-width: 780px; padding-block: 3rem; }

/* ── Prose (WYSIWYG-rendered HTML) ──────────────────────── */
.prose h2 { font-family: var(--font-display); font-size: clamp(1.5rem,4vw,2.1rem); margin: 2rem 0 0.6rem; }
.prose h3 { font-family: var(--font-display); font-size: clamp(1.2rem,3vw,1.5rem); margin: 1.75rem 0 0.5rem; }
.prose h4 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.4rem; }
.prose p  { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
/* When a list item is centre-aligned the bullet marker must sit inside
   the text flow, otherwise it hangs on the left edge of the indent. */
.prose li.ql-align-center  { list-style-position: inside; text-align: center; }
.prose li.ql-align-right   { list-style-position: inside; text-align: right; }
.prose a  { color: var(--color-accent); text-decoration: underline; }
.prose img {
  max-width: 100%; height: auto; display: block;
  margin: 1.5rem auto; border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right  { text-align: right; }
.prose .ql-align-justify{ text-align: justify; }
.prose hr { border: none; border-top: 1px solid rgba(0,0,0,0.15); margin: 2rem 0; }

/* ── Link arrow ─────────────────────────────────────────── */
.link-arrow { color: var(--color-accent); font-weight: 500; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  padding-block: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}
.site-footer p { margin-bottom: 0.25rem; }
.site-footer__link { color: var(--color-muted); text-decoration: underline; font-size: 0.8rem; }
.site-footer__link:hover { color: var(--color-accent); }

/* ── Privacy page ────────────────────────────────────────── */
.privacy-page { max-width: 740px; padding-block: 3rem; }
.privacy-page h1 { margin-bottom: 0.25rem; }
.privacy-updated { color: var(--color-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.privacy-page h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 2rem 0 0.6rem; }
.privacy-page h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.4rem; }
.privacy-page p, .privacy-page ul, .privacy-page li { margin-bottom: 0.75rem; line-height: 1.7; }
.privacy-page ul { padding-left: 1.4rem; }
.privacy-rule { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 1.75rem 0; }
.privacy-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem; margin: 1rem 0 1.5rem;
}
.privacy-table th {
  text-align: left; padding: 0.5rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,0.1); font-weight: 600;
}
.privacy-table td {
  padding: 0.6rem 0.75rem; vertical-align: top;
  border: 1px solid rgba(0,0,0,0.08); line-height: 1.5;
}
.privacy-table code { font-size: 0.8rem; background: #f3ede5; padding: 0.1rem 0.3rem; border-radius: 3px; }

/* ── Download Basket ─────────────────────────────────────── */
.basket-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-family: var(--font-body);
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: 0.3rem;
  margin-left: 0.25rem;
  line-height: 1;
  vertical-align: middle;
}

.basket-group-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}
.basket-group-heading:first-of-type { margin-top: 1rem; }

.basket-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-surface);
  margin-bottom: 1.5rem;
}

.basket-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-surface);
}

.basket-item__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.basket-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 2px solid var(--color-text);
  margin-bottom: 0.25rem;
  color: var(--color-muted);
}
