/*
Theme Name: EuraMarket
Theme URI: https://euramarket.com/
Author: EuraMarket
Description: Önálló, szolgáltatófüggetlen WooCommerce téma az EuraMarket számára.
Version: 0.6.1
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: euramarket
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --em-green: #176b3a;
  --em-green-dark: #0f4d2a;
  --em-accent: #ef7d22;
  --em-ink: #18231c;
  --em-muted: #66736a;
  --em-surface: #f6f8f5;
  --em-border: #dfe6df;
  --em-radius: 14px;
  --em-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--em-ink); background: #fff; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--em-green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover, a:focus-visible { color: var(--em-green-dark); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; 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 { position: fixed; z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; }
.em-shell { width: min(calc(100% - 32px), var(--em-width)); margin-inline: auto; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--em-border); background: #fff; }
.em-topbar { border-bottom: 1px solid var(--em-border); background: #fff; color: var(--em-muted); font-size: .86rem; }
.em-topbar .em-shell { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; }
.em-topbar-links, .em-utility-links { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.em-topbar-links li, .em-utility-links li { padding-inline: 18px; border-right: 1px solid var(--em-border); }
.em-topbar-links li:first-child { padding-left: 0; }
.em-topbar a { color: var(--em-muted); text-decoration: none; }
.em-mainbar { display: grid; grid-template-columns: minmax(205px,auto) auto minmax(280px,1fr) auto auto; align-items: center; gap: 20px; min-height: 96px; }
.em-brand-logo { display: block; width: 205px; max-height: 72px; object-fit: contain; object-position: left center; }
.custom-logo { display: block; max-height: 64px; width: auto; }
.site-title { margin: 0; font-size: 1.45rem; font-weight: 800; text-decoration: none; }
.em-category-button { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; border-radius: 999px; padding: 13px 20px; background: #8bc75a; color: #fff; font-weight: 800; text-decoration: none; }
.em-category-button:hover, .em-category-button:focus-visible { background: #75b449; color: #fff; }
.em-category-button::before { content: "☰"; font-size: 1.1rem; }
.em-deals { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.em-deals a { color: var(--em-ink); font-weight: 750; text-decoration: none; white-space: nowrap; }
.em-cart-button { display: inline-grid; place-items: center; position: relative; width: 54px; height: 54px; border-radius: 50%; background: #edf7e6; color: var(--em-green); text-decoration: none; font-size: 1.35rem; }
.em-cart-button .em-cart-count { position: absolute; top: -4px; right: -4px; }
.primary-menu, .header-actions { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.primary-menu a, .header-actions a { color: var(--em-ink); font-weight: 650; text-decoration: none; }
.primary-navigation { display: none; border-top: 1px solid var(--em-border); }
.primary-navigation .primary-menu { width: min(calc(100% - 32px), var(--em-width)); margin-inline: auto; justify-content: center; padding-block: 10px; }
.em-search form { display: flex; width: 100%; }
.em-search input[type="search"] { flex: 1; border-radius: 999px 0 0 999px; }
.em-search button { border-radius: 0 999px 999px 0; }
.em-cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; padding-inline: 5px; border-radius: 999px; background: var(--em-accent); color: #fff; font-size: .78rem; }
.menu-toggle { display: none; border: 1px solid var(--em-border); border-radius: 10px; background: #fff; padding: 10px 13px; }

.site-main { min-height: 55vh; }
.em-content { padding-block: clamp(32px, 5vw, 72px); }
.entry-header, .page-header { margin-bottom: 28px; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; margin: 0 0 18px; }
h2 { line-height: 1.2; }
.entry-content > * { max-width: 820px; }
.entry-content > .alignwide { max-width: var(--em-width); }
.entry-content > .alignfull { max-width: none; width: 100%; }
.em-prose { max-width: 820px; }
.em-lead { font-size: 1.18rem; color: var(--em-muted); }
.em-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 32px; }
.em-card { padding: 24px; border: 1px solid var(--em-border); border-radius: var(--em-radius); background: var(--em-surface); }
.em-card h2, .em-card h3 { margin-top: 0; }
.em-notice { padding: 20px 24px; border-left: 4px solid var(--em-accent); border-radius: 0 var(--em-radius) var(--em-radius) 0; background: #fff8ee; }
.em-form { margin-top: 32px; padding: 28px; border: 1px solid var(--em-border); border-radius: var(--em-radius); }

button, input[type="submit"], .button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  border: 0; border-radius: 999px; padding: 12px 20px; background: var(--em-green); color: #fff; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none;
}
button:hover, input[type="submit"]:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--em-green-dark); color: #fff; }
input, select, textarea { max-width: 100%; border: 1px solid #bfc9c0; border-radius: 10px; padding: 11px 13px; font: inherit; }
:focus-visible { outline: 3px solid #f5ad64; outline-offset: 3px; }

.woocommerce .products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; padding: 16px; border: 1px solid var(--em-border); border-radius: var(--em-radius); background: #fff; }
.woocommerce span.onsale { background: var(--em-accent); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--em-green); }

.site-footer { margin-top: 64px; background: var(--em-surface); border-top: 1px solid var(--em-border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 36px; padding-block: 52px; }
.footer-grid h2 { font-size: 1rem; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li { margin-top: 8px; }
.footer-menu a { color: var(--em-ink); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--em-border); padding-block: 18px; color: var(--em-muted); font-size: .9rem; }

@media (max-width: 900px) {
  .em-topbar .em-shell { min-height: 38px; }
  .em-topbar-links { display: none; }
  .em-utility-links { margin-left: auto; }
  .em-utility-links li:not(:last-child) { display: none; }
  .em-mainbar { grid-template-columns: 1fr auto auto; min-height: 78px; }
  .em-brand-logo { width: 170px; max-height: 58px; }
  .menu-toggle { display: inline-flex; }
  .em-category-button, .em-deals { display: none; }
  .em-search { grid-column: 1 / -1; order: 5; padding-bottom: 16px; }
  .primary-navigation { display: block; border-top: 0; }
  .primary-menu { display: none; flex-direction: column; align-items: stretch; padding: 0 0 20px; }
  .primary-menu.is-open { display: flex; }
  .header-actions { display: none; }
  .woocommerce .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .em-topbar { display: none; }
  .em-mainbar { grid-template-columns: 1fr auto auto; gap: 10px; }
  .em-brand-logo { width: 145px; }
  .woocommerce .products, .footer-grid { grid-template-columns: 1fr; }
}

