/* =========================================================
   Hot Pursuit — single product (TT5 child, glassmorphism)
   Minden szabály a .hp-product / body.hp-single-product alá
   van zárva, hogy ne befolyásolja az oldal többi részét.
   A WP Swings naptár és az Acowebs előleg a .hp-atc-n belül
   renderel; az ő pontos markupjukra szabott finomítás a végén
   jön (élő View Source alapján).
   ========================================================= */

.hp-product {
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.66);
  --fg-faint: rgba(255, 255, 255, 0.42);
  --accent: #e10600;
  --rule: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Autónkénti szín — a content-single-product.php felülírja inline,
     ha van "Akcentszín" attribútum. Alap: Mach-E zöld. */
  --car-accent: #2f6b4f;
  --car-accent-bright: #5fbf95;

  --panel-fg: #ffffff;
  --panel-muted: rgba(255, 255, 255, 0.60);
  --panel-rule: rgba(255, 255, 255, 0.12);
  --panel-field: rgba(255, 255, 255, 0.07);

  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(18px, 2.6vw, 30px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-brand: "Oswald", "Inter", sans-serif;

  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

.hp-product *,
.hp-product *::before,
.hp-product *::after { box-sizing: border-box; }

.hp-product a { color: inherit; text-decoration: none; }
.hp-product button { font-family: inherit; cursor: pointer; }
.hp-product img { display: block; max-width: 100%; }

/* ---------- Oldal-szintű: sötét háttér + TT5 chrome elrejtése ---------- */

body.hp-single-product { background: #0a0a0a; margin: 0; }
body.hp-single-product header.wp-block-template-part,
body.hp-single-product footer.wp-block-template-part { display: none; }
/* WooCommerce saját breadcrumb + üres értesítő-sáv elrejtése (a hero-ban saját
   breadcrumb van) → nincs fekete sáv a termékoldal tetején. */
body.hp-single-product .woocommerce-breadcrumb { display: none; }
body.hp-single-product .woocommerce-notices-wrapper:empty { display: none; }
/* A TT5/WC wrapperek teljes szélességűek, padding/margó nélkül → a hero/panel
   margói szimmetrikusak, nincs aszimmetrikus jobb oldali rés. */
body.hp-single-product .hp-main,
body.hp-single-product .wp-site-blocks,
body.hp-single-product #primary,
body.hp-single-product .content-area,
body.hp-single-product .alignwide,
body.hp-single-product .woocommerce {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---------- Háttérkép + scrim ---------- */

/* A hős teljes magasságú, saját pozícionáló konténer; a háttérkép EZT fedi
   végig (a spec-csík is az autóra kerül), nem csak a viewportot. */
.hp-product .hp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}
/* Háttérkép DIV-ként, CSS background-del → MINDIG kitölti az inset:0 dobozt
   (a hero teljes magasságát), szülő-magasságtól és WP-wrapperektől függetlenül.
   (Korábban <img> volt, amit a height:100% indefinit szülőnél nem töltött ki.) */
.hp-product__bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-d); /* desktop: 16:9 kiemelt kép (inline style adja a változót) */
  background-size: cover;
  background-position: center 42%; /* az autóra húzva — kevesebb sötét stúdió */
  background-repeat: no-repeat;
  z-index: 0;
}
.hp-product__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0) 58%),
    linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,0.40) 100%);
}

/* ---------- Topbar ---------- */

.hp-product .topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: var(--pad-y) var(--pad-x);
}
.hp-product .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-brand);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: clamp(17px, 1.5vw, 21px);
  text-transform: uppercase;
}
.hp-product .brand__mark--accent { color: #fff; }
.hp-product .topnav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.hp-product .topnav__link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--fg); opacity: 0.85; transition: opacity 200ms var(--ease);
}
.hp-product .topnav__link:hover { opacity: 1; }
.hp-product .topnav__icons { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.hp-product .icon-btn {
  position: relative; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--rule); background: rgba(0,0,0,0.25); color: var(--fg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.hp-product .icon-btn:hover { background: rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.3); }
.hp-product .icon-btn svg { width: 18px; height: 18px; }
.hp-product .icon-btn__badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--car-accent); color: #fff;
  font-size: 11px; font-weight: 600; display: grid; place-items: center;
}

/* ---------- Layout ---------- */

.hp-product .stage {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 400px);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(8px, 2vw, 24px) var(--pad-x) var(--pad-x);
  min-height: calc(100vh - 96px);
}
.hp-product .col-left {
  display: flex; flex-direction: column; min-height: calc(100vh - 160px);
}

/* ---------- Breadcrumb / fejléc ---------- */

.hp-product .breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-muted); margin-bottom: clamp(16px, 3vw, 28px);
}
.hp-product .breadcrumb a:hover { color: var(--fg); }
.hp-product .breadcrumb__sep { opacity: 0.5; }
.hp-product .breadcrumb__current { color: var(--fg); }

.hp-product .product-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 14ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hp-product .product-price {
  font-size: clamp(20px, 2vw, 26px); font-weight: 600; margin: 0 0 18px;
}
.hp-product .product-price .woocommerce-Price-amount { font-weight: 600; }
.hp-product .product-price del { opacity: 0.5; font-weight: 400; margin-right: 8px; }
.hp-product .product-price ins { text-decoration: none; }

.hp-product .color-badge {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start; /* ne feszüljön ki a teljes szélességre, csak a szövegig */
  width: fit-content; max-width: 100%;
  padding: 7px 14px; border-radius: 999px;
  /* Az ACCENT szín hajtja a badge hátterét/keretét (autónként állítható). */
  background: color-mix(in srgb, var(--car-accent) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--car-accent) 60%, transparent);
  color: #fff; font-size: 13px; font-weight: 500;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hp-product .color-badge__dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--car-accent); box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

/* ---------- Spec-csík + thumbnailek ---------- */

.hp-product .col-left__bottom { margin-top: auto; margin-bottom: clamp(56px, 10vh, 120px); padding-top: clamp(24px, 5vh, 60px); }

.hp-product .spec-card {
  display: flex; align-items: stretch;
  gap: clamp(6px, 1vw, 14px);
  padding: 16px clamp(14px, 1.6vw, 22px);
  border-radius: 18px;
  background: rgba(10,10,10,0.42); border: 1px solid var(--rule);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  margin-top: 14px; /* a galéria (felül) és a spec-csík közti térköz */
}
/* 3 soros spec: ikon FELÜL, érték, label — középre igazítva. Egyenlő oszlopok,
   minden spec egy sorban (4 vagy 5 db is). */
.hp-product .spec {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 7px;
}
.hp-product .spec__icon { width: 24px; height: 24px; color: #fff; opacity: 0.95; } /* MINDIG fehér */
.hp-product .spec__icon svg { width: 100%; height: 100%; }
.hp-product .spec__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hp-product .spec__value { font-size: 14px; font-weight: 600; line-height: 1.2; }
.hp-product .spec__label { font-size: 11px; color: var(--fg-faint); }
.hp-product .spec__div { width: 1px; background: var(--rule); flex: 0 0 auto; align-self: stretch; }

.hp-product .thumbs { display: flex; align-items: center; gap: 10px; }
.hp-product .thumb {
  width: 92px; height: 62px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: rgba(255,255,255,0.06);
  flex: 0 0 auto; padding: 0;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.hp-product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-product .thumb.is-active { border-color: var(--car-accent); }
.hp-product .thumb:hover { transform: translateY(-2px); }

/* ---------- Galéria nyilak ---------- */

.hp-product .gallery-arrow {
  position: absolute; top: 50vh; transform: translateY(-50%); z-index: 8;
  width: 54px; height: 54px; border-radius: 999px;
  border: 1px solid var(--rule); background: rgba(0,0,0,0.35); color: var(--fg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.hp-product .gallery-arrow:hover { background: rgba(0,0,0,0.55); }
.hp-product .gallery-arrow:active { transform: translateY(-50%) scale(0.96); }
.hp-product .gallery-arrow svg { width: 22px; height: 22px; }
.hp-product .gallery-arrow--prev { left: clamp(10px, 1.6vw, 22px); }
.hp-product .gallery-arrow--next { left: calc(60% - 27px); }

/* ---------- Foglalási panel (glassmorphism) ---------- */

.hp-product .booking {
  position: sticky; top: 18px;
  background: rgba(16,18,20,0.40);
  color: var(--panel-fg);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  padding: clamp(20px, 1.6vw, 26px);
  backdrop-filter: blur(28px) saturate(125%);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.hp-product .booking__title { font-size: 20px; font-weight: 700; margin: 0 0 2px; }
.hp-product .booking__subtitle { font-size: 13px; color: var(--panel-muted); margin: 0 0 14px; }

/* ---------- A WC add-to-cart form (.hp-atc) — plugin-kimenet alap-stílusa ----------
   FIGYELEM: a WP Swings és az Acowebs pontos osztálynevei csak az élő HTML-ből
   derülnek ki. Az alábbi általános szabályok glassesre hangolják a tipikus
   kimenetet (jQuery UI datepicker, mennyiség, rádiók, gomb). A pixelpontos
   illesztéshez küldd el egy termékoldal View Source-át. */

.hp-product .hp-atc { color: var(--panel-fg); }
.hp-product .hp-atc,
.hp-product .hp-atc p,
.hp-product .hp-atc label,
.hp-product .hp-atc span,
.hp-product .hp-atc td,
.hp-product .hp-atc th { color: var(--panel-fg); }
.hp-product .hp-atc a { color: var(--car-accent-bright); }

/* Mezők, inputok */
.hp-product .hp-atc input[type="text"],
.hp-product .hp-atc input[type="number"],
.hp-product .hp-atc input[type="date"],
.hp-product .hp-atc select,
.hp-product .hp-atc textarea {
  width: 100%;
  background: var(--panel-field);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  color: var(--panel-fg);
  padding: 10px 12px;
  font-size: 14px;
}
.hp-product .hp-atc input::placeholder { color: rgba(255,255,255,0.4); }

/* Mennyiség */
.hp-product .hp-atc .quantity { display: inline-flex; margin: 0 0 12px; }
.hp-product .hp-atc .quantity .qty {
  width: 72px; text-align: center;
}

/* Rádiók/checkboxok (pl. Acowebs előleg / teljes összeg) */
.hp-product .hp-atc input[type="checkbox"] { accent-color: var(--car-accent-bright); }

/* ===== Acowebs Deposits — glass stílus, a panelhez illően =====
   Tényleges markup: .awcdp-deposits-wrapper > .awcdp-deposits-option
     > .awcdp-radio.pay-deposit (input+label + .awcdp-deposits-description)
     > .awcdp-radio (input+label "Pay full amount") */
.hp-product .hp-atc .awcdp-deposits-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 14px 0 0;
}
.hp-product .hp-atc .awcdp-deposits-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
}
/* Mindkét opció külön frosted doboz */
.hp-product .hp-atc .awcdp-radio {
  display: block;
  background: var(--panel-field);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
/* A bejelölt opciót kiemeljük (a benne lévő :checked rádió alapján) */
.hp-product .hp-atc .awcdp-radio:has(input[type="radio"]:checked) {
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.11);
}
/* FONTOS: az Acowebs a natív inputot ELREJTI (position:absolute;opacity:0), a
   látható kört a .awcdp-radio-label::before pszeudo-elem rajzolja — alapból FEHÉR
   közép, és checked állapotban box-shadow:inset 0 0 0 4px #fff fehér belső gyűrűt
   ad. Ezt a ::before-t kell felülírni (a rejtett input stílusozása hatástalan).
   Eredmény: átlátszó közép + halvány gyűrű; kijelölve FIX KÉK pötty (minden
   autónál ugyanaz a kék, hogy ne vesszen el). */
.hp-product .hp-atc .awcdp-radio input[type="radio"] + .awcdp-radio-label::before {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
  width: 18px !important;
  height: 18px !important;
  top: -0.12em !important;
  margin-right: 12px !important;
  transition: background 150ms var(--ease), border-color 150ms var(--ease) !important;
}
.hp-product .hp-atc .awcdp-radio input[type="radio"]:checked + .awcdp-radio-label::before {
  background: radial-gradient(circle at center, #2f80ed 0 4.5px, transparent 5px) !important;
  border-color: #2f80ed !important;
  box-shadow: none !important;
}
.hp-product .hp-atc .awcdp-radio-label,
.hp-product .hp-atc .awcdp-radio label,
.hp-product .hp-atc .awcdp-radio .awcdp-radio-label {
  color: #fff !important; /* az Acowebs sötét label-színét felülírjuk */
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  vertical-align: middle;
}
.hp-product .hp-atc .awcdp-deposits-description {
  margin: 4px 0 0 25px; /* a rádió + gap alá igazítva */
  color: #e3a857;
  font-size: 12px;
  line-height: 1.4;
}
.hp-product .hp-atc .awcdp-deposits-description #awcdp-deposit-amount,
.hp-product .hp-atc .awcdp-deposits-description #deposit-suffix { color: #e3a857; font-weight: 600; }

/* Foglalás / Book Now gomb → az ACCENT szín hajtja (autónként állítható). */
.hp-product .hp-atc button.single_add_to_cart_button,
.hp-product .hp-atc .single_add_to_cart_button.button {
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--car-accent), #fff 16%);
  border-radius: 14px;
  background: var(--car-accent);
  color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 160ms var(--ease);
}
.hp-product .hp-atc button.single_add_to_cart_button:hover {
  background: color-mix(in srgb, var(--car-accent), #000 12%);
}
.hp-product .hp-atc button.single_add_to_cart_button:active { transform: translateY(1px); }

/* WP Swings ár / összeg sorok – ha a plugin price/total markupot ad */
.hp-product .hp-atc .price,
.hp-product .hp-atc .amount { color: var(--car-accent-bright); font-weight: 700; }

/* WP Swings költség-bontás (AJAX-szal a .mwb-mbfw-total-area-ba töltve).
   Szerkezet: __wrapper-parent > __wrapper (egy sor) > .mbfw-total-listing-single-page ×2
   (bal = címke, jobb = érték). A magyar EZRES-SZÓKÖZ miatt estek szét az árak
   ("100 000,00 Ft" → "100" / "000,00 Ft") → nowrap + tiszta kétoszlopos sor.
   Az ár színe autónként a --car-accent-bright (fekete accent → fehér, lásd PHP). */
.hp-product .mbfw-total-listing-single-page__wrapper-parent { margin-top: 14px; font-size: 13px; line-height: 1.5; }
.hp-product .mbfw-total-listing-single-page__wrapper {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0;
}
.hp-product .mbfw-total-listing-single-page__wrapper > .mbfw-total-listing-single-page:first-child {
  flex: 1 1 auto; min-width: 0; color: var(--panel-muted);
}
.hp-product .mbfw-total-listing-single-page__wrapper > .mbfw-total-listing-single-page:last-child {
  flex: 0 0 auto; text-align: right; white-space: nowrap; font-weight: 600;
}
.hp-product .mbfw-total-listing-single-page .woocommerce-Price-amount,
.hp-product .mbfw-total-listing-single-page bdi { white-space: nowrap; }
.hp-product .mbfw-total-listing-single-page .woocommerce-Price-amount { color: var(--car-accent-bright); font-weight: 700; }
.hp-product .mbfw-total-cost__wrapper {
  margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule);
  font-size: 15px; font-weight: 700;
}

/* WP Swings naptár — sose lógjon ki jobbról a panelből (mobilon is beférjen).
   A naptár JS-renderelt; ezért a konténert és bármilyen táblát beszorítunk. */
.hp-product .hp-atc { overflow-x: clip; }
.hp-product .hp-atc .mbfw-date-picker-section,
.hp-product .hp-atc .mbfw-date-picker-section__wrapper { max-width: 100%; overflow: hidden; }
.hp-product .hp-atc .ui-datepicker { width: 100% !important; max-width: 100%; box-sizing: border-box; }
.hp-product .hp-atc table,
.hp-product .hp-atc .ui-datepicker table { width: 100% !important; max-width: 100%; table-layout: fixed; }
.hp-product .hp-atc .ui-datepicker th,
.hp-product .hp-atc .ui-datepicker td { padding: 2px 0; text-align: center; }
.hp-product .hp-atc .ui-datepicker td a,
.hp-product .hp-atc .ui-datepicker td span { padding: 6px 0; display: block; }

/* jQuery UI datepicker (WP Swings gyakran ezt használja) – glass naptár */
.hp-product .ui-datepicker,
.hp-single-product .ui-datepicker {
  background: rgba(16,18,20,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px;
  color: #fff;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hp-single-product .ui-datepicker .ui-datepicker-header { background: transparent; border: none; color: #fff; }
.hp-single-product .ui-datepicker .ui-datepicker-title { color: #fff; font-weight: 600; }
.hp-single-product .ui-datepicker th { color: rgba(255,255,255,0.6); font-weight: 500; }
.hp-single-product .ui-datepicker td a,
.hp-single-product .ui-datepicker td span {
  text-align: center; border-radius: 999px; border: none; background: transparent; color: #fff;
}
.hp-single-product .ui-datepicker td a:hover { background: rgba(255,255,255,0.12); }
.hp-single-product .ui-datepicker .ui-state-active,
.hp-single-product .ui-datepicker .ui-state-highlight {
  background: rgba(255,255,255,0.92); color: #16130f; font-weight: 600;
}
.hp-single-product .ui-datepicker .ui-state-disabled { color: rgba(255,255,255,0.28); }

/* ---------- Leírás + kapcsolódó termékek (hero alatt) ---------- */

.hp-product .hp-details {
  position: relative; z-index: 5;
  background-color: #0a0a0b;
  border-top: 1px solid var(--rule);
  margin-top: 0; /* a héró-kép közvetlenül a leírásig ér, nincs fekete rés */
}
/* Finom háttér-textúra: autónkénti accent-fény felül + diszkrét pontrács,
   hogy a lapos fekete ne legyen üres. A ::before a tartalom MÖGÖTT (z-index:0). */
.hp-product .hp-details::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(115% 80% at 50% -8%, color-mix(in srgb, var(--car-accent-bright) 13%, transparent) 0%, transparent 52%),
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.6px);
  background-size: 100% 100%, 26px 26px;
  background-position: center top, center top;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.hp-product .hp-details__inner { position: relative; z-index: 1; }
.hp-product .hp-details__inner {
  max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad-x);
}
.hp-product .hp-details .woocommerce-Tabs-panel { color: var(--fg-muted); }
.hp-product .hp-details h2 { color: var(--fg); }
.hp-product .hp-details .tabs li a { color: var(--fg-muted); }
.hp-product .hp-details .tabs li.active a { color: var(--fg); }
.hp-product .hp-details .products a { color: var(--fg); }

/* ---------- Prémium-előnyök sáv (a leírás alatt, kapcsolódó termékek felett) ---------- */
.hp-product .hp-perks { margin: clamp(36px, 5vw, 64px) 0 clamp(8px, 2vw, 16px); }
.hp-product .hp-perks__title {
  text-align: center; font-family: var(--font-display, "Oswald", sans-serif);
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 clamp(22px, 3vw, 36px);
}
.hp-product .hp-perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.5vw, 20px); }
.hp-product .hp-perk {
  position: relative; padding: clamp(20px, 2vw, 28px) clamp(18px, 1.8vw, 24px);
  border-radius: 18px; border: 1px solid var(--rule);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--car-accent) 16%, transparent), color-mix(in srgb, var(--car-accent) 4%, transparent)),
    rgba(255, 255, 255, 0.015);
  overflow: hidden; transition: transform 240ms var(--ease, cubic-bezier(0.22,1,0.36,1)), border-color 240ms var(--ease, cubic-bezier(0.22,1,0.36,1));
}
.hp-product .hp-perk::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--car-accent-bright), transparent);
  opacity: 0.5;
}
.hp-product .hp-perk:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--car-accent-bright) 45%, var(--rule)); }
.hp-product .hp-perk__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--car-accent-bright) 35%, var(--rule));
  background: color-mix(in srgb, var(--car-accent) 22%, transparent); color: var(--car-accent-bright);
}
.hp-product .hp-perk__icon svg { width: 26px; height: 26px; }
.hp-product .hp-perk__title { font-size: 16px; font-weight: 700; color: var(--fg); margin: 0 0 8px; }
.hp-product .hp-perk__text { font-size: 13px; line-height: 1.55; color: var(--fg-muted); margin: 0; }

/* ---------- Reszponzív ---------- */

@media (max-width: 900px) {
  /* Mobil: a 9:16 ÁLLÓ háttérkép a COL-LEFT háttere → pontosan a cím+spec+galéria
     mögött van (a tartalomhoz méreteződik), nem lóg feketére; a panel alatta sötéten.
     A 82vh min-height ~9:16 arányú területet ad, így a teljes álló kép látszik. */
  .hp-product__bg, .hp-product__scrim { display: none; }

  /* Bármilyen vízszintes túlcsordulás levágása → nincs aszimmetrikus jobb rés. */
  body.hp-single-product { overflow-x: hidden; }

  .hp-product .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 12; }
  /* Mobilon csak a szöveges menü-linkek tűnnek el; a Fiók/Kosár ikonok
     (a .topnav__icons-ban) láthatók maradnak — mint a shop oldalon. */
  .hp-product .topnav__link { display: none; }

  .hp-product .stage { grid-template-columns: 1fr; min-height: 0; gap: 18px; padding-top: 0; }

  .hp-product .col-left {
    position: relative;
    min-height: 82vh;
    margin: 0 calc(-1 * var(--pad-x)); /* full-bleed: kinyúlik a stage paddingból */
    padding: 64px var(--pad-x) clamp(16px, 4vw, 24px); /* felül hely a logónak */
    background-image:
      linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 58%, rgba(0,0,0,0.60) 100%),
      var(--bg-m);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .hp-product .col-left__bottom { margin-top: auto; margin-bottom: 0; padding-top: 18px; }

  .hp-product .gallery-arrow { display: none; } /* mobilon a thumbnailek navigálnak */
  .hp-product .booking { position: static; }

  /* Spec-csík mobilon: kompakt 3 soros, minden spec EGY sorban (a base flex:1 osztja el). */
  .hp-product .spec-card { gap: 3px; padding: 14px 8px; }
  .hp-product .spec { gap: 5px; }
  .hp-product .spec__icon { width: 18px; height: 18px; }
  .hp-product .spec__value { font-size: 11px; line-height: 1.12; }
  .hp-product .spec__label { font-size: 9px; }

  .hp-product .hp-perks__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .hp-product .product-title { font-size: clamp(28px, 9vw, 40px); }
  .hp-product .thumb { width: 76px; height: 52px; }
  .hp-product .hp-perks__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-product *, .hp-product *::before, .hp-product *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   WooCommerce fülek (Leírás / Vélemények) — sötét glass dizájn.
   Ezek a .hp-product-on KÍVÜL renderelnek (woocommerce_after_single_product_summary),
   ezért body.hp-single-product alá zárva, LITERÁL színekkel (a .hp-product
   CSS-változói ezen a szinten nem elérhetők).
   ========================================================= */
body.hp-single-product .woocommerce-tabs {
  max-width: 1000px;
  margin: clamp(28px, 6vw, 64px) auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
}
/* Fül-lista (Leírás | Vélemények) — a WC default kereteket/vonalakat lenulláza. */
/* Szegmentált kapcsoló (a csatolt dizájn szerint): egy lekerekített glass konténer +
   két szegmens, mindkettőn ikon (JS injektálja: .hp-tab-ico inline SVG, stroke=currentColor).
   Aktív = a TERMÉK accentjével tintázott háttér + accent ikon + FEHÉR szöveg
   (a --car-accent-bright a body-ra van kiírva; fekete accent → #ffffff). */
body.hp-single-product .woocommerce-tabs ul.tabs.wc-tabs {
  display: inline-flex; gap: 6px;
  margin: 0 0 8px; padding: 7px; list-style: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06); /* halvány keret → ne legyen "dupla doboz" */
  border-radius: 24px; /* jobban lekerekítve, mint a cél dizájnon */
  max-width: 100%; flex-wrap: wrap;
}
body.hp-single-product .woocommerce-tabs ul.tabs::before,
body.hp-single-product .woocommerce-tabs ul.tabs::after { content: none !important; display: none !important; }
body.hp-single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important; border: none !important;
  border-radius: 0 !important; margin: 0 !important; padding: 0 !important;
}
body.hp-single-product .woocommerce-tabs ul.tabs li::before,
body.hp-single-product .woocommerce-tabs ul.tabs li::after { content: none !important; display: none !important; border: none !important; }
body.hp-single-product .woocommerce-tabs ul.tabs li a {
  /* !important: a WC default (.woocommerce div.product … li a) specifikusabb, ezért
     felülírná a display/padding-et → az ikon a szöveg fölé csúszna. */
  display: inline-flex !important; flex-direction: row !important;
  align-items: center; justify-content: center; gap: 16px;
  padding: 13px 30px !important; border-radius: 18px;
  width: auto !important; float: none !important; height: auto !important;
  border: 1px solid transparent; background: transparent;
  color: rgba(255, 255, 255, 0.55); font-weight: 600; font-size: 14.5px;
  text-decoration: none; white-space: nowrap; line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
/* Ikon (JS injektálja a tab elejére; stroke=currentColor → a .hp-tab-ico színét veszi) */
body.hp-single-product .woocommerce-tabs ul.tabs li a .hp-tab-ico {
  width: 18px; height: 18px; flex: 0 0 auto; display: block;
  color: rgba(255, 255, 255, 0.5);
  transition: color 180ms ease;
}
body.hp-single-product .woocommerce-tabs ul.tabs li a:hover {
  color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.06);
}
/* Aktív szegmens — a termék accentje */
body.hp-single-product .woocommerce-tabs ul.tabs li.active a {
  color: #fff !important;
  /* Kitöltött kiemelés KERET NÉLKÜL (a keret + a konténer kerete adta a "dupla doboz" hatást). */
  background: color-mix(in srgb, var(--car-accent-bright, #5fbf95) 24%, transparent);
  border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
body.hp-single-product .woocommerce-tabs ul.tabs li.active a .hp-tab-ico {
  color: var(--car-accent-bright, #5fbf95);
}
/* Panel-tartalom */
body.hp-single-product .woocommerce-Tabs-panel {
  padding: 24px 0 8px; color: rgba(255, 255, 255, 0.82);
  font-size: 15px; line-height: 1.75;
}
body.hp-single-product .woocommerce-Tabs-panel > h2,
body.hp-single-product .woocommerce-Tabs-panel h3 { color: #fff; font-weight: 700; margin-top: 0; }
body.hp-single-product .woocommerce-Tabs-panel a { color: #fff; }
body.hp-single-product .woocommerce-Tabs-panel p { margin: 0 0 1em; }
/* Vélemények űrlap (ha van) — mezők a sötét panelhez */
body.hp-single-product #reviews input:not([type="submit"]),
body.hp-single-product #reviews textarea {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  color: #fff; border-radius: 10px; padding: 10px 12px;
}

/* =========================================================
   Kapcsolódó termékek — glass kártyák (mint a shopon), de a termékoldalon
   (a shop-CSS itt nincs betöltve). LITERÁL színek; ár elrejtve (kérésre).
   ========================================================= */
body.hp-single-product .related.products {
  max-width: 1200px;
  margin: clamp(36px, 7vw, 80px) auto 0;
  padding: 0 clamp(20px, 4vw, 40px) clamp(48px, 8vh, 96px);
  clear: both;
}
body.hp-single-product .related.products > h2 {
  font-family: "Oswald", "Inter", sans-serif; font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 1px; text-transform: uppercase;
  color: #fff; margin: 0 0 clamp(16px, 2vw, 24px);
}
body.hp-single-product .related.products ul.products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 2vw, 28px); margin: 0; padding: 0; list-style: none;
}
body.hp-single-product .related.products ul.products::before,
body.hp-single-product .related.products ul.products::after { content: none !important; display: none !important; }
body.hp-single-product .related.products li.product.hp-card,
body.hp-single-product .related.products .hp-card {
  float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important;
  list-style: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px; overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
body.hp-single-product .related.products li.product.hp-card::before,
body.hp-single-product .related.products li.product.hp-card::after { content: none !important; display: none !important; }
body.hp-single-product .related.products li.product.hp-card:hover {
  border-color: rgba(255,255,255,0.28); transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
body.hp-single-product .related.products .hp-card__link-wrap { display: block; color: inherit; text-decoration: none; }
body.hp-single-product .related.products .hp-card__img {
  aspect-ratio: 16 / 10; background-size: cover; background-position: center;
  border-radius: 14px; margin: 10px 10px 0;
}
body.hp-single-product .related.products .hp-card__body { padding: 16px 20px 20px; }
body.hp-single-product .related.products .hp-card__eyebrow {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 8px;
}
body.hp-single-product .related.products .hp-card__title {
  font-family: "Oswald", "Inter", sans-serif; font-weight: 600;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.05; letter-spacing: 1px;
  text-transform: uppercase; color: #fff; margin: 0 0 14px;
}
/* Ár elrejtve a kapcsolódó kártyákon (a shopon marad). */
body.hp-single-product .related.products .hp-card__price { display: none; }
/* WC default csillagok elrejtve a related kártyákon. */
body.hp-single-product .related.products .star-rating { display: none; }
body.hp-single-product .related.products .hp-card__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
}
body.hp-single-product .related.products .hp-card__cta svg { width: 18px; height: 18px; transition: transform 220ms ease; }
body.hp-single-product .related.products li.product.hp-card:hover .hp-card__cta svg { transform: translateX(4px); }
