/* Fazekasműhely Korong — Maker workshop style */

:root {
  --ink: #1c2230;
  --navy: #2b3a55;
  --navy-light: #3d5176;
  --paper: #f5efe3;
  --paper-dark: #ece3d2;
  --sand: #e3d4b4;
  --sand-dark: #cdb98b;
  --coral: #e2714f;
  --coral-dark: #c25a3b;
  --wood: #8a5a3b;
  --line: rgba(28, 34, 48, 0.16);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 4px;
  --shadow-1: 0 1px 2px rgba(28,34,48,.08), 0 8px 20px -10px rgba(28,34,48,.25);
  --shadow-2: 0 2px 4px rgba(28,34,48,.1), 0 20px 40px -20px rgba(28,34,48,.35);
}

html, body { overflow-x: clip; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.1;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-dark);
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--coral-dark);
  display: inline-block;
}

/* wood-grain + pegboard texture backdrop */
.texture-grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  mix-blend-mode: multiply;
}
.texture-pegboard {
  background-image: radial-gradient(circle, rgba(28,34,48,.07) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6em 1em;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--ink);
}
.brand svg { width: 42px; height: 42px; flex-shrink: 0; }
.brand .wordmark { font-size: 1.15rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand .wordmark small { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-dark); font-weight: 400; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--coral-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
}
.cart-link svg { width: 20px; height: 20px; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  padding: 0 4px;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
@media (prefers-reduced-motion: reduce) { .cart-count.bump { animation: none; } }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 86vw);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
    gap: 0;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 6px; width: 100%; }
  .main-nav a { color: #f5efe3; display: block; padding: 10px 0; }
  .main-nav a::after { background: var(--coral); }
  .menu-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .96rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  transition: color .25s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--ink);
  z-index: -1;
  transition: left .28s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: #f5efe3; }
.btn-primary {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.btn-primary::before { background: var(--coral-dark); }
.btn-primary:hover, .btn-primary:focus-visible { color: #fff; }
.btn-ghost-dark {
  border-color: #f5efe3;
  color: #f5efe3;
}
.btn-ghost-dark::before { background: #f5efe3; }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  letter-spacing: -.01em;
}
.hero-lead { font-size: 1.15rem; max-width: 36ch; color: #3a3f4d; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.hero-art { width: 100%; height: auto; }
.hero-art .draw-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.8s ease forwards;
}
@media (prefers-reduced-motion: reduce) { .hero-art .draw-line { animation: none; stroke-dashoffset: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Home composition: sticky left / scroll right ---------- */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
  padding: 24px 0 10px;
}
.home-split .narrative {
  position: sticky;
  top: 96px;
  padding-right: 8px;
}
.home-split .narrative h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.home-split .scroller { display: flex; flex-direction: column; gap: 64px; }
@media (max-width: 960px) {
  .home-split { grid-template-columns: 1fr; }
  .home-split .narrative { position: static; top: auto; }
}

.section { padding: 64px 0; position: relative; }
.section-tight { padding: 32px 0; }

.divider {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  color: var(--sand-dark);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0% 0);
}
.reveal.js-hidden {
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(0 0 100% 0);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1), clip-path .6s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0% 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.js-hidden { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* ---------- Cards ---------- */
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.card .thumb { overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.07); }
.card-body { padding: 18px 18px 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: .3em; }
.card-price { font-family: var(--font-mono); font-weight: 700; color: var(--navy); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

/* horizontal scroll-snap strip on mobile */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
@media (max-width: 720px) {
  .strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .strip .card { min-width: 72vw; scroll-snap-align: start; }
}

/* ---------- Signature feature: Mázkeverő ---------- */
.mixer {
  background: var(--ink);
  color: #f5efe3;
  border-radius: 10px;
  padding: 40px clamp(20px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.mixer h2, .mixer .eyebrow { color: #f5efe3; }
.mixer .eyebrow { color: var(--sand); }
.mixer .eyebrow::before { background: var(--sand); }
.mixer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
  margin-top: 24px;
}
.mixer-preview {
  background: rgba(245,239,227,.06);
  border: 1px solid rgba(245,239,227,.2);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.mixer-preview svg { width: 160px; height: 200px; }
.mixer-shape-picker { display: flex; gap: 10px; }
.mixer-shape-picker button {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(245,239,227,.4);
  background: transparent;
  color: #f5efe3;
  cursor: pointer;
}
.mixer-shape-picker button[aria-pressed="true"] { border-color: var(--coral); background: rgba(226,113,79,.2); }
.mixer-shape-picker svg { width: 20px; height: 24px; }
.glaze-swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.glaze-swatches button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(245,239,227,.5);
  cursor: pointer;
  position: relative;
  min-width: 44px; min-height: 44px;
}
.glaze-swatches button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--coral);
}
.glaze-name { font-family: var(--font-mono); font-size: .9rem; letter-spacing: .04em; }
.mixer-note { font-size: .9rem; color: var(--sand); max-width: 42ch; }
.mixer-saved { display: none; margin-top: 10px; font-weight: 600; }
.mixer-saved.show { display: block; }
@media (max-width: 760px) { .mixer-grid { grid-template-columns: 1fr; } }

.workshop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 640px) { .workshop-grid { grid-template-columns: 1fr; } }

/* ---------- Badge / stamp ---------- */
.badge-seal { width: 120px; height: 120px; color: var(--coral-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d8d2c3;
  padding: 56px 0 28px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.site-footer h4 { color: #f5efe3; font-size: 1rem; margin-bottom: .8em; font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #d8d2c3; }
.site-footer a:hover { color: var(--coral); }
.footer-brand .wordmark { color: #f5efe3; }
.footer-brand p { color: #a7a192; max-width: 32ch; margin-top: 10px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(245,239,227,.3);
  background: rgba(245,239,227,.06);
  color: #f5efe3;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(245,239,227,.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
  color: #a7a192;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  font: inherit;
  color: var(--ink);
  accent-color: var(--coral);
  min-height: 44px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--coral);
  outline-offset: 2px;
}
.field-error { color: var(--coral-dark); font-size: .85rem; min-height: 1.2em; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { padding: 14px 16px; border-radius: var(--radius); margin-top: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #e4ecda; color: #3a4d2a; }
.form-msg.error { background: #f6e0da; color: var(--coral-dark); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: #f5efe3;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--shadow-2);
  z-index: 300;
  display: none;
  gap: 14px;
}
.cookie-banner.show { display: flex; flex-direction: column; }
.cookie-banner p { margin: 0 0 4px; font-size: .92rem; color: #e4ded0; }
.cookie-banner a { color: var(--sand); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Page header (non-home) ---------- */
.page-head {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-dark);
}
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Breadcrumb-ish simple content ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }

/* ---------- Catalog ---------- */
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* ---------- Product page ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-1); }
.product-info .card-price { font-size: 1.5rem; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.qty-row input { width: 70px; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius); min-height: 44px; }
@media (max-width: 760px) { .product-layout { grid-template-columns: 1fr; } }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-item-name { display: flex; align-items: center; gap: 12px; }
.cart-qty { width: 60px; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--radius); text-align: center; min-height: 40px; }
.remove-btn { background: none; border: none; color: var(--coral-dark); cursor: pointer; text-decoration: underline; min-height: 44px; min-width: 44px; }
.cart-summary { display: flex; justify-content: flex-end; }
.cart-summary table { font-size: 1.05rem; }
.cart-summary td { padding: 6px 10px; }
.cart-empty { padding: 40px 0; text-align: center; color: #6b6558; }
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; margin-top: 32px; }
.order-summary { background: var(--paper-dark); border-radius: 8px; padding: 22px; position: sticky; top: 96px; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .order-summary { position: static; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-icon { flex-shrink: 0; width: 20px; height: 20px; transition: transform .25s ease; }
.faq-item[open] summary .q-icon { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; color: #3a3f4d; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 100px 0; }
.error-page svg { width: 200px; height: 160px; margin: 0 auto 20px; }

/* ---------- misc ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.icon-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.icon-row svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--coral-dark); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.continuous-wobble {
  animation: wobble 6s ease-in-out infinite;
}
@keyframes wobble { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .continuous-wobble { animation: none; } }
