/*
Theme Name: MFPT
Description: Faithful WordPress rebuild of the mfptkft.hu Webnode design — monochrome, Abril Fatface hero titles, WooCommerce-ready.
Version: 1.0.4
Author: AIT
Text Domain: mfpt
*/

:root {
  --c-dark: #131313;
  --c-text: #6a6a6a;
  --c-heading: #2f2f2f;
  --c-muted: #8f8f8f;
  --c-btn: #2e2e2e;
  --c-line: #e5e5e5;
  --f-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Abril Fatface", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header { background: var(--c-dark); position: sticky; top: 0; z-index: 50; }
.site-header-inner {
  max-width: 1340px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: nowrap;
}
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-logo img { height: 48px; width: auto; display: block; }
.site-logo .site-tagline {
  color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap;
}
.site-nav { margin-left: auto; flex: 1 1 auto; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; }
.site-nav a {
  display: block; padding: 8px 9px; color: rgba(255,255,255,.8); text-decoration: none;
  font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.header-cart {
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 10px 0 10px 16px;
  border-left: 1px solid rgba(255,255,255,.25); white-space: nowrap; flex: 0 0 auto;
}
@media (max-width: 760px) {
  .site-header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; order: 3; }
  .site-nav ul { justify-content: flex-start; }
}
.header-cart:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- layout ---------- */
.site-main { min-height: 50vh; }
.content-narrow { max-width: 62.5rem; margin: 0 auto; padding: 0 30px 60px; }

/* ---------- hero (migrated .mfpt-hero blocks) ---------- */
.mfpt-hero {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  min-height: 42vh; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; text-align: center;
  color: #fff; overflow: hidden; margin-bottom: 44px;
}
.mfpt-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.mfpt-hero.overlay-black::before { background: rgba(0,0,0,.6); }        /* Webnode token */
.mfpt-hero.overlay-blue-cadet::before { background: rgba(56,107,125,.6); } /* Webnode token */
.mfpt-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.mfpt-hero:has(.mfpt-hero-video) { min-height: 50vh; max-height: 640px; }
.mfpt-hero-inner { position: relative; z-index: 1; padding: 60px 20px; }
.mfpt-hero .hero-title, .mfpt-hero .hero-sub { color: #fff; }
.hero-title {
  font-family: var(--f-display); font-weight: 400; margin: 0;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.1; padding: .18em .45em;
}
.hero-title.has-border { border-top: 3px solid #fff; border-bottom: 3px solid #fff; }
.hero-sub {
  display: inline-block; margin: .9em 0 0; font-weight: 500; font-size: 15px; padding: .55em 1.2em;
}
.hero-sub.has-border { border-top: 1px solid #fff; border-bottom: 1px solid #fff; font-weight: 700; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { color: var(--c-heading); line-height: 1.3; font-weight: 700; }
strong { color: #4a4a4a; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.15rem; }
.b-text h3 { color: var(--c-muted); font-weight: 500; }
.wnd-align-center { text-align: center; }

/* ---------- Webnode structural classes kept in content ---------- */
.cf::after { content: ""; display: block; clear: both; }
.c { float: left; min-height: 1px; padding: 0 14px; }
.cw, .cw-c, .ez, .ez-c, .b, .b-c { min-width: 0; }
.b-s-t60 { padding-top: 24px; }
.b-s-b60 { padding-bottom: 24px; }
.b-img-w { position: relative; }
.b-img-c { position: relative; overflow: hidden; }
.b-img { margin: 0 0 10px; }
.mfpt-svg-icon { display: inline-block; }
.mfpt-svg-icon svg { width: 46px; height: 46px; }
@media (max-width: 760px) {
  .c { float: none; width: 100% !important; padding: 0; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--c-dark); color: #fff; margin-top: 70px; }
.site-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 48px 20px; text-align: center;
  font-size: 14px; line-height: 2;
}
.site-footer a { color: #fff; }

/* ==================== webshop design system ====================
   Draws on the site identity: ink black, cadet teal (the hero overlay
   token), Abril Fatface as the voice. Prices are the hero of each card. */
:root {
  --shop-ink: #1d1f21;
  --shop-teal: #386b7d;
  --shop-teal-dark: #2d5666;
  --shop-mist: #f3f5f6;
  --shop-line: #e7e7e5;
  --shop-muted: #8a9094;
}

/* --- archive header: Abril title with a short teal stroke --- */
.woocommerce-products-header { margin: 34px 0 6px; }
.woocommerce-products-header__title.page-title {
  font-family: var(--f-display); font-weight: 400; font-size: 2.7rem;
  color: var(--shop-ink); margin: 0 0 10px;
}
.woocommerce-products-header::after {
  content: ""; display: block; width: 52px; height: 3px;
  background: var(--shop-teal); margin-top: 2px;
}

/* --- toolbar row: count left, sorting right, both quiet --- */
.woocommerce-result-count { color: var(--shop-muted); font-size: 13px; margin: 18px 0 26px; }
.woocommerce-ordering { margin: 12px 0 26px; }
.woocommerce-ordering select {
  font-family: var(--f-body); font-size: 13px; color: var(--shop-ink);
  border: none; border-bottom: 1px solid var(--shop-line); background: transparent;
  padding: 6px 2px; cursor: pointer;
}
.woocommerce-ordering select:focus { outline: none; border-bottom-color: var(--shop-teal); }

/* --- product grid: bounded, even-height cards --- */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after { display: none; }
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px; margin: 0 0 40px; padding: 0; list-style: none;
}
@media (max-width: 1100px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 860px)  { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px)  { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; } }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  display: flex; flex-direction: column;
  border: 1px solid var(--shop-line); border-radius: 4px; overflow: hidden;
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--shop-teal);
  box-shadow: 0 10px 26px -18px rgba(29,31,33,.35);
}

/* image field: white shots sit on a cool mist panel */
.woocommerce ul.products li.product a img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--shop-mist); padding: 18px; box-sizing: border-box;
  margin: 0; transition: transform .25s ease;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex; flex-direction: column; flex: 1 1 auto; text-decoration: none;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--f-body); font-weight: 600; font-size: 14.5px; line-height: 1.45;
  color: var(--shop-ink); padding: 16px 18px 0; margin: 0;
}
.woocommerce ul.products li.product .price {
  font-family: var(--f-display); font-weight: 400; font-size: 1.5rem;
  color: var(--shop-ink); padding: 6px 18px 4px; margin: 0 0 4px;
}
.woocommerce ul.products li.product .price bdi { white-space: nowrap; }

/* button pinned to the card base, one height everywhere */
.woocommerce ul.products li.product .button {
  margin: auto 18px 18px; padding: 11px 16px; text-align: center;
  background: #fff; color: var(--shop-ink);
  border: 1.5px solid var(--shop-ink); border-radius: 3px;
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--shop-teal); border-color: var(--shop-teal); color: #fff;
}
.woocommerce ul.products li.product .added_to_cart {
  margin: -8px 18px 16px; font-size: 12.5px; color: var(--shop-teal); font-weight: 600;
}

/* --- single product --- */
.woocommerce div.product div.images img {
  background: var(--shop-mist); border: 1px solid var(--shop-line);
  border-radius: 4px; padding: 20px; box-sizing: border-box;
}
.woocommerce div.product .product_title {
  font-weight: 700; color: var(--shop-ink); font-size: 1.9rem; line-height: 1.25;
}
.woocommerce div.product p.price {
  font-family: var(--f-display); font-size: 2.1rem; color: var(--shop-ink); margin: 10px 0 18px;
}
.woocommerce div.product form.cart { margin: 22px 0; display: flex; gap: 12px; align-items: stretch; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce div.product form.cart .qty {
  height: 100%; min-height: 46px; width: 70px; border: 1.5px solid var(--shop-line);
  border-radius: 3px; font-family: var(--f-body); font-size: 15px; text-align: center;
}
.woocommerce div.product form.cart .button {
  background: var(--shop-ink); color: #fff; border: 1.5px solid var(--shop-ink);
  border-radius: 3px; padding: 12px 26px; font-family: var(--f-body);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background .16s ease, border-color .16s ease;
}
.woocommerce div.product form.cart .button:hover { background: var(--shop-teal); border-color: var(--shop-teal); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--c-text); }

.woocommerce div.product .related.products,
.woocommerce div.product .up-sells { clear: both; padding-top: 34px; }
.woocommerce div.product .related.products > h2,
.woocommerce div.product .up-sells > h2 {
  font-family: var(--f-body); font-size: 1.25rem; font-weight: 700;
  color: var(--shop-ink); margin: 0 0 18px;
}

/* --- shared chrome: notices, pagination, generic buttons --- */
.woocommerce-breadcrumb, .product_meta { display: none; }
.woocommerce span.onsale {
  background: var(--shop-teal); border-radius: 3px; min-height: 0; min-width: 0;
  padding: 5px 10px; font-weight: 600; line-height: 1.4;
}
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 10px 15px; font-family: var(--f-body); font-size: 14px; color: var(--shop-ink);
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--shop-teal); color: #fff;
}
.woocommerce-message, .woocommerce-info {
  border-top-color: var(--shop-teal); background: var(--shop-mist); color: var(--shop-ink);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--shop-teal); }
.woocommerce #respond input#submit, .woocommerce a.button,
.woocommerce button.button, .woocommerce input.button,
.woocommerce #payment #place_order {
  background: var(--shop-ink); color: #fff; border-radius: 3px;
  font-family: var(--f-body); font-weight: 600; letter-spacing: .04em;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover,
.woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #payment #place_order:hover { background: var(--shop-teal); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product,
  .woocommerce ul.products li.product a img,
  .woocommerce ul.products li.product .button { transition: none; }
  .woocommerce ul.products li.product:hover a img { transform: none; }
}

@media (max-width: 1500px) { .site-logo .site-tagline { display: none; } }
