/* Budapest Goods — retail catalog */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Sora:wght@400;500;600&display=swap");

:root {
  --ink: #101820;
  --ink-soft: #3a4a54;
  --paper: #eef2f5;
  --paper-2: #e2e8ee;
  --surface: #f7f9fb;
  --danube: #164a66;
  --danube-deep: #0c2f44;
  --moss: #2f6b5c;
  --line: rgba(16, 24, 32, 0.12);
  --shadow: 0 18px 40px rgba(12, 47, 68, 0.12);
  --radius: 4px;
  --max: 1180px;
  --header-h: 72px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 107, 92, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(22, 74, 102, 0.16), transparent 50%),
    linear-gradient(180deg, #f4f7fa 0%, var(--paper) 40%, #e8eef3 100%);
  min-height: 100vh;
}

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

a {
  color: var(--danube);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 251, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--danube);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--danube);
  color: #fff;
  font-size: 0.7rem;
  display: inline-grid;
  place-items: center;
  animation: pop 0.35s ease;
}

@keyframes pop {
  from {
    transform: scale(0.6);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.28s ease;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4f7fa;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: ken 18s ease-in-out infinite alternate;
}

@keyframes ken {
  to {
    transform: scale(1.1);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 47, 68, 0.88) 0%, rgba(12, 47, 68, 0.55) 48%, rgba(12, 47, 68, 0.25) 100%),
    linear-gradient(to top, rgba(10, 20, 28, 0.75), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  max-width: 36rem;
  animation: rise 0.9s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.04em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(244, 247, 250, 0.9);
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn--primary {
  background: var(--moss);
  color: #fff;
}

.btn--primary:hover {
  background: #25574b;
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--danube-deep);
}

.btn--light:hover {
  background: var(--paper);
  color: var(--danube-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--danube);
  color: var(--danube);
}

.btn--sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section__head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.chip.is-active,
.chip:hover {
  background: var(--danube-deep);
  border-color: var(--danube-deep);
  color: #fff;
}

/* Product grid — interaction tiles, not hero cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.35rem;
}

.product-tile {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-2);
  text-decoration: none;
}

.product-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-tile:hover .product-tile__media img {
  transform: scale(1.05);
}

.stock-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(16, 24, 32, 0.8);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
}

.product-tile__cat {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.product-tile__title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.05rem;
}

.product-tile__title a {
  color: inherit;
  text-decoration: none;
}

.product-tile__title a:hover {
  color: var(--danube);
}

.product-tile__price {
  margin: 0 0 0.65rem;
  font-weight: 600;
}

/* Notice / disclaimer */
.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--moss);
  background: rgba(47, 107, 92, 0.08);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.notice strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* Process strip */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}

.process article h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.process article p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .process {
    grid-template-columns: 1fr;
  }
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: 2.5rem 0 1rem;
}

@media (max-width: 880px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.gallery-main {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-2);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.gallery-thumb {
  border: 2px solid transparent;
  padding: 0;
  background: var(--paper-2);
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--danube);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta__cat {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.product-meta h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.product-meta__price {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.availability::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--moss);
}

.availability.is-out::before {
  background: #a33;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.25rem 0;
}

.qty-input {
  width: 4.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.specs {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.specs li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.specs li span:first-child {
  color: var(--ink-soft);
}

.ship-box {
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.ship-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--ink);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.contact-panel {
  background: var(--danube-deep);
  color: #eef4f8;
  padding: 1.5rem;
}

.contact-panel h2 {
  margin-top: 0;
  color: #fff;
}

.contact-panel a {
  color: #cfe7f5;
}

.contact-panel dl {
  margin: 0;
}

.contact-panel dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-top: 1rem;
}

.contact-panel dd {
  margin: 0.25rem 0 0;
}

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.page-hero {
  padding: 2.5rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 36rem;
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.45);
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.link-btn {
  display: block;
  margin-top: 0.35rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
}

.cart-summary {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.order-msg {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(47, 107, 92, 0.12);
  border-left: 3px solid var(--moss);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--danube-deep);
  color: rgba(238, 244, 248, 0.88);
  padding: 2.75rem 0 1.5rem;
}

.site-footer a {
  color: #cfe7f5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-disclaimers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 2rem 0 1.5rem;
}

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

.disclaimer-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.04);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border: 2px solid #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 420px;
  margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
