/*
 Theme Name: hpv1-2025
 Theme URI: https://heartpresents.de/
 Description: Child Theme für HeartPresents inkl. Produkt-Grid, Filter & Kategorien-Übersicht.
 Author: Michael + ChatGPT
 Version: 1.0.0
 Template: heartpresents
 Text Domain: hpv1-2025
*/

/* ===== Kategorien-Übersicht (page-category-overview.php) ===== */
.hp-archive-header { margin: 2rem 0 1.25rem; }
.hp-title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 800; line-height: 1.2; }
.hp-intro { color:#666; max-width: 70ch; margin-top:.5rem; }

/* Grid */
.hp-grid { display: grid; gap: 1rem; }
.hp-grid--terms { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 600px){ .hp-grid--terms{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 900px){ .hp-grid--terms{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width:1200px){ .hp-grid--terms{ grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Produkt-Grid */
.hp-grid--products { grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 640px){ .hp-grid--products{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width:1024px){ .hp-grid--products{ grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* ===== Cards ===== */
.hp-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .2s, box-shadow .2s, border-color .2s;
}
.hp-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  border-color:rgba(0,0,0,.12);
}

.hp-card__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background:none;
}
.hp-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
      padding: 2.5rem;
}
.hp-card.hp-card--cat .hp-card__image img {
    padding: 1rem;
}
.hp-card__body{ padding: .9rem 1rem 1rem; display:grid; gap:.5rem; }
.hp-card__title{ font-size:1rem; font-weight:700; line-height:1.35; margin:0; }
.hp-card__title a{ color:#333; text-decoration:none; }
.hp-card__title a:hover{ text-decoration:underline; }
.hp-card__text{ color:#666; font-size:.925rem; }

.hp-btn{ display:inline-flex; align-items:center; justify-content:center; gap:.4rem; padding:.55rem .9rem; border-radius:999px; font-weight:600; font-size:.9rem; text-decoration:none; transition:background .2s ease, color .2s ease, border-color .2s ease; }
.hp-btn--ghost{ background:#fff; border:1px solid rgba(0,0,0,.12); color:#111; }
.hp-btn--ghost:hover{ border-color:rgba(0,0,0,.2); }

/* Produktkarte extra */
.hp-badge--vendor{ display:inline-block; padding:.2rem .5rem; border:1px solid rgba(0,0,0,.12); border-radius:999px; font-size:.8rem; color:#444; }
.hp-price{ font-weight:800; margin-left:.5rem; }

/* ===== Single Produkt ===== */
.hp-product__grid{ display:grid; gap:1rem; grid-template-columns: 1fr; margin-top:1rem; }
@media (min-width: 900px){ .hp-product__grid{ grid-template-columns: 5fr 7fr; } }
.hp-product__media img{ width:100%; height:auto; border-radius:12px; }
.hp-product__meta{ display:flex; align-items:center; gap:.5rem; margin-top:.5rem; }
.hp-product__cta{ margin:1rem 0; }
.hp-btn--primary{ background:#e1193a; color:#fff; border:1px solid #e1193a; }
.hp-btn--primary:hover{ filter:brightness(.95); }
.hp-aff-note{ color:#777; display:block; margin-top:.5rem; font-size:.85rem; }

/* ===== Filters ===== */
.hp-filters__row{ display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0; }
#hp-grid-target.is-loading{ opacity:.6; pointer-events:none; }

/* ===== Layout Helpers ===== */
.hp-container{max-width:1280px;margin:0 auto;padding:0 1rem;}
.hp-img{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px}

/* ===== Topbar ===== */
.hp-topbar{position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(0,0,0,.08);backdrop-filter:saturate(180%) blur(6px);background:rgba(255,255,255,.75)}
.hp-topbar__inner{display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:.75rem 1rem}
.hp-brand{display:flex;gap:.5rem;align-items:center}
.hp-brand__icon{width:36px;height:36px;border-radius:12px;background:#e1193a1a;color:#e1193a;display:flex;align-items:center;justify-content:center}
.hp-brand__text{display:flex;flex-direction:column}
.hp-domain{font-size:.8rem;color:#777;line-height:1}
.hp-brandname{font-size:1.1rem;font-weight:800;letter-spacing:-.01em}
.hp-search{flex:1;display:none}
@media(min-width:768px){ .hp-search{display:block} }
.hp-input{width:100%;padding:.6rem .8rem .6rem 2.4rem;border:1px solid #e5e7eb;border-radius:10px}

/* ===== Buttons ===== */
.hp-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem .9rem;border-radius:999px;font-weight:600;text-decoration:none}
.hp-btn--ghost{background:#fff;border:1px solid rgba(0,0,0,.12);color:#111}
.hp-btn--outline{background:#fff;border:1px solid #d1d5db}
.hp-btn--primary{background:#e1193a;border:1px solid #e1193a;color:#fff}

/* ===== Hero ===== */
.hp-hero{border-bottom:1px solid #f0f0f2;background:linear-gradient(180deg,#fff0f3,transparent)}
.hp-hero__grid{display:grid;gap:2rem;grid-template-columns:1fr}
@media(min-width:900px){ .hp-hero__grid{grid-template-columns:1fr 1fr} }
.hp-chip{display:inline-flex;align-items:center;gap:.4rem;border:1px solid #e5e7eb;border-radius:999px;padding:.35rem .7rem;color:#666}
.hp-chip--ghost{background:#f6f7f9}
.hp-hero__title{font-size:clamp(1.8rem,3.5vw,3.2rem);font-weight:800;letter-spacing:-.02em;margin:.6rem 0}
.hp-accent{color:#e1193a}
.hp-hero__text{color:#666;max-width:65ch}
.hp-hero__chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}
.hp-hero__gallery{display:grid;grid-template-columns:1fr 1fr;gap:1rem}

/* ===== Sections ===== */
.hp-section{padding:2rem 0}
.hp-section__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.hp-actions--mobile{display:block}
@media(min-width:768px){ .hp-actions--mobile{display:none} }

/* ===== Kategorie Cards ===== */
.hp-grid--cats{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:640px){ .hp-grid--cats{grid-template-columns:repeat(3,1fr)} }
@media(min-width:900px){ .hp-grid--cats{grid-template-columns:repeat(4,1fr)} }
@media(min-width:1200px){ .hp-grid--cats{grid-template-columns:repeat(8,1fr)} }

/* ===== CTA ===== */
.hp-cta{border-top:1px solid #eee;border-bottom:1px solid #eee;background:#f7f7fb}
.hp-cta__inner{display:flex;flex-direction:column;gap:1rem;align-items:center;justify-content:space-between;padding:1.5rem 1rem}
@media(min-width:768px){ .hp-cta__inner{flex-direction:row} }

/* ===== Hero Gallery Fix ===== */
.hp-hero__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
}

.hp-hero__img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 0.5rem;
}

.hp-hero__img img {
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .hp-hero__gallery { gap: 1rem; padding: 1rem; }
  .hp-hero__img img { max-height: 200px; }
}

@media (min-width: 768px) {
  .hp-hero__img img { max-height: 240px; }
}

@media (min-width: 1024px) {
  .hp-hero__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
  .hp-hero__img img { max-height: 280px; }
}
