/* AGIVA Magyarország — Verde Holding Kft. */

:root {
  --bg: #faf8f4;
  --bg-soft: #f2ede4;
  --surface: #ffffff;
  --fg: #17140f;
  --muted: #7c7566;
  --line: #e7e0d3;
  --line-strong: #d8cfbe;
  --accent: #b1502c;
  --accent-dark: #8d3f22;
  --verde: #33512f;
  --verde-soft: #e9efe4;
  --radius-s: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --max: 1200px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --logo-font: "Syne", var(--sans);
  --shadow-sm: 0 1px 2px rgba(23,20,15,0.06);
  --shadow-md: 0 12px 32px -12px rgba(23,20,15,0.22);
  --shadow-lg: 0 24px 60px -20px rgba(23,20,15,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; margin-bottom: 10px; }

p { margin: 0 0 16px; color: #3a352c; }

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
}

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  max-width: none;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Logo (font-based) ---------- */

.logo {
  font-family: var(--logo-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
  line-height: 1;
  display: inline-block;
}
.logo .dot { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,248,244,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand .logo { font-size: 24px; }
.brand .tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  position: relative;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--fg);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.icon-btn svg { width: 19px; height: 19px; }

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge[data-count="0"] { display: none; }

@keyframes badge-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.cart-badge.pop { animation: badge-pop .35s cubic-bezier(.3,1.4,.5,1); }

@keyframes btn-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.add-btn.added { animation: btn-pop .3s ease; }

/* fly-to-cart clone */
.fly-img {
  position: fixed;
  z-index: 500;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .65s cubic-bezier(.5,-0.1,.75,.9), opacity .65s ease;
  will-change: transform, opacity;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease, box-shadow .18s ease;
}
.btn:active { transform: scale(0.97); }

/* hero primary: terracotta with a warm glow so it stands out on the dark photo */
.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 14px 34px -10px rgba(177, 80, 44, 0.65);
}
.btn-primary { background: var(--fg); color: #fff; }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,10,8,0.25) 0%, rgba(12,10,8,0.55) 55%, rgba(10,8,6,0.94) 100%);
}
.hero-content { position: relative; padding: 48px 0; width: 100%; }
.hero .logo { font-size: 34px; color: #fff; margin-bottom: 26px; }
.hero .eyebrow { color: rgba(255,255,255,0.8); }
.hero .eyebrow::before { background: rgba(255,255,255,0.8); }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); color: #fff; max-width: 860px; }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-scroll {
  position: absolute;
  right: 28px;
  bottom: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: rgba(255,255,255,0.5);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.fact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.fact-list .num { font-family: var(--serif); font-size: 27px; color: var(--accent); min-width: 66px; }
.fact-list .label { color: var(--muted); }

/* ---------- Product lines ---------- */

.lines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.line-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
  border: 1px solid var(--line);
}

.line-media { height: 230px; overflow: hidden; background: var(--bg-soft); }
.line-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.line-media.split { display: flex; }
.line-media.split img { width: 50%; height: 100%; object-fit: cover; }

.line-media.pattern {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c1a16 0%, #3d382e 100%);
}
.line-media.pattern .mono {
  font-family: var(--logo-font);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 34px;
  letter-spacing: 0.04em;
  color: #fff;
}

.line-body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.line-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.line-body p { flex: 1; font-size: 15px; }
.line-link {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}
.line-link .arrow { transition: transform .2s ease; }

/* ---------- Shop ---------- */

.shop-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.shop-teaser .btn { flex: none; }
.featured-grid { margin-top: 36px; }
.featured-more { text-align: center; margin-top: 34px; }

.shop-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--verde-soft);
  border: 1px solid #d3e0cb;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 13.5px;
  color: #2c3f29;
  margin-bottom: 30px;
}
.shop-note strong { color: var(--verde); }
.shop-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--verde); }

.price-note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.price-note strong { color: var(--fg); }

.price-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: sticky;
  top: 74px;
  z-index: 20;
  background: var(--bg);
  padding: 14px 0;
}

.price-search { flex: 1; min-width: 220px; position: relative; }
.price-search svg {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted);
}
.price-search input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 16px;
  font-family: var(--sans);
  background: var(--surface);
}
.price-search input:focus { outline: none; border-color: var(--fg); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--fg);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip.active { background: var(--fg); color: #fff; border-color: var(--fg); }

.view-toggle {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  flex: none;
}
.view-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
}
.view-btn svg { width: 16px; height: 16px; }
.view-btn.active { background: var(--fg); color: #fff; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  margin-bottom: 8px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card-media {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.product-card-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card-media .prod-thumb-empty { width: 90px; height: 90px; }
.product-card-body { padding: 16px 18px 6px; flex: 1; display: flex; flex-direction: column; }
.product-card-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.product-card-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-size { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.product-card-price { margin-top: auto; font-weight: 700; font-size: 15px; }
.product-card-actions {
  padding: 14px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-card-actions .add-btn { margin-left: 0; flex: 1; justify-content: center; }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }

table.price-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.price-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 15px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.bulk-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--verde-soft);
  color: var(--verde);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
  white-space: nowrap;
}
.prod-thumb, .prod-thumb-empty { cursor: zoom-in; }
.price-table td.code { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td.cat { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.price-table td.name { min-width: 240px; }
.price-table td.size { color: var(--muted); font-size: 13px; white-space: nowrap; }
.price-table td.action { white-space: nowrap; }

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.qty-stepper button {
  width: 30px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
  transition: color .15s ease;
}
.qty-stepper button:active { color: var(--fg); }
.qty-stepper input {
  width: 36px;
  border: none;
  padding: 0;
  text-align: center;
  font-size: 16px;
  font-family: var(--sans);
  font-weight: 700;
  -moz-appearance: textfield;
  background: transparent;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: #fff;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 8px;
  transition: background .15s ease, transform .1s ease;
}
.add-btn.added { background: var(--verde); border-color: var(--verde); }

.row-actions { display: flex; align-items: center; }

.price-meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
.no-results { padding: 48px 20px; text-align: center; color: var(--muted); }

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,13,10,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 300;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(440px, 100%);
  background: var(--surface);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-head h3 { margin: 0; font-size: 20px; }
.cart-close {
  background: none; border: none; cursor: pointer;
  color: var(--fg); /* iOS Safari would otherwise tint the icon link-blue */
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.cart-items { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 10px 24px; }
.cart-empty { padding: 60px 10px; text-align: center; color: var(--muted); }
.cart-empty svg { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--line-strong); display: block; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-body { flex: 1; min-width: 0; }

.prod-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}
.prod-thumb-empty {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
}
.prod-thumb-empty::after {
  content: "AGIVA";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--logo-font);
  font-weight: 800;
  font-size: 6px;
  letter-spacing: 0.02em;
  color: var(--line-strong);
  text-align: center;
}
.prod-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.prod-cell span { min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.cart-item-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-item-price { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-item-remove {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 12px; text-decoration: underline; padding: 0;
}

.cart-foot { border-top: 1px solid var(--line); padding: 20px 24px calc(26px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; max-height: 60vh; overflow-y: auto; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-size: 15px; }
.cart-subtotal .amount { font-family: var(--serif); font-size: 24px; }

.checkout-form { display: none; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.checkout-form.open { display: flex; }
.checkout-form input, .checkout-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  font-size: 16px;
  font-family: var(--sans);
  width: 100%;
}
.checkout-form textarea { min-height: 64px; resize: vertical; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: none; border-color: var(--fg); }
.field-hint { font-size: 13px; color: #5c5647; line-height: 1.55; margin: -4px 0 4px; }
#checkout-status { margin-top: 12px; }
#checkout-status:empty { display: none; }

.cart-actions { display: flex; flex-direction: column; gap: 12px; }
.cart-secondary-actions { display: flex; gap: 10px; margin-top: 2px; }
.cart-secondary-actions .btn { flex: 1; }

/* sticky mobile cart bar */
.mobile-cart-bar {
  position: fixed;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 150;
  background: rgba(23, 20, 15, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
@keyframes bar-rise {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 720px) {
  .mobile-cart-bar.show { display: flex; animation: bar-rise .35s cubic-bezier(.2,.9,.3,1); }
}
.mobile-cart-bar .l { font-size: 13px; font-weight: 700; }
.mobile-cart-bar .l small { display: block; font-weight: 500; opacity: .7; font-size: 11px; }
.mobile-cart-bar .r { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* ---------- Partner ---------- */

.partner-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--verde);
  color: #eef2ea;
  border-radius: var(--radius-lg);
  padding: 56px;
}
.partner-box h2 { color: #fff; }
.partner-box p { color: rgba(238,242,234,0.85); }
.partner-box .verde-mark {
  font-family: var(--logo-font);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #c9d9bf;
  margin-bottom: 18px;
}
.partner-box .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface); }
.contact-card .role { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.contact-card a.mail { font-size: 18px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.contact-phone { margin: 10px 0 0; font-size: 15px; }
.contact-phone a { text-decoration: none; font-weight: 600; }
.contact-footnote { margin-top: 26px; font-size: 13px; color: var(--muted); }

.legal-box {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  background: var(--bg-soft);
}
.legal-box .role { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.legal-box p:last-child { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- Footer ---------- */

footer.site-footer { border-top: 1px solid var(--line); padding: 44px 0; }
footer.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site-footer .logo { font-size: 18px; opacity: 0.85; }
footer.site-footer .fine { font-size: 12.5px; color: var(--muted); max-width: 640px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .lines-grid { grid-template-columns: 1fr; }
  .partner-box { grid-template-columns: 1fr; padding: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .shop-teaser { flex-direction: column; align-items: flex-start; padding: 32px; }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 30px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  nav.main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
  .section { padding: 68px 0; }
  .price-controls { flex-direction: column; align-items: stretch; position: static; }
  .cart-drawer { width: 100%; }
  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-content { padding: 24px 0 40px; }
  .hero-content > .logo { display: none; }
  .hero h1 { font-size: clamp(31px, 8.6vw, 42px); }
  .hero p.lead { font-size: 16px; margin-top: 12px; }
  .hero-cta { margin-top: 22px; }
  .hero-scroll { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  /* stacked card layout for the product table */
  .table-scroll { overflow-x: visible; }
  table.price-table { min-width: 0; width: 100%; border-collapse: separate; border-spacing: 0 12px; margin-top: -12px; }
  .price-table thead { display: none; }
  .price-table tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 4px 16px;
  }
  .price-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
  }
  .price-table td:last-child { border-bottom: none; }
  .price-table td[data-label]::before {
    content: attr(data-label);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
    flex: none;
  }
  .price-table td.name {
    order: -3;
    font-weight: 700;
    font-size: 15.5px;
    padding-top: 14px;
    border-bottom: 1px dashed var(--line);
  }
  .price-table td.name .prod-thumb,
  .price-table td.name .prod-thumb-empty { width: 60px; height: 60px; }
  .price-table td.code { order: -2; }
  .price-table td.cat { order: -1; }
  .price-table td.size { order: 0; }
  .price-table td.num { order: 1; font-size: 16px; }
  .price-table td.action { order: 2; padding-bottom: 14px; }
  .row-actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  h2 { font-size: 28px; }
  .brand .tag { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card-body { padding: 12px 12px 4px; }
  .product-card-actions { padding: 4px 14px 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .product-card-actions .qty-stepper { align-self: stretch; height: 42px; border-color: var(--line); background: var(--bg-soft); }
  .product-card-actions .qty-stepper input { flex: 1; width: auto; min-width: 0; background: transparent; }
  .product-card-actions .qty-stepper button { width: 48px; font-size: 18px; }
  .product-card-actions .add-btn { height: 46px; font-size: 13.5px; }
}

/* Hover effects only for devices with real pointer hover (avoids sticky/stuck hover state on touch/mobile after a tap) */
@media (hover: hover) and (pointer: fine) {
  nav.main-nav a:hover::after { transform: scaleX(1); }
  .icon-btn:hover { border-color: var(--fg); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(23,20,15,0.45); }
  .btn-primary:hover { background: var(--accent); border-color: var(--accent); }
  .hero .btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 16px 38px -10px rgba(177,80,44,0.75); }
  .btn-ghost:hover { background: var(--fg); color: #fff; }
  .btn-ghost.on-dark:hover { background: #fff; color: var(--fg); }
  .btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
  .line-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
  .line-card:hover .line-media img { transform: scale(1.06); }
  .line-card:hover .line-link .arrow { transform: translateX(4px); }
  .chip:hover:not(.active) { border-color: var(--fg); }
  .price-table tbody tr:hover { background: #fbfaf7; }
  .qty-stepper button:hover { background: var(--line); }
  .add-btn:hover { background: var(--accent); border-color: var(--accent); }
  .cart-close:hover { background: var(--bg-soft); }
  .cart-item-remove:hover { color: var(--accent); }
  .partner-box .btn-ghost:hover { background: #fff; color: var(--verde); }
  .contact-card a.mail:hover { color: var(--accent); }
  .contact-phone a:hover { color: var(--accent); }
  .prod-cell:hover span { color: var(--accent); }
  .product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .view-btn:hover:not(.active) { color: var(--fg); }
  .lang-switch:hover { border-color: var(--fg); }
}

/* ---------- Image lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10,9,7,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lb-fade .2s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox img {
  max-width: min(90vw, 640px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
  cursor: default;
}
.lightbox.open img { animation: lb-zoom .25s cubic-bezier(.2,.9,.3,1); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Product detail page ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 56px;
  align-items: start;
}
.pdp-image {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-image img { width: 100%; height: auto; max-width: 340px; object-fit: contain; border: none; border-radius: 0; background: transparent; padding: 0; }
.pdp-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.pdp-meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pdp-tag {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}
.pdp-price { font-family: var(--serif); font-size: 34px; margin-bottom: 18px; }
.pdp-buy { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; margin-bottom: 26px; }
.pdp-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.pdp-back { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--fg); }

.pdp-variants { margin: 4px 0 20px; }
.pdp-variants-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.pdp-variant { text-decoration: none; }

.related-block { margin-top: 72px; }
.related-title {
  font-size: 24px;
  margin-bottom: 26px;
}
.related-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.related-grid .product-card-body { padding-bottom: 18px; }

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .pdp-image img { max-width: 260px; }
  .related-block { margin-top: 48px; }
}

/* ---------------- Back to top ---------------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--fg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 150;
  box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 720px) {
  .back-to-top { right: 14px; bottom: 88px; width: 44px; height: 44px; }
}

/* ---------------- Floating category bar (mobile) ---------------- */
.chip-bar {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  z-index: 140;
  background: rgba(250,248,244,0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  transition: transform .25s ease;
  display: none;
}
.chip-bar.show { transform: none; }
.chip-bar-inner {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 16px 12px;
}
.chip-bar-inner::-webkit-scrollbar { display: none; }
.chip-bar .chip { flex: 0 0 auto; }
@media (max-width: 720px) {
  .chip-bar { display: block; }
}

/* ---------------- Blog ---------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card .post-kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0; }
.post-card h2 { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin: 0; }
.post-card p.excerpt { color: var(--muted); margin: 0; font-size: 15px; }
.post-card .post-meta { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--muted); }
.article-head { max-width: 760px; }
.article-head h1 { font-size: clamp(30px, 4.6vw, 46px); }
.article-body { max-width: 760px; font-size: 17px; }
.article-body h2 { font-family: var(--serif); font-size: 27px; margin: 42px 0 12px; }
.article-body h3 { font-size: 19px; margin: 30px 0 8px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body p a, .article-body li a { color: var(--accent); font-weight: 600; }
.article-cta .btn { color: #fff; }
.article-products { margin: 34px 0; }
.article-products .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.product-card { position: relative; }
.article-cta {
  margin: 44px 0 8px; padding: 30px;
  background: var(--fg); color: #fff;
  border-radius: var(--radius-lg);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.article-cta h2, .article-cta h3 { color: #fff; margin: 0 0 6px; font-family: var(--serif); font-size: 24px; }
.article-cta p { margin: 0; color: rgba(255,255,255,0.8); max-width: 480px; }
.article-cta .btn-accent { border-color: var(--accent); }
.post-date { color: var(--muted); font-size: 14px; margin-bottom: 26px; display: block; }
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

/* ---------------- Global header search ---------------- */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(23,20,15,0.35);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
  z-index: 210;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 220;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 20px 0 22px;
  transform: translateY(-105%);
  transition: transform .25s ease;
}
.search-panel.open { transform: none; }
.search-panel .price-search { max-width: 640px; margin: 0 auto; }
.search-results { max-width: 640px; margin: 0 auto; }
.search-results:not(:empty) { margin-top: 12px; max-height: min(56vh, 460px); overflow-y: auto; }
.search-hit {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 12px; border-radius: var(--radius);
  text-decoration: none;
}
.search-hit .prod-thumb, .search-hit .prod-thumb-empty { width: 46px; height: 46px; flex: 0 0 46px; }
.search-hit-name { flex: 1; font-weight: 600; font-size: 14.5px; line-height: 1.3; display: flex; flex-direction: column; min-width: 0; }
.search-hit-name small { color: var(--muted); font-weight: 500; font-size: 12px; }
.search-hit-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.search-all {
  display: block; text-align: center;
  padding: 13px; margin-top: 6px;
  font-weight: 700; font-size: 14px;
  color: var(--accent); text-decoration: none;
  border-top: 1px solid var(--line);
}
.search-empty { color: var(--muted); padding: 12px; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .search-hit:hover { background: var(--bg-soft); }
  .search-all:hover { text-decoration: underline; }
}

/* ---------------- Account panel ---------------- */
.account-panel {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 220;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 26px 0 30px;
  transform: translateY(-105%);
  transition: transform .25s ease;
}
.account-panel.open { transform: none; }
.account-panel .ac-inner { max-width: 420px; margin: 0 auto; }
.ac-title { font-family: var(--serif); font-size: 24px; margin: 0 0 10px; }
.ac-note { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.ac-msg { background: var(--verde-soft); color: var(--verde); border: 1px solid #cfe0c4;
  padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 0 0 12px; }
.ac-msg.err { background: #f8e7e7; color: #8c2222; border-color: #e3b5b5; }
.account-panel form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.account-panel input, .account-panel select {
  font: inherit; font-size: 16px;
  padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface); color: var(--fg);
}
.account-panel input:focus, .account-panel select:focus { outline: none; border-color: var(--fg); }
.ac-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: -4px; }
.ac-switch { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ac-tier { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: var(--bg-soft); color: var(--fg); }
.ac-tier.pro { background: var(--verde-soft); color: var(--verde); }
.ac-tier.wholesale { background: #f6e0e8; color: #8c2247; }
.header-account-btn .ac-dot {
  position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); display: none;
}
.header-account-btn.logged-in .ac-dot { display: block; background: var(--muted); }
.header-account-btn.tier-active .ac-dot { background: var(--verde); }
@media (hover: hover) and (pointer: fine) { .ac-switch:hover { text-decoration: underline; } }

/* account button: labeled pill on desktop; hidden on mobile, where the
   nav menu's login entry takes over */
.header-account-btn { width: auto; padding: 0 16px 0 13px; gap: 7px; border-radius: 999px; }
.header-account-btn .ac-btn-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 860px) {
  .header-account-btn { display: none; }
}
/* ...and the nav menu's login entry only exists where the header button doesn't */
@media (min-width: 861px) {
  nav.main-nav .nav-account-link { display: none; }
}


/* ---------- Account page (/fiok/) ---------- */
.account-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 30px; max-width: 560px; box-shadow: var(--shadow-sm);
}
.account-details { display: grid; grid-template-columns: auto 1fr; gap: 7px 22px; margin: 4px 0 18px; }
.account-details dt { color: var(--muted); font-size: 13.5px; }
.account-details dd { margin: 0; font-weight: 600; font-size: 14.5px; word-break: break-word; }
@media (max-width: 560px) {
  .account-card { padding: 20px; }
  .account-details { grid-template-columns: 1fr; gap: 2px; }
  .account-details dd { margin-bottom: 10px; }
}


/* ---------- Order history (account page) ---------- */
.account-orders { margin-top: 40px; }
.account-orders-title { margin-bottom: 14px; }
.order-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px; max-width: 680px;
}
.order-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.order-sum { margin-left: auto; font-weight: 800; white-space: nowrap; }
.order-status { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-soft); color: var(--muted); }
.order-status.st-paid, .order-status.st-fulfilled { background: var(--verde-soft); color: var(--verde); }
.order-status.st-cancelled { background: #f6e0e0; color: #8c2247; }
.order-items { margin-top: 8px; font-size: 13.5px; line-height: 1.7; }
.order-items .mutedtx { color: var(--muted); }
.account-flash {
  background: var(--verde-soft); border: 1px solid #cfe0c4; color: var(--verde);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; max-width: 560px; font-weight: 600;
}
.account-flash.err { background: #f6e0e0; border-color: #e3b5b5; color: #8c2247; }


/* ---------- Cart page (/kosar/) ---------- */
.cart-drawer.inline {
  position: static; transform: none; transition: none; width: 100%; max-width: 760px;
  height: auto; max-height: none; box-shadow: none; border: 1px solid var(--line);
  border-radius: var(--radius-lg); visibility: visible; opacity: 1; pointer-events: auto;
}
.cart-drawer.inline .cart-items { max-height: none; overflow: visible; }
.cart-drawer.inline .cart-foot { max-height: none; overflow: visible; }
body.on-cart-page .mobile-cart-bar { display: none; }
.cart-page-link { margin-left: auto; margin-right: 12px; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.cart-empty-cta { max-width: 620px; margin-top: 26px; }
.cart-empty-cta h3 { margin-bottom: 8px; }


/* ---------- Button loading spinner ---------- */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  top: calc(50% - 9px); left: calc(50% - 9px);
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
.btn-ghost.loading::after { border-color: rgba(0,0,0,0.2); border-top-color: var(--fg); }
@keyframes btn-spin { to { transform: rotate(360deg); } }


/* richer order status colors + locked checkout field */
.order-status.st-new { background: #fff3d6; color: #8a6d1a; }
.order-status.st-pending_payment { background: #efeae0; color: #7c7566; }
.order-status.st-fulfilled { background: #dbe9f6; color: #1f4e79; }
.checkout-form input.locked { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }


/* cart page: two columns on wide desktops (items left, summary right) */
@media (min-width: 980px) {
  .cart-drawer.inline { max-width: 1080px; display: grid; grid-template-columns: 1.4fr 1fr; }
  .cart-drawer.inline .cart-head { grid-column: 1 / -1; }
  .cart-drawer.inline .cart-items { grid-column: 1; border-right: 1px solid var(--line); }
  .cart-drawer.inline .cart-foot { grid-column: 2; align-self: start; position: sticky; top: 96px; border-top: 0; }
}


/* address autocomplete dropdown */
.addr-wrap { position: relative; }
.addr-wrap input { width: 100%; }
.addr-suggest {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 400;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.addr-item {
  display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0;
  border-bottom: 1px solid var(--line); font: inherit; font-size: 14px; cursor: pointer; color: var(--fg);
}
.addr-item:last-child { border-bottom: 0; }
.addr-item:hover { background: var(--bg-soft); }


/* CTA button rows (szakma section): tidy wrap on desktop, stacked full-width on mobile */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
}


/* ---------- Header account controls ---------- */
.header-account { display: flex; align-items: center; gap: 8px; }
.btn-hdr {
  height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-hdr.ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg); }
.btn-hdr.ghost:hover { border-color: var(--fg); }
.btn-hdr.solid { background: var(--fg); border: 1px solid var(--fg); color: #fff; }
.btn-hdr.solid:hover { background: var(--accent); border-color: var(--accent); }
.hdr-account-wrap { position: relative; }
.header-account-btn .chev { width: 13px; height: 13px; margin-left: -1px; opacity: .6; }
.hdr-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 6px; z-index: 400;
}
.hdr-menu.open { display: block; }
.hdr-menu a, .hdr-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--fg);
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.hdr-menu a:hover, .hdr-menu button:hover { background: var(--bg-soft); }
.hdr-menu .danger { color: #8c2247; }
@media (max-width: 860px) { .header-account { display: none; } }


/* tier upgrade request on the profile card */
.ac-upgrade { border-top: 1px solid var(--line); margin: 4px 0 16px; padding-top: 14px; }
.ac-upgrade form { display: grid; gap: 8px; max-width: 360px; }
.ac-upgrade input, .ac-upgrade select {
  font: inherit; font-size: 14.5px; padding: 11px 14px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface); width: 100%;
}
.ac-upgrade .btn { justify-self: start; }


/* order card action row */
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.order-actions:empty { display: none; }


/* account self-deletion */
.ac-delete { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.ac-delete > a { font-size: 13px; color: #8c2247; font-weight: 700; }
.ac-delete form { display: grid; gap: 8px; max-width: 320px; margin-top: 10px; }
.ac-delete input {
  font: inherit; font-size: 14.5px; padding: 11px 14px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface); width: 100%;
}
.ac-delete .btn.del { color: #8c2247; border-color: #e3b5b5; justify-self: start; }


/* order success panel (drawer + cart page) */
.order-success { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 36px 10px 22px; }
.os-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--verde-soft); color: var(--verde);
  font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  animation: os-pop .55s cubic-bezier(.3, 1.4, .5, 1);
}
.order-success h3 { margin: 0; }
.order-success p { color: var(--muted); margin: 0 0 6px; max-width: 420px; }
.order-success .btn { width: 100%; max-width: 340px; }
@keyframes os-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }


/* ---------- Category landing guide + FAQ ---------- */
.cat-guide .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.cat-guide-body h2, .cat-faq h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 16px; }
.cat-guide-body p { margin: 0 0 14px; }
.cat-faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 0 16px; margin-bottom: 10px;
}
.cat-faq-item summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.cat-faq-item summary::-webkit-details-marker { display: none; }
.cat-faq-item summary::after { content: "+"; font-size: 20px; color: var(--accent); font-weight: 400; }
.cat-faq-item[open] summary::after { content: "−"; }
.cat-faq-item p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 820px) { .cat-guide .wrap { grid-template-columns: 1fr; gap: 32px; } }
