/* Keep the footer at the bottom of short pages. */
main { flex: 1; }

/* Footer, legal pages and cart UI — plain CSS so it does not depend on
   Tailwind classes that were never compiled into styles.css. */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}
.site-footer__inner {
  margin: 0 auto;
  max-width: 72rem;
  display: grid;
  gap: 2.5rem;
  padding: 3rem 1.25rem;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.site-footer__brand p {
  margin-top: 0.75rem;
  max-width: 18rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.site-footer__logo {
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.site-footer__logo-accent { color: var(--ice-deep); }
.site-footer__col h2 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
.site-footer__col ul { display: grid; gap: 0.6rem; font-size: 0.875rem; }
.site-footer__col a:hover { color: var(--foreground); }
.site-footer__bottom {
  border-top: 1px solid var(--border);
}
.site-footer__bottom {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  font-size: 0.75rem;
}

/* ---------- legal pages ---------- */
.legal {
  flex: 1;
  background: var(--frost, var(--card));
}
.legal__inner {
  margin: 0 auto;
  max-width: 46rem;
  padding: 3.5rem 1.25rem 5rem;
}
.legal__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-deep);
}
.legal h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--foreground);
}
.legal__updated {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.legal__toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: var(--card);
  font-size: 0.9rem;
}
.legal__toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.legal__toc ul { margin-top: 0.75rem; display: grid; gap: 0.4rem; columns: 2; }
.legal__toc a { color: var(--muted-foreground); }
.legal__toc a:hover { color: var(--foreground); }
.legal section { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.legal h2 {
  font-size: 1.15rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.legal h3 { margin-top: 1.25rem; font-size: 1rem; color: var(--foreground); }
.legal p, .legal li { font-size: 0.95rem; line-height: 1.7; color: var(--muted-foreground); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.75rem; }
.legal ul, .legal ol { margin-top: 0.5rem; padding-left: 1.15rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 0.35rem; }
.legal table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.legal th, .legal td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--card); color: var(--foreground); font-weight: 600; }
.legal td { color: var(--muted-foreground); }
.legal a { color: var(--ice-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal__note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* ---------- cart ---------- */
.cart-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.cart-badge[hidden] { display: none; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 18, 24, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cart-backdrop[data-open="true"] { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  height: 100%;
  width: min(24rem, 100%);
  display: flex;
  flex-direction: column;
  background: var(--background);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-frost);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.cart-drawer[data-open="true"] { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__head h2 { font-size: 1.05rem; color: var(--foreground); }
.cart-close {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--foreground);
}
.cart-close:hover { background: var(--card); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.cart-empty { font-size: 0.9rem; color: var(--muted-foreground); }
.cart-line {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-line:first-child { padding-top: 0; }
.cart-line img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
}
.cart-line__name { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.cart-line__price { margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted-foreground); }
.cart-qty {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.35rem;
}
.cart-qty button {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--foreground);
}
.cart-qty button:hover { background: var(--card); }
.cart-qty span { font-size: 0.8rem; min-width: 1rem; text-align: center; }
.cart-line__remove {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
  align-self: start;
}
.cart-drawer__foot { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}
.cart-vat { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.cart-checkout {
  width: 100%;
  height: 3rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}
.cart-checkout:hover { background: var(--ice-deep); }
.cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; }

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 70;
  transform: translate(-50%, 1rem);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.85rem;
  box-shadow: var(--shadow-frost);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.cart-toast[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); }
