/* ==========================================================================
   Shop-Startseite (/shop/, alle Sprachen) und Kategorie-Kacheln.
   Markup: woocommerce/archive-product.php (Rahmen nkp-sh-*), woocommerce/content-product_cat.php (Kacheln nkp-cat-*).
   Geladen von archive-product.php. Farben wie Veranstaltungs-Detailseite (nkp-evd) und Widerrufsseite (nkp-wdr).
   Das Custom CSS der Datenbank (Abschnitt "SHOP – KATEGORIEÜBERSICHT", u. a. Bilder 110 px am Handy) wird hier mit
   laengeren Selektoren und !important uebersteuert; es bleibt selbst unveraendert.
   ========================================================================== */
#archive-product{--sh-ink:#25352b;--sh-text:#3e4a41;--sh-muted:#6c776e;--sh-green:#4d6a54;--sh-wash:#e7ece3;--sh-paper:#fbfaf6;--sh-line:#dde3d9;--sh-mauve:#736b78}

/* ---------- Rahmen ---------- */
#archive-product .nkp-sh{display:block;clear:both;max-width:1040px;margin:10px auto 50px;padding:50px 52px 56px;background:var(--sh-paper);border:1px solid var(--sh-line);border-radius:8px;color:var(--sh-text);box-sizing:border-box}

/* Einleitung: links Herkunft und Titel, rechts der Text */
#archive-product .nkp-sh .nkp-sh-intro{display:grid;grid-template-columns:minmax(0,11fr) minmax(0,9fr);gap:44px;align-items:end;margin:0;padding:0 0 38px;border-bottom:1px solid var(--sh-line);text-align:left}
#archive-product .nkp-sh .nkp-sh-kicker{display:flex;align-items:center;gap:12px;margin:0 0 14px !important;padding:0;font-family:Lato,sans-serif;font-size:11px !important;line-height:1.4 !important;letter-spacing:.22em;text-transform:uppercase;color:var(--sh-mauve) !important}
#archive-product .nkp-sh .nkp-sh-kicker::before{content:"";flex:0 0 28px;height:1px;background:currentColor}
#archive-product .nkp-sh h1.nkp-sh-title{margin:0 !important;padding:0 !important;font-family:Lato,sans-serif !important;font-size:32px !important;font-weight:300 !important;line-height:1.2 !important;letter-spacing:.2px;text-align:left !important;text-transform:none !important;color:var(--sh-ink) !important}
#archive-product .nkp-sh .nkp-sh-lead p{margin:0 0 .8em !important;padding:0;font-family:'Roboto Slab',Georgia,serif;font-size:14.5px !important;line-height:1.7 !important;text-align:left;color:var(--sh-text) !important}
#archive-product .nkp-sh .nkp-sh-lead p:last-child{margin-bottom:0 !important;color:var(--sh-muted) !important}

/* Abschnitts-Ueberschrift "Unsere Kategorien" mit Linie */
#archive-product .nkp-sh h2.nkp-sh-label{display:flex;align-items:center;gap:18px;margin:34px 0 26px !important;padding:0 !important;font-family:Lato,sans-serif !important;font-size:12px !important;font-weight:700 !important;line-height:1.4 !important;letter-spacing:.2em !important;text-transform:uppercase !important;text-align:left !important;color:var(--sh-ink) !important}
#archive-product .nkp-sh h2.nkp-sh-label::after{content:"";flex:1 1 auto;height:1px;background:var(--sh-line)}

/* Leere Platzhalter der Vorlage im Rahmen */
#archive-product .nkp-sh .all-subcategories{display:none}

/* ---------- Kategorie-Raster: 4 Spalten (Desktop/Tablet), 2 Spalten (Handy) ---------- */
#archive-product .shop-products.grid-view:has(> li.nkp-cat):not(:has(> .item-col)){display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:34px 30px !important;width:auto !important;margin:0 !important;padding:0 !important;list-style:none}
#archive-product .shop-products.grid-view:has(> li.nkp-cat)::before,
#archive-product .shop-products.grid-view:has(> li.nkp-cat)::after{display:none !important;content:none !important}

#archive-product .shop-products.grid-view > li.product-category.nkp-cat,
#archive-product .shop-products.grid-view > li.product-category.nkp-cat.first,
#archive-product .shop-products.grid-view > li.product-category.nkp-cat.last{display:block !important;float:none !important;clear:none !important;width:auto !important;max-width:none !important;margin:0 !important;padding:0 !important;list-style:none !important;text-align:left !important;box-sizing:border-box}

#archive-product .shop-products > li.product-category.nkp-cat > a{display:block !important;float:none !important;width:100% !important;margin:0 !important;padding:0 !important;color:var(--sh-ink);text-decoration:none !important}
#archive-product .shop-products > li.product-category.nkp-cat > a:focus-visible{outline:2px solid var(--sh-green);outline-offset:4px}

/* Bild: fester Ausschnitt 4:5, alle Kacheln gleich hoch */
#archive-product li.product-category.nkp-cat .nkp-cat-media{position:relative;display:block;aspect-ratio:4 / 5;overflow:hidden;background:var(--sh-wash);border-radius:4px}
#archive-product .shop-products > li.product-category.nkp-cat .nkp-cat-media img{display:block !important;float:none !important;width:100% !important;max-width:none !important;height:100% !important;margin:0 !important;object-fit:cover;object-position:center;border-radius:0 !important;box-shadow:none !important;transform:none;transition:transform .7s cubic-bezier(.2,.6,.2,1),filter .3s}

/* Text unter dem Bild: Name, Anzahl */
#archive-product li.product-category.nkp-cat .nkp-cat-text{display:block;padding:13px 0 0;text-align:left !important}
#archive-product .shop-products > li.product-category.nkp-cat h2.nkp-cat-name{display:inline !important;float:none !important;width:auto !important;max-width:none !important;margin:0 !important;padding:0 !important;font-family:Lato,sans-serif !important;font-size:16px !important;font-weight:400 !important;line-height:1.35 !important;letter-spacing:.1px !important;text-align:left !important;text-transform:none !important;color:var(--sh-ink) !important;background:none !important;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1px;text-underline-offset:4px;transition:text-decoration-color .2s}
#archive-product li.product-category.nkp-cat .nkp-cat-count{display:block;text-align:left !important;margin-top:3px;font-family:Lato,sans-serif;font-size:11px;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:var(--sh-muted)}

@media (hover:hover){
	#archive-product .shop-products > li.product-category.nkp-cat > a:hover .nkp-cat-media img{transform:scale(1.035) !important}
	#archive-product .shop-products > li.product-category.nkp-cat > a:hover h2.nkp-cat-name{text-decoration-color:var(--sh-mauve)}
	#archive-product .shop-products > li.product-category.nkp-cat > a:hover .nkp-cat-count{color:var(--sh-mauve)}
}

/* ---------- Tablet ---------- */
@media (max-width:1199px){
	#archive-product .nkp-sh{padding:42px 40px 46px}
	#archive-product .nkp-sh .nkp-sh-intro{gap:34px}
	#archive-product .nkp-sh h1.nkp-sh-title{font-size:28px !important}
	#archive-product .shop-products.grid-view:has(> li.nkp-cat):not(:has(> .item-col)){gap:28px 22px !important}
}
@media (max-width:991px){
	#archive-product .nkp-sh .nkp-sh-intro{grid-template-columns:1fr;gap:18px;padding-bottom:30px}
	#archive-product .shop-products > li.product-category.nkp-cat h2.nkp-cat-name{font-size:15px !important}
}

/* ---------- Handy ---------- */
@media (max-width:767px){
	#archive-product .nkp-sh{margin:0 0 36px;padding:28px 18px 30px}
	#archive-product .nkp-sh .nkp-sh-kicker{letter-spacing:.16em;font-size:10.5px !important}
	#archive-product .nkp-sh h1.nkp-sh-title{font-size:24px !important}
	#archive-product .nkp-sh .nkp-sh-lead p{font-size:14px !important;line-height:1.65 !important}
	#archive-product .nkp-sh h2.nkp-sh-label{margin:26px 0 20px !important}
	#archive-product .shop-products.grid-view:has(> li.nkp-cat):not(:has(> .item-col)){grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:24px 14px !important}
	#archive-product .shop-products > li.product-category.nkp-cat h2.nkp-cat-name{font-size:14.5px !important}
	#archive-product li.product-category.nkp-cat .nkp-cat-count{font-size:10px;letter-spacing:.12em}
}
