/* ── PamutMűhely – Közös stíluslap ── */

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

:root {
  --teal: #2a9d8f;
  --teal-dark: #1f7a6e;
  --teal-light: #4db8aa;
  --cream: #faf8f4;
  --sand: #e8e0d5;
  --dark: #1c1c1c;
  --mid: #555;
  --accent: #e76f51;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42,157,143,0.15);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.08); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -1px;
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--dark); font-weight: 700; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--mid);
  font-size: 14px; font-weight: 500; letter-spacing: .4px;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1.5px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cart {
  cursor: pointer; background: var(--teal); border: none;
  color: #fff; border-radius: 50px;
  padding: 10px 22px; font-size: 14px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.nav-cart:hover { background: var(--teal-dark); transform: translateY(-1px); }
.cart-badge {
  background: var(--accent); color: #fff;
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--cream); border-bottom: 1px solid var(--sand);
  padding: 24px 5% 32px; z-index: 99;
  flex-direction: column; gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--dark); font-size: 17px; font-weight: 500;
  padding: 8px 0; border-bottom: 1px solid var(--sand);
}
.mobile-menu a:last-child { border: none; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(42,157,143,0.3); border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(42,157,143,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--dark);
  padding: 14px 32px; border-radius: 50px; border: 1.5px solid var(--sand);
  text-decoration: none; font-size: 15px; font-weight: 500;
  transition: border-color .2s, color .2s, transform .15s;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ── SECTIONS ── */
.section { padding: 80px 5%; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--dark); margin-bottom: 16px; line-height: 1.15;
}
.section-sub {
  font-size: 16px; color: var(--mid); font-weight: 300;
  max-width: 500px; line-height: 1.7; margin-bottom: 56px;
}

/* ── CART SIDEBAR ── */
.cart-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }
.cart-sidebar {
  position: fixed; top: 0; right: -420px; bottom: 0; width: 420px; z-index: 201;
  background: #fff; box-shadow: -10px 0 50px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  padding: 28px; border-bottom: 1px solid var(--sand);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h2 { font-family: 'Playfair Display', serif; font-size: 22px; }
.cart-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--mid); transition: color .2s; }
.cart-close:hover { color: var(--dark); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--mid); }
.cart-empty-icon { font-size: 48px; margin-bottom: 16px; }
.cart-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--sand); align-items: center;
}
.cart-item-img {
  width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.cart-item-img-placeholder {
  width: 54px; height: 54px; border-radius: 10px;
  background: #f0f0f0; display: flex; align-items: center;
  justify-content: center; font-size: 24px; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.cart-item-price { font-size: 13px; color: var(--teal); font-weight: 500; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--sand); background: #fff;
  cursor: pointer; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.qty-btn:hover { background: var(--sand); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.qty-input {
  width: 42px; height: 28px; border-radius: 6px;
  border: 1px solid var(--sand); background: #fff;
  text-align: center; font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; color: var(--dark);
  outline: none; padding: 0;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-input:focus { border-color: var(--teal); }
.cart-item-remove { background: none; border: none; color: var(--mid); cursor: pointer; font-size: 18px; }
.cart-item-remove:hover { color: var(--accent); }
.cart-footer { padding: 24px 28px; border-top: 1px solid var(--sand); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.cart-total-label { font-size: 15px; color: var(--mid); }
.cart-total-amount { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; }
.checkout-btn {
  width: 100%; background: var(--teal); color: #fff; border: none;
  padding: 16px; border-radius: 14px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background .2s; margin-bottom: 10px;
}
.checkout-btn:hover { background: var(--teal-dark); }
.checkout-email {
  width: 100%; background: transparent; color: var(--dark); border: 1.5px solid var(--sand);
  padding: 14px; border-radius: 14px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: border-color .2s, color .2s;
}
.checkout-email:hover { border-color: var(--teal); color: var(--teal); }
.cart-note { font-size: 12px; color: var(--mid); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ── SZÁLLÍTÁS VÁLASZTÓ ── */
.cart-shipping {
  margin: 0 0 2px;
  padding: 16px 28px 8px;
  border-top: 1px solid var(--sand);
}
.cart-shipping-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--mid); margin-bottom: 10px;
}
.shipping-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; margin-bottom: 6px;
  transition: border-color .15s, background .15s;
  background: rgba(0,0,0,0.02);
}
.shipping-option:hover  { border-color: rgba(42,157,143,.3); background: rgba(42,157,143,.04); }
.shipping-option.selected { border-color: var(--teal); background: rgba(42,157,143,.07); }
.shipping-option input[type=radio] { flex-shrink: 0; }
.shipping-option-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.shipping-option-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.shipping-option-desc { font-size: 11px; color: var(--mid); }
.shipping-option-price { font-size: 13px; font-weight: 700; color: var(--dark); flex-shrink: 0; }

/* ── KOSÁR ÖSSZESÍTŐ ── */
.cart-summary {
  padding: 12px 28px 16px;
  border-top: 1px solid var(--sand);
  background: rgba(0,0,0,0.015);
}
.cart-summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--mid); padding: 3px 0;
}
.cart-summary-row.total {
  font-size: 16px; font-weight: 700; color: var(--dark);
  padding-top: 10px; margin-top: 6px;
  border-top: 1.5px solid var(--sand);
}

/* ── ORDER MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 24px; padding: 40px;
  max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto;
  animation: fadeUp .3s ease;
}
.modal h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 8px; }
.modal > p { color: var(--mid); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.modal-info {
  background: rgba(42,157,143,0.08); border: 1px solid rgba(42,157,143,0.2);
  border-radius: 12px; padding: 16px; margin-bottom: 20px;
  font-size: 13px; line-height: 1.7; color: var(--teal-dark);
}
.modal-close-top {
  float: right; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--mid); margin-top: -8px;
}

/* ── FORM ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--sand);
  border-radius: 10px; font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--dark); background: #fff; transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit-btn {
  width: 100%; background: var(--teal); color: #fff; border: none;
  padding: 15px; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background .2s;
}
.submit-btn:hover { background: var(--teal-dark); }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 48px 5% 32px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; }
.footer-fb {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px; padding: 8px 16px;
  text-decoration: none; color: rgba(255,255,255,0.6); font-size: 13px;
  transition: background .2s, color .2s;
}
.footer-fb:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--dark); color: #fff; padding: 14px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 500; z-index: 500; opacity: 0;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── ALERT ── */
.alert {
  padding: 14px 20px; border-radius: 12px; font-size: 14px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #f0fff4; border: 1px solid #c6f6d5; color: #276749; }
.alert-error   { background: #fff5f5; border: 1px solid #fed7d7; color: #c53030; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cart span:not(.cart-badge) { display: none; }
  .cart-sidebar { width: 100%; right: -100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cat-dropdown{left: -25px !important;}
  .section {padding: 8px 5%;
}
@media (max-width: 480px) {
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }
}

/* ── MENNYISÉG INPUT (kosárban) ── */
.qty-input {
  width: 44px; height: 26px; border-radius: 6px;
  border: 1px solid var(--sand); background: #fff;
  text-align: center; font-size: 13px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; color: var(--dark);
  outline: none; padding: 0 4px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-input:focus { border-color: var(--teal); }

/* ── TERMÉK KÁRTYA FOOTER (qty + gomb együtt) ── */
.product-actions {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  flex-wrap: wrap;
}
.product-qty-wrap {
  display: flex; align-items: center; gap: 6px;
}
.product-qty-wrap label { font-size: 11px; color: rgba(255,255,255,0.4); }
.product-qty-input {
  width: 48px; height: 32px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
  text-align: center; font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; color: #fff;
  outline: none; -moz-appearance: textfield;
}
.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-qty-input:focus { border-color: var(--teal); }
