*, *::before, *::after { box-sizing: border-box; }

html { background: var(--page); }

html.label-mode,
body.label-mode {
  background: var(--page);
  margin: 0;
  overscroll-behavior-y: none;
}

body.label-mode .main-container,
body.label-mode main {
  background: var(--page);
}

/* Full-width container mode for label pages */
.main-container.label-mode-active {
  max-width: none;
  padding: 0;
}

.main-container.label-mode-active footer {
  text-align: center;
  display: block;
  border-top: 1px solid var(--hair);
  padding: 22px max(20px, calc((100% - var(--content)) / 2)) 26px;
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: .04em;
}

.main-container.label-mode-active footer > div {
  display: inline;
}

.main-container.label-mode-active footer > div:first-child::after {
  content: " · ";
}

/* Full-bleed column: bands span the viewport, content stays centered */
.label {
  width: 100%;
  background: var(--page);
  overflow: hidden;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 24px;
}

.label__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--wine-dark);
  height: 64px;
  padding: 0 max(18px, calc((100% - var(--content)) / 2));
}

.label__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--page);
}

.label__mark {
  display: inline-flex;
  width: 30px;
  color: var(--gold-light);
  opacity: .9;
}

.label__mark svg { width: 100%; height: auto; }

.label__winery {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold-light);
}

.label__lang {
  display: flex;
  align-items: center;
}

.label__lang .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.label__lang .dropdown-toggle::after { display: none; }

.label__lang .flag-icon {
  height: 26px;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 1px 5px rgba(0,0,0,.3);
}

.label__lang .label__caret {
  width: 16px;
  height: 16px;
  color: var(--page);
  opacity: .7;
}

.label .dropdown-menu .flag-icon {
  height: 1.4rem;
}

.label .dropdown-menu .dropdown-item {
  font-size: 15px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 200px;
  background: linear-gradient(160deg, var(--wine-dark) 0%, var(--wine) 55%, var(--wine-glow) 100%);
  padding: 34px max(22px, calc((100% - var(--content)) / 2)) 30px;
}

.hero__art {
  position: absolute;
  top: 14px;
  right: max(-8px, calc((100% - var(--content)) / 2 - 24px));
  width: clamp(128px, 32vw, 196px);
  color: var(--gold-light);
  opacity: .4;
  pointer-events: none;
}

.hero__text { position: relative; z-index: 1; max-width: calc(100% - 96px); }

.wine-name {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
}

.rule-gold {
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin: 13px 0 10px;
}

.region {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 8px;
}

/* Product row: bottle card + quick facts */
.section--product {
  padding-bottom: 0;
}

.label__product-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  gap: 10px;
}

.label__product-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 12px;
  min-width: 0;
}

.label__product-img {
  max-height: 220px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Quick facts */
.facts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.facts--solo {
  grid-column: 1 / -1;
  flex-direction: row;
}

.facts--solo .fact {
  flex: 1;
}

.fact {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 12px 8px;
  text-align: center;
  min-width: 0;
}

.fact__k {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 5px;
}

.fact__v {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--wine-dark);
}

.fact__v small { font-size: 13px; font-weight: 400; }

.fact__v--accent { color: var(--wine); }

/* Section shell */
.section {
  padding: var(--sp-section) max(var(--pad-x), calc((100% - var(--content)) / 2)) 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 16px;
}

/* Grapes — name rows with a trailing percentage pill; no-% varieties are name-only peers */
.grapes { display: flex; flex-direction: column; }

.grape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--page-dark);
}

.grape:last-child { border-bottom: 0; }

.grape__name { font-size: 16px; color: var(--ink); line-height: 1.3; }

.grape__pct {
  flex: none;
  min-width: 56px;
  text-align: center;
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Ingredients */
.ingredients__prose {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  text-transform: lowercase;
}

.ingredients__prose::first-letter { text-transform: uppercase; }

.ingredients__prose b {
  font-weight: 700;
  color: var(--allergen);
}

/* Editorial heading — small rounded rose kicker bar above a large serif title (matches committed) */
.sec-kicker {
  width: 48px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--rose);
}

.sec-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--wine-dark);
}

/* Nutrition — committed-style card (shared heading + rose-pale energy pill) */
.nutrition-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: clamp(18px, 4vw, 28px);
}

.nutrition-per100 { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; }

.nutrition-table { width: 100%; }

.nutrition-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--page-dark);
  font-size: 15px;
  line-height: 1.4;
}

.nutrition-row:last-child { border-bottom: 0; }

.nutrition-row strong { text-align: right; font-weight: 600; white-space: nowrap; color: var(--wine-dark); }

.nutrition-row.energy {
  margin-bottom: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-pale);
  color: var(--wine);
  font-weight: 700;
}

.nutrition-row.energy strong { color: var(--wine); }

.nutrition-row.sub-row {
  padding-top: 4px;
  padding-bottom: 11px;
  color: var(--ink-2);
  font-size: 13px;
}

/* Indent the "of which…" labels so they read as sub-items */
.nutrition-row.sub-row > span { padding-left: 2em; }

/* Recycling */
.recycle { display: flex; flex-direction: column; gap: 12px; }

.recycle__group {
  padding: 16px;
  margin-bottom: 0;
}

.recycle__group-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--wine-dark);
  margin: 0 0 12px;
}

.recycle__items {
  display: flex;
  flex-direction: column;
}

.recycle__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.recycle__row:first-child { padding-top: 0; }

.recycle__row:last-child { padding-bottom: 0; }

/* Hairline between materials of the same category when there is more than one */
.recycle__row + .recycle__row { border-top: 1px solid var(--page-dark); }

.recycle__ico {
  flex: none;
  height: 3.5rem;
  width: auto;
  max-width: 3.5rem;
  object-fit: contain;
  margin: 0 8px;
}

.recycle__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.recycle__mat {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.recycle__code {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: normal;
}

.recycle__met {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

.recycle__note {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  font-style: italic;
  margin: 12px 0 0;
}

/* Not-found message */
.label__message {
  text-align: center;
  padding: 48px max(var(--pad-x), calc((100% - var(--content)) / 2));
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--wine-dark);
}
