/*
Theme Name: Endredi Design
Theme URI: https://endredidesign.hu
Author: Zengo
Description: Endredi Design – vintage, mid-century, retro és antik bútorok értékesítése, felújítása és bérbeadása. Egyedi WordPress sablon.
Version: 1.4.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: endredi-design
*/

body { margin: 0; background: #FAF8F4; color: #1C1B18; font-family: 'Archivo', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #1C1B18; }
a:hover { color: #A98B5F; }
::selection { background: #E8DFCE; }

/* ===== KONSZOLIDALT design (mindig betolt, opcache-fuggetlen) ===== */
/* --- blocks --- */
.wp-block-column[style*="border-width"],
.wp-block-group[style*="border-width"],
.wp-block-column[style*="border-color"],
.wp-block-group[style*="border-color"] { border-style: solid; }
[style*="border-left-width"] { border-left-style: solid; }
[style*="border-left-color"] { border-left-style: solid; }
/* --- forms --- */
/* Plugin-urlapok (Kadence Form / Contact Form 7 / WPForms) a tema stilusaban. */
.kb-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.kb-form textarea, .kb-form select,
.wpcf7-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.wpcf7-form textarea, .wpcf7-form select,
.wpforms-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.wpforms-form textarea, .wpforms-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #D8D0BF;
  border-radius: 4px;
  font: 14px 'Archivo', sans-serif;
  color: #1C1B18;
  background: #FAF8F4;
}
.kb-form input:focus, .kb-form textarea:focus, .kb-form select:focus,
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus,
.wpforms-form input:focus, .wpforms-form textarea:focus, .wpforms-form select:focus {
  outline: none;
  border-color: #A98B5F;
}
.kb-form label, .wpcf7-form label, .wpforms-field label {
  font: 500 11px 'Archivo', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8C8271;
  display: block;
  margin-bottom: 6px;
}
.kb-forms-submit,
.wpcf7-form input[type=submit],
.wpforms-form button[type=submit],
.wpforms-submit {
  background: #1C1B18 !important;
  color: #FAF8F4 !important;
  border: none !important;
  font: 500 13px 'Archivo', sans-serif !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 30px !important;
  border-radius: 999px !important;
  cursor: pointer;
}
.kb-forms-submit:hover,
.wpcf7-form input[type=submit]:hover,
.wpforms-form button[type=submit]:hover,
.wpforms-submit:hover {
  background: #A98B5F !important;
}
/* --- image-slot --- */
.endredi-slot {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    text-align: center;
    background: repeating-linear-gradient(-45deg, #EFE9DE, #EFE9DE 12px, #E7DFD0 12px, #E7DFD0 24px);
    border: 1px solid #E0D6C4;
    color: #8C8271;
    font: 500 13px 'Archivo', sans-serif;
    letter-spacing: .02em;
    overflow: hidden;
}

.endredi-slot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(250, 248, 244, 0.35);
}

.endredi-slot__label {
    position: relative;
    max-width: 90%;
    line-height: 1.4;
}

.endredi-slot--rect { border-radius: 0; }
.endredi-slot--rounded { border-radius: var(--slot-radius, 4px); }
.endredi-slot--circle { border-radius: 50%; }
.endredi-slot--pill { border-radius: 999px; }

.endredi-slot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* --- woocommerce --- */
/* ===== Endredi Design — WooCommerce a téma stílusában ===== */

/* Kosár ikon a fejlécben */
.endredi-cart { position: relative; display: inline-flex; align-items: center; color: #1C1B18; text-decoration: none; }
.endredi-cart:hover { color: #A98B5F; }
.endredi-cart__n {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px;
  background: #A98B5F; color: #FAF8F4; border-radius: 999px; font: 700 11px 'Archivo', sans-serif;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.endredi-cart__n[hidden] { display: none; }

/* Shop fejléc + kategória-szűrő */
.endredi-shop-head { max-width: 1320px; margin: 0 auto 8px; }
.endredi-shop-eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #8C8271; font-family: 'Archivo', sans-serif; }
.endredi-shop-title { font-family: 'Archivo',sans-serif; font-weight: 500; font-size: clamp(38px,4vw,56px); color: #1C1B18; margin: 0 0 28px; line-height: 1.05; }
.endredi-shop-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.endredi-pill {
  font-family: 'Archivo', sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 999px; text-decoration: none; cursor: pointer; line-height: 1;
  background: transparent; color: #1C1B18; border: 1px solid #D8D0BF;
}
.endredi-pill:hover { border-color: #1C1B18; color: #1C1B18; }
.endredi-pill.is-active { background: #1C1B18; color: #FAF8F4; border-color: #1C1B18; }
.endredi-shop-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin: 0 0 28px; }
.endredi-shop-search { display: flex; align-items: center; gap: 10px; border: 1px solid #D8D0BF; border-radius: 999px; padding: 12px 20px; min-width: 280px; background: #fff; }
.endredi-shop-search span { color: #8C8271; }
.endredi-shop-search input { border: none; outline: none; background: transparent; font-family: 'Archivo', sans-serif; font-size: 14px; width: 100%; color: #1C1B18; }
.endredi-shop-controls { margin: 4px 0 36px; padding-bottom: 24px; border-bottom: 1px solid #E5DECF; }
.endredi-shop-controls .endredi-shop-filter { margin: 0 0 18px; }
.endredi-shop-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.endredi-shop-tools .endredi-shop-search { flex: 1 1 240px; min-width: 200px; padding: 10px 18px; }
.endredi-shop-tools .woocommerce-ordering { margin: 0 !important; }
.endredi-shop-count { margin-left: auto; font-size: 13px; color: #8C8271; white-space: nowrap; }

/* Archívum: termékrács kártyák */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px;
  margin: 24px 0 0 !important; padding: 0 !important;
}
.endredi-loop-meta { font-size: 13px; color: #8C8271; margin: 2px 0 6px; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; text-align: left;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; }
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img {
  border-radius: 4px !important; margin: 0 0 14px !important; width: 100% !important; height: 340px !important; object-fit: cover !important; display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-family: 'Archivo',sans-serif !important; font-weight: 500 !important; font-size: 20px !important;
  color: #1C1B18 !important; padding: 0 !important; margin: 0 0 4px !important; line-height: 1.25; min-height: 50px;
}
.woocommerce ul.products li.product .price {
  color: #A98B5F !important; font-weight: 600 !important; font-size: 15px !important; font-family: 'Archivo', sans-serif;
}
.woocommerce ul.products li.product .price del { color: #B7AE9E; font-weight: 400; }
.woocommerce ul.products li.product .button {
  display: inline-block; margin-top: 12px !important;
  background: #1C1B18 !important; color: #FAF8F4 !important; border-radius: 999px !important;
  padding: 11px 22px !important; font: 500 12px 'Archivo', sans-serif !important; letter-spacing: .1em; text-transform: uppercase;
}
.woocommerce ul.products li.product .button:hover { background: #A98B5F !important; }
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  background: #A98B5F; color: #FAF8F4; border-radius: 999px; font: 700 11px 'Archivo',sans-serif;
  letter-spacing: .04em; min-height: auto; min-width: auto; padding: 6px 12px; top: 12px; left: 12px; margin: 0;
}

/* Rendezés / találatszám */
.woocommerce .woocommerce-result-count { color: #8C8271; font-size: 13px; margin: 0 0 24px; }
.woocommerce .woocommerce-ordering { margin: 0 0 28px; }
.woocommerce .woocommerce-ordering select {
  font-family: 'Archivo', sans-serif; font-size: 13px; color: #1C1B18;
  border: 1px solid #D8D0BF; border-radius: 999px; padding: 11px 20px; background: #fff; cursor: pointer;
}

/* Egy termék oldal */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,430px); gap: 56px; align-items: start; }
.woocommerce div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: 4px; }
.woocommerce div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .product_title {
  font-family: 'Archivo',sans-serif; font-weight: 500; font-size: 42px; color: #1C1B18; line-height: 1.1; margin: 0 0 14px;
}
.woocommerce div.product p.price,
.woocommerce div.product .summary .price {
  color: #1C1B18 !important; font-family: 'Archivo',sans-serif; font-size: 34px; font-weight: 600; margin: 0 0 22px;
}
.woocommerce div.product form.cart { margin: 0 0 22px; }
.woocommerce div.product form.cart .quantity input { border: 1px solid #D8D0BF; border-radius: 8px; padding: 12px; }
.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
  background: #1C1B18 !important; color: #FAF8F4 !important; border-radius: 999px !important;
  padding: 16px 32px !important; font: 500 13px 'Archivo', sans-serif !important; letter-spacing: .12em; text-transform: uppercase;
}
.woocommerce div.product form.cart .button:hover { background: #A98B5F !important; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #4A453C; line-height: 1.7; margin-bottom: 22px; }

/* Fülek + adatok táblázat */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: #E5DECF; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: none; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid #A98B5F; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #1C1B18; font-family: 'Archivo',sans-serif; }
.woocommerce table.shop_attributes th { color: #8C8271; font-weight: 500; }
.woocommerce table.shop_attributes td { color: #1C1B18; font-style: normal; }
.woocommerce .woocommerce-Tabs-panel h2,
.woocommerce div.product .woocommerce-tabs .panel h2 { font-family: 'Archivo',sans-serif; font-weight: 500; color: #1C1B18; }

/* Kapcsolódó termékek */
.woocommerce .related.products,
.woocommerce .upsells.products { margin-top: 64px; }
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
  font-family: 'Archivo',sans-serif; font-weight: 500; font-size: 34px; color: #1C1B18; margin: 0 0 32px;
}

/* Kosár + pénztár gombok */
.woocommerce a.button.checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order {
  background: #1C1B18 !important; color: #FAF8F4 !important; border-radius: 999px !important;
  text-transform: uppercase; letter-spacing: .1em;
}
.woocommerce a.button.checkout-button:hover,
.woocommerce #place_order:hover { background: #A98B5F !important; }

@media (max-width: 1100px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; }
}

/* Kosár / pénztár: ne legyen full-width — szűkebb, középre */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  max-width: 1000px; margin: 40px auto; padding: 0 36px; box-sizing: border-box;
}
/* kosár: táblázat + összesítő egymás alatt, keskenyebb */
.woocommerce-cart .woocommerce .cart-collaterals,
.woocommerce-cart .woocommerce .cart_totals { width: 100% !important; float: none !important; }
.woocommerce-cart .woocommerce .cart_totals { max-width: 420px; margin-left: auto; }

/* Termékoldal: eyebrow + fülek + ár-kártya + adat-táblázat (design szerint) */
.woocommerce div.product .endredi-pdp-eyebrow {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #8C8271;
  font-family: 'Archivo', sans-serif; margin: 0 0 10px;
}
.endredi-pdp-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: #F1EBE0; border: 1px solid #D8D0BF; border-radius: 999px; margin: 4px 0 22px;
}
.endredi-pdp-tab {
  border: none; background: transparent; cursor: pointer; border-radius: 999px;
  padding: 13px 10px; font: 500 13px 'Archivo', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #1C1B18;
}
.endredi-pdp-tab.is-active { background: #1C1B18; color: #FAF8F4; }
.endredi-pdp-card {
  background: #fff; border: 1px solid #E5DECF; border-radius: 4px; padding: 28px;
}
.endredi-pdp-ship { font-size: 13px; color: #8C8271; line-height: 1.6; border-top: 1px solid #EEE7D9; padding-top: 16px; margin: 16px 0 0; }
.endredi-pdp-rentbtn {
  display: inline-block; background: #1C1B18; color: #FAF8F4; text-decoration: none;
  font: 500 13px 'Archivo', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 999px;
}
.endredi-pdp-rentbtn:hover { background: #A98B5F; color: #FAF8F4; }
.woocommerce div.product .endredi-pdp-attrs { width: 100%; border-collapse: collapse; margin: 24px 0 0; font-size: 14px; }
.woocommerce div.product .endredi-pdp-attrs th,
.woocommerce div.product .endredi-pdp-attrs td { text-align: left; padding: 14px 0; border-bottom: 1px solid #E5DECF; vertical-align: top; }
.woocommerce div.product .endredi-pdp-attrs th { color: #8C8271; font-weight: 500; width: 150px; }
.woocommerce div.product .endredi-pdp-attrs td { color: #1C1B18; }
/* az ár + kosár a kártyán belül */
.woocommerce div.product .endredi-pdp-card p.price,
.woocommerce div.product .endredi-pdp-card .price { margin: 0 0 18px; }
.woocommerce div.product .endredi-pdp-card form.cart { margin: 0; }
.woocommerce div.product .endredi-pdp-card .single_add_to_cart_button { width: 100%; box-sizing: border-box; }

.endredi-pdp-ask {
  display: block; text-align: center; margin: 14px 0 0;
  border: 1px solid #D8D0BF; border-radius: 999px; padding: 15px 28px;
  font: 500 13px 'Archivo', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: #1C1B18; text-decoration: none;
}
.endredi-pdp-ask:hover { border-color: #1C1B18; color: #1C1B18; }

.woocommerce nav.woocommerce-pagination { margin: 56px 0 0; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { border: none; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid #D8D0BF; border-radius: 999px; padding: 9px 15px; min-width: 0; color: #1C1B18;
  font: 500 13px 'Archivo', sans-serif; line-height: 1;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: #1C1B18; color: #FAF8F4; border-color: #1C1B18; }
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: #1C1B18; }

.endredi-topbar { background:#1C1B18; color:#EFE9DF; text-align:center; font-size:12px; letter-spacing:.14em; text-transform:uppercase; padding:9px 16px; }
.endredi-topbar a { color:#C9AE7E; }
.endredi-header { position:sticky; top:0; z-index:50; background:rgba(250,248,244,.94); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-bottom:1px solid #E5DECF; }
.endredi-header-inner { max-width:1320px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:18px 32px; padding:18px 36px; flex-wrap:wrap; }
.endredi-logo, .endredi-header .custom-logo-link { display:inline-flex; align-items:center; text-decoration:none; flex:0 0 auto; margin:0; }
.endredi-logo img, .endredi-header .custom-logo { height:44px !important; width:auto !important; max-width:100%; display:block; }
.endredi-nav-wrap { display:flex; align-items:center; }
.endredi-nav { display:flex; gap:22px; align-items:center; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.endredi-nav li { margin:0; }
.endredi-nav a { font-size:12px; letter-spacing:.14em; text-transform:uppercase; text-decoration:none; color:#1C1B18; }
.endredi-nav .current-menu-item > a, .endredi-nav .is-active > a, .endredi-nav a:hover { border-bottom:1px solid #A98B5F; color:#A98B5F; padding-bottom:2px; }
.endredi-header-right { display:flex; align-items:center; gap:16px; flex:0 0 auto; }
.endredi-header-right .widget { margin:0; }
.endredi-phone { font-size:13px; font-weight:500; text-decoration:none; white-space:nowrap; border:1px solid #1C1B18; border-radius:999px; padding:9px 18px; color:#1C1B18; }
.endredi-phone:hover { background:#1C1B18; color:#FAF8F4; }
.endredi-footer-cols { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap:48px; padding-bottom:48px; border-bottom:1px solid #2A2823; }
.endredi-footer-col { display:flex; flex-direction:column; gap:12px; font-size:14px; }
.endredi-footer-col .widget { margin:0; }
.endredi-footer-col .endredi-widget-title, .endredi-footer-col .widget-title { font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:#5F594E; margin:0 0 4px; }
.endredi-footer-col a { color:#B5AC9C; text-decoration:none; }
.endredi-footer-col a:hover { color:#C9AE7E; }
.endredi-footer-col ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.endredi-footer-logo { height:40px !important; width:auto !important; max-width:220px; align-self:flex-start; display:block; }
@media (max-width:900px){ .endredi-footer-cols { grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:560px){ .endredi-footer-cols { grid-template-columns:1fr; } }

.endredi-footer-col .widget, .endredi-footer-col .textwidget { display:flex; flex-direction:column; gap:10px; margin:0; }
.endredi-footer-text { margin:0; font-size:14px; line-height:1.7; max-width:36ch; }
.endredi-topbar .widget, .endredi-topbar .textwidget { display:inline; margin:0; padding:0; }
.endredi-header-right .textwidget { margin:0; }

.endredi-switcher { display:inline-flex; align-items:center; font-size:13px; }
.endredi-switcher select, .endredi-switcher .woocs_flag_view_item { font-family:'Archivo',sans-serif; font-size:13px; color:#1C1B18; border:1px solid #D8D0BF; border-radius:999px; padding:8px 14px; background:#fff; cursor:pointer; }
.endredi-switcher ul { list-style:none; margin:0; padding:0; display:flex; gap:6px; }
/* PDP layout + galéria javítás */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-product-gallery { position: sticky; top: 76px; }
.woocommerce div.product .woocommerce-product-gallery__image img {
  width: 100% !important; height: 520px; object-fit: contain; background: #FFFDFA; border-radius: 8px;
}
.woocommerce div.product .flex-control-thumbs {
  display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none;
}
.woocommerce div.product .flex-control-thumbs li { margin: 0; float: none; width: auto !important; }
.woocommerce div.product .flex-control-thumbs img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; border: 1px solid #E5DECF;
  cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s;
}
.woocommerce div.product .flex-control-thumbs img:hover,
.woocommerce div.product .flex-control-thumbs img.flex-active { opacity: 1; border-color: #A98B5F; }
@media (max-width: 900px) {
  .woocommerce div.product .woocommerce-product-gallery { position: static; }
  .woocommerce div.product .woocommerce-product-gallery__image img { height: auto; max-height: 70vh; }
}
/* PDP galéria: kisebb kép + vízszintes thumbnail-sáv + lapozó nyilak */
.woocommerce div.product .woocommerce-product-gallery__image img { height: min(56vh, 440px) !important; }
.woocommerce div.product .flex-control-thumbs {
  grid-template-columns: none !important; display: flex !important; flex-wrap: nowrap;
  overflow-x: auto; gap: 8px; padding-bottom: 4px; margin-top: 12px;
}
.woocommerce div.product .flex-control-thumbs li { flex: 0 0 auto; width: 72px !important; }
.woocommerce div.product .flex-control-thumbs img { width: 72px; height: 72px; }
.woocommerce div.product .flex-viewport { position: relative; }
.endredi-gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #E5DECF;
  background: rgba(255,253,250,.92); color: #1C1B18; font: 26px/1 'Archivo', sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.endredi-gal-nav:hover { background: #1C1B18; color: #FAF8F4; border-color: #1C1B18; }
.endredi-gal-prev { left: 10px; }
.endredi-gal-next { right: 10px; }

/* ===== Gomb-kiemelés + mobil menü (kezdőoldal finomítás) ===== */
.wp-block-button__link { box-shadow: 0 8px 22px rgba(28,27,24,.18); transition: transform .12s ease, box-shadow .12s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(28,27,24,.28); }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px !important; box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #1C1B18 !important; color: #FAF8F4 !important; box-shadow: 0 8px 22px rgba(28,27,24,.22); }
.endredi-legal-chips .wp-block-button__link, .endredi-legal-download .wp-block-button__link { box-shadow: none; }

.endredi-navtoggle { display: none; background: none; border: 1px solid #D8D0BF; border-radius: 6px; padding: 7px 12px; font-size: 22px; line-height: 1; color: #1C1B18; cursor: pointer; }
.endredi-navclose { display: none; }
.endredi-navbackdrop { display: none; }

@media (max-width: 900px) {
  .endredi-navtoggle { display: block; order: 3; margin-left: auto; }
  .endredi-header-right { order: 4; }

  /* Oldalról kicsúszó panel */
  .endredi-nav-wrap {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(84vw, 340px);
    background: #FAF8F4; box-shadow: -14px 0 44px rgba(28,27,24,.22);
    transform: translateX(100%); transition: transform .3s ease;
    z-index: 1000; padding: 74px 26px 26px; box-sizing: border-box;
    overflow-y: auto; display: block;
  }
  .endredi-nav-wrap.is-open { transform: translateX(0); }

  .endredi-nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .endredi-nav a { display: block; width: 100%; padding: 15px 4px; border-bottom: 1px solid #EEE7DE; font-size: 15px; letter-spacing: .12em; }
  .endredi-nav .current-menu-item > a, .endredi-nav .is-active > a, .endredi-nav a:hover { border-bottom: 1px solid #A98B5F; padding-bottom: 15px; }

  /* Bezáró X a panelen */
  .endredi-navclose {
    display: block; position: absolute; top: 18px; right: 20px;
    background: none; border: none; font-size: 30px; line-height: 1; color: #1C1B18; cursor: pointer; padding: 4px;
  }

  /* Sötét háttér a panel mögött */
  .endredi-navbackdrop {
    display: block; position: fixed; inset: 0; background: rgba(28,27,24,.5);
    opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 999;
  }
  .endredi-navbackdrop.is-open { opacity: 1; visibility: visible; }
  body.endredi-nav-open { overflow: hidden; }

  .endredi-header-inner { padding: 14px 20px; }
}

/* Mobil szellősség: alap blokk-térközök szűkítése kis kijelzőn */
@media (max-width: 600px) {
  .wp-block-group.alignfull { padding-left: 20px !important; padding-right: 20px !important; }
  .wp-block-columns { gap: 24px !important; }
  h1.wp-block-heading { font-size: clamp(34px, 9vw, 46px) !important; }
  h2.wp-block-heading { font-size: clamp(28px, 7vw, 38px) !important; }
}

/* ===== "Látványosabb" kezdőoldal: CTA + címek + képek ===== */
/* CTA gombok — erős jelenlét, aranyra vált hoveren */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
  font-weight: 600 !important;
  letter-spacing: .14em;
  padding-top: 17px !important; padding-bottom: 17px !important;
  padding-left: 34px !important; padding-right: 34px !important;
  box-shadow: 0 12px 30px rgba(28,27,24,.30);
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
  background: #A98B5F !important; color: #FAF8F4 !important;
  box-shadow: 0 16px 38px rgba(169,139,95,.44);
  transform: translateY(-2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link {
  border-width: 2px !important; font-weight: 600 !important; letter-spacing: .14em;
}

/* Képek — keret + árnyék, hogy ne olvadjanak a krém háttérbe */
.wp-block-image img { border-radius: 6px; box-shadow: 0 14px 34px rgba(28,27,24,.14); }

/* Címek — nagyobb, olvashatóbb (tartalmi szekciókban) */
.wp-block-group h1.wp-block-heading { font-size: clamp(44px, 5.2vw, 68px) !important; line-height: 1.05 !important; }
.wp-block-group h2.wp-block-heading { font-size: clamp(32px, 3.6vw, 46px) !important; line-height: 1.12 !important; }
.wp-block-group h3.wp-block-heading { font-size: clamp(21px, 2.2vw, 26px) !important; }

/* jogi gombok maradjanak árnyék nélkül (ne dobjon rájuk) */
.endredi-legal-chips .wp-block-button__link,
.endredi-legal-download .wp-block-button__link { box-shadow: none !important; }
/* woo gombok ne kapjanak dupla stílust ettől */
.woocommerce .wp-block-button__link { box-shadow: none; }

/* ===== MOBIL: semmi ne csússzon ki (globális védelem) ===== */
html, body, .endredi-page { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }

@media (max-width: 782px) {
  .wp-block-columns { flex-wrap: wrap !important; }
  .wp-block-column { flex-basis: 100% !important; max-width: 100%; }
}

@media (max-width: 600px) {
  .wp-block-buttons { flex-wrap: wrap; }
  .wp-block-button, .wp-block-button__link { max-width: 100%; box-sizing: border-box; }
  .wp-block-group.alignfull { padding-left: 18px !important; padding-right: 18px !important; }

  /* SHOP vezérlők egymás alá, teljes szélesség */
  .endredi-shop-top { flex-direction: column; align-items: stretch; gap: 16px; }
  .endredi-shop-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .endredi-shop-search,
  .endredi-shop-tools .endredi-shop-search { min-width: 0 !important; width: 100%; box-sizing: border-box; }
  .endredi-shop-count { margin-left: 0; }
  .endredi-shop-tools .woocommerce-ordering,
  .woocommerce-ordering, .woocommerce-ordering select { width: 100% !important; box-sizing: border-box; margin: 0 !important; }
  .endredi-shop-filter { gap: 8px; }
  .endredi-pill { padding: 9px 14px; }

  /* Termékrács: 1 oszlop mobilon */
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr !important; }
  .woocommerce ul.products li.product img, .woocommerce ul.products li.product a img { height: 260px !important; }

  /* Termékoldal: fülek + adat-táblázat + kép */
  .endredi-pdp-tabs { grid-template-columns: 1fr !important; }
  .woocommerce div.product { grid-template-columns: 1fr !important; }
  .woocommerce div.product .woocommerce-product-gallery__image img { height: auto !important; max-height: 60vh; }

  /* Bármilyen táblázat / széles blokk: görgethető, ne lógjon ki */
  .woocommerce table.shop_table, .woocommerce-cart table, table, pre { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
  .endredi-pdp-attrs { display: block; overflow-x: auto; }

  /* Kosár/pénztár szélek */
  .woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce, .woocommerce-account .woocommerce { padding: 0 18px !important; }
}

/* Telefon a mobil menü-panelben */
.endredi-nav-phone { display: none; }
@media (max-width: 900px) {
  .endredi-nav-phone {
    display: block; margin-top: 22px; padding: 15px; text-align: center;
    border: 1px solid #1C1B18; border-radius: 999px; color: #1C1B18; text-decoration: none;
    font-weight: 600; letter-spacing: .06em; font-size: 15px;
  }
  .endredi-nav-phone:hover { background: #1C1B18; color: #FAF8F4; }
  .endredi-header-right .endredi-phone { display: none; }
}

button,input,select,textarea{font-family:inherit}
