
/* Solarfutár webshop, termék, kosár és pénztár reszponzív javítások */

/* 1. Terméklisták: a teljes név olvasható, a sorok azonos magasak */
html body .products .product .product-title,
html body .products .product .product-title a {
  white-space: normal !important;
}
html body .products .product .product-title {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  height: auto !important; min-height: calc(1.35em * 3); line-height: 1.35 !important;
  overflow: hidden !important; text-overflow: clip !important;
}

/* 2. Listagombok: sötét felirat a sárga gombon, egy sorban */
html body.archive .products .product a.button,
html body.archive.tax-product_cat .products-wrap .product a.button {
  color: #0a0a0a !important; white-space: nowrap !important;
}
html body.archive.tax-product_cat .products-wrap .product a.button {
  display: flex !important; align-items: center; justify-content: center;
  padding-inline: 6px !important; font-size: 13px !important;
}

/* 3. /shop/ oldal: árak és feliratok a sötét háttéren */
html body.post-type-archive-product .products .product .price,
html body.post-type-archive-product .products .product .price .amount,
html body.post-type-archive-product .products .product .price bdi {
  color: #fff !important;
}
html body.post-type-archive-product.has-moible-product-cart-icon .products .product a.button:not(.add_to_cart_button):not(.product_type_variable) {
  display: flex !important; align-items: center; justify-content: center;
  width: 100% !important; min-height: 40px !important; font-size: 13px !important; padding: 0 8px !important;
}
html body.post-type-archive-product .shop-title, html body.post-type-archive-product .page-title, html body.post-type-archive-product .woocommerce-products-header__title { color: #fff !important; }
html body.post-type-archive-product.has-moible-product-cart-icon .products .product a.button:not(.add_to_cart_button):not(.product_type_variable)::before {
  display: none !important;
}

/* 4. Termékoldal tableten: Kosárba és Pénztár gomb egymás mellett, a mennyiség sorában */
@media (min-width: 768px) and (max-width: 1024px) {
  html body.single-product div.product form.cart:not(.variations_form),
  html body.single-product div.product form.cart .woocommerce-variation-add-to-cart {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; align-items: center;
  }
  html body.single-product div.product form.cart .quantity { grid-column: 1 / -1; }
  html body.single-product div.product form.cart .single_add_to_cart_button,
  html body.single-product div.product form.cart .pressmart-quick-buy,
  html body.single-product div.product form.cart .pressmart_quick_buy_button {
    position: static !important; left: auto !important; right: auto !important; bottom: auto !important;
    width: 100% !important; min-width: 0 !important; margin: 0 !important; border-radius: 8px !important;
  }
}

/* 5. Pénztár 761–800 px között: a mobil rendelősáv ott is formázott, és csak egy gomb látszik */
@media (min-width: 761px) and (max-width: 800px) {
  html body.sff-v2 #place_order { display: none !important; }
  html body.sff-v2 .sff-mobile-bar {
    display: flex !important; align-items: center; gap: 13px; padding: 12px 14px !important;
    background: #090909; color: #fff; border-top: 1px solid #49412a;
  }
  html body.sff-v2 .sff-mobile-bar > div { flex-shrink: 0; }
  html body.sff-v2 .sff-mobile-bar small { display: block; margin-bottom: 4px; color: #c3c5ca; font-size: 10px; }
  html body.sff-v2 .sff-mobile-bar strong { display: block; font-size: 18px; line-height: 1.2; white-space: nowrap; }
  html body.sff-v2 .sff-submit {
    flex: 1; min-height: 49px; padding: 10px 12px; border: 1px solid #d7ac00; border-radius: 8px;
    background: #f2c200; color: #141414 !important; font-size: 14px; font-weight: 700; cursor: pointer;
  }
}

@media (max-width: 1024px) {
  /* 6. Süti gomb az alsó sávok fölött */
  html body.has-mobile-bottom-navbar:not(.single-product) .jarvis-consent-open { bottom: 69px !important; }
  html body.woocommerce-cart .jarvis-consent-open,
  html body.woocommerce-checkout .jarvis-consent-open { bottom: 84px !important; }

  /* 7. Jogi link az alsó sávok fölött minden oldalon */
  html body .sf-eu-notice-linkbar { padding-bottom: 60px !important; }

  /* 8. Mezők 16 px-en: iPhone-on nem nagyít bele az oldal érintéskor */
  html body input[type="text"], html body input[type="email"], html body input[type="tel"],
  html body input[type="number"], html body input[type="search"], html body input[type="password"], html body select, html body textarea,
  html:root body:not(#x) .quantity input, html:root body:not(#x) form.cart select {
    font-size: 16px !important;
  }

  /* 9. Mennyiségváltó magasabb érintési célokkal */
  html body .products .quantity input, html body .products .quantity .minus, html body .products .quantity .plus,
  html body .woocommerce-cart-form .quantity input, html body .woocommerce-cart-form .quantity .minus, html body .woocommerce-cart-form .quantity .plus {
    min-height: 40px !important;
  }
}

/* 10. Lábléc tableten két oszlopban minden oldalon */
@media (min-width: 768px) and (max-width: 1024px) {
  html body .elementor-element-177d3bae { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; padding-inline: 32px; }
  html body .elementor-element-177d3bae > .e-con { width: auto !important; max-width: none; }
}

/* 11. Egységes termékkártya: mennyiség felül, Kosárba teszem gomb a kártya alján */
html body.tax-product_cat .products .sf-approved-card .product-wrapper .product-buttons {
  display: flex !important; flex-direction: column !important; align-items: stretch !important;
}
html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > .quantity { order: 1 !important; align-self: center; }
html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > :not(.quantity) { order: 2 !important; width: 100% !important; }
html body.tax-product_cat .products .sf-approved-card.sf-card-full-name .product-wrapper .product-title {
  height: auto !important; min-height: calc(1.35em * 3) !important; line-height: 1.35 !important; white-space: normal !important;
}
html body.tax-product_cat .products .sf-approved-card.sf-card-full-name .product-wrapper .product-title a {
  line-height: 1.35 !important; white-space: normal !important;
}
html:root body.tax-product_cat:not(#x) .sf-card-heading-row { display: flex; flex-direction: column; }
html:root body.tax-product_cat:not(#x) .sf-card-heading-row > .sf-card-traits { margin: 0 0 8px; }

/* 12. Kártya mennyiségváltó: nagy − és + gomb, keskenyebb számmező */
html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > .quantity {
  display: grid !important; grid-template-columns: 44px minmax(0, 1fr) 44px !important; gap: 6px !important;
  align-self: stretch !important; width: 100% !important; max-width: none !important; margin: 0 !important;
}
html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > .quantity .minus,
html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > .quantity .plus {
  width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important;
  margin: 0 !important; padding: 0 !important; font-size: 22px !important; line-height: 1 !important;
}
html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > .quantity input.qty {
  width: 100% !important; min-width: 0 !important; height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important;
}
@media (max-width: 359px), (min-width: 768px) and (max-width: 900px) {
  html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > .quantity { grid-template-columns: 40px minmax(0, 1fr) 40px !important; gap: 4px !important; }
  html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > .quantity .minus,
  html:root body.tax-product_cat:not(#x) .products .sf-approved-card .product-wrapper .product-buttons > .quantity .plus { width: 40px !important; min-width: 40px !important; }
}

/* 13. Kategórialeírás a terméklista alatt */
html body.tax-product_cat .products-wrap ~ .term-description,
html body.tax-product_cat .term-description { margin-top: 32px; }

/* 14. Termékoldal tableten: mennyiségváltó külön sorban, nagy − és + gombbal, alatta a két vásárlógomb */
@media (min-width: 768px) and (max-width: 1024px) {
  html:root body.single-product:not(#x) div.product form.cart:not(.variations_form),
  html:root body.single-product:not(#x) div.product form.cart .woocommerce-variation-add-to-cart {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; align-items: center;
  }
  html:root body.single-product:not(#x) div.product form.cart .quantity {
    display: grid !important; grid-column: 1 / -1; grid-template-columns: 48px minmax(0, 1fr) 48px !important; gap: 6px !important;
    width: 100% !important; max-width: 240px; margin: 0 !important;
  }
  html:root body.single-product:not(#x) div.product form.cart .quantity .minus,
  html:root body.single-product:not(#x) div.product form.cart .quantity .plus {
    width: 48px !important; min-width: 48px !important; height: 48px !important; min-height: 48px !important;
    margin: 0 !important; padding: 0 !important; font-size: 22px !important; line-height: 1 !important;
  }
  html:root body.single-product:not(#x) div.product form.cart .quantity input.qty {
    width: 100% !important; min-width: 0 !important; height: 48px !important; min-height: 48px !important; margin: 0 !important; padding: 0 !important;
  }
  html:root body.single-product:not(#x) div.product form.cart .single_add_to_cart_button,
  html:root body.single-product:not(#x) div.product form.cart .pressmart-quick-buy,
  html:root body.single-product:not(#x) div.product form.cart .pressmart_quick_buy_button {
    width: 100% !important; min-width: 0 !important; margin: 0 !important;
  }
}

/* 15. Termékoldal telefonon: egy sorban, a mennyiségváltó kb. 10%-kal szélesebb */
@media (max-width: 767px) {
  html:root body.single-product:not(#x) div.product form.cart:not(.variations_form),
  html:root body.single-product:not(#x) div.product form.cart .woocommerce-variation-add-to-cart {
    grid-template-columns: 97px minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  html:root body.single-product:not(#x) div.product form.cart .quantity {
    grid-template-columns: 31px minmax(0, 1fr) 31px !important; width: 97px !important;
  }
  html:root body.single-product:not(#x) div.product form.cart .quantity .minus,
  html:root body.single-product:not(#x) div.product form.cart .quantity .plus {
    width: 31px !important; min-width: 31px !important;
  }
  html:root body.single-product:not(#x) div.product form.cart .single_add_to_cart_button,
  html:root body.single-product:not(#x) div.product form.cart .pressmart-quick-buy,
  html:root body.single-product:not(#x) div.product form.cart .pressmart_quick_buy_button {
    width: 100% !important; min-width: 0 !important;
  }
}

/* 16. Rögzített fejléc telefonon: a rejtett adminsáv nem tolja lejjebb */
@media (max-width: 767px) {
  html body .site-header .header-main.header-sticked { top: 0 !important; }
}

/* 17. Tartószerkezet-tervező: világosabb blokk a sötét háttéren */
html body #sfmc { background: #242424 !important; border: 1px solid #3d3d3d !important; border-top: 3px solid #ffc400 !important; }
html body #sfmc .sfmc__mobile-flow { display: grid; gap: 10px; padding: 14px 12px 16px; }
html body #sfmc .sfmc__flow-step { overflow: hidden; border: 0 !important; border-radius: 12px; background: #f4f5f7 !important; }
html body #sfmc .sfmc__flow-summary { min-height: 72px; padding: 13px 14px !important; border: 0 !important; background: transparent !important; }
html body #sfmc .sfmc__flow-number { border: 0 !important; background: #ffc400 !important; color: #171717 !important; font-weight: 700; }
html body #sfmc .sfmc__flow-title strong { color: #171717 !important; font-weight: 700; }
html body #sfmc .sfmc__flow-meta { color: #555c66 !important; font-size: 13px; }
html body #sfmc .sfmc__flow-chevron { color: #171717 !important; }
html body #sfmc .sfmc__flow-body { margin: 0 !important; padding: 2px 14px 16px !important; border: 0 !important; box-shadow: none !important; }
html body #sfmc .sfmc__plan-reset { border-color: #5a5a5a !important; color: #e6e6e6 !important; }

/* 18. Csomag ára a kártyán */
html body .products .product .sf-package-label { display: block; margin-bottom: 2px; color: #aeb5bf; font-size: 12px; font-weight: 400; line-height: 16px; }

/* 19. Süti gomb az oldal legalján, nem lebeg a tartalom fölött */
html:root body:not(#x) .jarvis-consent-open {
  position: static !important; display: block; width: max-content; margin: 8px auto 28px !important; left: auto !important; right: auto !important; bottom: auto !important;
}
@media (max-width: 1024px) {
  html:root body:not(#x) .sf-eu-notice-linkbar { padding-bottom: 13px !important; }
  html:root body:not(#x) .jarvis-consent-open { margin-bottom: 44px !important; }
}
html body:has(.sf-eu-notice-linkbar) { background-color: #121418 !important; }

/* 20. Lábléc: a térkép helye csak akkor látszik, ha a süti-hozzájárulás után betöltődik */
html body .elementor-element-30387f4e:has(iframe[src="about:blank"]) { display: none !important; }

/* 21. Lábléc: Térkép megnyitása link a cím alatt, a kosár és a pénztár linkszíne fölött is */
html:root body:not(#x) .sf-map-link { display: block; width: max-content; padding: 6px 0 8px; color: #ffc400 !important; font-family: Inter, sans-serif; font-size: 13px; font-weight: 400; line-height: 22px; text-decoration: underline; text-underline-offset: 3px; }
html:root body:not(#x) .sf-map-link:hover, html:root body:not(#x) .sf-map-link:focus-visible { color: #ffffff !important; }
@media (max-width: 1024px) { html:root body:not(#x) .sf-map-link { padding: 11px 0; } }
