/* Torii v3 (22.10.2026): Rest des Shops an den neuen Startseiten-Hero angleichen.
 * Gleiche Bausteine wie torii-home.css: helle Bildflaeche #F3F1EE statt schwarzer
 * Rahmen, roter Kreis (der Punkt aus jedem Motiv) hinter dem Produkt, Bebas-Neue-
 * Buttons in Torii-Rot. Laedt nach style.css und ueberschreibt dort gezielt.
 */
:root {
  --v3-ink: #0A0A0A;
  --v3-red: #DC2626;
  --v3-card: #F3F1EE;
  --v3-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================
   PRODUKTSEITE
   ============================================================ */

/* Galerie: helle Flaeche, keine schwarzen Rahmen */
.single-product .woocommerce-product-gallery {
  border: 0 !important;
}
/* Kein roter Kreis hier: Das Galeriebild ist so gross, dass der Hoodie ihn ganz
   verdeckt (getestet 22.10.2026). Helle Flaeche wie bei den Karten genuegt.
   Wichtig: auf .flex-viewport, nicht __wrapper - der ist 1600 % breit. */
.single-product .woocommerce-product-gallery .flex-viewport {
  background: var(--v3-card) !important;
  border: 0 !important;
}
.single-product .woocommerce-product-gallery__wrapper {
  background: transparent !important;
  border: 0 !important;
}
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.single-product .woocommerce-product-gallery__image img {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .28));
}
.single-product .woocommerce-product-gallery__trigger {
  background: #fff !important;
  border-radius: 0 !important;
  border-left: 3px solid var(--v3-red) !important;
}

/* Vorschaubilder: helle Kacheln, aktive rot unterstrichen, keine Beschriftung */
.single-product .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 10px !important;
}
.single-product .flex-control-thumbs li {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--v3-card);
}
.single-product .flex-control-thumbs li img {
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  opacity: .55;
  transition: opacity .2s, border-color .2s;
}
.single-product .flex-control-thumbs li img.flex-active,
.single-product .flex-control-thumbs li img:hover {
  opacity: 1;
  border-bottom-color: var(--v3-red) !important;
}
.single-product .flex-control-thumbs li .torii-img-label {
  display: none !important;
}

/* Titelblock */
.single-product .summary .product_title {
  font-size: clamp(40px, 4.6vw, 72px) !important;
  line-height: .9 !important;
  letter-spacing: .01em !important;
}
.single-product .summary .product_title::before {
  content: "日本のストリートウェア";
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--v3-red);
  margin-bottom: 14px;
}
.single-product .summary > .price,
.single-product .summary p.price {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 34px !important;
  letter-spacing: .03em;
  margin-left: 0 !important;
  border-left: 4px solid var(--v3-red);
  padding-left: 12px !important;
}

/* Auswahlfelder: duenne Linie statt schwerer Kasten */
.woocommerce div.product form.cart .variations select {
  border: 1px solid var(--v3-ink) !important;
  border-radius: 0 !important;
  background-color: #fff !important;
}
.woocommerce div.product form.cart .variations select:focus {
  outline: 2px solid var(--v3-red);
  outline-offset: 1px;
}
.woocommerce div.product form.cart .variations th.label label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  letter-spacing: .1em;
  font-weight: 400;
}

/* Kaufbutton wie "Jetzt shoppen" im Hero */
.single-product .single_add_to_cart_button.button,
.single-product .single_add_to_cart_button.button.alt {
  background: var(--v3-red) !important;
  border: 2px solid var(--v3-red) !important;
  color: #fff !important;
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 19px !important;
  letter-spacing: .14em !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  transition: background .2s, border-color .2s;
}
.single-product .single_add_to_cart_button.button:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}
/* Noch keine Variante gewaehlt: klar als "erst auswaehlen" lesbar, nicht rosa */
.single-product .single_add_to_cart_button.button.disabled,
.single-product .single_add_to_cart_button.button:disabled {
  background: #fff !important;
  color: #8a8a8a !important;
  border: 2px solid #d4d4d4 !important;
  cursor: not-allowed;
}
.single-product form.cart .quantity input.qty {
  border: 1px solid var(--v3-ink) !important;
  border-radius: 0 !important;
}

/* Tabs: Unterstreichung statt Kaesten */
.woocommerce .woocommerce-tabs .tabs {
  border-bottom: 1px solid var(--v3-ink) !important;
  padding: 0 !important;
  margin: 0 0 32px !important;
}
.woocommerce .woocommerce-tabs .tabs::before,
.woocommerce .woocommerce-tabs .tabs li::before,
.woocommerce .woocommerce-tabs .tabs li::after {
  display: none !important;
}
.woocommerce .woocommerce-tabs .tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 24px 0 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.woocommerce .woocommerce-tabs .tabs li a {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: 18px !important;
  letter-spacing: .1em !important;
  color: #8a8a8a !important;
  background: transparent !important;
  padding: 10px 0 !important;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.woocommerce .woocommerce-tabs .tabs li.active a {
  color: var(--v3-ink) !important;
  border-bottom-color: var(--v3-red);
}
.woocommerce .woocommerce-tabs .panel {
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  max-width: 820px;
}
.woocommerce .woocommerce-tabs .panel > h2:first-child {
  display: none;
}
.woocommerce .woocommerce-tabs .panel table {
  border-collapse: collapse;
}
.woocommerce .woocommerce-tabs .panel table th {
  border-bottom: 2px solid var(--v3-ink) !important;
}

/* "Das koennte dir auch gefallen" / Zubehoer */
.single-product .related > h2,
.single-product .upsells > h2 {
  font-family: "Bebas Neue", sans-serif !important;
  font-size: clamp(36px, 4vw, 56px) !important;
  font-weight: 400 !important;
  border-bottom: 1px solid var(--v3-ink);
  padding-bottom: 12px;
  margin-bottom: 28px !important;
}

/* ============================================================
   SHOP-KACHELN (Kategorien, Shop, Verwandte Produkte)
   ============================================================ */
ul.products li.product a.woocommerce-loop-product__link,
.woocommerce .products .product a.woocommerce-loop-product__link {
  background: var(--v3-card) !important;
}
ul.products li.product a img,
.woocommerce .products .product .woocommerce-loop-product__link img {
  background: transparent !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
}
/* Roter Kreis waechst beim Hover hinter dem Motiv - wie bei den Highlights */
ul.products li.product a.woocommerce-loop-product__link::before {
  content: "";
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--v3-red);
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  transition: transform .45s var(--v3-ease), opacity .45s var(--v3-ease);
  z-index: 0;
}
ul.products li.product a.woocommerce-loop-product__link img {
  position: relative;
  z-index: 1;
}
ul.products li.product:hover a.woocommerce-loop-product__link::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.6);
}
ul.products li.product:hover a img {
  filter: none !important;
  transform: scale(1.04) translateY(-4px) !important;
}

/* Kategorieseite: Ueberschrift im Hero-Stil */
.tax-product_cat .archive-title,
.post-type-archive-product .archive-title {
  font-size: clamp(56px, 7vw, 110px) !important;
  line-height: .9 !important;
}
.tax-product_cat .archive-title::before,
.post-type-archive-product .archive-title::before {
  content: "日本のストリートウェア";
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: .35em;
  color: var(--v3-red);
  margin-bottom: 14px;
}
.tax-product_cat .term-description,
.post-type-archive-product .page-description {
  max-width: 760px;
  margin: 0 auto;
  color: #555;
}

/* ============================================================
   STARTSEITE UNTEN: "Neueste Designs" + "Kollektionen"
   ============================================================ */
.torii-featured-card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.torii-featured-card:hover { transform: none !important; box-shadow: none !important; }
.torii-featured-card > img,
.torii-featured-card .torii-featured-card__img {
  background: var(--v3-card) !important;
  object-fit: contain !important;
}
.torii-featured-card__info {
  border-top: 0 !important;
  padding: 12px 0 0 !important;
  text-align: left !important;
}
.torii-featured-card__bar { display: none !important; }
.torii-featured-card:hover .torii-featured-card__img {
  transform: scale(1.04) translateY(-4px) !important;
}

.home .torii-kollektionen {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 4px solid var(--v3-red);
}

/* Nachtrag: aktiver Tab hatte aus style.css noch schwarzen Hintergrund */
.woocommerce .woocommerce-tabs .tabs li.active,
.woocommerce .woocommerce-tabs .tabs li:hover {
  background: transparent !important;
}
.woocommerce .woocommerce-tabs,
.woocommerce .woocommerce-tabs .tabs li {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 768px) {
  .woocommerce .woocommerce-tabs .tabs { display: flex !important; flex-wrap: wrap; gap: 0 18px; }
  .woocommerce .woocommerce-tabs .tabs li { margin: 0 !important; width: auto !important; }
  .woocommerce .woocommerce-tabs .tabs li a { font-size: 16px !important; }
}

/* KEIN mix-blend-mode: Die Produktbilder sind freigestellte PNGs (Ecke alpha 0).
   "multiply" hatte helle Textilien ueber dem roten Kreis rot eingefaerbt
   (weisses Raijin-Tee, Rudi 22.10.2026). Grau kam nur aus altem CSS-Hintergrund. */
.single-product .woocommerce-product-gallery__image img {
  filter: none;
}

/* ============================================================
   SHOP-RASTER wie die Highlights der Startseite (22.10.2026, Rudi:
   "nicht so kachelmaessig"). Weg: schwarze 1-px-Fugen (Raster-Hintergrund
   schwarz + gap 1px aus style.css), weisse Infokaesten, Trennlinie unter dem
   Preis. Neu: Luft zwischen den Karten, quadratische helle Bildflaeche,
   Text frei darunter.
   ============================================================ */
.woocommerce .products,
ul.products {
  background: transparent !important;
  gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 22px) !important;
}
ul.products li.product,
.woocommerce .products .product {
  background: transparent !important;
  overflow: visible !important;
  border: 0 !important;
  box-shadow: none !important;
}
ul.products li.product::before { display: none !important; }
ul.products li.product .product-details,
ul.products li.product .entry-content-wrap {
  background: transparent !important;
  padding: 12px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
ul.products li.product a.woocommerce-loop-product__link {
  aspect-ratio: 1 / 1;
}
ul.products li.product a.woocommerce-loop-product__link img,
.woocommerce .products .product .woocommerce-loop-product__link img {
  height: 100% !important;
  aspect-ratio: 1 / 1;
}
ul.products li.product .torii-card-tag {
  padding: 0 !important;
  margin: 0 0 4px !important;
  font-size: 11px;
  opacity: 1;
}
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2.woocommerce-loop-product__title {
  font-size: clamp(18px, 1.6vw, 23px) !important;
  letter-spacing: .02em !important;
  line-height: 1.05 !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
}
ul.products li.product .price {
  padding: 6px 0 0 !important;
  border-bottom: 0 !important;
  font-size: 15px !important;
  letter-spacing: 0 !important;
}
@media (max-width: 768px) {
  .woocommerce .products,
  ul.products { gap: 26px 12px !important; }
  ul.products li.product .woocommerce-loop-product__title,
  ul.products li.product h2.woocommerce-loop-product__title { font-size: 18px !important; }
}

/* "Aehnliche Produkte"/Zubehoer: Im Customizer (Zusaetzliches CSS, Post 5074) steht
   ein alter Fix, der beide Bereiche schwarz setzt und den Infokasten weiss. Seit
   die Kaesten weg sind, stand der Text schwarz auf schwarz (Rudi 22.10.2026).
   Hier mit hoeherer Spezifitaet hell wie die Highlights; Customizer bleibt unberuehrt. */
body.single-product section.up-sells.upsells.products,
body.single-product section.related.products {
  background-color: transparent !important;
  padding: 0 !important;
  border-top: 0 !important;
  margin-top: clamp(48px, 7vw, 96px) !important;
}
body.single-product section.up-sells.upsells.products h2,
body.single-product section.related.products h2 {
  color: var(--v3-ink) !important;
}
body.single-product section.up-sells .product-details,
body.single-product section.related .product-details {
  background-color: transparent !important;
  color: var(--v3-ink) !important;
}

/* Kachel-Hinweise (Kleinunternehmer, zzgl. Versandkosten): Kadence blendet sie bei
   Hover/Tipp absolut UEBER Name und Preis ein ("ineinander gequetscht", Rudi
   22.10.2026). Jetzt fest und klein unter dem Preis - die Angaben gehoeren
   ohnehin sichtbar zum Preis. */
.woocommerce ul.products.woo-archive-action-on-hover li.product .product-action-wrap,
.woocommerce ul.products li.product .product-action-wrap {
  position: static !important;
  opacity: 1 !important;
  padding: 0 !important;
  margin: 4px 0 0 !important;
  bottom: auto !important;
  transform: none !important;
}
ul.products li.product .product-action-wrap .wc-gzd-additional-info {
  font-size: 11px !important;
  line-height: 1.4 !important;
  color: #8a8a8a !important;
  margin: 0 !important;
  padding: 0 !important;
}
ul.products li.product .product-action-wrap .wc-gzd-additional-info a { color: inherit !important; }
ul.products li.product .product-excerpt { display: none !important; }
ul.products li.product .torii-card-panel { display: none !important; }

/* Produktseite am Handy: Luft unter dem Menue, Titel weniger wuchtig */
.single-product .woocommerce-breadcrumb,
.single-product .product-title.product-above,
.single-product nav.woocommerce-breadcrumb {
  margin-top: 14px !important;
}
@media (max-width: 768px) {
  .single-product .summary .product_title { font-size: 40px !important; }
  .single-product .summary { margin-top: 18px; }
  .single-product .summary > .price,
  .single-product .summary p.price { font-size: 28px !important; }
  .single-product .woocommerce-product-gallery .torii-img-label { font-size: 10px !important; padding: 4px 8px !important; }
}

/* Kacheln: nur "zzgl. Versandkosten" unter dem Preis. Der Kleinunternehmer-Hinweis
   steht auf Produktseite, im Warenkorb und an der Kasse. */
ul.products li.product .product-action-wrap .small-business-info { display: none !important; }
ul.products li.product .product-action-wrap .wc-gzd-additional-info { border: 0 !important; }

/* Leere Platzhalter (Germanized-Grundpreis o. ae.) bekamen den roten Preisbalken */
.single-product .summary p.price:empty,
.single-product .summary .price.wc-gzd-additional-info-placeholder {
  border-left: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
