/*
Theme Name: Mancs & Levél
Theme URI: https://mancslevel.hu
Author: Mancs & Levél
Description: Letisztult, reszponzív WooCommerce téma kisállatos kiegészítők webáruházához.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: mancslevel
*/

:root {
  --ml-forest: #0b4a3a;
  --ml-forest-2: #173f35;
  --ml-sage: #809474;
  --ml-sage-soft: #e7efe8;
  --ml-coral: #ff6b47;
  --ml-coral-dark: #e35231;
  --ml-ivory: #faf7ef;
  --ml-paper: #fffdf8;
  --ml-ink: #202927;
  --ml-muted: #64736d;
  --ml-line: #dce5de;
  --ml-shadow: 0 18px 50px rgba(11, 74, 58, .10);
  --ml-radius: 22px;
  --ml-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ml-ink);
  background: var(--ml-ivory);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--ml-forest); }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 0;
  top: 10px; left: 10px; padding: 12px 16px; z-index: 9999;
  background: #fff; color: var(--ml-forest); border-radius: 8px;
}

.ml-announcement {
  min-height: 34px;
  padding: 7px 18px;
  text-align: center;
  background: var(--ml-forest);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
}
.ml-announcement span { color: #ffd0c4; }
.ml-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(11, 74, 58, .11);
  background: rgba(250, 247, 239, .96);
  backdrop-filter: blur(15px);
}
.admin-bar .ml-header { top: 32px; }
.ml-header-inner {
  max-width: var(--ml-width);
  min-height: 78px;
  margin: auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto minmax(270px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}
.ml-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ml-forest);
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}
.ml-brand img { width: 48px; height: 48px; object-fit: contain; }
.ml-brand strong { letter-spacing: -.03em; }
.ml-search {
  display: flex;
  height: 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c8d5cb;
  border-radius: 12px;
}
.ml-search input {
  flex: 1; min-width: 0; border: 0; padding: 0 14px;
  background: transparent; font: inherit;
}
.ml-search button { width: 48px; border: 0; color: var(--ml-forest); background: transparent; font-size: 20px; cursor: pointer; }
.ml-nav ul { display: flex; align-items: center; gap: 22px; padding: 0; margin: 0; list-style: none; }
.ml-nav a { color: var(--ml-ink); text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; }
.ml-nav a:hover { color: var(--ml-coral-dark); }
.ml-actions { display: flex; align-items: center; gap: 8px; }
.ml-account, .ml-cart {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 9px 12px; border-radius: 11px;
  color: var(--ml-forest); text-decoration: none; font-weight: 800; font-size: 13px;
}
.ml-cart { background: var(--ml-forest); color: #fff; }
.ml-cart-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--ml-coral); color: #fff; font-size: 11px; }
.ml-menu-toggle { display: none; border: 0; background: transparent; color: var(--ml-forest); font-size: 26px; cursor: pointer; }

.ml-main, .ml-content { max-width: var(--ml-width); margin: auto; padding: 28px 24px 88px; }
.ml-hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  border-radius: 30px;
  background: var(--ml-sage-soft);
  box-shadow: 0 1px 0 rgba(11, 74, 58, .06);
}
.ml-hero-copy { align-self: center; padding: 65px 30px 65px 62px; }
.ml-eyebrow { margin: 0; color: #5d786f; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 900; }
.ml-hero h1 { margin: 15px 0 24px; color: var(--ml-forest); font-size: clamp(46px, 5.1vw, 74px); line-height: .99; letter-spacing: -.055em; }
.ml-hero-copy > p:not(.ml-eyebrow) { max-width: 520px; margin: 0; color: #43524d; font-size: 18px; }
.ml-hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.ml-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0 !important; border-radius: 11px !important; padding: 14px 22px !important;
  background: var(--ml-forest) !important; color: #fff !important;
  font-weight: 850 !important; text-decoration: none; cursor: pointer;
}
.ml-button-coral { background: var(--ml-coral) !important; }
.ml-button-coral:hover { background: var(--ml-coral-dark) !important; }
.ml-text-link { color: var(--ml-forest); font-weight: 850; text-decoration: none; }
.ml-hero-media { position: relative; min-height: 590px; }
.ml-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ml-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(231, 239, 232, .35), transparent 28%); }
.ml-hero-note { position: absolute; right: 24px; bottom: 24px; z-index: 2; padding: 12px 16px; border-radius: 13px; background: rgba(255, 253, 248, .93); box-shadow: var(--ml-shadow); color: var(--ml-forest); font-size: 13px; font-weight: 850; }

.ml-section { padding: 76px 0 0; }
.ml-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 27px; }
.ml-section-heading h2 { margin: 7px 0 0; color: var(--ml-forest); font-size: clamp(34px, 4vw, 48px); line-height: 1.06; letter-spacing: -.04em; }
.ml-section-heading > p { max-width: 470px; margin: 0; color: var(--ml-muted); }
.ml-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.ml-category-card {
  position: relative; min-height: 194px; padding: 24px;
  display: flex; flex-direction: column;
  border: 1px solid var(--ml-line); border-radius: var(--ml-radius);
  background: var(--ml-paper); color: var(--ml-ink); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.ml-category-card:hover { transform: translateY(-4px); box-shadow: var(--ml-shadow); }
.ml-category-icon { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: auto; border-radius: 16px; background: var(--ml-sage-soft); color: var(--ml-forest); font-size: 25px; }
.ml-category-card h3 { margin: 20px 0 3px; color: var(--ml-forest); font-size: 19px; line-height: 1.25; }
.ml-category-card p { margin: 0; color: var(--ml-muted); font-size: 13px; }
.ml-category-card b { position: absolute; top: 21px; right: 22px; color: var(--ml-coral); font-size: 20px; }

.ml-trust {
  margin-top: 76px; padding: 27px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-radius: var(--ml-radius); background: var(--ml-sage-soft);
}
.ml-trust > div { display: flex; align-items: center; gap: 12px; padding: 7px 22px; border-right: 1px solid #c7d7cb; }
.ml-trust > div:last-child { border: 0; }
.ml-trust span { color: var(--ml-coral); font-size: 24px; }
.ml-trust strong, .ml-trust small { display: block; }
.ml-trust strong { color: var(--ml-forest); font-size: 14px; }
.ml-trust small { color: var(--ml-muted); font-size: 11px; }

.ml-story { display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 28px; background: var(--ml-forest); color: #fff; }
.ml-story-image img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.ml-story-copy { align-self: center; padding: 54px; }
.ml-story-copy .ml-eyebrow { color: #b9d3c0; }
.ml-story-copy h2 { margin: 10px 0 17px; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; letter-spacing: -.04em; }
.ml-story-copy p { color: #d7e6dc; }

.ml-empty-products { padding: 48px; text-align: center; border: 1px dashed #b7c9bb; border-radius: var(--ml-radius); background: rgba(255,255,255,.45); }
.ml-empty-products h3 { margin: 0 0 8px; color: var(--ml-forest); font-size: 24px; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; overflow: hidden; border: 1px solid var(--ml-line); border-radius: 18px; background: #fff; transition: transform .2s, box-shadow .2s; }
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--ml-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; margin: 0 !important; object-fit: cover; background: #f2f1ec; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 17px 17px 4px !important; color: var(--ml-ink); font-size: 17px !important; line-height: 1.3; }
.woocommerce ul.products li.product .price { padding: 0 17px; color: var(--ml-forest) !important; font-size: 18px !important; font-weight: 900 !important; }
.woocommerce ul.products li.product .button { margin: 8px 17px 18px !important; padding: 11px 14px !important; font-size: 12px !important; }
.woocommerce span.onsale { min-width: auto; min-height: auto; left: 12px !important; top: 12px !important; padding: 6px 10px; border-radius: 999px; background: var(--ml-coral); line-height: 1.3; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ml-forest); background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ml-forest); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ml-forest); }

.ml-content { min-height: 60vh; }
.ml-content h1 { color: var(--ml-forest); font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.045em; }
.ml-article { max-width: 850px; margin: auto; }

.ml-footer { background: var(--ml-forest-2); color: #dce9e1; }
.ml-footer-inner { max-width: var(--ml-width); margin: auto; padding: 60px 24px 32px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 35px; }
.ml-footer .ml-brand { color: #fff; }
.ml-footer p { color: #bcd0c3; }
.ml-footer h3 { margin-top: 4px; color: #fff; font-size: 15px; }
.ml-footer a:not(.ml-brand) { display: block; margin: 8px 0; color: #dce9e1; text-decoration: none; font-size: 13px; }
.ml-footer a:hover { color: #fff; }
.ml-footer-bottom { max-width: var(--ml-width); margin: auto; padding: 22px 24px 28px; border-top: 1px solid rgba(255,255,255,.12); color: #9fb8aa; font-size: 12px; }

@media (max-width: 1120px) {
  .ml-header-inner { grid-template-columns: auto 1fr auto; }
  .ml-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 17px 24px; background: var(--ml-paper); border-bottom: 1px solid var(--ml-line); box-shadow: var(--ml-shadow); }
  .ml-nav.is-open { display: block; }
  .ml-nav ul { flex-direction: column; align-items: flex-start; }
  .ml-menu-toggle { display: inline-block; }
  .ml-search { grid-column: 1 / -1; grid-row: 2; }
  .ml-category-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
  .admin-bar .ml-header { top: 46px; }
  .ml-announcement { font-size: 10px; }
  .ml-header-inner { min-height: 66px; padding: 8px 14px; gap: 8px; }
  .ml-brand img { width: 40px; height: 40px; }
  .ml-brand strong { font-size: 16px; }
  .ml-account { display: none; }
  .ml-cart { padding: 8px 10px; font-size: 0; }
  .ml-cart::before { content: "Kosár"; font-size: 12px; }
  .ml-search { display: none; }
  .ml-main, .ml-content { padding: 14px 14px 66px; }
  .ml-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .ml-hero-media { grid-row: 1; min-height: 0; height: 330px; }
  .ml-hero-media::after { background: linear-gradient(0deg, var(--ml-sage-soft), transparent 42%); }
  .ml-hero-copy { padding: 32px 24px 38px; }
  .ml-hero h1 { font-size: 42px; }
  .ml-hero-copy > p:not(.ml-eyebrow) { font-size: 16px; }
  .ml-section { padding-top: 54px; }
  .ml-section-heading { display: block; }
  .ml-section-heading > p { margin-top: 10px; }
  .ml-category-grid { gap: 10px; }
  .ml-category-card { min-height: 170px; padding: 18px; }
  .ml-category-card h3 { font-size: 16px; }
  .ml-trust { grid-template-columns: 1fr; padding: 18px; }
  .ml-trust > div { border-right: 0; border-bottom: 1px solid #c7d7cb; padding: 14px 8px; }
  .ml-story { grid-template-columns: 1fr; }
  .ml-story-image img { min-height: 310px; }
  .ml-story-copy { padding: 34px 25px; }
  .ml-footer-inner { grid-template-columns: 1fr 1fr; }
  .ml-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .ml-category-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 11px 11px 3px !important; font-size: 14px !important; }
  .woocommerce ul.products li.product .price { padding: 0 11px; font-size: 15px !important; }
  .woocommerce ul.products li.product .button { width: calc(100% - 22px); margin: 7px 11px 12px !important; padding: 9px 7px !important; }
  .ml-footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
