/* HungaroSelect — physical goods e-commerce */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --ink: #13251f;
  --ink-soft: #2a4038;
  --muted: #5c6f67;
  --line: #d5ddd8;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0a5550;
  --accent-soft: #d8efe9;
  --warn: #9a3412;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(19, 37, 31, 0.08);
  --font-display: "Sora", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --max: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(15, 118, 110, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(19, 37, 31, 0.05), transparent 50%),
    linear-gradient(180deg, #eef3f0 0%, var(--paper) 28%, #e8eeea 100%);
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}

.logo span {
  color: var(--accent);
}

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

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

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

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--ink);
  color: #fff !important;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-size: 0.8125rem;
}

.cart-link:hover {
  background: var(--accent-dark);
  color: #fff !important;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 37, 31, 0.35) 0%, rgba(19, 37, 31, 0.55) 45%, rgba(19, 37, 31, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3.5rem;
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35em;
  line-height: 1.05;
}

.hero-brand span {
  color: #5eead4;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  margin: 0 0 0.75em;
  max-width: 28rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 26rem;
}

.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;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-lg {
  padding: 1rem 1.6rem;
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
  animation: rise 0.7s ease both;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.4em;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* —— Catalog filters —— */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.search-input {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--surface);
}

.search-input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

/* —— Product grid —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  animation: rise 0.6s ease both;
}

.product-card:hover {
  box-shadow: var(--shadow);
  border-color: #b8c9c1;
  transform: translateY(-3px);
}

.product-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dde5e1;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product-card .category {
  font-size: 0.75rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.product-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

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

.product-card h3 a:hover {
  color: var(--accent);
}

.product-card .excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.stock {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.stock.out {
  color: var(--warn);
}

/* —— Trust / info strip —— */
.info-strip {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 0;
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-strip h3 {
  color: #5eead4;
  font-size: 1rem;
  margin-bottom: 0.4em;
}

.info-strip p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* —— Product page —— */
.product-page {
  padding: 2.5rem 0 4rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.gallery {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dde5e1;
  border: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

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

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery-thumbs button {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #dde5e1;
}

.gallery-thumbs button.is-active,
.gallery-thumbs button:hover {
  border-color: var(--accent);
}

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

.product-info .category {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 0.75rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.product-price-row .price {
  font-size: 1.75rem;
}

.disclaimer-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.925rem;
  color: var(--ink-soft);
}

.specs {
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.specs h2 {
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  margin: 0;
  background: #e8efeb;
  border-bottom: 1px solid var(--line);
}

.specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs th,
.specs td {
  padding: 0.7rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  width: 40%;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(244, 247, 245, 0.6);
}

.specs tr:last-child th,
.specs tr:last-child td {
  border-bottom: none;
}

.delivery-box {
  margin-top: 1.5rem;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.delivery-box h2 {
  font-size: 1rem;
  margin-bottom: 0.5em;
}

.delivery-box ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.delivery-box li {
  margin-bottom: 0.35rem;
}

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

.qty-row label {
  font-size: 0.9rem;
  font-weight: 600;
}

.qty-row input {
  width: 4.5rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
}

/* —— Page content (legal / about) —— */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.4em;
}

.page-hero p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.content-block h2 {
  font-size: 1.25rem;
  margin-top: 1.5em;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  font-size: 1.05rem;
  margin-top: 1.25em;
}

.content-block ul,
.content-block ol {
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.content-block li {
  margin-bottom: 0.4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-item {
  padding: 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5em;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
}

.map-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Cart —— */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.cart-table th {
  background: #e8efeb;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-summary {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 400px;
  margin-left: auto;
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cart-summary .total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.order-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  max-width: 520px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--warn);
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  font-family: var(--font-body);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: var(--shadow);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* —— Footer —— */
.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand span {
  color: #5eead4;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.925rem;
}

.site-footer a:hover {
  color: #5eead4;
}

.footer-plaques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.plaque {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

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

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* —— Cookie bar —— */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  box-shadow: 0 -8px 30px rgba(19, 37, 31, 0.1);
  display: none;
}

.cookie-bar.is-visible {
  display: block;
  animation: rise 0.4s ease both;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* —— Animations —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .gallery {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-plaques {
    grid-template-columns: 1fr 1fr;
  }

  .info-strip-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    gap: 0.75rem;
  }

  .nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-plaques {
    grid-template-columns: 1fr;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .cart-table td {
    border: none;
    padding: 0.35rem 0;
  }

  .hero {
    min-height: 70vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
