/* Removed custom product card add-to-cart visuals */

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  display: none;
}

.woocommerce span.onsale {
  display: none;
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  line-height: 1.5;
}

.is-safe body {
  background: #0b1220;
  color: #e6e9f2;
}

.site {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px;
}

/* Brand palette */
:root {
  --hdr-bg: #0b1220;
  /* deep navy */
  --accent: #3b82f6;
  /* blue */
  --accent-glow: rgba(59, 130, 246, 0.16);
  --panel-grad-start: #0f2b46;
  /* blue slate */
  --panel-grad-end: #0b1220;
  /* deep navy */
  --text: #e6e9f2;
  --muted: rgba(230, 233, 242, 0.7);
  --logo-h-desktop: 84px;
  --logo-h-compact: 64px;
  --logo-h-mobile: 48px;
}

/* ===== Global Blue Theme ===== */
body {
  background: radial-gradient(140% 140% at 100% 0%, var(--panel-grad-start) 0%, var(--panel-grad-end) 100%);
  color: var(--text);
}

.is-safe body {
  background: #0b1220;
}

/* ===== DEBUG + minimal layout for product card inner flex (moved from shop.css) ===== */
.woocommerce ul.products li.product {
  line-height: 1.25;
  /* Fallback: scale with viewport width */
  font-size: clamp(11px, 3vw, 18px);
  /* JS sets --card-w per card; when present, this takes over */
  font-size: clamp(11px, calc(var(--card-w, 200px) * 0.06), 18px);
  --prod-price-pad-x: 5px;
}
.woocommerce ul.products li.product .prodTile__content {
  display: flex;             /* flexbox 2: content column */
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;            /* don't stretch cards */
  height: 0;
  min-height: 0;
  overflow: hidden;
}
.woocommerce ul.products li.product .prodTile__media {
  flex: 1 1 auto;            /* take remaining space */
  min-height: 0;
  padding: 5%;
  box-sizing: border-box;
}
.woocommerce ul.products li.product .prodTile__bottom {
  display: flex;             /* flexbox 3: bottom row */
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;             /* no extra gap above */
  flex: 0 0 6.16%;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: transparent;
  padding: 0 var(--prod-price-pad-x);
  box-sizing: border-box;
  position: relative;
  text-align: right;
}

.woocommerce ul.products li.product .prodTile__bottom .price,
.woocommerce ul.products li.product .prodTile__bottom .woocommerce-Price-amount,
.woocommerce ul.products li.product .prodTile__bottom .woocommerce-Price-currencySymbol {
  font-weight: 700;
}

/* Debug: show price row padding boundaries (only when debug overlay enables price layer) */
.woocommerce ul.products li.product .prodTile__bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--stdbg-price-on, 0);
  /* Hatched fill for the left + right padding areas */
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 6px, rgba(255,255,255,0.02) 6px 12px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 6px, rgba(255,255,255,0.02) 6px 12px);
  background-size: var(--prod-price-pad-x) 100%, var(--prod-price-pad-x) 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}

.woocommerce ul.products li.product .prodTile__bottom::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--prod-price-pad-x);
  right: var(--prod-price-pad-x);
  pointer-events: none;
  opacity: var(--stdbg-price-on, 0);
  border-left: var(--stdbg-price-width, 1px) var(--stdbg-price-style, dashed) var(--stdbg-price-color, rgba(29,78,216,0.9));
  border-right: var(--stdbg-price-width, 1px) var(--stdbg-price-style, dashed) var(--stdbg-price-color, rgba(29,78,216,0.9));
  box-sizing: border-box;
}

.woocommerce ul.products li.product .prodTile__midRow {
  display: flex;             /* flexbox: mid row */
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
  flex: 0 0 17.64%;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: transparent;
  --prod-desc-pad-x: 5px;
  padding: 0 var(--prod-desc-pad-x);
  box-sizing: border-box;
  position: relative;
}

/* Debug: show description/attributes padding boundaries (only when debug overlay enables desc layer) */
.woocommerce ul.products li.product .prodTile__midRow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--stdbg-desc-on, 0);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 6px, rgba(255,255,255,0.02) 6px 12px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 6px, rgba(255,255,255,0.02) 6px 12px);
  background-size: var(--prod-desc-pad-x) 100%, var(--prod-desc-pad-x) 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}

.woocommerce ul.products li.product .prodTile__midRow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--prod-desc-pad-x);
  right: var(--prod-desc-pad-x);
  pointer-events: none;
  opacity: var(--stdbg-desc-on, 0);
  border-left: var(--stdbg-desc-width, 1px) var(--stdbg-desc-style, dashed) var(--stdbg-desc-color, rgba(128,0,128,0.9));
  border-right: var(--stdbg-desc-width, 1px) var(--stdbg-desc-style, dashed) var(--stdbg-desc-color, rgba(128,0,128,0.9));
  box-sizing: border-box;
}

.woocommerce ul.products li.product .prodTile__bottom2 {
  display: flex;             /* flexbox 4: second bottom row */
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;             /* no gap between blue and orange bars */
  flex: 0 0 4.6%;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: transparent;
  text-align: center;
  box-sizing: border-box;
  color: var(--muted);
  position: relative;
}

.woocommerce ul.products li.product .prodTile__bottom2::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--prod-price-pad-x, 0px);
  right: var(--prod-price-pad-x, 0px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.woocommerce ul.products li.product .prodTile__price,
.woocommerce ul.products li.product .price {
  /* no debug borders */
}

/* ===== DEBUG: product card root and media (only) ===== */
.woocommerce ul.products li.product .prodTile__media { border: none; }
.woocommerce ul.products li.product .prodTile__media img { outline: none; }

/* New under-media debug bar (gray) */
.woocommerce ul.products li.product .prodTile__underMedia {
  display: flex;
  align-items: flex-start;      /* top-align content */
  justify-content: flex-start;  /* left-align content */
  flex: 0 0 14%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: none;
  font-weight: 700;
  --prod-title-pad-x: 5px;
  padding: 0 var(--prod-title-pad-x);
  box-sizing: border-box;
  position: relative;
  margin: 0;
  text-align: left;             /* ensure left text alignment */
}

/* Debug: show title padding boundaries (only when debug overlay enables title layer) */
.woocommerce ul.products li.product .prodTile__underMedia::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--stdbg-title-on, 0);
  /* Hatched fill for the left + right padding areas */
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 6px, rgba(255,255,255,0.02) 6px 12px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 6px, rgba(255,255,255,0.02) 6px 12px);
  background-size: var(--prod-title-pad-x) 100%, var(--prod-title-pad-x) 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}

.woocommerce ul.products li.product .prodTile__underMedia::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--prod-title-pad-x);
  right: var(--prod-title-pad-x);
  pointer-events: none;
  opacity: var(--stdbg-title-on, 0);
  border-left: var(--stdbg-title-width, 1px) var(--stdbg-title-style, dashed) var(--stdbg-title-color, rgba(148,163,184,0.9));
  border-right: var(--stdbg-title-width, 1px) var(--stdbg-title-style, dashed) var(--stdbg-title-color, rgba(148,163,184,0.9));
  box-sizing: border-box;
}

/* Scale text with viewport so it shrinks with the rows */
.woocommerce ul.products li.product .prodTile__plain {
  font-size: inherit;
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  font-size: inherit;
  line-height: 1.2;
}

.site a {
  color: #fff;
}

.site p {
  color: var(--muted);
}

.is-safe * {
  transition: none;
  animation: none;
}

/* Buttons */
.btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}

/* ===== Section Head ===== */
.sec__head {
  max-width: none;
  margin: 0;
  padding: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sec__title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.sec__title--crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sec__titleLink {
  color: var(--text);
  text-decoration: none;
  opacity: 0.92;
}

.sec__titleLink:hover {
  opacity: 1;
}

.sec__titleSep {
  opacity: 0.65;
}

.sec__titleCurrent {
  font-weight: 700;
}

.sec__all {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.sec__all:hover {
  opacity: 1;
  text-decoration: underline;
}
