/* =========================================
   WhiskyPolska — Main Stylesheet
   Palette: dark amber, whisky gold, cream
   ========================================= */

/* Border-box reset — prevents padding from adding to element widths,
   which is the root cause of mobile horizontal overflow. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* ── Dark mode palette (default) ── */
  --bg:            #0f1117;
  --bg-card:       #171b24;
  --bg-card-hover: #1d2230;
  --bg-image:      #0c0e14;   /* bottle / product photo backgrounds */
  --border:        #252c3a;
  --border-light:  #2e3648;
  --amber:         #d4912e;
  --amber-light:   #ebb040;
  --amber-dim:     #8a5e20;
  --logo-accent:       #f2f2f2;   /* logo lockup (mark + wordmark + beta) — monochrome; white on the dark header */
  --logo-accent-hover: #ffffff;
  --cream:         #eceef5;
  --cream-dim:     #9ba3b4;
  --text:          #d4d9e8;
  --text-dim:      #6e7c96;
  --green:         #3a7a56;
  --red:           #8a3838;
  --btn-text:      #0f1117;   /* text on amber/CTA buttons */
  --nav-h:         60px;      /* sticky site-header height — used by table sticky offset */
  --radius:        8px;
  --radius-lg:     14px;
  --shadow:        0 4px 24px rgba(0,0,0,.48);
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--amber-light); text-decoration: none; }
a:hover { color: var(--cream); }

img { max-width: 100%; display: block; }

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main.container { flex: 1; padding-top: 2rem; padding-bottom: 4rem; }

/* ---- Announcement bar ---- */

.announcement-bar {
  background: #131720;
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 2.5rem 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--amber);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ann-dismiss {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--amber);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  opacity: 0.6;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.ann-dismiss:hover { opacity: 1; }

/* ---- Beta badge (logo) ---- */

.logo-beta {
  display: inline-flex;
  align-items: center;       /* vertical centring of the text within the rectangle */
  justify-content: center;   /* horizontal centring */
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-indent: 0.06em;       /* offset the trailing letter-spacing so glyphs sit dead-centre */
  text-transform: uppercase;
  background: var(--logo-accent);
  color: var(--bg);          /* page bg → contrasts with the black/white badge in both themes */
  padding: 0.32em 0.5em;
  border-radius: 4px;
  line-height: 1;
  margin-left: 0.4rem;
  align-self: center;        /* sit at the wordmark's height, not as a superscript */
  flex-shrink: 0;
}

/* ---- Header ---- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15,17,23,.96);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;                 /* tighter — mark sits closer to the wordmark */
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--logo-accent);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--logo-accent-hover); }
.logo:hover .logo-img { background-color: var(--logo-accent-hover); }
.logo-icon { font-size: 1.1rem; }
/* Emblem recoloured via mask: the PNG's alpha is the shape, filled with the
   accent colour — so the mark matches the wordmark in both themes. */
.logo-img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background-color: var(--logo-accent);
  -webkit-mask: url(/images/logo.png) center / contain no-repeat;
          mask: url(/images/logo.png) center / contain no-repeat;
  transition: background-color 0.15s;
}

nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }

@keyframes logo-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body:not(.landing-page) .logo {
  animation: logo-fadein 0.7s ease both;
}

nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
nav a:hover { color: var(--cream); }

/* ---- Language switcher ---- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
}
.lang-switch a {
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.lang-switch a:hover { color: var(--cream); background: rgba(255,255,255,0.06); }
.lang-switch .lang-active {
  color: var(--amber);
  text-transform: uppercase;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  background: rgba(200,135,42,0.12);
  cursor: default;
}
.lang-switch::before { content: '|'; color: var(--border-light); margin-right: 0.2rem; }

/* ── Mobile nav — keep it in one row, hide secondary items ──────────────── */
/* Must appear AFTER the base .lang-switch rule so display:none wins. */
@media (max-width: 600px) {
  /* backdrop-filter on a sticky header makes mobile screenshots render the page
     black on many Android/WebView compositors. Drop the blur and use a solid
     background on small screens — the bg is already near-opaque, so no visual loss. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0f1117;
    overflow-x: clip;   /* clip header children (e.g. theme-btn) that overflow at narrow viewports */
  }
  .site-header .container { gap: 0.6rem; padding-left: 0.9rem; padding-right: 0.9rem; }
  nav { gap: 0.8rem; }
  .nav-terms   { display: none; }  /* Regulamin accessible via footer */
  .lang-switch { display: none; }  /* PL/EN: hide on mobile */
  .logo-beta   { display: none; }  /* BETA badge: saves ~50px */
  /* Register CTA in nav is redundant — hero already has the big CTA button */
  .btn-nav-cta { display: none; }
  .logo { font-size: 1.1rem; gap: 0.2rem; }
  .logo-img { width: 24px; height: 24px; }
  /* Touch targets: min 44px height per WCAG 2.5.5. Flex centring keeps text aligned. */
  nav a { min-height: 44px; display: flex; align-items: center; }
}

/* ---- Hero ---- */

/* ── Category landing intro (SEO, /katalog/:slug pages) ────────────────── */
.category-intro {
  padding: 1.4rem 0 0.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.category-intro__inner { max-width: 820px; }
.category-intro__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 0.55rem;
}
.category-intro__body {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  max-width: 72ch;
}

.hero {
  padding: 0.4rem 0 0.2rem;
}

.hero-content { max-width: 820px; }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;          /* single line on tablet/desktop */
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 540px) {
  .hero h1 { white-space: normal; overflow: visible; text-overflow: clip; }
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
}

.hero-value-props {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-prop {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.hero-prop-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.hero-prop strong {
  display: block;
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.hero-prop p {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .hero-value-props { gap: 0.75rem; }
  .hero-prop { flex-basis: 100%; }
}

/* ---- Filters ---- */

.filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

/* Primary row: text input + search button + expand toggle */
.filter-primary-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-q-input {
  flex: 1 1 0;
  min-width: 0;
}

/* Compact search submit button in primary row */
.btn-search-submit {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* ··· expand toggle */
.btn-filter-expand {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.btn-filter-expand:hover {
  border-color: var(--amber-dim);
  color: var(--cream);
}

.btn-filter-expand[aria-expanded="true"] {
  border-color: var(--amber-dim);
  color: var(--cream);
}

.btn-filter-expand.has-active-filters {
  border-color: var(--amber);
}

/* Orange dot badge — shown when advanced filters are active */
.filter-expand-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  pointer-events: none;
}

/* Advanced panel */
.filter-advanced {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.filter-group { display: flex; align-items: center; gap: 0.35rem; }
.filter-search { flex: 1 1 240px; }
.filter-range { gap: 0.4rem; }
.filter-range .unit { color: var(--text-dim); font-size: 0.85rem; }

input[type="text"],
input[type="number"],
select {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.filter-search input { width: 100%; }
.filter-range input { width: 90px; }

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--amber-dim);
}

select option { background: var(--bg); }

.btn-primary {
  background: var(--amber);
  color: var(--btn-text);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--amber-light); color: var(--btn-text); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--amber-dim); color: var(--cream); }

/* ---- Results ---- */

.results-count {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.results-count strong { color: var(--amber); }

/* Empty state — shown when a search / filter set returns no whiskies */
.results-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-dim);
}
.results-empty-icon { font-size: 2.75rem; line-height: 1; opacity: 0.45; }
.results-empty-title {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
}
.results-empty-hint { margin: 0; font-size: 0.92rem; color: var(--text-dim); }

/* ---- Whisky Grid ---- */

.whisky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.whisky-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  color: var(--text);
}

.whisky-card:hover {
  border-color: var(--amber-dim);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-image {
  height: 180px;
  background: var(--bg-image);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img { height: 100%; width: 100%; object-fit: contain; padding: 0.25rem; }
.card-image-placeholder { font-size: 3.5rem; opacity: 0.3; }

.card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }

.card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  margin-top: 0.1rem;
}

.card-distillery { font-size: 0.82rem; color: var(--text-dim); }

.card-details {
  display: flex;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.card-price {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.price-from { font-size: 0.9rem; }
.price-from strong { color: var(--amber); font-size: 1.05rem; }
.retailer-count { font-size: 0.78rem; color: var(--text-dim); }
.price-unavailable { font-size: 0.85rem; color: var(--text-dim); font-style: italic; }

/* ── View toggle buttons (table / cards) ─────────────────────────────── */
.view-toggle {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
}
.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.view-toggle-btn:first-child { border-right: 1px solid var(--border-light); }
.view-toggle-btn[aria-pressed="true"] {
  background: var(--bg-card-hover);
  color: var(--cream);
}
.view-toggle-btn:hover { color: var(--cream); }

/* ── Catalogue card grid (wc-* = whisky-card for catalogue) ──────────── */
.wc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.wc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, transform 0.15s;
}
.wc-card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
.wc-img {
  height: 140px;
  background: var(--bg-image);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.wc-img img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 0.25rem; }
.wc-img-placeholder { font-size: 2.5rem; opacity: 0.25; }
.wc-body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.65rem 0.7rem; flex: 1; }
.wc-name {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.wc-rating { color: var(--amber); font-weight: 600; }
.wc-casks  { display: inline-flex; gap: 0; align-items: center; }
/* Overlap adjacent cask icons by half their width (icon--26 = 26px → -13px). */
.wc-casks svg + svg { margin-left: -13px; }
.wc-footer {
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.wc-price strong { color: var(--amber); }
.wc-price small  { color: var(--text-dim); font-size: 0.72rem; }
.wc-price-sep    { color: var(--text-dim); padding: 0 0.1rem; }
.wc-shops        { color: var(--text-dim); font-size: 0.72rem; margin-left: 0.4rem; }
.wc-price--hist  { color: var(--text-dim); }
.wc-no-price     { color: var(--text-dim); }
.wc-price-gate   { color: var(--text-dim); font-size: 0.8rem; }
.wc-price-gate a { color: var(--amber); text-decoration: none; }

/* ── Data-view switching ─────────────────────────────────────────────── */
/* Default: table visible, cards hidden. JS toggles data-view attribute. */
#results-section[data-view="table"] .wc-grid         { display: none; }
#results-section[data-view="cards"] .whisky-table-wrap { display: none; }

/* On mobile (portrait ≤600px): default to cards without JS interaction */
@media (max-width: 600px) {
  #results-section:not([data-view="table"]) .wc-grid          { display: grid; }
  #results-section:not([data-view="table"]) .whisky-table-wrap { display: none; }
  .wc-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
}
@media (max-width: 380px) {
  .wc-grid { grid-template-columns: 1fr; }
}

/* ---- Badges ---- */

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-single_malt  { background: #1e3326; color: #6ecf9a; }
.badge-blended      { background: #1e2533; color: #6ea0cf; }
.badge-blended_malt { background: #2b1e33; color: #b06ecf; }
.badge-grain        { background: #33281e; color: #cf9a6e; }
.badge-single_grain { background: #33231e; color: #cf806e; }
.badge-region       { background: #2a2213; color: var(--amber); }
.badge-release      { background: #2d1c1c; color: #cf6e6e; }

/* Independent bottler badge — compact inline pill */
.badge-ib {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15em 0.45em;
  border-radius: 3px;
  background: #1c2e35;
  color: #6ec4cf;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 0.3em;
}

/* ---- Breadcrumb (detail page) ---- */

.detail-breadcrumb {
  margin-bottom: .75rem;
}
.detail-breadcrumb a {
  font-size: .82rem;
  color: var(--text-dim);
  text-decoration: none;
}
.detail-breadcrumb a:hover {
  color: var(--amber-light);
}

/* ---- Filter trail (detail page) ---- */

.filter-trail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.trail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.trail-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
  opacity: 0.5;
  margin: 0 0.05rem;
  user-select: none;
}

/* Base chip */
.trail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  white-space: nowrap;
}
.trail-link:hover {
  border-color: var(--amber-dim);
  color: var(--cream);
  background: rgba(200,135,42,.07);
}

/* Crumb trail — slightly more prominent */
.trail-crumb {
  font-weight: 600;
  color: var(--cream-dim);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}
.trail-crumb:hover {
  color: var(--amber-light);
  background: transparent;
  border-color: transparent;
}

/* Style chips (Peated, CS, NCF) */
.trail-style-chip {
  background: rgba(200,135,42,.08);
  border-color: rgba(200,135,42,.25);
  color: var(--amber);
}
.trail-style-chip:hover {
  background: rgba(200,135,42,.18);
  border-color: var(--amber-dim);
  color: var(--amber-light);
}

/* Cask chips */
.trail-cask-chip {
  background: rgba(78,124,94,.08);
  border-color: rgba(78,124,94,.25);
  color: var(--green);
}
.trail-cask-chip:hover {
  background: rgba(78,124,94,.18);
  border-color: var(--green);
  color: #6ecf9a;
}

[data-theme="light"] .trail-crumb          { color: var(--cream-dim); }
[data-theme="light"] .trail-style-chip     { color: var(--amber); }
[data-theme="light"] .trail-cask-chip      { color: var(--green); }

/* ---- Detail Page ---- */

.whisky-detail { max-width: 900px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { color: var(--cream); }

.detail-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.detail-header--no-image { grid-template-columns: 1fr; }

.detail-image {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: start;
}
.detail-image img { height: 100%; width: 100%; object-fit: contain; padding: 0.15rem; opacity: 0; transition: opacity 0.25s; }

.detail-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }

.detail-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.detail-distillery { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.25rem; }

.detail-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
}

.detail-specs dt { color: var(--text-dim); white-space: nowrap; }
.detail-specs dd { color: var(--cream); }

/* ---- Size Switcher ---- */

.size-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.size-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.3em 0.9em;
  border-radius: 1.5em;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  white-space: nowrap;
}

.size-btn:hover {
  border-color: var(--amber-dim);
  color: var(--cream);
  background: rgba(200,135,42,.07);
}

.size-btn.active {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(200,135,42,.10);
  font-weight: 600;
}

.size-btn__count {
  font-size: 0.75em;
  opacity: 0.6;
}

/* ---- Batch / release variants ---- */

.batch-variants {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .015);
}
.batch-variants__title { font-size: 1.05rem; margin: 0 0 0.3rem; }
.batch-variants__intro {
  font-size: 0.85rem; color: var(--text-dim); margin: 0 0 0.9rem;
}
.batch-variants__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.7rem;
}
.batch-card { position: relative; }
.batch-card__link {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; color: var(--text-dim); height: 100%;
  transition: border-color .12s, background .12s, color .12s;
}
.batch-card__link:hover {
  border-color: var(--amber-dim); color: var(--cream);
  background: rgba(200, 135, 42, .06);
}
.batch-card--current .batch-card__link {
  border-color: var(--amber); background: rgba(200, 135, 42, .10);
}
.batch-card__thumb {
  display: flex; align-items: center; justify-content: center; height: 84px;
}
.batch-card__thumb img { max-height: 84px; max-width: 100%; object-fit: contain; }
.batch-card__noimg { color: var(--text-dim); opacity: .4; font-size: 1.4rem; }
.batch-card__label {
  font-size: 0.82rem; font-weight: 600; color: var(--cream);
  text-align: center; line-height: 1.2;
}
.batch-card__meta { display: flex; gap: 0.5em; font-size: 0.74rem; opacity: .75; }
.batch-card__current {
  display: block; text-align: center; font-size: 0.68rem;
  color: var(--amber); margin-top: 0.25rem;
}
.batch-variants__hint {
  font-size: 0.78rem; color: var(--text-dim); margin: 0.9rem 0 0; font-style: italic;
}
.batch-badge {
  display: inline-block; margin-left: 0.5em;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.12em 0.5em; border-radius: 4px;
  background: rgba(200, 135, 42, .12); color: var(--amber);
  border: 1px solid var(--amber-dim); vertical-align: middle; cursor: default;
}

/* ---- Price Table ---- */

.price-comparison, .tasting-notes, .description {
  margin-bottom: 2.5rem;
}

.price-comparison h2, .tasting-notes h2, .description h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.price-table-wrap { overflow-x: auto; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.price-table tr:last-child td { border-bottom: none; }

.price-table tr:hover td { background: var(--bg-card); }
.price-table tr[data-href] { cursor: pointer; }
.price-table tr[data-href]:hover td { background: var(--bg-hover, var(--bg-card)); }

.best-price td:first-child {
  position: relative;
  padding-left: 1rem;
  box-shadow: inset 3px 0 0 var(--amber);
}
.best-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.1rem;
}

.near-best-price td:first-child {
  box-shadow: inset 2px 0 0 var(--amber-dim);
}

.near-best-pct {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-left: 0.4em;
  font-variant-numeric: tabular-nums;
}

.good-price td:first-child {
  box-shadow: inset 2px 0 0 var(--amber-dim);
}

.good-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--amber-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.1rem;
}

.retailer-name { color: var(--cream); font-weight: 500; }

.price-cell strong { color: var(--amber); font-size: 1.05rem; }

/* ── Price spread (% vs cheapest) ─────────────────────────── */
.price-spread-summary {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.7rem;
  background: var(--bg-card);
  border-left: 3px solid var(--amber-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.vs-best-col { text-align: right; }
.vs-best-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-best-zero  { color: var(--text-dim); }
.vs-best-good  { color: var(--text-dim); }        /* within good threshold (2–3%) */
.vs-best-up    { color: var(--cream-dim); }       /* neutral (above good cap, ≤25%) */
.vs-best-near  { color: var(--text-dim); }        /* legacy — kept for compatibility */
.vs-best-muted { color: var(--text-dim); opacity: 0.7; }

.currency-note {
  display: block;
  font-size: 0.72rem;
  font-weight: normal;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.vs-best-over {                                    /* overpriced (>25%) */
  display: inline-block;
  font-weight: 700;
  color: #e08a8a;
  background: rgba(139, 58, 58, 0.18);
  padding: 0.05em 0.45em;
  border-radius: 999px;
}
.overpriced-price td { opacity: 0.82; }
.overpriced-price td:first-child { box-shadow: inset 2px 0 0 var(--red); }

.stock-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 4px;
}
.in-stock  { background: #1a2e22; color: #6ecf9a; }
.out-of-stock { background: #2d1a1a; color: #cf6e6e; }

.date-cell { color: var(--text-dim); font-size: 0.82rem; }

/* ── Out-of-stock collapsible section ──────────────────────────── */
.oos-section {
  margin-top: 1.5rem;
}

.oos-summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 0.4rem 0;
  user-select: none;
  list-style: none;
}

.oos-summary::-webkit-details-marker { display: none; }

.oos-summary::before {
  content: "▶ ";
  font-size: 0.7em;
  transition: transform 0.15s;
  display: inline-block;
}

.oos-section[open] .oos-summary::before {
  transform: rotate(90deg);
}

.price-table-wrap--oos { margin-top: 0.5rem; }

.price-table--oos td,
.price-table--oos th { opacity: 0.6; }

.price-table--oos .price-cell { font-style: italic; }

/* ── Whisky detail price table — mobile trim ──────────────────────────
   On phones the offer table is cramped, so we drop the two least-essential
   columns (Dostępność / Aktualizacja) and hide the out-of-stock section
   entirely — shoppers on mobile only care about who has it and for how much. */
@media (max-width: 600px) {
  .price-table .col-stock,
  .price-table .col-updated { display: none; }
  .oos-section { display: none; }
}

.extras-badge {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15em 0.55em;
  border-radius: 4px;
  background: #1e2a1a;
  color: #8ecf6e;
  border: 1px solid #3a5a2a;
  vertical-align: middle;
  cursor: default;
}

.btn-buy {
  display: inline-block;
  background: var(--amber);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.btn-buy:hover { background: var(--amber-light); color: var(--btn-text); }
.btn-ghost-sm {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
}
.btn-ghost-sm:hover { border-color: var(--amber-dim); color: var(--cream); }

.no-prices { color: var(--text-dim); font-style: italic; }

/* ---- Whisky description (inline in detail-info) ---- */

.detail-description {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.detail-description__heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}
.detail-description p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ---- WB Flavour Profile ---- */

.wb-flavor-profile {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Collapsed summary row ── */
.wb-flavor-collapsed {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.wb-flavor-collapsed__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.wb-flavor-collapsed__tags {
  font-size: 0.83rem;
  color: var(--cream);
}

.wb-flavor-expand-btn {
  background: none;
  border: none;
  padding: 0 0.05rem;
  color: var(--amber);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  transition: opacity 0.15s;
}
.wb-flavor-expand-btn:hover { opacity: 0.75; }

/* ── Expanded full section ── */
.wb-flavor-full { margin-top: 0.9rem; }

.wb-flavor-tags {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  column-gap: 0.5rem;
  row-gap: 0.4rem;
  align-items: center;
}

.wb-flavor-tag__name {
  font-size: 0.78rem;
  color: var(--cream);
  text-align: right;
  white-space: nowrap;
}

.wb-flavor-tag__track {
  height: 6px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
  min-width: 0;
}

.wb-flavor-tag__bar {
  height: 100%;
  background: linear-gradient(to right, var(--amber-dim), var(--amber));
  border-radius: 4px;
  min-width: 2px;
}

.wb-flavor-source {
  margin-top: 0.75rem;
  font-size: 0.68rem;
  color: var(--text-dim, #6b7790);
}

@media (max-width: 600px) {
  .wb-flavor-tags { grid-template-columns: auto 1fr; }
}

/* ---- Tasting Notes ---- */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.note h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--amber);
  margin-bottom: 0.4rem;
}

.note p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.55; }

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.site-footer .container { text-align: center; }
.site-footer p { color: var(--text-dim); font-size: 0.85rem; }
.footer-note { font-size: 0.78rem; margin-top: 0.25rem; opacity: 0.6; }
.footer-legal { font-size: 0.72rem; margin-top: 0.2rem; opacity: 0.5; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Error Page ---- */

.error-page {
  text-align: center;
  padding: 6rem 1rem;
}
.error-page h1 {
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--amber);
  opacity: 0.3;
}
.error-page p { color: var(--text-dim); margin: 1rem 0 2rem; }

/* ---- Filter extras ---- */

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.filter-checkbox input[type="checkbox"] {
  width: auto;
  accent-color: var(--amber);
  cursor: pointer;
}
.filter-checkbox:hover { color: var(--cream); }

.range-sep { color: var(--text-dim); }

/* ---- Dual-handle range sliders ---- */

/* Single-row filter grid: selects + sliders + reset all inline */
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: flex-start;
}
.filter-grid .btn-reset {
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: auto;
}

.range-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 100px;
  flex: 1 1 100px;
}

/* Current-value label lives inside an rs-scale span (stacked below rs-lbl) */
.rs-scale .rs-value {
  display: block;
  color: var(--amber);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Tiny category name embedded in the scale row (replaces the above-track label) */
.rs-lbl {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  text-align: center;
}

.range-slider-track {
  position: relative;
  height: 22px;           /* touch target */
  display: flex;
  align-items: center;
}

.range-slider-track .rs-rail {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
}

.range-slider-track .rs-fill {
  position: absolute;
  height: 3px;
  background: var(--amber-dim);
  border-radius: 2px;
  pointer-events: none;
}

/* Breakpoint labels rendered inside the track, floating just above the rail */
.rs-tick-label {
  position: absolute;
  bottom: calc(50% + 2px);
  font-size: 0.6rem;
  color: var(--text-dim);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Generic tick mark — position set inline via style="left:X%" */
.rs-tick {
  position: absolute;
  width: 2px;
  height: 10px;
  top: 50%;
  margin-top: -5px;
  background: var(--border-light);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0.7;
  transform: translateX(-50%);
}

/* Midpoint tick mark — shown only on 2-segment segmented sliders */
.rs-tick-mid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  top: 50%;
  margin-top: -5px;
  background: var(--border-light);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0.7;
}

/* Scale labels below track */
.rs-scale {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: 0.7;
  user-select: none;
}

/* Variant: single centered value (used for price slider with tick labels in track) */
.rs-scale--center {
  justify-content: center;
  text-align: center;
}

/* Both range thumbs overlay each other */
.range-slider-track input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
}

/* Thumb: slim vertical grip */
.range-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 7px; height: 14px;
  border-radius: 3px;
  background: var(--amber);
  border: 1px solid var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  cursor: pointer;
  pointer-events: all;
  transition: background 0.12s, transform 0.1s;
}
.range-slider-track input[type="range"]::-moz-range-thumb {
  width: 7px; height: 14px;
  border-radius: 3px;
  background: var(--amber);
  border: 1px solid var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  cursor: pointer;
  pointer-events: all;
  transition: background 0.12s;
}
.range-slider-track input[type="range"]:focus::-webkit-slider-thumb,
.range-slider-track input[type="range"]:hover::-webkit-slider-thumb {
  background: var(--amber-light);
  transform: scaleY(1.12);
}
.range-slider-track input[type="range"]:focus::-moz-range-thumb,
.range-slider-track input[type="range"]:hover::-moz-range-thumb {
  background: var(--amber-light);
}

[data-theme="light"] .range-slider-track input[type="range"]::-webkit-slider-thumb { border-color: var(--bg); }
[data-theme="light"] .range-slider-track input[type="range"]::-moz-range-thumb    { border-color: var(--bg); }

/* Column-header filter dropdowns removed — type/region/country filters live
   in the advanced filter panel under the search box. */

/* ---- Table toolbar ---- */

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---- Per-page selector ---- */

.per-page-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.per-page-label {
  color: var(--text-dim);
  font-size: 0.84rem;
}
.per-page-select {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  width: auto;
}
.per-page-select:focus { border-color: var(--amber-dim); outline: none; }

.results-count {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}
.results-count strong { color: var(--amber); }

.btn-sm {
  font-size: 0.84rem;
  padding: 0.38rem 0.9rem;
}
.btn-xs {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
}

/* ---- Column toggle panel ---- */

.col-toggle-wrap { position: relative; }

.col-toggle-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.75rem 0.5rem;
  z-index: 300;
  min-width: 190px;
  box-shadow: var(--shadow);
}

.col-toggle-header {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 0.45rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.col-toggle-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.2rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.1s;
}
.col-toggle-panel label:hover { color: var(--cream); }
.col-toggle-panel input[type="checkbox"] {
  width: auto;
  accent-color: var(--amber);
  cursor: pointer;
  flex-shrink: 0;
}

.col-toggle-footer {
  border-top: 1px solid var(--border);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}

.toggle-arrow { font-size: 0.75em; margin-left: 0.1em; }

/* ---- Whisky table ---- */

.whisky-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.whisky-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.whisky-table thead tr {
  background: var(--bg-card);
}

.whisky-table th {
  /* NOTE: not position:sticky. The wrap is overflow-x:auto, which makes it a
     scroll container on BOTH axes, so a sticky `top: 60px` would offset the
     header 60px down INSIDE the wrap (which never scrolls vertically) and
     detach it from the body — the "rozjechane kolumny" bug. Keep it static. */
  background: var(--bg-card);
  box-shadow: 0 1px 0 var(--border-light);  /* header/body separator */
  padding: 0.65rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-light);
}

/* Sortable columns: no icons — just a subtle highlight on hover to signal
   they're clickable. The active sort still works on click (handled in JS). */
.whisky-table th.sortable {
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.whisky-table th.sortable:hover {
  color: var(--cream);
  background: rgba(251, 191, 36, 0.10);   /* faint amber tint */
}

.whisky-table td {
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.whisky-table tbody tr:last-child td { border-bottom: none; }
.whisky-table tbody tr:hover td     { background: var(--bg-card-hover); }
.whisky-table tbody tr[data-href]   { cursor: pointer; }

/* Name cell */
.wt-name {
  max-width: 480px;
}
/* Anonymous users have no Price/Actions columns, so the name column would
   absorb the freed space and crowd the Shops column — narrow it a little. */
.whisky-table--anon .wt-name { max-width: 360px; }
/* Compact facts under the name — only shown on phones (≤560px) where the
   ABV/age/type columns are hidden. */
.wt-name-meta {
  display: none;
  flex-wrap: wrap;
  gap: 0.1rem 0.45rem;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.wt-name-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.wt-name-text {
  min-width: 0; /* allow text truncation inside flex */
}

/* Copy-name button */
.wt-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px 3px;
  margin-left: 0.25em;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  vertical-align: middle;
  border-radius: 3px;
  line-height: 1;
}
.whisky-row:hover .wt-copy-btn { opacity: 0.45; }
.wt-copy-btn:hover              { opacity: 1 !important; color: var(--cream); background: var(--bg-hover); }
.wt-copy-btn--done              { opacity: 1 !important; color: var(--amber) !important; }
.wt-name a {
  color: var(--cream);
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.15s;
}
.wt-name a:hover { color: var(--amber-light); }

/* Bottle thumbnail */
.wt-thumb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 56px;
}
.wt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.core-star {
  color: var(--amber);
  font-size: 0.65rem;
  vertical-align: middle;
  margin-left: 0.35rem;
  opacity: 0.75;
}

/* Numeric cells — right-aligned */
.wt-num, .wt-price, .wt-stores {
  text-align: right;
  white-space: nowrap;
}

.wt-price strong { color: var(--amber); }
.wt-price .currency { color: var(--text-dim); font-size: 0.8rem; }
/* Range separator */
.pr-sep { margin: 0 0.18em; color: var(--muted); font-weight: 400; }
/* Historical / out-of-stock price — grayed out */
.wt-price-hist { color: var(--muted); font-size: 0.85em; }

.wt-stores { color: var(--text-dim); }
.wt-na     { color: var(--text-dim); }

.wt-shops-link {
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.12s;
}
.wt-shops-link:hover { color: var(--amber); }

/* Price column — wider to accommodate range display */
.wt-col-cena { max-width: 130px; }

/* Shops column — numbers only, but the "Sklepy"/"Shops" header needs room;
   max-width 58px clipped it to "SKLEP". Widen enough for the label to fit. */
.wt-col-sklepy { width: 64px; min-width: 60px; max-width: 90px; }

/* Location column — cap to prevent over-wide Speyside/Highlands cells */
.wt-col-lokalizacja { max-width: 90px; min-width: 64px; }

/* Rating column — compact */
.wt-col-rating { min-width: 40px; max-width: 58px; }

/* Core-portfolio column — hidden by default, toggled by column picker */
.wt-col-core { min-width: 36px; max-width: 72px; text-align: center; }
.wt-core     { text-align: center; }

/* Right-align number column headers */
.wt-col-wiek, .wt-col-abv, .wt-col-cena, .wt-col-sklepy, .wt-col-rating {
  text-align: right;
}

/* Cask column — SVG icons only in table, full labels on detail page */
.wt-col-cask  { min-width: 56px; max-width: 130px; text-align: center; }
.wt-cask-cell { white-space: nowrap; text-align: center; }

.wt-cask-icons {
  display: inline-flex;
  flex-direction: column;   /* stack the balanced rows */
  gap: 1px;
  align-items: center;
  justify-content: center;
  cursor: default;
}
/* One row of cask icons — pulled tight; barrels have ~4px transparent
   padding each side, so a small negative margin overlaps only the empty
   corners and brings the visible barrels closer without clipping. */
.wt-cask-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wt-cask-row svg { margin: 0 -3px; }

.wt-cask-icons svg {
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.1s;
}

.wt-cask-icons:hover svg { opacity: 1; }

/* Destylarnia/Bottler — allow wrap in both header and cells */
.wt-col-destylarnia                    { min-width: 90px; max-width: 140px; line-height: 1.25; }
th.wt-col-destylarnia                  { white-space: normal; line-height: 1.35; }
.wt-col-destylarnia td,
table .wt-col-destylarnia              { white-space: normal; }

/* Type column — nowrap to prevent "Single" / "Malt" split across lines */
.wt-type { white-space: nowrap; font-size: 0.82rem; color: var(--text-dim); }

.info-chip {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.15em 0.42em;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-right: 0.2em;
  white-space: nowrap;
}
.info-chip-cs  { background: #3a2a10; color: var(--amber-light); }
.info-chip-ncf { background: #1c2e1e; color: #7ecfa0; }
.info-chip-nc  { background: #1e2530; color: #7eafcf; }

.wt-cask {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Whiskybase rating column */
.wt-rating   { text-align: right; white-space: nowrap; }
.wb-score    { font-weight: 600; color: var(--amber); }
.wb-votes    { font-size: 0.75rem; color: var(--text-dim); }
/* Rating inherited from the 700 ml sibling (small-format bottles) */
.wb-score-inherited { cursor: help; border-bottom: 1px dotted var(--text-dim); }


/* ---- Quick-filter buttons ---- */

.quick-filters-bar {
  margin: 0.75rem 0 0;
}

/* Collapse toggle button */
.qf-bar-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.2rem 0 0.35rem;
  transition: color 0.12s;
  line-height: 1;
}
.qf-bar-toggle:hover { color: var(--cream); }
.qf-bar-toggle-arrow { font-size: 0.65rem; }
.qf-bar-toggle-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.quick-filters-bar.qf-collapsed .qf-list { display: none; }
.quick-filters-bar.qf-collapsed .qf-bar-toggle { padding-bottom: 0; }

/* Outer row — groups sit side by side, wrap on small screens */
.qf-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0;
}

/* Each labelled group */
.qf-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0;
}

/* Group label — sits left of the buttons */
.qf-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 0.1rem;
  align-self: center;
}

/* Thin vertical divider between groups */
.qf-separator {
  width: 1px;
  align-self: stretch;
  min-height: 1.5rem;
  background: var(--border-light);
  margin: 0 0.65rem;
  flex-shrink: 0;
}

/* Porto grape icon — hue-shifted to burgundy/bordo */
/* Cask icon inside quick-filter buttons — slight right gap, dim until active */
.qf-cask-icon {
  margin-right: 0.32rem;
  opacity: 0.85;
}
.qf-cask-btn.qf-active .qf-cask-icon { opacity: 1; }

.qf-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.84rem;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.qf-btn:hover {
  border-color: var(--amber-dim);
  color: var(--cream);
}

.qf-btn.qf-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--btn-text);
  font-weight: 600;
}

.qf-btn.qf-active:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}

/* ── Segmented pill control (size filter) ──────────────────────── */
.qf-seg {
  display: inline-flex;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.qf-seg .qf-btn {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--border-light);
  padding: 0.3rem 0.8rem;
  margin: 0;
}

.qf-seg .qf-btn:first-child { border-radius: 999px 0 0 999px; }
.qf-seg .qf-btn:last-child  { border-radius: 0 999px 999px 0; border-right: none; }

.qf-seg .qf-btn.qf-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--btn-text);
  font-weight: 600;
  box-shadow: 1px 0 0 var(--amber), -1px 0 0 var(--amber);
}

/* Legacy — kept so old bookmark URLs don't break anything */
.qf-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
  padding: 0 0.15rem;
}

/* ══════════════════════════════════════════════════════════════════
   Unified filter box — collapsed (flat quick row) / expanded (full)
   ══════════════════════════════════════════════════════════════════ */

.filter-primary-row { flex-wrap: wrap; }
.filter-primary-row .btn-reset { flex-shrink: 0; }

/* Advanced panel: visible only when the box is expanded */
.filters:not(.is-expanded) .filter-advanced { display: none; }

/* ── Chips container ─────────────────────────────────────────────── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.85rem;
}
.filter-quick-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.15rem;
  white-space: nowrap;
}
.filters.is-expanded .filter-quick-label { display: none; }

/* ── Collapsed: flatten groups, hide labels / separators / non-quick ── */
.filters:not(.is-expanded) .filter-chips .qf-group { display: contents; }
.filters:not(.is-expanded) .filter-chips .qf-group-label,
.filters:not(.is-expanded) .filter-chips .qf-separator { display: none; }
.filters:not(.is-expanded) .filter-chips .qf-btn:not(.qf-quick) { display: none; }
/* Size segment collapses to the lone 0,7l toggle, styled as a standalone pill */
.filters:not(.is-expanded) .qf-seg:not(.qf-seg-peat) { border: none; overflow: visible; width: auto; }
.filters:not(.is-expanded) .qf-seg:not(.qf-seg-peat) .qf-btn.qf-quick {
  border: 1px solid var(--border-light);
  border-radius: 999px;
}
.filters:not(.is-expanded) .qf-seg:not(.qf-seg-peat) .qf-btn.qf-active { box-shadow: none; }

/* ── Expanded: groups render as labelled rows (base .qf-group flex applies) ── */
.filters.is-expanded .filter-chips { gap: 0.35rem 0; }

/* Peat pair: a connected 2-button segment in both states (both are .qf-quick) */
.qf-seg-peat { flex-shrink: 0; }

/* ── Multi-select Type dropdown (checkbox popover) ───────────────── */
.filter-type-select { position: relative; flex: 0 1 auto; }
.type-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 150px;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.type-select-btn:hover,
.type-select-btn[aria-expanded="true"] { border-color: var(--amber-dim); }
.type-select-label { flex: 1; text-align: left; }
.type-select-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--btn-text);
  font-size: 0.72rem;
  font-weight: 700;
}
.type-select-caret { color: var(--text-dim); font-size: 0.7rem; }
.type-select-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 210px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.type-select-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
}
.type-select-opt:hover { background: var(--bg); }
.type-select-opt input {
  width: auto;
  margin: 0;
  accent-color: var(--amber);
  cursor: pointer;
}
/* The class display rules above beat the UA `[hidden] { display:none }`, so the
   hidden attribute needs an explicit override (same gotcha as .tasting-list). */
.type-select-panel[hidden],
.type-select-count[hidden] { display: none; }

/* ── Quick filters — mobile tile layout ───────────────────────────────
   On phones the inline pill rows wrapped awkwardly between groups. Instead
   each filter GROUP becomes its own bordered tile: the group label sits as a
   heading on its own line, with the pills wrapping beneath it. Predictable,
   never breaks mid-group. The whole bar still collapses via #qf-bar-toggle,
   which here becomes a full-width tappable header. */
@media (max-width: 600px) {
  /* Toggle becomes a prominent full-width bar so the section is easy to fold away */
  .qf-bar-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.74rem;
  }
  .quick-filters-bar:not(.qf-collapsed) .qf-bar-toggle { margin-bottom: 0.55rem; }

  .qf-separator { display: none; }

  /* One tile per row — clean and never breaks across a group boundary */
  .qf-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .qf-group {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.38rem;
    padding: 0.55rem 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  /* Label on its own line above the pills */
  .qf-group-label {
    flex: 0 0 100%;
    font-size: 0.64rem;
    color: var(--amber);
    padding: 0;
    margin-bottom: 0.1rem;
  }

  /* Compact, still-tappable chips so groups pack tighter (Polecane 1 row, Beczka 2) */
  .qf-btn {
    font-size: 0.8rem;
    padding: 0.36rem 0.62rem;
    min-height: 34px;
  }
  /* Smaller cask icon so Beczka's 5 chips fit two rows (3 + 2) */
  .qf-btn .qf-cask-icon { width: 16px; height: 16px; margin-right: 0.2rem; }

  /* Size control spans the tile, buttons share width equally */
  .qf-seg { width: 100%; }
  .qf-seg .qf-btn { flex: 1; justify-content: center; min-height: 34px; }

  /* Unified filter box (mobile): search + dropdown go full-width */
  .filter-q-input { flex: 1 1 100%; }
  .filter-type-select { flex: 1 1 100%; }
  .type-select-btn { width: 100%; }
  .type-select-panel { left: 0; right: 0; min-width: 0; }
  .filters:not(.is-expanded) .filter-chips { gap: 0.4rem; }
  /* Sliders stack full-width so their tick labels (1 tys. / 10 tys. …) aren't cramped */
  .filter-grid .range-slider-wrap { flex: 1 1 100%; }
}

/* ---- Pagination ---- */

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pg-btn, .pg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 34px;
  padding: 0 0.65rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.pg-btn:hover, .pg-link:hover {
  border-color: var(--amber-dim);
  color: var(--cream);
}

.pg-current {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--btn-text);
  font-weight: 700;
  cursor: default;
}
.pg-current:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--btn-text);
}

.pg-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.pg-ellipsis {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  padding: 0 0.2rem;
  font-size: 0.875rem;
}

.pg-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ---- Featured / Promo page ---- */

.featured-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.featured-hero-img {
  background: var(--bg-image);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.featured-hero-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 2.5rem;
  max-height: 460px;
}
.featured-hero-img-placeholder {
  font-size: 9rem;
  opacity: 0.18;
}

.featured-hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, #1c2030 0%, #0f1117 100%);
  border-left: 1px solid var(--border);
}

.featured-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(200,135,42,0.12);
  border: 1px solid rgba(200,135,42,0.25);
  border-radius: 999px;
  padding: 0.25em 0.8em;
  width: fit-content;
  margin-bottom: 1.25rem;
}

.featured-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.featured-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.feat-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.2em 0.6em;
}

.featured-hero-desc {
  color: var(--text-dim);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.featured-hero-price {
  margin-bottom: 1.75rem;
}
.featured-hero-price .price-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.featured-hero-price .price-range {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  font-family: var(--font-serif);
}
.featured-hero-price .price-shops {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.featured-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  transition: background 0.15s;
  width: fit-content;
}
.featured-hero-cta:hover { background: var(--amber-light); color: var(--btn-text); }

/* ---- Feature cards grid ---- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s;
}
.feat-card:hover {
  border-color: var(--amber-dim);
  transform: translateY(-3px);
}

.feat-card-img {
  height: 220px;
  background: var(--bg-image);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feat-card-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 0.5rem;
}
.feat-card-img-placeholder {
  font-size: 5rem;
  opacity: 0.18;
}

.feat-card-body {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.feat-card-origin {
  font-size: 0.75rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.feat-card-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
}

.feat-card-specs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feat-card-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}

.feat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.feat-card-price strong { color: var(--amber); font-size: 1.05rem; }
.feat-card-price .feat-price-unit { color: var(--text-dim); font-size: 0.8rem; }
.feat-card-shops { font-size: 0.78rem; color: var(--text-dim); }

/* ---- Flavour chips (no bars/percentages) ---- */

.feat-flavor-chips,
.feat-card-flavor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.feat-flavor-chip {
  font-size: 0.75rem;
  color: var(--text);
  background: rgba(200,135,42,0.08);
  border: 1px solid rgba(200,135,42,0.2);
  border-radius: 999px;
  padding: 0.2em 0.65em;
  white-space: nowrap;
}

.feat-flavor-chip--sm {
  font-size: 0.7rem;
  padding: 0.15em 0.55em;
}

/* ---- Guest availability note ---- */

.feat-availability {
  margin-bottom: 1.25rem;
}

.feat-shops-note {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.feat-card-footer--guest {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

/* ---- Why compare section ---- */

.why-compare {
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.why-compare h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.why-compare .sub {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: left;
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
  display: block;
}

.why-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- Featured CTA strip ---- */

.featured-cta-strip {
  background: linear-gradient(135deg, #1a2040 0%, #0f1117 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.featured-cta-strip h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.featured-cta-strip p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .featured-hero { grid-template-columns: 1fr; min-height: auto; }
  .featured-hero-img { height: 280px; }
  .featured-hero-body { border-left: none; border-top: 1px solid var(--border); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .featured-cta-strip { flex-direction: column; text-align: center; }
}

@media (max-width: 700px) {
  .detail-header { grid-template-columns: 1fr; }
  .detail-image { height: 220px; }
  nav { gap: 1rem; }
  .whisky-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  /* Hide by data-col so BOTH the <th> and the <td> drop (th has the wt-col-*
     class, td only has data-col — class-only hiding would desync the columns). */
  [data-col="destylarnia"], [data-col="lokalizacja"] { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .pagination-bar { gap: 0.3rem; }
  .pg-btn { font-size: 0.8rem; padding: 0 0.5rem; }
}

/* Phones: drop ABV/age/type columns and fold them into a meta line under the
   name, so the table fits without horizontal scroll but keeps the key facts. */
@media (max-width: 560px) {
  [data-col="abv"], [data-col="wiek"], [data-col="typ"] { display: none; }
  .wt-name-meta { display: flex; }
  .whisky-table { font-size: 0.82rem; }
  .wt-name-inner { gap: 0.5rem; }
}

/* ---- Regulamin / static prose pages ---- */

.legal-page {
  max-width: 720px;
  margin: 2.5rem auto 4rem;
  padding: 0 1rem;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--amber-light);
  margin-bottom: 0.6rem;
}

.legal-page p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-page h2 {
  margin-top: 2rem;
}

.legal-page .legal-updated {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: -1.25rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.legal-page h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page li {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.3rem;
}

.legal-page code {
  font-family: var(--font-sans);   /* not monospace — the only render is "robots.txt" */
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--amber-light);
}

/* Sekcja z podsekcjami — wizualne oddzielenie od prostych §1-7 */
.legal-page section.section-heavy {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
}

[data-theme="light"] .legal-page code {
  background: rgba(0, 0, 0, 0.04);
}

/* =========================================
   Light mode — variable overrides
   ========================================= */

[data-theme="light"] {
  --bg:            #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #edf7f1;
  --bg-image:      #eef0f2;
  --border:        #c0d8c8;
  --border-light:  #d2e8da;
  --amber:         #1c5c40;   /* bottle green — main accent */
  --amber-light:   #237a52;   /* hover/lighter variant */
  --amber-dim:     #4a8a6c;   /* muted variant */
  --logo-accent:       #111111;   /* logo lockup — black on the light header */
  --logo-accent-hover: #000000;
  --cream:         #182820;
  --cream-dim:     #384e40;
  --text:          #182820;
  --text-dim:      #527060;
  --green:         #1c5c40;
  --red:           #7a2020;
  --btn-text:      #ffffff;
  --shadow:        0 2px 16px rgba(18,40,26,.10);
}

/* ---- Header + announcement (hardcoded bg) ---- */

[data-theme="light"] .announcement-bar {
  background: #e8f2ec;
  border-bottom-color: var(--border);
}

[data-theme="light"] .site-header {
  background: rgba(255,255,255,.97);
}

[data-theme="light"] .lang-switch a:hover {
  background: rgba(18,40,26,.06);
  color: var(--cream);
}

[data-theme="light"] .lang-switch .lang-active {
  background: rgba(28,92,64,.13);
}

[data-theme="light"] .lang-switch::before {
  color: var(--border);
}

/* ---- Theme-toggle button ---- */

.theme-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
  margin-left: 0.4rem;
}
.theme-btn:hover {
  border-color: var(--amber-dim);
  color: var(--amber);
}

/* ---- Card / image backgrounds (hardcoded) ---- */

[data-theme="light"] .card-image {
  background: var(--bg-image);
}

[data-theme="light"] .detail-image {
  background: var(--bg-image);
}

[data-theme="light"] .featured-hero-img {
  background: var(--bg-image);
}

[data-theme="light"] .featured-hero-body {
  background: linear-gradient(135deg, #e8f2ec 0%, #f3f7f4 100%);
}

[data-theme="light"] .feat-card-img {
  background: var(--bg-image);
}

/* ---- Inline tags / feat-tag ---- */

[data-theme="light"] .feat-tag {
  background: rgba(0,0,0,.05);
}

/* ---- Badges (hardcoded palette) ---- */

[data-theme="light"] .badge-single_malt  { background: #cce8d8; color: #145238; }
[data-theme="light"] .badge-blended      { background: #d5e4ed; color: #1a3a5c; }
[data-theme="light"] .badge-blended_malt { background: #e2d5ed; color: #3a1a5c; }
[data-theme="light"] .badge-grain        { background: #d8ede2; color: #1c5c40; }
[data-theme="light"] .badge-single_grain { background: #d0e8da; color: #1c5040; }
[data-theme="light"] .badge-region       { background: #d8ede2; color: var(--amber); }
[data-theme="light"] .badge-release      { background: #edd5d5; color: #8b2020; }
[data-theme="light"] .badge-ib           { background: #d5eaed; color: #1a4a5c; }

/* ---- Stock & spec chips ---- */

[data-theme="light"] .in-stock      { background: #d5ede0; color: #1a5c30; }
[data-theme="light"] .out-of-stock  { background: #edd5d5; color: #8b2020; }

[data-theme="light"] .info-chip-cs  { background: #cce8d8; color: var(--amber); }
[data-theme="light"] .info-chip-ncf { background: #d2edd8; color: #1a5c28; }
[data-theme="light"] .info-chip-nc  { background: #d2e4ed; color: #1a3a5c; }

/* ---- Featured CTA strip ---- */

[data-theme="light"] .featured-cta-strip {
  background: linear-gradient(135deg, #e8f2ec 0%, #f3f7f4 100%);
}

/* ---- Why-compare cards (already use CSS vars but just in case) ---- */

[data-theme="light"] .why-compare {
  border-top-color: var(--border);
}

/* ═══════════════════════════════════════════════════════
   SVG icon sprite helpers
════════════════════════════════════════════════════════ */

/* Base: inherit stroke from parent text colour; no fill by default. */
.icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
/* Size variants */
.icon--14 { width: 14px; height: 14px; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--20 { width: 20px; height: 20px; }
.icon--22 { width: 22px; height: 22px; }
.icon--24 { width: 24px; height: 24px; }
.icon--26 { width: 26px; height: 26px; }
.icon--52 { width: 52px; height: 52px; }

/* ═══════════════════════════════════════════════════════
   Age gate — standalone full-screen window (no site chrome,
   no whisky imagery before age is confirmed)
════════════════════════════════════════════════════════ */

.age-gate-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}
.age-gate-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /* subtle neutral depth — no bottles/whisky imagery */
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(251,191,36,0.06), transparent 60%),
    var(--bg);
}
.age-gate-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  padding: 2.6rem 2rem 2rem;
  text-align: center;
}
.age-gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1.6rem;
}
.age-gate-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: invert(1);                 /* dark mode: black logo → white */
}
[data-theme="light"] .age-gate-logo-img { filter: none; }
.age-gate-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: .01em;
}
.age-gate-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 .8rem;
  line-height: 1.25;
}
.age-gate-body-text {
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 auto 1.8rem;
  max-width: 34ch;
}
.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.age-gate-buttons .age-gate-yes,
.age-gate-buttons .age-gate-no {
  width: 100%;
  justify-content: center;
  padding: .7rem 1rem;
  font-size: .95rem;
}
.age-gate-note {
  margin: 1.6rem 0 0;
  font-size: .76rem;
  color: var(--text-dim);
  line-height: 1.5;
}
/* Language switch — top-right of the gate window */
.age-gate-lang {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
}
.age-gate-lang a {
  color: var(--text-dim);
  text-transform: uppercase;
  padding: .15em .45em;
  border-radius: 3px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.age-gate-lang a:hover { color: var(--cream); background: rgba(127,127,127,0.12); }
.age-gate-lang .lang-active {
  color: var(--amber);
  text-transform: uppercase;
  padding: .15em .45em;
  border-radius: 3px;
  background: rgba(200,135,42,0.14);
}

/* ═══════════════════════════════════════════════════════
   Auth pages (login / register)
════════════════════════════════════════════════════════ */

.auth-page {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}
/* Wider variant for feedback / deletion forms */
.auth-card--wide { max-width: 560px; }

.auth-card h1 {
  font-family: var(--font-serif);   /* --font-display was never defined → fell back */
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--amber);
}

.auth-error {
  background: rgba(220, 60, 60, .12);
  border: 1px solid rgba(220, 60, 60, .35);
  border-radius: 6px;
  padding: .7rem 1rem;
  margin-bottom: 1.2rem;
  font-size: .9rem;
  color: #e87878;
}

.auth-info {
  background: rgba(58, 122, 86, .14);
  border: 1px solid rgba(58, 122, 86, .4);
  border-radius: 6px;
  padding: .7rem 1rem;
  margin-bottom: 1.2rem;
  font-size: .9rem;
  color: #5cba8a;
}

/* Email verification code input — large, spaced digits */
.verify-code-input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.auth-resend-form {
  margin-top: 1rem;
  text-align: center;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="date"] {
  width: 100%;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--input-bg, var(--bg));
  color: var(--text);
  font-size: 1rem;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

/* Two-column row (first name + last name) — collapses on narrow screens */
.auth-form .form-row {
  display: flex;
  gap: 0.75rem;
}
.auth-form .form-row .form-group {
  flex: 1;
  min-width: 0;
}
@media (max-width: 420px) {
  .auth-form .form-row { flex-direction: column; gap: 0; }
}

.auth-checkbox,
.form-remember {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .9rem;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"],
.form-remember input[type="checkbox"] {
  margin-top: .15rem;
  flex-shrink: 0;
}

/* "Remember me" sits between the password field and the submit button —
   slightly tighter top margin since it follows an input, not another label. */
.form-remember { margin-top: .45rem; }

.btn-full { width: 100%; margin-top: .5rem; }

/* Google OAuth button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .6rem 1rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius, 6px);
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.btn-google svg { flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
  color: var(--text-dim);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-sub {
  margin-top: -.4rem;
  margin-bottom: 1.2rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.auth-switch {
  margin-top: 1.2rem;
  font-size: .88rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-forgot {
  margin-top: .6rem;
  font-size: .82rem;
  text-align: center;
}
.auth-forgot a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-forgot a:hover { color: var(--amber); }

.auth-intro {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

/* ── Price gate (detail + listing) ── */

.price-gate {
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}

.price-gate-heading {
  font-weight: 600;
  margin-bottom: .5rem;
}

.price-gate-text {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.price-gate-or { color: var(--text-muted); }

.price-gate-link {
  text-decoration: none;
  opacity: .5;
  font-size: .9rem;
}
.price-gate-link:hover { opacity: 1; }

/* ── Nav auth links ── */

.btn-nav-cta {
  border: 1px solid var(--amber);
  border-radius: 5px;
  padding: .2rem .7rem !important;
  color: var(--amber) !important;
}
.btn-nav-cta:hover { background: var(--amber); color: var(--bg) !important; }

[data-theme="light"] .auth-error { color: #c0392b; }
[data-theme="light"] .price-gate { border-color: #b8d8c4; }

/* ═══════════════════════════════════════════════════════
   Nav basket icon
════════════════════════════════════════════════════════ */

.nav-basket {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--text-dim) !important;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-basket:hover { color: var(--amber-light) !important; }

.basket-icon { display: inline-flex; align-items: center; line-height: 1; }

.basket-count {
  position: absolute;
  top: -7px;
  right: -10px;
  background: var(--amber);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   Add-to-basket button (whisky detail + listing table)
════════════════════════════════════════════════════════ */

.price-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.price-section-header h2 { margin-bottom: 0; }

.basket-form { display: inline; }

.btn-basket {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border: 1px solid var(--amber);
  border-radius: 6px;
  background: transparent;
  color: var(--amber);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-basket:hover {
  background: var(--amber);
  color: var(--bg);
}
.btn-basket--in {
  background: var(--amber-dim);
  color: var(--cream);
  border-color: var(--amber-dim);
}
.btn-basket--in:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}
.btn-basket--guest {
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-basket--guest:hover { border-color: var(--amber); color: var(--amber); }

/* Table actions column (journal + basket combined) */
.wt-col-actions { width: 5rem; padding: 0 0.4rem !important; }
.wt-actions-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
/* form is block-level by spec; display:contents makes the <button> inside
   participate directly in the flex layout without an extra box in between */
.wt-actions-inner form { display: contents; }

.wt-journal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: .3rem;
  font-size: .9rem;
  text-decoration: none;
  color: var(--text-dim);
  transition: all 0.15s;
  line-height: 1;
}
.wt-journal-btn:hover { color: var(--amber); background: rgba(251,191,36,.1); }
.wt-journal-btn--tasted {
  color: var(--amber);
  background: rgba(251,191,36,.12);
  border-radius: .3rem;
}
.wt-journal-btn--tasted:hover { background: rgba(251,191,36,.28); }
.wt-basket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.wt-basket-btn:hover { border-color: var(--amber); color: var(--amber); }
.wt-basket-btn--in {
  background: var(--amber-dim);
  border-color: var(--amber-dim);
  color: var(--cream);
  font-size: .75rem;
}
.wt-basket-btn--in:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ═══════════════════════════════════════════════════════
   Basket page
════════════════════════════════════════════════════════ */

.basket-page { max-width: 900px; margin: 0 auto; }

.basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.basket-header h1 { display: flex; align-items: center; gap: .6rem; }
.basket-count-badge {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: var(--font-sans);
}
.basket-clear-btn { color: var(--text-dim); font-size: .8rem; }
.basket-clear-btn:hover { color: var(--red); border-color: var(--red); }

/* Empty state */
.basket-empty {
  text-align: center;
  padding: 5rem 2rem;
}
.basket-empty-icon { color: var(--text-dim); opacity: .45; margin-bottom: 1rem; }
.basket-empty-text { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.basket-empty-sub  { color: var(--text-dim); margin-bottom: 1.5rem; }

/* Item table */
.basket-items-wrap { margin-bottom: 3rem; overflow-x: auto; }
.basket-items-table {
  width: 100%;
  border-collapse: collapse;
}
.basket-items-table th {
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding: .5rem .75rem;
}
.basket-items-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.basket-items-table tr:hover td { background: var(--bg-card-hover); }
.basket-row-unavail td { opacity: .55; }

.basket-item-name {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.basket-item-name-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.basket-item-name-text a { word-break: break-word; }
/* Shop name shown only on mobile (in place of separate SKLEP column) */
.basket-item-shop-mobile {
  display: none;
  font-size: .72rem;
  color: var(--text-dim);
}
.basket-item-thumb {
  width: 36px;
  height: 54px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}
.basket-item-price strong { color: var(--amber-light); font-size: 1rem; }
.basket-item-shop { font-size: .88rem; }

/* Basket value signals: per-item savings vs dearest, basket-wide total saved */
.basket-saved {
  display: inline-block;
  margin-left: 0.45em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(74, 124, 94, 0.16);
  padding: 0.03em 0.4em;
  border-radius: 999px;
  cursor: help;
  font-variant-numeric: tabular-nums;
}
.basket-total-saved {
  display: inline-block;
  margin-left: 0.6em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}
/* Shipping cost note in tfoot summary */
.basket-shipping-note {
  display: block;
  margin-top: .2rem;
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-dim);
}
.basket-shipping-note--free { color: var(--green); }
.basket-shop-link { color: var(--text-dim); }
.basket-shop-link:hover { color: var(--amber-light); }

.unavailable-label {
  font-size: .8rem;
  color: var(--red);
  font-style: italic;
}

.basket-item-action { width: 2.5rem; text-align: center; }
.basket-remove-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.basket-remove-btn:hover { color: var(--red); border-color: var(--red); }

.basket-total-row td {
  border-top: 2px solid var(--border);
  padding-top: .8rem;
  font-weight: 600;
}
.basket-total-label { font-size: .82rem; color: var(--text-dim); }
.basket-total-price strong { font-size: 1.1rem; color: var(--amber-light); }
.basket-unavail-note { font-size: .8rem; color: var(--text-dim); margin-left: .4rem; }

/* Shop analysis section */
.basket-shops h2 { margin-bottom: 1.5rem; }

/* Recommendation card */
.basket-recommendation {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.rec-badge--single {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.rec-body { flex: 1; }
.rec-body strong { font-size: 1.05rem; }
.rec-sub { display: block; font-size: .85rem; color: var(--text-dim); margin-top: .15rem; }
.rec-shop-link { font-size: 1.05rem; font-weight: 600; color: var(--amber-light); }
.rec-shop-link:hover { color: var(--cream); text-decoration: underline; }

/* Two-plan recommendation layout (whole-in-one-shop vs cheapest split) */
.rec-plan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.rec-plan:last-child { margin-bottom: 0; }
.rec-plan--best {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 7%, transparent);
}
.rec-plan-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.rec-plan-title { font-weight: 600; color: var(--text); }
.rec-plan-total { margin-left: auto; font-weight: 700; color: var(--amber-light); }
.rec-plan-sub { font-size: .85rem; color: var(--text-dim); margin: .4rem 0 0; }
.rec-plan .rec-split-list { margin-top: .75rem; }
.rec-leg-ship { font-size: .8rem; color: var(--text-dim); margin-left: .35rem; }
.rec-leg-ship--free   { color: var(--success, #5cb85c); }
.rec-leg-ship--pickup { color: var(--amber); }

/* Tasteful "best choice" marker — amber circle + check, replaces the ⭐ emoji */
.rec-best-badge, .best-shop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--amber);
  color: #0f0d0b;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.best-shop-badge { margin-right: 0.4rem; vertical-align: middle; }

/* Nearly-equal badge — neutral ≈ symbol, shown instead of ✓ when diff < 1% */
.rec-near-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--text-dim);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  opacity: .7;
}

.shop-name-link { color: var(--cream); font-weight: 500; }
.shop-name-link:hover { color: var(--amber-light); text-decoration: underline; }

.rec-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}
.rec-total { margin-left: .5rem; color: var(--amber-light); }

.rec-split-list { display: flex; flex-direction: column; gap: .75rem; }
.rec-leg {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
}
.rec-leg-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.rec-leg-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--amber-dim);
  color: var(--cream);
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rec-leg-header strong { flex: 1; }
.rec-leg-total { font-size: .9rem; color: var(--amber-light); font-weight: 600; }

.rec-leg-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.rec-leg-items li {
  font-size: .85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.rec-leg-items li a { color: var(--text); }
.rec-item-price { color: var(--amber-light); font-weight: 500; }

.rec-unavail-note {
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

/* Shop comparison table */
.shop-comparison-wrap { overflow-x: auto; }
.shop-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.shop-comparison-table th {
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding: .5rem .75rem;
}
.shop-comparison-table td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  vertical-align: middle;
}
.best-shop-row td { background: var(--bg-card); }
.best-shop-row:hover td { background: var(--bg-card-hover); }
.best-shop-star { margin-right: .3rem; font-size: .9rem; }
.shop-name-cell { font-weight: 500; }
.shop-total-cell strong { color: var(--amber-light); }
.shop-total-cell { white-space: nowrap; }
/* Small shipping hint under the total in the shop comparison table */
.shop-ship-hint {
  display: block;
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: .1rem;
}
.shop-ship-hint .ship-label { font-size: .7rem; }
.shop-ship-hint--free   { color: var(--green); }
.shop-ship-hint--pickup { color: var(--amber); }

/* Coverage bar */
.shop-coverage-cell {
  white-space: nowrap;
  font-size: .82rem;
  color: var(--text-dim);
}
.coverage-bar {
  display: inline-block;
  width: 60px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: .4rem;
}
.coverage-fill {
  display: block;
  height: 100%;
  background: var(--amber);
  border-radius: 3px;
}
.all-available { color: var(--green); font-size: .82rem; }
.missing-items { font-size: .82rem; color: var(--text-dim); }
.missing-names { color: var(--text-dim); font-style: italic; }

/* Buy button sizes */
.btn-buy-sm  { font-size: .75rem; padding: .2rem .5rem; }
.btn-buy-xs  { font-size: .7rem;  padding: .15rem .4rem; }

/* Single-item basket: simplified shop list */
.single-item-shops .shop-shipping-cell { font-size: .82rem; color: var(--text-dim); white-space: nowrap; }
.single-item-shops .ship-cost { color: var(--text-dim); }
.single-item-shops .ship-free   { color: var(--green); font-size: .82rem; }
.single-item-shops .ship-pickup { color: var(--amber); font-size: .82rem; }
.single-item-shops .ship-label { font-size: .75rem; }
.single-item-shops .shop-buy-cell { text-align: right; }

/* ── Basket mobile layout (≤ 520px) ─────────────────────────── */
@media (max-width: 520px) {
  /* Hide table header + SKLEP column — show shop under name instead */
  .basket-items-table thead          { display: none; }
  .basket-items-table .basket-item-shop { display: none; }
  .basket-item-shop-mobile           { display: block; }

  /* Give name cell more room; price cell stays compact */
  .basket-items-table td             { padding: .55rem .4rem; }
  .basket-item-name                  { align-items: flex-start; }
  .basket-item-thumb                 { width: 30px; height: 44px; }
  .basket-item-price strong          { font-size: .9rem; }

  /* Tfoot: stack label and price vertically */
  .basket-total-row td:first-child   { display: block; padding-bottom: 0; }
  .basket-total-row td:last-child    { display: block; padding-top: .3rem; }
  .basket-total-row .basket-total-label { font-size: .75rem; }
}

/* Light theme overrides */
[data-theme="light"] .basket-items-table th,
[data-theme="light"] .shop-comparison-table th { color: #2a4e3a; }
[data-theme="light"] .basket-row-unavail td { opacity: .6; }
[data-theme="light"] .basket-recommendation { background: #e8f2ec; }
[data-theme="light"] .rec-leg { border-color: #b8d8c4; }
[data-theme="light"] .best-shop-row td { background: #e2f0e8; }
[data-theme="light"] .coverage-fill { background: var(--amber); }
[data-theme="light"] .basket-count { background: var(--amber); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   COLLECTOR PROFILE
   ═══════════════════════════════════════════════════════════════ */

/* ── Whisky detail: tasting-note action button ─────────── */
.price-section-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.btn-tasting-note {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-tasting-note:hover {
  background: var(--amber);
  color: #1a1005;
}

/* ── Nav profile icon ──────────────────────────────────── */
.nav-profile {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  text-decoration: none;
  opacity: .85;
  transition: opacity .15s, color .15s;
}
.nav-profile:hover { opacity: 1; color: var(--cream); }

/* ── Profile page ──────────────────────────────────────── */
.profile-page { max-width: 900px; margin: 0 auto; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-avatar span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1005;
  line-height: 1;
}
.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}
/* ── Badge shimmer keyframe — shared by founding & founder badges ──────── */
@keyframes badge-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.badge-premium {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #d4b483, #b8902a);
  color: #1a1005;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Founding-member badge — gold gradient + shimmer sweep. */
.badge-founding {
  display: inline-block;
  padding: .18rem .6rem;
  border-radius: 20px;
  background: linear-gradient(120deg,
    #f0d79b 0%, #c8872a 30%, #f5e0a0 50%, #c8872a 70%, #f0d79b 100%);
  background-size: 200% auto;
  color: #1a1005;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 1px 6px rgba(200, 135, 42, 0.35);
  cursor: help;
  animation: badge-shimmer 9s linear infinite;
}

/* Founder badge — same shimmer, slightly bolder symbol. */
.badge-founder {
  display: inline-block;
  padding: .18rem .65rem;
  border-radius: 20px;
  background: linear-gradient(120deg,
    #f0d79b 0%, #c8872a 30%, #f5e0a0 50%, #c8872a 70%, #f0d79b 100%);
  background-size: 200% auto;
  color: #1a1005;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 1px 8px rgba(200, 135, 42, 0.45);
  cursor: help;
  animation: badge-shimmer 9s linear infinite;
}

/* Admin docs link — inline next to badge */
.badge-admin-docs {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .18rem .55rem;
  border-radius: 20px;
  border: 1px solid rgba(30, 58, 110, 0.45);
  color: #111;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  vertical-align: middle;
}
.badge-admin-docs:hover {
  background: rgba(45, 90, 158, 0.15);
  border-color: rgba(45, 90, 158, 0.7);
  color: #111;
}

/* Admin badge — navy/blue gradient. */
.badge-admin {
  display: inline-block;
  padding: .18rem .6rem;
  border-radius: 20px;
  background: linear-gradient(120deg, #1e3a6e 0%, #2d5a9e 40%, #1a3461 100%);
  color: #d0e4ff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 1px 6px rgba(30, 58, 110, 0.45);
  cursor: pointer;
  text-decoration: none;
}
a.badge-admin:hover { opacity: .85; }

.profile-member-since {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .3rem 0 0;
}

/* Profile action links — larger than buttons, feel like cards */
.profile-action-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 600px;
  margin-top: .25rem;
}
.profile-action-link {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: .85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--cream);
  transition: border-color .15s, background .15s;
}
.profile-action-link:hover {
  border-color: var(--amber);
  background: var(--bg-card-hover);
}
.profile-action-link--danger:hover { border-color: #d98a8a; }
.profile-action-link__icon {
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--text-dim);
  transition: color .15s;
}
.profile-action-link:hover .profile-action-link__icon { color: var(--amber); }
.profile-action-link--danger:hover .profile-action-link__icon { color: #d98a8a; }
.profile-action-link strong {
  display: block;
  font-size: .95rem;
  margin-bottom: .15rem;
}
.profile-action-link__desc {
  font-size: .82rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

/* ── Beta banner — global, dismissible ──────────────────────────────── */
.wp-beta-dismissed .beta-banner { display: none; }
.beta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  position: relative;
  background: linear-gradient(135deg, rgba(200,135,42,0.16), rgba(200,135,42,0.08));
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  font-size: 0.85rem;
  text-align: center;
}
.beta-banner-text { line-height: 1.4; }
.beta-banner-close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
}
.beta-banner-close:hover { color: var(--cream); background: rgba(255,255,255,0.08); }
@media (max-width: 600px) {
  .beta-banner { font-size: 0.78rem; padding: 0.45rem 2.2rem 0.45rem 0.8rem; }
}

/* ── Account deletion (profile) ─────────────────────────────────────── */
.deletion-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.7rem 1rem;
  border: 1px solid #6e3b3b;
  background: rgba(176, 60, 60, 0.12);
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.9rem;
}
.btn-cancel-deletion {
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--cream);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}
.btn-cancel-deletion:hover { border-color: var(--amber); color: var(--amber); }

.account-deletion {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.account-deletion__title { font-size: 1.1rem; color: #d98a8a; margin: 0 0 0.5rem; }
.account-deletion__intro { color: var(--text-dim); font-size: 0.88rem; max-width: 60ch; }
.account-deletion__form { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; max-width: 60ch; }
.account-deletion__check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.4; }
.account-deletion__check input { margin-top: 0.2rem; flex-shrink: 0; }
/* Required-field asterisk in deletion checkboxes */
.account-deletion__check .required-star { color: #e87878; font-weight: 700; margin-left: .15rem; }
.account-deletion__reauth { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--text-dim); }
.account-deletion__reauth input {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--cream);
  max-width: 22rem;
}
.btn-danger {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid #8a3b3b;
  background: #6e2b2b;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}
.btn-danger:hover { background: #843333; }
.form-error { color: #d98a8a; font-size: 0.88rem; }

.profile-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.stat-card {
  flex: 1 1 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  text-align: center;
}
.stat-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Favourite-flavours stat card — top-3 tag names as small chips */
.stat-card--flavours { flex: 2 1 200px; }
.stat-flavours {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  margin-bottom: .45rem;
}
.stat-flavour-chip {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .28);
  color: var(--amber-light);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
}

.profile-section { margin-bottom: 2.5rem; }
.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.profile-section-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}
.profile-empty {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
}
.profile-empty p { margin-bottom: .8rem; }

/* ── Profile settings ──────────────────────────────────── */
.settings-saved-msg {
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  background: rgba(80, 160, 100, 0.15);
  border: 1px solid rgba(80, 160, 100, 0.35);
  border-radius: var(--radius);
  color: #6fcf97;
  font-size: 0.85rem;
}

.settings-form { /* container for the form */ }
.settings-form__footer { margin-top: 1.25rem; }

.wheel-picker {
  border: none;
  padding: 0;
  margin: 0;
}

.wheel-picker__legend {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}
.wheel-picker__legend strong {
  font-size: 0.95rem;
  color: var(--cream);
}
.wheel-picker__hint {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.wheel-picker__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.wheel-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  background: var(--bg-card);
  transition: border-color 0.15s;
}
.wheel-option:hover { border-color: var(--amber); }
.wheel-option--active { border-color: var(--amber); background: rgba(200,135,42,0.07); }

.wheel-option input[type="radio"] {
  /* Visually hidden — the border/bg indicates selection */
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wps-svg {
  width: 100%;
  max-width: 180px;
  height: 180px;
  display: block;
  border-radius: var(--radius);
  overflow: visible;
}

.wheel-option__label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
.wheel-option--active .wheel-option__label { color: var(--amber); font-weight: 600; }

.wheel-picker__basis {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
  text-align: center;
}

/* ⓘ hint icon on tasting-wheel slider labels */
.tw-label-hint {
  font-size: 0.7rem;
  opacity: 0.45;
  margin-left: 0.2em;
  cursor: help;
  vertical-align: middle;
}
.tw-slider-label:hover .tw-label-hint { opacity: 0.85; }

@media (max-width: 640px) {
  .wheel-picker__options { grid-template-columns: 1fr; }
}

/* ── Tasting list ──────────────────────────────────────── */
/* ── Tasting-history controls (filter / sort / view toggle) ── */
/* Two rows: row 1 = full-width search, row 2 = filters + "Sortuj po" + view */
.th-controls {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}
.th-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.th-search {
  flex: 1 1 100%;
  width: 100%;
  height: 36px;
  padding: 0 .75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
}
.th-select {
  flex: 1 1 130px;
  max-width: 200px;
  height: 34px;
  padding: 0 .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}
/* "Sortuj po" label + its select, kept together */
.th-sort-group {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 1 1 170px;
}
.th-sort-label {
  white-space: nowrap;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
}
.th-sort-group .th-select { flex: 1 1 auto; }
.th-search:focus, .th-select:focus {
  outline: none;
  border-color: var(--amber);
}
.th-view-toggle {
  display: inline-flex;
  margin-left: auto;   /* push the view switch to the right end of row 2 */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.th-view-btn {
  height: 34px;
  padding: 0 .85rem;
  background: var(--bg-card);
  border: none;
  color: var(--text-dim);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.th-view-btn + .th-view-btn { border-left: 1px solid var(--border); }
.th-view-btn--active { background: var(--amber); color: var(--btn-text); }
.th-empty {
  padding: 1.5rem 0;
  color: var(--text-dim);
  text-align: center;
  font-size: .9rem;
}

/* ── Tasting-history condensed table view ── */
/* [hidden] must win over .tasting-list's display:flex (class specificity). */
.tasting-list[hidden], .tasting-table-wrap[hidden] { display: none; }
.tasting-table-wrap { overflow-x: auto; }
.tasting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.tasting-table thead th {
  background: var(--bg-card);
  color: var(--text-dim);
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
/* First column (name) stays left-aligned — center is right for numeric/short headers */
.tasting-table thead th:first-child { text-align: left; }
.tasting-table th.th-num, .tasting-table td.th-num { text-align: center; }
/* Sortable headers */
.tasting-table th.tt-sortable {
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
}
.tasting-table th.tt-sortable:hover {
  color: var(--cream);
  background: rgba(251, 191, 36, .10);
}
.tasting-table th.tt-sortable.tt-sort-active {
  color: var(--amber);
}
.tasting-table th.tt-sortable .tt-sort-arrow {
  display: inline-block;
  margin-left: .25rem;
  font-size: .6rem;
  vertical-align: middle;
  opacity: .6;
}
.tasting-table tbody td {
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: top;
}
.tasting-table tbody tr:hover td { background: var(--bg-card-hover); }
.tasting-table .tt-name a { color: var(--cream); font-weight: 600; text-decoration: none; }
.tasting-table .tt-name a:hover { color: var(--amber); }
/* Cask cell — inline barrel icons (shared with the catalogue) */
.tt-cask { white-space: nowrap; }
.tt-cask .icon { vertical-align: middle; margin-right: 1px; }
.tt-region { color: var(--text-dim); white-space: nowrap; }
.tt-price { white-space: nowrap; }
.tt-shops {
  display: inline-block;
  margin-left: .35rem;
  padding: 0 .35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .68rem;
  color: var(--text-dim);
}
.tt-date { color: var(--text-dim); white-space: nowrap; }
.tt-actions {
  display: flex;
  gap: .35rem;
  justify-content: flex-end;
  align-items: flex-start;
  white-space: nowrap;
}
.tt-nas { font-size: .72rem; color: var(--text-dim); font-style: italic; }
.tt-actions form { display: inline; }

/* ── Feedback section ── */
.feedback-intro { color: var(--text-dim); font-size: .9rem; margin-bottom: .75rem; }
.feedback-textarea {
  width: 100%;
  padding: .7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  resize: vertical;
}
.feedback-textarea:focus { outline: none; border-color: var(--amber); }
.feedback-form__footer { margin-top: .6rem; }
.feedback-history { margin-top: 1.5rem; }
.feedback-history__title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  margin-bottom: .5rem;
}
.feedback-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.feedback-item {
  padding: .6rem .8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.feedback-item__date { font-size: .72rem; color: var(--text-dim); }
.feedback-item__body { margin: .25rem 0 0; font-size: .88rem; white-space: pre-wrap; }

.tasting-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tasting-card {
  display: grid;
  grid-template-columns: 56px 1fr auto auto auto;
  align-items: center;
  gap: .75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  transition: border-color .15s;
}
.tasting-card:hover { border-color: var(--amber); }

/* Mobile: stack into 2-col layout (thumb + info top, score + radar + actions bottom) */
@media (max-width: 600px) {
  .tasting-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: .5rem .75rem;
    padding: .65rem .75rem;
  }
  .tasting-card-thumb   { grid-row: 1; grid-column: 1; }
  .tasting-card-info    { grid-row: 1; grid-column: 2; }
  .tasting-card-score   { grid-row: 2; grid-column: 1; justify-content: center; }
  .tasting-card-mini-radar { grid-row: 2; grid-column: 2; }
  .tasting-card-actions { grid-row: 3; grid-column: 1 / -1; justify-content: flex-start; }
}

.tasting-card-thumb {
  display: block;
  width: 56px; height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card-hover);
  flex-shrink: 0;
}
.tasting-card-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.tasting-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-card-hover);
}

.tasting-card-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.tasting-whisky-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tasting-whisky-name:hover { color: var(--amber-light); }
.tasting-distillery {
  font-size: .8rem;
  color: var(--text-dim);
}
.tasting-date {
  font-size: .78rem;
  color: var(--text-dim);
}

.tasting-card-score {
  display: flex;
  align-items: baseline;
  gap: .15rem;
}
.score-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber-light);
}
.score-max {
  font-size: .8rem;
  color: var(--text-dim);
}

/* Mini radar */
.tasting-card-mini-radar { flex-shrink: 0; }
.mini-radar-svg { width: 56px; height: 56px; display: block; }

/* ── Radar in history — larger on desktop ──────────────────────────────── */
@media (min-width: 601px) {
  .tasting-card-mini-radar .mini-radar-svg {
    width: 72px;
    height: 72px;
  }
}
.mini-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}
.mini-polygon {
  fill: rgba(212,180,131,.25);
  stroke: var(--amber);
  stroke-width: 1.5;
}

.tasting-card-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border-radius: var(--radius);
  border: 1px solid #c0392b;
  background: transparent;
  color: #e74c3c;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-danger:hover { background: #c0392b; color: #fff; }
.badge-published {
  font-size: .72rem;
  padding: .15rem .45rem;
  border-radius: 20px;
  background: rgba(143,188,106,.2);
  color: #8fbc6a;
  border: 1px solid #8fbc6a;
}

/* ── Tasting form ───────────────────────────────────────── */
.tasting-form-page { max-width: 860px; margin: 0 auto; }

.tasting-form-whisky-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: .9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tasting-form-thumb {
  width: 56px; height: 56px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.tasting-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.tasting-form-whisky-name {
  font-weight: 600;
  color: var(--amber-light);
  text-decoration: none;
}
.tasting-form-whisky-name:hover { text-decoration: underline; }
.tasting-form-distillery { color: var(--text-dim); font-size: .88rem; }

.tasting-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tf-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.tf-row--top { align-items: flex-start; }

.tf-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1 1 200px;
}
.tf-field label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.tf-hint {
  font-size: .76rem;
  color: var(--text-dim);
  font-weight: 400;
}
.tf-hint--premium {
  padding: .1rem .4rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,180,131,.25), rgba(184,144,42,.25));
  border: 1px solid rgba(212,180,131,.4);
  color: #d4b483;
}
.tf-field input[type="date"] {
  padding: .45rem .6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);   /* match the site font (not the UA default) */
  font-size: .9rem;
  width: 100%;
}
.tf-field textarea {
  padding: .6rem .75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);   /* match the site font (textarea UA default is monospace) */
  font-size: .88rem;
  resize: vertical;
  width: 100%;
}
.tf-field textarea:disabled { opacity: .45; cursor: not-allowed; }

.tf-field--score { flex: 1 1 340px; }

/* Overall score slider */
.score-slider {
  width: 100%;
  accent-color: var(--amber);
  cursor: pointer;
  height: 6px;
}
.score-display {
  margin-left: .5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber-light);
  min-width: 2.5rem;
  display: inline-block;
  text-align: right;
}
.score-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: .2rem;
}
.score-ticks span {
  font-size: .68rem;
  color: var(--text-dim);
  width: 1.5rem;
  text-align: center;
}

/* tf-section card */
.tf-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.tf-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.tf-section-hint {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-dim);
}

/* Notes layout 2-column */
.tf-notes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .tf-notes-layout { grid-template-columns: 1fr; }
}

.tf-publish-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  font-size: .85rem;
  cursor: pointer;
}
.tf-publish-toggle input { accent-color: var(--amber); }

.tf-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ── Tasting Wheel — slider panel ──────────────────────── */
.tw-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .tw-layout { grid-template-columns: 1fr; }
  .tw-chart-container { display: none; }
}

.tw-sliders {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.tw-slider-row {
  display: grid;
  grid-template-columns: 110px 1fr 2rem;
  align-items: center;
  gap: .5rem;
}
.tw-slider-label {
  font-size: .83rem;
  font-weight: 600;
  white-space: nowrap;
}
.tw-slider {
  width: 100%;
  accent-color: var(--amber);
  cursor: pointer;
  height: 5px;
}
.tw-val {
  font-size: .82rem;
  font-weight: 700;
  color: var(--amber-light);
  text-align: right;
}

/* ── Tasting Wheel — SVG radar ─────────────────────────── */
.tw-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tw-radar-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}
.tw-grid-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3,3;
}
.tw-grid-label {
  font-size: 10px;
  fill: var(--text-dim);
  dominant-baseline: auto;
}
.tw-axis {
  stroke-width: 1.5;
  opacity: .6;
}
.tw-cat-label {
  font-size: 12px;
  font-weight: 600;
}
.tw-polygon {
  fill: rgba(212,180,131,.18);
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linejoin: round;
}
.tw-dot {
  opacity: .9;
}

/* ═══════════════════════════════════════════════════════════════
   WHISKY PICKER
   ═══════════════════════════════════════════════════════════════ */

.picker-page { max-width: 860px; margin: 0 auto; }

.picker-header { margin-bottom: 1.8rem; }
.picker-title  { font-size: 1.4rem; font-weight: 700; margin: 0 0 .35rem; }
.picker-subtitle { color: var(--text-dim); font-size: .92rem; margin: 0; }

.picker-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
}
.picker-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

/* Search bar */
.picker-search-bar {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1rem;
}
#picker-q {
  width: 100%;
  padding: .65rem .9rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline-offset: 2px;
}
#picker-q:focus { border-color: var(--amber); }
.picker-search-hint {
  font-size: .78rem;
  color: var(--text-dim);
}
.picker-searching { color: var(--text-dim); font-size: .88rem; padding: .5rem 0; }

/* Results table */
.picker-results { min-height: 2rem; }

.picker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.picker-table thead th {
  padding: .4rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.picker-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.picker-table tbody tr:last-child { border-bottom: none; }
.picker-table tbody tr:hover { background: var(--bg-card-hover); }

.picker-col-thumb {
  width: 52px;
  padding: .4rem .4rem .4rem 0;
}
.picker-col-thumb img,
.picker-col-thumb .picker-thumb-placeholder {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.picker-thumb-placeholder { background: var(--bg-card-hover); }

.picker-col-name {
  padding: .4rem .5rem;
  max-width: 320px;
}
.picker-col-name strong { display: block; }
.picker-distillery {
  font-size: .78rem;
  color: var(--text-dim);
  display: block;
  margin-top: .1rem;
}
.picker-user-badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .05rem .35rem;
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 600;
  background: rgba(90,171,158,.2);
  color: #5aab9e;
  border: 1px solid rgba(90,171,158,.4);
  vertical-align: middle;
}

.picker-col-type,
.picker-col-age,
.picker-col-abv {
  padding: .4rem .5rem;
  white-space: nowrap;
  color: var(--text-dim);
  font-size: .82rem;
}
.picker-col-action {
  padding: .4rem .4rem .4rem .5rem;
  text-align: right;
  white-space: nowrap;
}

.text-dim { color: var(--text-dim); }

.picker-empty {
  padding: .8rem 0;
  color: var(--text-dim);
  font-size: .9rem;
}
.picker-empty p { margin: 0 0 .4rem; }
.picker-empty-hint { font-size: .82rem; }
.btn-link {
  background: none;
  border: none;
  color: var(--amber-light);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover { color: var(--amber); }

/* Manual section */
.picker-manual-section { border-top: none; }
.picker-manual-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: transparent;
  border: none;
  color: var(--amber-light);
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color .15s;
}
.picker-manual-toggle:hover { color: var(--amber); }

/* Coming-soon state — not a button, no interaction */
.picker-manual-toggle--soon {
  cursor: default;
  color: var(--text-dim);
  opacity: 0.6;
  pointer-events: none;
}
.picker-manual-toggle--soon:hover { color: var(--text-dim); }
.picker-manual-toggle--soon .picker-manual-icon {
  opacity: 0.5;
}
.picker-manual-soon-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(212,145,46,0.12);
  border: 1px solid rgba(212,145,46,0.3);
  padding: 0.15em 0.55em;
  border-radius: 20px;
  margin-left: 0.2rem;
}

.picker-manual-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(212,180,131,.2);
  border: 1px solid rgba(212,180,131,.4);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background .15s;
}
.picker-manual-toggle:hover .picker-manual-icon { background: rgba(212,180,131,.35); }

.picker-manual-form {
  margin-top: 1.2rem;
}
.picker-manual-desc {
  font-size: .82rem;
  color: var(--text-dim);
  margin: 0 0 1.1rem;
  padding: .5rem .75rem;
  border-left: 3px solid var(--amber);
  background: rgba(212,180,131,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Manual form grid */
.picker-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1.2rem;
  margin-bottom: 1.2rem;
}
.pf-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.pf-field--wide { grid-column: 1 / -1; }
.pf-field label {
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.pf-required { color: #e74c3c; }
.pf-field input,
.pf-field select {
  padding: .45rem .65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  width: 100%;
}
.pf-field input:focus,
.pf-field select:focus { border-color: var(--amber); outline: none; }
.pf-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

@media (max-width: 540px) {
  .picker-form-grid { grid-template-columns: 1fr; }
  .pf-field--wide { grid-column: 1; }
  .picker-col-type,
  .picker-col-abv { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PAGES
   ═══════════════════════════════════════════════════════════════ */

.nav-admin {
  font-size: .95rem;
  text-decoration: none;
  opacity: .7;
  transition: opacity .15s;
  margin-right: .1rem;
}
.nav-admin:hover { opacity: 1; }

.admin-page { max-width: 1100px; margin: 0 auto; }
.admin-header { margin-bottom: 1.5rem; }
.admin-header h1 { font-size: 1.4rem; font-weight: 700; margin: 0 0 .3rem; }
.admin-subtitle { color: var(--text-dim); font-size: .9rem; margin: 0; }

.flash {
  padding: .6rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .9rem;
  font-weight: 500;
}
.flash--ok   { background: rgba(143,188,106,.15); border: 1px solid #8fbc6a; color: #8fbc6a; }
.flash--warn { background: rgba(231,76,60,.12);   border: 1px solid #e74c3c; color: #e74c3c; }

.admin-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.25rem;
}
.admin-section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.admin-empty { color: var(--text-dim); font-size: .9rem; }
.admin-link { color: var(--accent); text-decoration: none; }
.admin-link:hover { text-decoration: underline; }

/* ── Admin: help/instructions panel + legend + flash + status dots ── */
.admin-help {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .35rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .86rem;
}
.admin-help > summary {
  cursor: pointer; font-weight: 600; color: var(--accent);
  padding: .45rem 0; list-style: none;
}
.admin-help > summary::-webkit-details-marker { display: none; }
.admin-help > summary::before { content: "ⓘ\00a0"; }
.admin-help__body { padding: .4rem 0 .6rem; color: var(--text-dim); line-height: 1.55; }
.admin-help__body ul { margin: .4rem 0; padding-left: 1.2rem; }
.admin-help__body li { margin: .25rem 0; }
.admin-help__body code { background: rgba(255,255,255,.06); padding: .05em .35em; border-radius: 3px; font-size: .9em; }
.admin-help__body ol.admin-workflow { margin: .5rem 0; padding-left: 1.4rem; }
.admin-workflow li { margin: .5rem 0; line-height: 1.5; }
.admin-workflow li::marker { color: var(--accent); font-weight: 700; }
.admin-help__legend { margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; }
.admin-help__legend .lg { display: inline-flex; align-items: center; gap: .35rem; }
.dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; vertical-align: middle; }
.dot--red   { background: #c0504e; }
.dot--amber { background: var(--amber, #c8872a); }
.dot--green { background: #6eaa5a; }
.admin-flash { padding: .55rem .9rem; border-radius: 6px; font-size: .85rem; border: 1px solid var(--border); }
.admin-flash--ok  { background: rgba(110,170,90,.12); border-color: #4a7a3a; color: #8ecf6e; }
.admin-flash--err { background: rgba(190,70,70,.12); border-color: #8a3a3a; color: #e08a8a; }

/* ── Admin overview: header row + descriptive nav cards ── */
.admin-header__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.admin-section__intro { color: var(--text-dim); font-size: .85rem; margin: -.4rem 0 1rem; line-height: 1.45; }
.admin-section__note { margin-top: .5rem; font-size: .8rem; color: var(--text-dim); }
.admin-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .8rem;
  margin-top: 1.1rem;
}
.admin-nav-item {
  display: flex; flex-direction: column;
  padding: .95rem 1.05rem 1.05rem;
  border: 1px solid var(--border); border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  text-decoration: none;
  transition: border-color .14s, background .14s, transform .14s, box-shadow .14s;
}
.admin-nav-item:hover {
  border-color: var(--amber);
  background: rgba(200, 135, 42, .07);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.admin-nav-item__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.admin-nav-item__name { font-weight: 700; color: var(--cream); font-size: .96rem; flex: 1; line-height: 1.25; }
/* Step number badge (data quality workflow) */
.admin-nav-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 50%; flex-shrink: 0;
  background: rgba(200,135,42,.15); color: var(--amber);
  font-size: .68rem; font-weight: 800; letter-spacing: 0;
}
.admin-nav-item:hover .admin-nav-step { background: rgba(200,135,42,.28); }
.admin-nav-item__arrow {
  color: var(--amber); font-weight: 700; font-size: 1.05rem;
  opacity: .45; transition: opacity .14s, transform .14s;
}
.admin-nav-item:hover .admin-nav-item__arrow { opacity: 1; transform: translateX(3px); }
.admin-nav-item__desc { color: var(--text-dim); font-size: .82rem; line-height: 1.5; flex: 1; }

/* ── Admin: duplicate / wb-error review rows ── */
.dup-row {
  border: 1px solid var(--border); border-radius: 11px;
  padding: .85rem 1rem; margin-bottom: .8rem;
  background: rgba(255, 255, 255, .015);
}
.dup-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .8rem; font-size: .8rem; color: var(--text-dim); }
.dup-score { font-weight: 700; color: var(--cream); }
.dup-reason { font-style: italic; opacity: .8; }
.dup-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dup-side {
  display: flex; gap: .7rem; align-items: flex-start; position: relative;
  border: 1px solid var(--border); border-radius: 8px;
  padding: .8rem .8rem .7rem; background: rgba(0, 0, 0, .14);
}
.dup-side--keep { border-color: rgba(110, 170, 90, .4); }
.dup-side__tag {
  position: absolute; top: -.6rem; left: .6rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .03em;
  padding: .12em .5em; border-radius: 4px;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim);
}
.dup-side--keep .dup-side__tag { color: #8ecf6e; border-color: rgba(110, 170, 90, .5); }
.dup-side__thumb { width: 42px; min-width: 42px; height: 58px; display: flex; align-items: center; justify-content: center; }
.dup-side__thumb img { max-width: 42px; max-height: 58px; object-fit: contain; }
.dup-side__noimg { color: var(--text-dim); opacity: .4; font-size: 1.3rem; }
.dup-side__body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.dup-side__name { font-weight: 600; color: var(--cream); font-size: .88rem; text-decoration: none; line-height: 1.25; }
.dup-side__name:hover { text-decoration: underline; }
.dup-side__facts { font-size: .76rem; color: var(--text-dim); }
.dup-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .85rem; align-items: flex-start; }
.dup-actions--three { gap: .5rem; }
.dup-actions .btn-icon { font-size: .8rem; padding: .35rem .75rem; width: auto; height: auto; border-radius: 6px; }
.btn-icon--approve { border-color: rgba(110, 170, 90, .5); color: #8ecf6e; }
.btn-icon--approve:hover { background: rgba(110,170,90,.12); }
.btn-icon--link {
  border-color: rgba(80,130,210,.45);
  color: #7aaae0;
}
.btn-icon--link:hover { background: rgba(80,130,210,.1); border-color: #7aaae0; }

/* Action group — visual separator between Scal / Wariant / Odrzuć */
.dup-action-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .45rem .6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
}
.dup-action-group--variant {
  border-color: rgba(80,130,210,.3);
  background: rgba(80,130,210,.04);
}
.dup-action-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: .55;
  margin-bottom: .1rem;
}
.dup-action-group--variant .dup-action-label { color: #7aaae0; opacity: .8; }
.dup-action-group .btn-icon { font-size: .78rem; }

@media (max-width: 640px) { .dup-pair { grid-template-columns: 1fr; } }
.admin-badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .05em .5em; border-radius: 999px; vertical-align: middle;
  background: rgba(200,135,42,.15); color: var(--amber); border: 1px solid var(--amber-dim);
}

.admin-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  border-radius: 11px;
  font-size: .72rem;
  font-weight: 700;
  padding: 0 .4rem;
}
.admin-count--pending { background: rgba(212,180,131,.3); color: var(--amber-light); }
.admin-count--ok      { background: rgba(143,188,106,.2); color: #8fbc6a; }
.admin-count--bad     { background: rgba(231,76,60,.15);  color: #e74c3c; }

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.admin-table th {
  padding: .35rem .5rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.admin-table td {
  padding: .5rem .5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-row--pending { }
.admin-row--ok  td { opacity: .7; }
.admin-row--bad td { opacity: .5; }

.admin-name a { color: var(--amber-light); text-decoration: none; font-weight: 500; }
.admin-name a:hover { text-decoration: underline; }
.admin-wb-link { color: var(--amber-light); font-size: .8rem; }
.admin-user  { color: var(--text-dim); font-size: .8rem; }
.admin-date  { color: var(--text-dim); font-size: .8rem; white-space: nowrap; }
.admin-notes { color: var(--text-dim); font-size: .8rem; text-align: center; }
.admin-actions { white-space: nowrap; }

/* ── Admin table sort + search (admin-tables.js) ──────────── */

.at-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.1em !important;
  transition: color 0.15s;
}
.at-sortable:hover { color: var(--amber-light); }

.at-arrow {
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .6rem;
  opacity: .3;
  pointer-events: none;
}
.at-arrow::after { content: "▲▼"; font-size: .55rem; }
.at-sort-asc .at-arrow { opacity: 1; }
.at-sort-asc .at-arrow::after { content: "▲"; }
.at-sort-desc .at-arrow { opacity: 1; }
.at-sort-desc .at-arrow::after { content: "▼"; }

.at-search-bar {
  margin-bottom: .6rem;
}
.at-search-input {
  width: 100%;
  max-width: 360px;
  padding: .4rem .7rem;
  font-size: .82rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.at-search-input:focus {
  border-color: var(--amber);
}
.at-search-input::placeholder {
  color: var(--text-dim);
}

/* Deletions queue + feedback list (plan 21) */
.admin-note { color: var(--text-dim); font-size: .8rem; margin-top: .75rem; }
.admin-table tr.deletion-due td { background: rgba(176, 60, 60, 0.12); }
.admin-feedback-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.admin-feedback-item { border: 1px solid var(--border); border-radius: 8px; padding: .7rem .9rem; background: var(--bg-card); }
.admin-feedback-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--text-dim); margin-bottom: .35rem; }
.admin-feedback-body { margin: 0; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; }

.btn-approve,
.btn-reject {
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  margin-right: .25rem;
}
.btn-approve {
  border-color: #8fbc6a;
  color: #8fbc6a;
  background: transparent;
}
.btn-approve:hover { background: #8fbc6a; color: #1a1005; }
.btn-reject {
  border-color: #e74c3c;
  color: #e74c3c;
  background: transparent;
}
.btn-reject:hover { background: #e74c3c; color: #fff; }

/* WB queue score badges */
.wb-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 700;
}
.wb-score--high { background: rgba(143,188,106,.2); color: #8fbc6a; }
.wb-score--mid  { background: rgba(212,180,131,.2); color: var(--amber-light); }
.wb-score--low  { background: rgba(231,76,60,.15);  color: #e74c3c; }

/* WB queue expand button */
.wb-expand-btn {
  display: inline-flex;
  align-items: center;
  padding: .05rem .3rem;
  font-size: .7rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  margin-left: .25rem;
  vertical-align: middle;
}
.wb-expand-btn:hover { border-color: var(--amber); color: var(--amber-light); }

/* Candidate sub-rows */
.wb-cands-row td { background: color-mix(in srgb, var(--bg) 95%, transparent); }

/* stat-val warning tint (non-zero queues) */
.stat-val--warn { color: var(--amber-light); }

/* Plan 25 — Staging banner (admin-only whisky detail view) */
.staging-banner {
  background: rgba(212, 180, 131, 0.15);
  border: 1px solid rgba(212, 180, 131, 0.4);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--amber-light);
}
.staging-banner code {
  background: rgba(0,0,0,.2);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.8em;
}

[data-theme="light"] .admin-section { background: #faf7f2; border-color: #d8cbb8; }
[data-theme="light"] .admin-table th { color: #555; }
[data-theme="light"] .admin-row--ok  td,
[data-theme="light"] .admin-row--bad td { opacity: .65; }
[data-theme="light"] .wb-cands-row td { background: #f7f3ec; }

/* ── Light theme: tasting / profile ────────────────────── */
[data-theme="light"] .profile-avatar { background: var(--amber); }
[data-theme="light"] .stat-card { background: #f5f0e8; border-color: #d4b48355; }
[data-theme="light"] .tasting-card { background: #faf7f2; border-color: #d8cbb8; }
[data-theme="light"] .tasting-card:hover { border-color: var(--amber); }
[data-theme="light"] .tf-section { background: #faf7f2; border-color: #d8cbb8; }
[data-theme="light"] .tf-field input[type="date"],
[data-theme="light"] .tf-field textarea { background: #fff; border-color: #d8cbb8; color: #1a1005; }
[data-theme="light"] .tw-grid-ring { stroke: #d0c4b0; }
[data-theme="light"] .tw-axis { opacity: .5; }
[data-theme="light"] .tw-polygon { fill: rgba(180,130,50,.12); stroke: #b8902a; }
[data-theme="light"] .mini-ring { stroke: #d0c4b0; }
[data-theme="light"] .mini-polygon { stroke: #b8902a; fill: rgba(180,130,50,.15); }
[data-theme="light"] .profile-empty { background: #faf7f2; border-color: #d8cbb8; }
[data-theme="light"] .picker-section { background: #faf7f2; border-color: #d8cbb8; }
[data-theme="light"] #picker-q,
[data-theme="light"] .pf-field input,
[data-theme="light"] .pf-field select { background: #fff; border-color: #d8cbb8; color: #1a1005; }
[data-theme="light"] .picker-table tbody tr:hover { background: #f0ebe0; }

/* ── Price slider — locked state for anonymous users ────────── */

.range-slider-wrap.rs-locked {
  position: relative;
  pointer-events: none;
  user-select: none;
}
/* Fade only the slider visuals — NOT the wrap — so the hover tooltip below
   (a child of the wrap) can render at full opacity. */
.range-slider-wrap.rs-locked .range-slider-track,
.range-slider-wrap.rs-locked .rs-scale { opacity: 0.35; }

/* Click-catcher over the locked slider → sends anon users to login.
   pointer-events:auto overrides the parent .rs-locked's pointer-events:none. */
.rs-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

/* Hint — hidden until the cursor hovers (or keyboard-focuses) the slider. */
.rs-lock-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--cream);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.14s, transform 0.14s;
  pointer-events: none;
}
.rs-lock-overlay:hover .rs-lock-tip,
.rs-lock-overlay:focus-visible .rs-lock-tip {
  opacity: 1;
  transform: translateY(0);
}
.rs-lock-tip .icon { opacity: 0.85; }

/* ── Ghost rows (narrow gate) ──────────────────────────────── */

.whisky-row--ghost {
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.ghost-bar {
  display: inline-block;
  background: var(--text-dim);
  border-radius: 3px;
  height: 0.72em;
  vertical-align: middle;
}

/* ── Guest gate banner (catalogue limit for anonymous users) ── */

.guest-gate-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--amber-dim);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.ggb-lock {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.ggb-body {
  flex: 1;
  min-width: 200px;
}

.ggb-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.3rem;
}

.ggb-sub {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0;
}

.ggb-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

[data-theme="light"] .guest-gate-banner {
  background: #faf7f2;
  border-color: var(--amber);
}

[data-theme="light"] .ggb-heading { color: #1a1005; }
[data-theme="light"] .ggb-sub    { color: #555; }
[data-theme="light"] .picker-manual-desc { background: rgba(180,130,50,.05); }

/* ── Staging: name cell with preview link ─────────────────── */
.staging-name-wrap { display: inline-flex; align-items: baseline; gap: .35rem; }
.staging-ext-link {
  font-size: .72rem;
  color: var(--text-dim);
  opacity: .45;
  text-decoration: none;
  transition: opacity .15s;
}
.staging-ext-link:hover { opacity: 1; color: var(--amber); }

/* Size badge in ABV/age column */
.staging-size-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .05rem .35rem;
  border-radius: 3px;
  margin-top: .1rem;
}
.staging-size-std { background: rgba(255,255,255,.05); color: var(--text-dim); }
.staging-size-alt { background: rgba(200,135,42,.14);  color: var(--amber); }

/* ═══════════════════════════════════════════════════════════════
   WB ERROR QUEUE — /admin/wb-errors
   ═══════════════════════════════════════════════════════════════ */

/* ── Filter chips ─────────────────────────────────────────── */
.wberr-filters {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.wberr-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .7rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.wberr-filter-chip:hover                { border-color: var(--amber); color: var(--cream); }
.wberr-filter-chip--active              { border-color: var(--amber); color: var(--amber); background: rgba(200,135,42,.08); }
.wberr-chip-n {
  font-size: .72rem;
  opacity: .65;
}

/* ── Empty state ──────────────────────────────────────────── */
.wberr-empty {
  padding: 2rem 0;
  color: var(--text-dim);
  font-size: .9rem;
}
.wberr-empty a { color: var(--amber); }

/* ── Card list ────────────────────────────────────────────── */
.wberr-list { display: flex; flex-direction: column; gap: .75rem; }

.wberr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Card header ──────────────────────────────────────────── */
.wberr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.wberr-card-head-left  { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.wberr-card-head-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Type chips */
.wberr-type-chip {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.wberr-type--abv   { background: rgba(190,80,80,.18);  color: #e08a8a; }
.wberr-type--age   { background: rgba(80,120,200,.18); color: #8aace0; }
.wberr-type--fuzzy { background: rgba(160,140,50,.18); color: #d4c060; }

.wberr-wb-id   { font-size: .8rem; color: var(--text-dim); }
.wberr-wb-id strong { color: var(--cream); }
.wberr-wb-name { font-size: .82rem; font-weight: 500; color: var(--cream); }
.wberr-wb-link { color: var(--amber); text-decoration: none; }
.wberr-wb-link:hover { text-decoration: underline; }
.wberr-wb-cat  { font-size: .75rem; color: var(--text-dim); padding: .1rem .4rem; border: 1px solid var(--border); border-radius: 3px; }
.wberr-wb-stat { font-size: .78rem; color: var(--text-dim); }
.wberr-wb-stat--dim { opacity: .6; }
.wberr-prices-total {
  font-size: .75rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(200,135,42,.1);
  border: 1px solid rgba(200,135,42,.25);
  padding: .1rem .45rem;
  border-radius: 4px;
}

/* ── Reason note ──────────────────────────────────────────── */
.wberr-reason {
  padding: .45rem 1rem;
  font-size: .78rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono, monospace);
  background: rgba(0,0,0,.12);
}

/* ── Product pair ─────────────────────────────────────────── */
.wberr-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
}
.wberr-side {
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.wberr-side:first-child { border-right: 1px solid var(--border); }
.wberr-side-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: .6;
}
.wberr-side-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.3;
}
.wberr-side-name:hover { color: var(--amber); text-decoration: underline; }
.wberr-side-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--text-dim);
}
.wberr-price-badge {
  background: rgba(58,122,86,.18);
  color: #8ecf6e;
  padding: .05rem .35rem;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 600;
}
.wberr-side-actions { margin-top: .35rem; }

/* "vs" separator */
.wberr-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .75rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-dim);
  opacity: .4;
  letter-spacing: .05em;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ── Card footer ──────────────────────────────────────────── */
.wberr-card-foot {
  padding: .55rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.015);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-wberr-clear {
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .7rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-wberr-clear:hover:not(:disabled) {
  border-color: #e08a8a;
  color: #e08a8a;
  background: rgba(190,80,80,.08);
}
.btn-wberr-clear:disabled { opacity: .4; cursor: not-allowed; }

.btn-wberr-confirm {
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border: 1px solid rgba(110,170,90,.35);
  border-radius: 5px;
  background: transparent;
  color: #8ecf6e;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-wberr-confirm:hover:not(:disabled) { background: rgba(110,170,90,.12); border-color: #8ecf6e; }
.btn-wberr-confirm:disabled { opacity: .4; cursor: not-allowed; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .wberr-pair { grid-template-columns: 1fr; }
  .wberr-side:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .wberr-vs { display: none; }
  .wberr-card-head { flex-direction: column; align-items: flex-start; }
}

/* ── Light theme overrides ────────────────────────────────── */
[data-theme="light"] .wberr-card         { background: #faf7f2; border-color: #d8cbb8; }
[data-theme="light"] .wberr-card-head    { background: rgba(0,0,0,.02); }
[data-theme="light"] .wberr-card-foot    { background: rgba(0,0,0,.02); }
[data-theme="light"] .wberr-reason       { background: rgba(0,0,0,.04); color: #666; }
[data-theme="light"] .wberr-wb-name      { color: #1a1005; }
[data-theme="light"] .wberr-side-name    { color: #1a1005; }
[data-theme="light"] .wberr-type--abv    { background: rgba(200,80,80,.12);  color: #b94040; }
[data-theme="light"] .wberr-type--age    { background: rgba(50,90,190,.12);  color: #3459b0; }
[data-theme="light"] .wberr-type--fuzzy  { background: rgba(140,110,30,.12); color: #7a6020; }
