/* ==========================================================
   Čokolády Carla — štýly (grafika „Noircacao“)
   Bootstrap 5.3 rieši mriežku a collapse menu, všetko vizuálne je tu.
   Farby sú v premenných — tmavá téma je predvolená,
   svetlá sa zapína atribútom data-theme="light" na <html>.
   ========================================================== */

/* ---------- Premenné: tmavá téma (predvolená) ---------- */
:root,
[data-theme="dark"] {
  --bg: #0F0B09;
  --s1: #1A1411;          /* povrch kariet */
  --s2: #251C17;          /* povrch pri hoveri, polia */
  --photo: #0F0B09;       /* okraj gradientu za fotkou */
  --line: #3A2D25;
  --text: #F3E9DC;
  --muted: #B5A391;
  --accent: #E8462B;
  --accent-ink: #E8462B;  /* akcent v texte */
  --on-accent: #0F0B09;
  --gilt: #C9A45C;
  --inv-bg: #F3E9DC;      /* invertovaná sekcia „príbeh“ */
  --inv-text: #0F0B09;
  --inv-accent: #C8361C;
  --visible-light: none;
  --visible-dark: block;
}

/* ---------- Premenné: svetlá téma ---------- */
[data-theme="light"] {
  --bg: #F3E9DC;
  --s1: #EADDCB;
  --s2: #E0CFB8;
  --photo: #C9B49A;
  --line: #D2BFA6;
  --text: #5a2916;
  --muted: #5E4C3E;
  --accent: #E8462B;
  --accent-ink: #C8361C;
  --on-accent: #0F0B09;
  --gilt: #8A6A2A;
  --inv-bg: #0F0B09;
  --inv-text: #F3E9DC;
  --inv-accent: #E8462B;
  --visible-light: block;
  --visible-dark: none;
}

/* ---------- Spoločné konštanty ---------- */
:root {
  --font-serif: 'Libre Bodoni', serif;
  --font-sans: 'Jost', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --gutter: clamp(24px, 4.4vw, 64px);   /* bočný okraj sekcií */
  --container: 1440px;
  --cut: 18px;                          /* zrezaný roh kariet */
  --cut-small: 12px;                    /* zrezaný roh tlačidiel */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Základ ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 400ms var(--ease), color 400ms var(--ease);
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: inherit;
  margin: 0;
}

em {
  font-style: italic;
}

img {
  max-width: 100%;
}

/* ---------- Typografické pomocné triedy ---------- */
.label {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
}

.label--gilt {
  color: var(--gilt);
}

.label--muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
}

.muted {
  color: var(--muted);
}

.accent-ink {
  color: var(--accent-ink);
}

.link-plain {
  text-decoration: none;
}

/* Kontajner a odsadenie sekcií */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 8vw, 112px) var(--gutter);
  border-top: 1px solid var(--line);
}

/* ---------- Tlačidlá ---------- */
.btn-primary-cut,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary-cut {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut-small)) 0, 100% var(--cut-small), 100% 100%, 0 100%);
  transition: filter 160ms;
}

.btn-primary-cut:hover {
  color: var(--on-accent);
  filter: brightness(1.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  transition: opacity 160ms;
}

.btn-ghost:hover {
  color: var(--text);
  opacity: .7;
}

.btn-small {
  height: 40px;
  padding: 0 18px;
}

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter);
  transition: background 400ms var(--ease);
}

.brand {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.main-nav {
  gap: 12px 32px;
}

.main-nav a {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
}

.main-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 8px;
}

.header-tools {
  gap: 24px;
}

.theme-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
}

.theme-switch button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  color: var(--muted);
  transition: all 200ms;
}

.theme-switch button.is-active {
  background: var(--text);
  color: var(--bg);
}

.cart-link {
  text-decoration: none;
  white-space: nowrap;
}

/* Hamburger pre mobil */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
}

/* ---------- Fotky produktov ---------- */
.photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(ellipse at 45% 40%, var(--s2), var(--photo) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: background 400ms var(--ease);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35));
  transition: transform 400ms var(--ease);
max-height: 300px;  
}
.product-detail .photo img {

      max-height: 500px;  
}

.photo-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.photo--empty {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px !important;
  white-space: nowrap;
}

.cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* ---------- Úvod (hero) ---------- */
.hero {
  padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(96px, 10vw, 160px);
}

.hero-side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  white-space: nowrap;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(60px, 8.6vw, 128px);
  line-height: .92;
  letter-spacing: -.02em;
  margin: 0 -14% 48px 0;
  text-wrap: balance;
}

.hero-lead {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
  max-width: 32ch;
  margin: 0 0 48px;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-photo {
  margin-right: calc(-1 * var(--gutter));
}

.hero-photo .photo {
  background: radial-gradient(ellipse at 40% 35%, var(--s2), var(--photo) 75%);
  padding: 12% 14% 16%;
}

/* ---------- Nadpisy sekcií ---------- */
.section-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.015em;
}

.section-title--sm {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.01em;
}

/* ---------- Karta produktu ---------- */
.product-card {
  display: block;
  height: 100%;
  background: var(--s1);
  color: var(--text);
  text-decoration: none;
  transition: background 300ms;
}

.product-card:hover {
  background: var(--s2);
  color: var(--text);
}

.product-card:hover .photo img {
  transform: translateY(-6px) rotate(-2deg);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-data {
  color: var(--muted);
}

.product-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
}

.product-name--sm {
  font-size: 24px;
}

.product-notes {
  font-size: 14px;
  color: var(--muted);
}

.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Odsadenie prostrednej karty na úvode (stupňovanie) */
@media (min-width: 992px) {
  .stagger {
    margin-top: 96px;
  }
}

/* ---------- Kategórie (úvod) ---------- */
.category-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.category-tile .photo {
  aspect-ratio: 1 / 1;
  padding: 18%;
}

.category-tile:hover {
  color: var(--text);
}

.category-tile:hover .photo img {
  transform: translateY(-6px) rotate(-2deg);
}

.category-name {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.15;
}

.category-tile:hover .category-name {
  color: var(--accent-ink);
}

/* ---------- Proces ---------- */
.step {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--gilt);
}

.step-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
}

.step-body {
  display: block;
  font-size: 15px;
  color: var(--muted);
}

.step-meta {
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Príbeh (invertovaná sekcia) ---------- */
.story {
  background: var(--inv-bg);
  color: var(--inv-text);
  padding: clamp(96px, 11vw, 160px) var(--gutter);
  transition: background 400ms var(--ease), color 400ms var(--ease);
}

.story-quote {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 48px;
  text-wrap: balance;
}

.story-quote em {
  color: var(--inv-accent);
}

.story a:hover {
  color: var(--inv-accent);
}

/* ---------- Newsletter ---------- */
.newsletter-form {
  display: flex;
  align-items: stretch;
}

.newsletter-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px 16px;
  background: var(--s2);
  border-bottom: 1px solid var(--line);
}

.newsletter-field:focus-within {
  border-color: var(--accent);
}

.newsletter-field input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
}

.newsletter-field input::placeholder {
  color: var(--muted);
  opacity: .7;
}

.newsletter-form .btn-primary-cut {
  height: auto;
  padding: 0 28px;
}

/* ---------- Pätička ---------- */
.site-footer {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  gap: 16px 32px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ==========================================================
   E-shop (shop.html)
   ========================================================== */

.shop-intro {
  padding: clamp(40px, 5vw, 72px) var(--gutter) 40px;
}

.breadcrumbs {
  color: var(--muted);
  margin-bottom: 32px;
}

.breadcrumbs a {
  text-decoration: none;
}

.shop-title {
  font-size: clamp(52px, 7vw, 104px);
  line-height: .95;
  letter-spacing: -.02em;
}

.shop-lead {
  max-width: 44ch;
  margin: 24px 0 0;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

/* Záložky kategórií */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 var(--gutter) 40px;
}

.category-tabs a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 200ms;
}

.category-tabs a:hover {
  color: var(--text);
  border-color: var(--text);
}

.category-tabs a.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.category-tabs .count {
  margin-left: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0;
  opacity: .7;
}

/* Lišta nad mriežkou */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort select {
  height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background-color: var(--s1);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.shop-body {
  padding: 0 var(--gutter) clamp(96px, 10vw, 160px);
}

/* Filtre */
.filters {
  position: sticky;
  top: 120px;
}

.filter-group {
  border: 0;
  margin: 0 0 36px;
  padding: 0;
}

.filter-group legend {
  float: none;
  width: auto;
  margin: 0 0 16px;
  padding: 0;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gilt);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 16px;
  cursor: pointer;
}

.filter-option input {
  appearance: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 160ms;
}

.filter-option input:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg);
}

.filter-option .mono {
  margin-left: auto;
  color: var(--muted);
}

/* Tlačidlo „Do košíka“ v karte e-shopu */
.add-to-cart {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 160ms;
}

.add-to-cart:hover,
.product-card:hover .add-to-cart {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.price {
  font-size: 18px;
}

.badge-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 5px 10px;
  background: var(--bg);
  color: var(--gilt);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Stránkovanie */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-mono);
}

.pager a.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---------- Responzívne úpravy ---------- */
@media (max-width: 991.98px) {
  .hero-title {
    margin-right: 0;
  }

  .hero-photo {
    margin-right: 0;
  }

  .filters {
    position: static;
  }

  .step {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .step-meta {
    grid-column: 2;
  }
}

@media (max-width: 575.98px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn-primary-cut {
    height: 56px;
  }

  .header-tools {
    gap: 16px;
  }
}

/* ==========================================================
   Spoločné prvky formulárov a košíka
   ========================================================== */

/* Množstvo (− 1 +) */
.qty {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  border: 1px solid var(--line);
}

.qty button {
  width: 36px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms;
}

.qty button:hover {
  background: var(--s2);
}

.qty input {
  width: 40px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty input:focus {
  outline: 0;
  background: var(--s2);
}

/* Textové pole (štítok vo vnútri poľa, ako newsletter) */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 10px 16px;
  background: var(--s1);
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms, background 160ms;
}

.field:focus-within {
  border-color: var(--accent);
  background: var(--s2);
}

.field > span {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
}

.field select {
  appearance: none;
  cursor: pointer;
}

.field select option {
  background: var(--s1);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: .6;
}

.req {
  color: var(--accent-ink);
}

/* Voľba dopravy / platby (rádio ako karta) */
.choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 160ms, background 160ms;
}

.choice:hover {
  background: var(--s1);
}

.choice:has(input:checked) {
  border-color: var(--text);
  background: var(--s1);
}

.choice input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
  cursor: pointer;
  transition: all 160ms;
}

.choice input:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg);
}

.choice-title {
  display: block;
  font-size: 17px;
}

.choice-desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.choice-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* Zaškrtávacie políčko (súhlasy) — rovnaké ako filtre */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  appearance: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  border: 1px solid var(--muted);
  cursor: pointer;
  transition: all 160ms;
}

.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg);
}

.check a {
  color: var(--text);
}

/* Krížik na odstránenie / zavretie */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 160ms;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ==========================================================
   Modálne okno „Pridané do košíka“ (Bootstrap modal)
   ========================================================== */

.modal-backdrop {
  background: #000;
}

.modal-backdrop.show {
  opacity: .72;
}

.cart-modal .modal-dialog {
  max-width: 760px;
}

.cart-modal .modal-content {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.cart-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-modal-head .label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  background: var(--accent);
  vertical-align: 1px;
}

.cart-modal-body {
  padding: 24px;
}

.cart-modal .photo {
  padding: 0%;
}

.cart-modal-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
}

.cart-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cart-modal-total {
  font-family: var(--font-serif);
  font-size: 30px;
}

.cart-modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--s1);
}

.cart-modal-foot .btn-ghost,
.cart-modal-foot .btn-primary-cut {
  height: 48px;
}

/* ==========================================================
   Košík (cart.html)
   ========================================================== */

.checkout-block {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.checkout-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.block-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
}

.block-number {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--gilt);
}

.block-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

/* Položka v košíku */
.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto auto 40px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:first-of-type {
  border-top: 1px solid var(--line);
}

.cart-item .photo {
  padding: 0px;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  text-decoration: none;
}

.cart-item-unit {
  color: var(--muted);
}

.line-total {
  min-width: 80px;
  text-align: right;
  font-size: 18px;
}

.cart-empty {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.cart-continue {
  margin-top: 24px;
}

/* Súhrn objednávky (pravý stĺpec) */
.summary {
  position: sticky;
  top: 120px;
  background: var(--s1);
  padding: 32px;
}

.summary-title {
  font-size: 32px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.summary-row .mono {
  color: var(--muted);
}

.summary-total {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.summary-total .value {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
}

.coupon {
  display: flex;
  margin: 20px 0 24px;
}

.coupon .field {
  flex: 1;
  background: var(--bg);
}

.coupon .btn-ghost {
  height: auto;
  padding: 0 18px;
  border-color: var(--line);
}

.summary .btn-primary-cut {
  width: 100%;
  height: auto;
  min-height: 56px;
  margin-top: 12px;
  padding: 16px 24px;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

.summary-note {
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 991.98px) {
  .summary {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 12px 16px;
  }

  .cart-item .photo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
  }

  .cart-item > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .cart-item-name {
    font-size: 20px;
  }

  .cart-item .qty {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .cart-item .line-total {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
    min-width: 0;
  }

  .cart-item .icon-btn {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
  }

  .cart-modal-foot > * {
    width: 100%;
  }

  .cart-modal-body {
    padding: 16px 20px;
  }

  .cart-modal .photo {
    aspect-ratio: 16 / 9;
    padding: 0px;
  }

  .cart-modal-name {
    font-size: 26px;
  }

  .cart-modal-row {
    padding: 12px 0;
  }

  .summary {
    padding: 24px;
  }
}


/* ==========================================================
   Poďakovanie za nákup (thanks.html)
   ========================================================== */

/* Štítok so štvorčekom akcentu (stav objednávky) */
.status-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  background: var(--accent);
  vertical-align: 1px;
}

/* Pás so základnými údajmi o objednávke */
.order-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-meta > div {
  padding: 20px 24px 20px 0;
}

.order-meta > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.order-meta .label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.order-meta .value {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
}

/* Tabuľka zakúpených výrobkov */
.order-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.order-table th {
  padding: 0 0 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.order-table td {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.order-table .num {
  padding-left: 16px;
  text-align: right;
  white-space: nowrap;
}

.order-table tbody .num {
  font-family: var(--font-mono);
  font-size: 14px;
}

.order-table tbody .num.line-sum {
  font-family: var(--font-sans);
  font-size: 18px;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 20px;
}

.order-product .photo {
  flex: 0 0 72px;
  width: 72px;
  padding: 8px;
}

.order-product-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
}

.order-table tfoot td {
  padding: 10px 0;
  border-bottom: 0;
}

.order-table tfoot tr:first-child td {
  padding-top: 24px;
}

.order-table tfoot .mono {
  color: var(--muted);
}

.order-table tfoot .total td {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}

.order-table tfoot .total .num {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
}

/* Tabuľka doručovacích údajov */
.details-card {
  background: var(--s1);
  padding: 32px;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.details-table th,
.details-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.details-table tr:last-child th,
.details-table tr:last-child td {
  border-bottom: 0;
}

.details-table th {
  width: 38%;
  padding-right: 16px;
  padding-top: 18px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.details-table td {
  font-size: 16px;
  line-height: 1.5;
}

.details-sub {
  margin: 32px 0 8px;
  font-family: var(--font-serif);
  font-size: 24px;
}

.details-sub:first-child {
  margin-top: 0;
}

/* Platobné údaje pri prevode */
.payment-box {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--gilt);
}

.payment-box .label {
  display: block;
  margin-bottom: 12px;
  color: var(--gilt);
}

.payment-box dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.payment-box dt {
  font-weight: 400;
  color: var(--muted);
}

.payment-box dd {
  margin: 0;
  text-align: right;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

@media (max-width: 767.98px) {
  .order-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-meta > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .order-meta > div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  /* Stĺpec „Cena / ks“ zúžime na nulu — display:none by rozbil colspan v tfoot */
  .order-table .num.col-unit {
    width: 0;
    padding: 0 !important;
    font-size: 0;
    letter-spacing: 0;
    overflow: hidden;
  }
}

@media (max-width: 575.98px) {
  .order-product .photo {
    flex-basis: 56px;
    width: 56px;
  }

  .order-product {
    gap: 12px;
  }

  .order-product-name {
    font-size: 18px;
  }

  .order-table .product-data {
    display: none;
  }

  .order-table .num {
    padding-left: 10px;
  }

  .order-table tfoot .total .num {
    font-size: 28px;
  }

  .details-card {
    padding: 24px;
  }

  .details-table th {
    width: 42%;
  }

  .thanks-actions > * {
    width: 100%;
  }
}



/* ==========================================================
   Detail produktu (product.html)
   ========================================================== */

/* Odkaz na detail v názve produktu (e-shop, košík) */
.product-name a,
.cart-item-name {
  color: inherit;
  text-decoration: none;
}

.product-name a:hover,
a.cart-item-name:hover {
  color: var(--accent-ink);
}

.detail-photo {
  position: sticky;
  top: 120px;
}

.detail-photo .photo {
  padding: 2% 4% 4%;
}

.detail-photo .photo-caption {
  bottom: 18px;
  left: 20px;
}

.detail-title {
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.015em;
  margin: 12px 0 20px;
  text-wrap: balance;
}

.detail-lead {
  max-width: 46ch;
  margin: 0 0 36px;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

/* Cena a nákup */
.buy-box {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-price {
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1;
}

.detail-price-note {
  margin-top: 8px;
  color: var(--muted);
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.buy-row .qty {
  height: 56px;
}

.buy-row .qty button {
  width: 44px;
}

.buy-row .qty input {
  width: 52px;
}

.buy-row .btn-primary-cut {
  flex: 1 1 220px;
}

/* Hlavné tlačidlo detailu: prebije štýl malého .add-to-cart z kariet */
.buy-row .btn-primary-cut.add-to-cart {
  height: 56px;
  padding: 0 32px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
}

.buy-row .btn-primary-cut.add-to-cart:hover {
  background: var(--accent);
  color: var(--on-accent);
  filter: brightness(1.1);
}

.stock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
}

.stock::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gilt);
}

/* Parametre a zloženie */
.detail-section {
  padding-top: 40px;
}

.detail-section-title {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.15;
}

.spec-table th {
  width: 46%;
}

.spec-table td {
  font-family: var(--font-mono);
  font-size: 14px;
  padding-top: 16px;
}

.ingredients {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.ingredients strong {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.allergen-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 2px solid var(--gilt);
  background: var(--s1);
  font-size: 15px;
  color: var(--text);
}

@media (max-width: 991.98px) {
  .detail-photo {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .detail-price {
    font-size: 42px;
  }

  .buy-row .btn-primary-cut {
    flex-basis: 100%;
  }

  .buy-row .qty {
    width: 100%;
  }

  .buy-row .qty input {
    flex: 1;
  }
}
