/* ═══════════════════════════════════════════
   Brühwerk PDP — Single product page
   ═══════════════════════════════════════════ */

/* ── Price display — professional, like top stores ── */

/* Wrapper: baseline-aligned row */
.single-product .bw-sp-price-wrap {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

/* Current price (ins): big, bold, white — the focus */
.single-product .bw-sp-price-wrap .price ins,
.single-product .bw-sp-price-wrap .price ins * {
  text-decoration: none !important;
  color: #f4f4f5 !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

/* When no sale, style the direct .price amount */
.single-product .bw-sp-price-wrap .price > .woocommerce-Price-amount {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #f4f4f5 !important;
}

/* "UVP" label: matches the del style, no strikethrough */
.single-product .bw-sp-price-wrap .bw-uvp-label {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.3) !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
}

/* Original price (del): small, quiet, just a reference */
.single-product .bw-sp-price-wrap .price del,
.single-product .bw-sp-price-wrap .price del * {
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.32) !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: rgba(255,255,255,0.22) !important;
}

/* Hide sale badge, discount tag, onsale flash */
.bw-sp-sale-badge-img,
.bw-sp-sale-tag,
.single-product .onsale { display: none !important; }

/* ── Shipping text override ── */
.bw-sp-vat-note a[style*="underline"] {
  font-size: 0 !important;
  color: transparent !important;
}
.bw-sp-vat-note a[style*="underline"]::after {
  content: "\2713  Kostenloser Versand" !important;
  font-size: 0.78rem !important;
  color: #4caf50 !important;
  text-decoration: none !important;
}

/* ── Hide orphan Marke span ── */
.bw-sp-details > span.posted_in {
  display: none !important;
}

/* ── Hide theme duplicate Auf Lager ── */
.bw-sp-vat-note span:last-child {
  display: none !important;
}

/* ── Add-to-cart button ── */
.single-product .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--bw-accent) 0%, #b07d56 100%) !important;
  color: #fff !important;
  font-size: 1.1rem !important;
  padding: var(--bw-s-4) var(--bw-s-10) !important;
  border-radius: var(--bw-r-sm) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(200,149,108,0.4) !important;
  transition: transform var(--bw-t-fast), box-shadow var(--bw-t-fast) !important;
}
.single-product .single_add_to_cart_button:hover {
  box-shadow: 0 6px 20px rgba(200,149,108,0.6) !important;
  transform: translateY(-2px) !important;
}

/* ── Rating stars ── */
.single-product .star-rating {
  font-size: 1.1em !important;
}

/* ── Stock/availability ── */
.stock.in-stock {
  color: #5cb85c !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

/* ── Free shipping badge ── */
.bw-sp-shipping {
  color: #5cb85c !important;
  font-weight: 600 !important;
}

/* ── Short description fade ── */
.bw-sp-short-desc {
  max-height: 80px !important;
  overflow: hidden !important;
  position: relative !important;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%) !important;
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%) !important;
}

/* ── Tabs: center-align ── */
.single-product .bw-sp-tabs {
  margin-inline: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 1200px !important;
  position: static !important;
  padding: 0 !important;
}

.woocommerce-tabs,
.wc-tabs-wrapper,
.woocommerce div.product .woocommerce-tabs {
  max-width: min(var(--bw-container), 100% - 48px) !important;
  margin-inline: auto !important;
  padding-inline: var(--bw-s-6) !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-tabs .panel,
.woocommerce-Tabs-panel,
.single-product #tab-description {
  max-width: 900px !important;
  margin-inline: auto !important;
}

/* ══════════════════════════════════════════
   Description Tab — Premium Typography
   ══════════════════════════════════════════ */

/* Base text */
.single-product #tab-description,
.single-product #tab-description p,
.single-product #tab-description li {
  color: rgba(255,255,255,0.75) !important;
  line-height: 1.8 !important;
  font-size: 15px !important;
}

/* H2 "Beschreibung" main heading — hide redundant */
.single-product #tab-description > h2:first-child,
.single-product .woocommerce-Tabs-panel--description > h2:first-child {
  display: none !important;
}

/* H3 Section Headers (.bw-desc-section) — with top border separator */
.single-product #tab-description h3,
.single-product .bw-desc-section > h3,
.single-product .woocommerce-Tabs-panel h3 {
  color: var(--bw-text) !important;
  font-family: var(--bw-font-serif) !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin: 48px 0 20px !important;
  padding-top: 28px !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  letter-spacing: -0.01em !important;
}
/* First H3 — no border */
.single-product .bw-desc-section:first-of-type > h3,
.single-product #tab-description h3:first-of-type {
  margin-top: 8px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* H2 fallback for products that use H2 instead of H3 */
.single-product #tab-description h2:not(:first-child) {
  color: var(--bw-text) !important;
  font-family: var(--bw-font-serif) !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin: 48px 0 20px !important;
  padding-top: 28px !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* Description section containers */
.single-product .bw-desc-section {
  margin-bottom: 8px !important;
}

/* Bold feature labels (like "Wassertank:", "Getränkevielfalt:") */
.single-product #tab-description strong {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 600 !important;
}

/* Lists in description */
.single-product #tab-description ul,
.single-product #tab-description ol {
  padding-left: 20px !important;
  margin: 16px 0 !important;
}
.single-product #tab-description li {
  margin-bottom: 8px !important;
  padding-left: 4px !important;
}
.single-product #tab-description ul li::marker {
  color: var(--bw-accent) !important;
}

/* Spec table in description */
.single-product #tab-description table,
.single-product #tab-description .bw-specs-table,
body.single-product table.bw-specs-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 24px 0 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--bw-r-md) !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.015) !important;
}
.single-product #tab-description table th,
.single-product #tab-description table td,
body.single-product .bw-specs-table th,
body.single-product .bw-specs-table td {
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  font-size: 14px !important;
  vertical-align: top !important;
}
.single-product #tab-description table th,
body.single-product .bw-specs-table th {
  color: var(--bw-accent) !important;
  font-weight: 600 !important;
  text-align: left !important;
  width: 40% !important;
  background: rgba(255,255,255,0.03) !important;
}
.single-product #tab-description table td {
  color: rgba(255,255,255,0.8) !important;
}
.single-product #tab-description table tr:last-child td,
.single-product #tab-description table tr:last-child th {
  border-bottom: none !important;
}

/* Paragraph spacing */
.single-product #tab-description p {
  margin-bottom: 16px !important;
}

/* duplicate rule removed — handled above */

/* ── Additional Info Tab (Zusätzliche Informationen) ── */
.single-product .shop_attributes,
.single-product .woocommerce-product-attributes {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: var(--bw-r-md) !important;
  overflow: hidden !important;
}
.single-product .shop_attributes th,
.single-product .woocommerce-product-attributes-item__label {
  color: var(--bw-accent) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: none !important;
  padding: 14px 20px !important;
  width: 35% !important;
  background: rgba(255,255,255,0.02) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.single-product .shop_attributes td,
.single-product .woocommerce-product-attributes-item__value {
  color: rgba(255,255,255,0.8) !important;
  font-size: 14px !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.single-product .shop_attributes tr:last-child th,
.single-product .shop_attributes tr:last-child td {
  border-bottom: none !important;
}

/* ── Tab navigation styling ── */
.woocommerce-tabs ul.tabs,
.wc-tabs {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  margin-bottom: 32px !important;
}
.woocommerce-tabs ul.tabs li a,
.wc-tabs li a {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--bw-text-muted) !important;
  padding: 12px 24px !important;
  border-bottom: 2px solid transparent !important;
  transition: all var(--bw-t-fast) !important;
}
.woocommerce-tabs ul.tabs li.active a,
.wc-tabs li.active a {
  color: var(--bw-accent) !important;
  border-bottom-color: var(--bw-accent) !important;
}

/* ── Related products ── */
.related.products > h2 {
  font-size: 1.6rem !important;
  color: var(--bw-text) !important;
  margin-bottom: 1.5rem !important;
}
.single-product .related.products {
  max-width: min(var(--bw-container), 100% - 48px) !important;
  margin-inline: auto !important;
  padding-inline: var(--bw-s-6) !important;
}

/* ── Reviews ── */
ol.commentlist {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--bw-s-4) !important;
}

ol.commentlist li.comment,
ol.commentlist li.review {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--bw-border) !important;
  border-radius: var(--bw-r-md) !important;
  padding: var(--bw-s-5) var(--bw-s-6) !important;
  margin: 0 !important;
  list-style: none !important;
}

ol.commentlist li .comment_container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

ol.commentlist li .comment-text {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  flex: 1 !important;
}

/* Avatars hidden */
.woocommerce-review .comment_container > img.avatar,
.woocommerce-review .comment_container > .avatar,
#reviews .commentlist .avatar,
ol.commentlist li img.avatar {
  display: none !important;
}
.woocommerce-review .comment_container .comment-text {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Meta line: name left, stars right */
.comment-text .meta,
.comment-text .woocommerce-review__meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: var(--bw-s-4) !important;
  margin-bottom: var(--bw-s-2) !important;
}

.comment-text .star-rating {
  margin: 0 !important;
  margin-left: 16px !important;
  padding-left: 0 !important;
  flex-shrink: 0 !important;
}

.comment-text .description p,
.comment-text .description {
  margin: 0 !important;
  line-height: 1.55 !important;
  color: rgba(255,255,255,0.85) !important;
}

#reviews h2,
.woocommerce-Reviews-title {
  margin-bottom: var(--bw-s-6) !important;
}

/* Review dash hidden */
.comment-text .woocommerce-review__dash {
  display: none !important;
}
.comment-text .woocommerce-review__author {
  font-weight: 600 !important;
  color: rgba(255,255,255,0.95) !important;
}
.comment-text .woocommerce-review__published-date {
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.9em !important;
  margin-right: 12px !important;
}

/* Verified badge */
.comment-text .meta em,
.comment-text .verified {
  font-style: normal !important;
  font-size: 0.8em !important;
  padding: 2px var(--bw-s-2) !important;
  border-radius: 4px !important;
  background: rgba(80,200,120,0.15) !important;
  color: rgb(120,220,150) !important;
  border: 1px solid rgba(80,200,120,0.3) !important;
}

/* ── Color Swatches ── */
.bw-color-swatches {
  margin: 12px 0 16px;
}
.bw-color-swatches__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.bw-color-swatches__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bw-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 80px;
}
.bw-color-swatch:hover {
  border-color: rgba(200,149,108,0.4);
  background: rgba(255,255,255,0.04);
}
.bw-color-swatch.active {
  border-color: #c8956c;
  background: rgba(200,149,108,0.08);
}
.bw-color-swatch img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.bw-color-swatch__name {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bw-color-swatch.active .bw-color-swatch__name {
  color: #c8956c;
}

/* ── Mobile sticky ATC ── */
@media (max-width: 768px) {
  .single-product .bw-sp-cart-form {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 100 !important;
    background: var(--bw-bg) !important;
    padding: var(--bw-s-3) var(--bw-s-4) !important;
    border-top: 1px solid var(--bw-border) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4) !important;
    margin: 0 -16px !important;
    width: calc(100% + 32px) !important;
  }
}
