/* Hupas Kopas — munkahelyi rendszerezés webshop
   Design tokens és komponensek */

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

:root {
  --bg: oklch(98% 0.002 250);
  --bg-alt: oklch(96% 0.004 250);
  --ink: oklch(22% 0.006 250);
  --ink-soft: oklch(48% 0.01 253);
  --border: oklch(89% 0.004 250);
  --blue: oklch(52% 0.15 258);
  --blue-dark: oklch(38% 0.13 258);
  --blue-soft: oklch(95% 0.025 258);
  --white: oklch(100% 0 0);
  --font-heading: 'Segoe UI', -apple-system, system-ui, Roboto, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
img { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Promo bar */
.promo-bar {
  background: var(--blue-soft);
  color: var(--blue-dark);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.3px;
  color: var(--ink);
}
.logo-domain { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

.main-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav-link {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}
.nav-link.active { color: var(--blue); }

.btn-cart {
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 3px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-count {
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 4px;
}

main { flex: 1; }

/* Buttons */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 3px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  display: inline-block;
}
.btn-secondary {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: inline-block;
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 3px;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
  width: 100%;
}
.btn-link {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

/* Hero */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Trust bar */
.trust-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
}
.trust-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-heading); flex-shrink: 0;
}
.trust-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* Generic section */
.section { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.section-title { font-family: var(--font-heading); font-weight: 800; font-size: 30px; margin-bottom: 8px; }
.section-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 36px; }
.section-header-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 36px; flex-wrap: wrap; gap: 12px;
}
.section-alt { background: var(--bg-alt); padding: 72px 24px; }
.section-white { background: var(--white); border-top: 1px solid var(--border); padding: 72px 24px; }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
  border: 1px solid var(--border); border-radius: 4px; padding: 24px;
  cursor: pointer; background: var(--white); display: block;
}
.category-icon {
  width: 40px; height: 40px; border-radius: 4px;
  background: var(--blue-soft); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-heading); margin-bottom: 14px;
}
.category-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.category-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
}
.product-media { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--bg-alt); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 2px;
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-category { font-size: 11px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; flex: 1; color: var(--ink); }
.product-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.product-price { font-weight: 800; font-size: 16px; color: var(--ink); }
.add-to-cart-form { margin: 0; }

/* Why us */
.whyus-grid { max-width: 1200px; margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.whyus-num { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--blue); margin-bottom: 10px; }
.whyus-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.whyus-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* Blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  border: 1px solid var(--border); border-radius: 4px; padding: 22px;
  cursor: pointer; background: var(--white); display: flex; flex-direction: column;
}
.article-cover { aspect-ratio: 16/9; border-radius: 3px; margin-bottom: 16px; overflow: hidden; background: var(--bg-alt); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-category { font-size: 12px; color: var(--blue-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.article-title { font-weight: 700; font-size: 16px; line-height: 1.35; margin-bottom: 10px; flex: 1; color: var(--ink); }
.article-excerpt { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 14px; }
.article-meta { font-size: 12px; color: var(--ink-soft); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.stars { color: var(--blue); font-size: 15px; margin-bottom: 12px; }
.quote { font-size: 14.5px; line-height: 1.6; color: var(--ink); margin-bottom: 16px; }
.t-name { font-size: 13px; font-weight: 700; }
.t-city { font-size: 12.5px; color: var(--ink-soft); }

/* Newsletter */
.newsletter-section { max-width: 800px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.newsletter-title { font-family: var(--font-heading); font-weight: 800; font-size: 26px; margin-bottom: 10px; }
.newsletter-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  border: 1px solid var(--border); border-radius: 3px; padding: 12px 16px; width: 280px;
}
.newsletter-form button {
  background: var(--blue); color: var(--white); border: none; border-radius: 3px;
  padding: 12px 22px; font-weight: 700;
}
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.form-success {
  background: var(--blue-soft); color: var(--blue-dark); border-radius: 4px;
  padding: 14px 18px; font-size: 14px; font-weight: 600; max-width: 500px; margin: 0 auto;
}

/* Shop filters */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  border: 1px solid var(--border); background: var(--white); color: var(--ink);
  border-radius: 20px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; display: inline-block;
}
.filter-btn.active { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

/* FAQ */
.faq-block { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 16px; }
.faq-heading { font-family: var(--font-heading); font-weight: 800; font-size: 22px; margin-bottom: 20px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-q { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.faq-a { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* Cart page */
.page-title { font-family: var(--font-heading); font-weight: 800; font-size: 32px; margin-bottom: 28px; }
.page-title-lg { font-family: var(--font-heading); font-weight: 800; font-size: 34px; margin-bottom: 10px; }
.state-empty { text-align: center; padding: 60px 0; border: 1px dashed var(--border); border-radius: 4px; }
.state-empty p { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }

.cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex; gap: 16px; align-items: center; border: 1px solid var(--border);
  border-radius: 4px; padding: 16px;
}
.cart-item-thumb {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 3px; overflow: hidden; background: var(--bg-alt);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.cart-item-unit { font-size: 13px; color: var(--ink-soft); }
.qty-control {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px;
}
.qty-control button { background: none; border: none; font-size: 16px; font-weight: 700; width: 20px; }
.qty-value { font-size: 14px; font-weight: 600; min-width: 16px; text-align: center; }
.cart-item-total { font-weight: 800; font-size: 15px; min-width: 90px; text-align: right; }
.cart-item-remove { background: none; border: none; color: var(--ink-soft); font-size: 13px; }

.summary-box { border: 1px solid var(--border); border-radius: 4px; padding: 24px; align-self: start; }
.summary-title { font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-row span:first-child { color: var(--ink-soft); }
.summary-row span:last-child { font-weight: 700; }
.summary-vat-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 16px; }
.free-shipping-msg {
  background: var(--blue-soft); color: var(--blue-dark); font-size: 12.5px; font-weight: 600;
  padding: 10px 12px; border-radius: 3px; margin-bottom: 18px;
}
.btn-checkout {
  width: 100%; background: var(--blue); color: var(--white); border: none;
  border-radius: 3px; padding: 14px; font-weight: 700; font-size: 15px;
}

/* Checkout */
.checkout-done { text-align: center; padding: 60px 0; }
.check-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; margin: 0 auto 20px;
}
.checkout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 3px; padding: 11px 12px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 3px; padding: 12px;
}
.order-summary-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.order-summary-item { display: flex; justify-content: space-between; font-size: 13.5px; }
.order-summary-item span:first-child { color: var(--ink-soft); }
.order-summary-item span:last-child { font-weight: 600; }
.order-summary-total {
  border-top: 1px solid var(--border); padding-top: 12px; display: flex;
  justify-content: space-between; font-weight: 800; font-size: 15px;
}

/* Article page */
.back-link { background: none; border: none; color: var(--blue); font-weight: 700; font-size: 14px; margin-bottom: 24px; display: inline-block; }
.article-page { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.article-page .article-category { margin-bottom: 14px; }
.article-page-title { font-family: var(--font-heading); font-weight: 800; font-size: 32px; line-height: 1.25; margin-bottom: 16px; }
.article-page-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 32px; }
.article-hero { aspect-ratio: 16/7; border-radius: 4px; margin-bottom: 32px; overflow: hidden; background: var(--bg-alt); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body { display: flex; flex-direction: column; gap: 18px; }
.article-body p { font-size: 16px; line-height: 1.75; color: var(--ink); }
.article-cta { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px; text-align: center; }
.article-cta p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.about-image { aspect-ratio: 4/3; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.stat-card { text-align: center; border: 1px solid var(--border); border-radius: 4px; padding: 28px 16px; }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: 28px; color: var(--blue); margin-bottom: 6px; }
.stat-label { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.value-text { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-label { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.info-value { font-size: 14.5px; color: var(--ink-soft); }
.map-image { aspect-ratio: 4/2.4; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-top: 8px; position: relative; }
.map-image img { width: 100%; height: 100%; object-fit: cover; }
.map-caption {
  position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: var(--white); font-size: 12px; font-weight: 600; padding: 24px 12px 10px;
}
.contact-sent { border: 1px solid var(--border); border-radius: 4px; padding: 32px; text-align: center; align-self: start; }
.contact-sent-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--border); border-radius: 3px; padding: 12px; resize: vertical;
}
.contact-form button {
  background: var(--blue); color: var(--white); border: none; border-radius: 3px; padding: 13px; font-weight: 700;
}

/* Legal pages */
.legal-page { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.legal-title { font-family: var(--font-heading); font-weight: 800; font-size: 30px; margin-bottom: 24px; }
.legal-content { display: flex; flex-direction: column; gap: 20px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.legal-content strong { color: var(--ink); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand { font-family: var(--font-heading); font-weight: 800; font-size: 19px; margin-bottom: 12px; }
.footer-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; max-width: 280px; margin-bottom: 16px; }
.footer-company { font-size: 12.5px; color: var(--ink-soft); }
.footer-col-title { font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { background: none; border: none; text-align: left; padding: 0; font-size: 13.5px; color: var(--ink-soft); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 24px; }
.footer-bottom-inner {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-legal { font-size: 12.5px; color: var(--ink-soft); }

/* Empty-page helper text used for pages without JS-hidden content by default */
.js-only { display: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-section { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .whyus-grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero-title { font-size: 36px; }
  .trust-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 14px 16px; }
  .main-nav { gap: 16px; order: 3; width: 100%; justify-content: center; }
  .cart-item { flex-wrap: wrap; }
}
