/* =========================================================
   Hot Pursuit — Shop (WooCommerce termék-archívum) egyedi design.
   Minden a .hp-shop / body.hp-shop alá zárva. Csak a shopon töltődik.
   ========================================================= */

.hp-shop {
  --bg: #0c0c0d;
  --fg: #ffffff;
  --fg-muted: rgba(255,255,255,0.62);
  --fg-faint: rgba(255,255,255,0.40);
  --accent: #e10600;
  --rule: rgba(255,255,255,0.12);
  --card: rgba(255,255,255,0.045);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(20px, 4vw, 56px);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Oswald", "Inter", sans-serif;
  font-family: var(--font-sans);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
.hp-shop *, .hp-shop *::before, .hp-shop *::after { box-sizing: border-box; }
.hp-shop a { color: inherit; text-decoration: none; }
.hp-shop button { font-family: inherit; cursor: pointer; }
.hp-shop img { display: block; max-width: 100%; }

/* ---------- Oldal-szint: sötét háttér, TT5 chrome elrejtése ---------- */
body.hp-shop {
  background: var(--bg); margin: 0;
  /* TT5 root-padding nullázása → a hero/tartalom teljes szélességű (nincs szél). */
  --wp--style--root--padding-left: 0px;
  --wp--style--root--padding-right: 0px;
  --wp--style--root--padding-top: 0px;
  --wp--style--root--padding-bottom: 0px;
}
body.hp-shop .wp-site-blocks { padding: 0 !important; margin: 0 !important; }
body.hp-shop .hp-main, body.hp-shop .alignfull { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
body.hp-shop .has-global-padding { padding-left: 0 !important; padding-right: 0 !important; }
/* Felső fekete sáv megszüntetése.
   A "Product Catalog" sablon TARTALMAZZA a TT5 fejlécet (header template-part) a
   hero ELŐTT — elrejtjük. DE a rejtett fejléc is sibling marad, így a
   .wp-site-blocks flow-layoutja margin-block-start-ot tesz az UTÁNa jövő
   tartalom-blokkra → EZ a fekete sáv. Ezért a .wp-site-blocks MINDEN közvetlen
   gyerekének nullázzuk a felső térközét (nem csak a hp-main-nek, ami nincs is a
   DOM-ban ennél a sablonnál). Plusz a WP router 4px-es loading-bárja. */
body.hp-shop header.wp-block-template-part,
body.hp-shop footer.wp-block-template-part { display: none !important; }
body.hp-shop .wp-site-blocks > * { margin-block-start: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
body.hp-shop main.hp-main { margin-top: 0 !important; padding-top: 0 !important; }
body.hp-shop .hp-main > *, body.hp-shop .woocommerce > * { margin-block-start: 0 !important; }
body.hp-shop .hp-shop__hero { margin-top: 0 !important; margin-block-start: 0 !important; }
body.hp-shop .wp-interactivity-router-loading-bar { display: none !important; }
body.hp-shop .hp-main,
body.hp-shop .wp-site-blocks,
body.hp-shop #primary,
body.hp-shop .content-area,
body.hp-shop .alignwide,
body.hp-shop .woocommerce { max-width: none; margin: 0; padding: 0; background: var(--bg); }
body.hp-shop .woocommerce-breadcrumb { display: none; }
body.hp-shop .woocommerce-notices-wrapper:empty { display: none; }
/* Safety: a klasszikus archive tartalom mindig teljes szélességű (ne szorítsa
   össze a TT5 constrained-layout group). */
body.hp-shop .is-layout-constrained > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
/* A WooCommerce default archive-blokkjai a hero FELETT (breadcrumb, store-notices,
   eredményszám, rendezés) — elrejtve, mert a hero-ban/toolbarban saját van.
   (Pontos blokk-osztályok az élő HTML alapján.) */
body.hp-shop .wp-block-woocommerce-breadcrumbs,
body.hp-shop .wc-block-breadcrumbs,
body.hp-shop .wp-block-woocommerce-store-notices,
body.hp-shop .wc-block-store-notices,
body.hp-shop .wp-block-woocommerce-product-results-count,
body.hp-shop .wc-block-product-results-count,
body.hp-shop .wp-block-woocommerce-catalog-sorting,
body.hp-shop .wc-block-catalog-sorting,
body.hp-shop .wp-block-query-title { display: none !important; }

/* ---------- Hero (paál/LA kép + topbar + cím) ---------- */
.hp-shop .hp-shop__hero {
  position: relative;
  min-height: clamp(280px, 42vh, 460px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hp-shop .hp-shop__bg {
  position: absolute; inset: 0;
  background-image: var(--shop-bg-d); /* desktop/tablet: 16:9 */
  background-size: cover; background-position: center;
  z-index: 0;
}
.hp-shop .hp-shop__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 30%, rgba(12,12,13,0.7) 78%, var(--bg) 100%);
}

/* Topbar (logó + ikonok) */
.hp-shop .topbar {
  position: relative; z-index: 6;
  display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px,2vw,30px);
  padding: clamp(18px, 2.6vw, 30px) var(--pad-x);
}
.hp-shop .topbar .brand { margin-right: auto; } /* logó balra */
.hp-shop .brand { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.14em; font-size: clamp(17px,1.5vw,21px); text-transform: uppercase; }
.hp-shop .brand__mark--accent { color: #fff; }
.hp-shop .topnav { display: flex; align-items: center; gap: clamp(16px,2vw,30px); }
.hp-shop .topnav__link { font-size: 13px; font-weight: 500; opacity: 0.85; transition: opacity 200ms var(--ease); }
.hp-shop .topnav__link:hover { opacity: 1; }
.hp-shop .topnav__icons { display: flex; align-items: center; gap: 16px; }
.hp-shop .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); }
.hp-shop .icon-btn svg { width: 18px; height: 18px; }
.hp-shop .icon-btn__badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: #000; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Hamburger (mobil) */
.hp-shop .nav-toggle { display: none; border: none; background: none; color: #fff; cursor: pointer; padding: 8px 0 8px 10px; }
.hp-shop .nav-toggle svg { width: 28px; height: 28px; display: block; stroke-width: 1.4; }

/* Hero fejléc (breadcrumb + SHOP cím) */
.hp-shop .hp-shop__head {
  position: relative; z-index: 5;
  margin-top: auto;
  padding: 0 var(--pad-x) clamp(18px, 3vw, 30px);
}
.hp-shop .breadcrumb { font-size: 13px; color: var(--fg-muted); margin-bottom: 6px; }
.hp-shop .breadcrumb a:hover { color: var(--fg); }
.hp-shop .breadcrumb__sep { opacity: 0.5; margin: 0 6px; }
.hp-shop .hp-shop__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 8vw, 96px); line-height: 0.95; letter-spacing: 2px;
  text-transform: uppercase; margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

/* ---------- Eredmény-szám + rendezés (WC) ---------- */
.hp-shop .woocommerce-result-count,
.hp-shop .woocommerce-ordering { color: var(--fg-muted); font-size: 14px; }
.hp-shop .woocommerce-ordering select,
.hp-shop .orderby {
  background: var(--card); color: var(--fg); border: 1px solid var(--rule);
  border-radius: 10px; padding: 10px 14px; font-size: 14px;
}

/* A dup archív-cím elrejtve (az "Autóink"-ot a hero adja). */
.hp-shop .woocommerce-products-header { display: none !important; }
/* A WC a result-count-ot és az ordering-et a loop elé teszi; egy sorba rendezzük. */
.hp-shop .hp-shop__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hp-shop ul.products { list-style: none; }

/* ---------- Termékrács ---------- */
.hp-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important;
  gap: clamp(18px, 2vw, 28px);
  margin: clamp(16px, 2.4vw, 28px) 0 0;
  padding: 0;
  width: auto !important; max-width: none !important; float: none !important;
}
/* A WC default float + 22%-os li-szélesség felülírása (különben keskenyek a kártyák). */
.hp-shop ul.products li.product,
.hp-shop ul.products li.product.hp-card {
  width: auto !important; float: none !important; margin: 0 !important; max-width: none !important;
}
/* A WC clearfix ::before/::after a grid-ben GRID-ELEMKÉNT foglalna cellát → eltolná a
   kártyákat. Kikapcsoljuk, hogy a kártyák balról sorban töltsenek. */
.hp-shop ul.products::before,
.hp-shop ul.products::after { content: none !important; display: none !important; }
/* a content-area / loop tartalom margója */
.hp-shop .woocommerce,
.hp-shop .hp-shop__content { padding: 0 var(--pad-x) clamp(40px, 6vh, 80px); }

/* ---------- Kártya ---------- */
.hp-shop li.product.hp-card,
.hp-shop .hp-card {
  margin: 0; padding: 0; list-style: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.hp-shop 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);
}
.hp-shop .hp-card__link-wrap { display: block; color: inherit; }
.hp-shop .hp-card__img {
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  border-radius: 14px;
  margin: 10px 10px 0;
}
.hp-shop .hp-card__body { padding: 16px clamp(16px, 1.6vw, 22px) clamp(18px, 1.8vw, 24px); }
.hp-shop .hp-card__eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 8px; }
.hp-shop .hp-card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.05; letter-spacing: 1px;
  text-transform: uppercase; margin: 0 0 10px;
}
.hp-shop .hp-card__price { font-size: 15px; color: var(--fg-muted); margin-bottom: 18px; }
.hp-shop .hp-card__price .amount { color: var(--fg); font-weight: 600; }
.hp-shop .hp-price-unit { color: var(--fg-muted); font-weight: 400; font-size: 0.9em; }
.hp-shop .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: var(--fg);
}
.hp-shop .hp-card__cta svg { width: 18px; height: 18px; transition: transform 220ms var(--ease); }
.hp-shop li.product.hp-card:hover .hp-card__cta svg { transform: translateX(4px); }

/* ---------- Lapozó ---------- */
.hp-shop .woocommerce-pagination { margin: clamp(24px,4vw,48px) 0 0; text-align: center; }
.hp-shop .woocommerce-pagination ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; }
.hp-shop .woocommerce-pagination a, .hp-shop .woocommerce-pagination span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 10px; color: var(--fg); background: var(--card);
}
.hp-shop .woocommerce-pagination .current { background: #fff; color: #000; }

/* ---------- Footer ---------- */
.hp-shop .hp-shop__footer {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  padding: clamp(20px, 3vw, 32px) var(--pad-x);
  border-top: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
}
.hp-shop .hp-shop__footer a { color: #fff; opacity: 0.85; transition: opacity 200ms var(--ease); }
.hp-shop .hp-shop__footer a:hover { opacity: 1; }
.hp-shop .hp-shop__footer .sep { opacity: 0.5; }

/* ---------- Reszponzív ---------- */
@media (max-width: 900px) {
  .hp-shop .nav-toggle { display: inline-flex; order: 3; }
  .hp-shop .topbar { padding-right: 8px; }
  /* topnav → lenyíló dropdown a hamburger alatt */
  .hp-shop .topnav {
    display: none;
    position: absolute; top: calc(100% - 6px); right: 8px;
    flex-direction: column; align-items: flex-start; gap: 0;
    min-width: 180px; padding: 6px 16px;
    background: rgba(16,18,20,0.85); border: 1px solid var(--rule); border-radius: 14px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 30;
  }
  .hp-shop .topnav.is-open { display: flex; }
  .hp-shop .topnav__link { padding: 8px 0; width: 100%; font-size: 14px; }
  .hp-shop ul.products { grid-template-columns: 1fr; }
  /* Mobilon a 9:16 álló háttérkép. */
  .hp-shop .hp-shop__bg { background-image: var(--shop-bg-m); }
  .hp-shop .hp-shop__hero { min-height: clamp(340px, 60vh, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  .hp-shop *, .hp-shop *::before, .hp-shop *::after { transition-duration: 0.01ms !important; }
}
