/* ==========================================================================
   CN Power Banks (www.cnpowerbanks.com) — Blocksy VoltCell Core v3.0 Layer
   Drop-in stylesheet loaded by wp-content/mu-plugins/zz-cnpb-voltcell-v3.php
   Delete zz-cnpb-voltcell-v3.php to roll back cleanly.
   ========================================================================== */

:root {
  --vc-carbon: #0E151B;
  --vc-carbon-2: #151F28;
  --vc-ink: #0E151B;
  --vc-body: #334155;
  --vc-muted: #4B5A66;
  --vc-alu: #B8BEC3;
  --vc-line: #DDE3E8;
  --vc-mineral: #F6F8F7;
  --vc-em: #047857;         /* 5.48:1 AA w/ white */
  --vc-em-hover: #065F46;   /* 7.68:1 AAA w/ white */
  --vc-em-soft: #ECFDF5;
  --vc-mint: #34D399;       /* Micro-accents only */

  --theme-palette-color-1: #047857;
  --theme-palette-color-2: #065F46;
  --theme-palette-color-3: #334155;
  --theme-palette-color-4: #0E151B;
  --theme-palette-color-5: #DDE3E8;
  --theme-palette-color-6: #F6F8F7;
  --theme-palette-color-7: #F6F8F7;
  --theme-palette-color-8: #FFFFFF;
  --theme-button-background-initial-color: #047857;
  --theme-button-background-hover-color: #065F46;
  --theme-button-text-initial-color: #FFFFFF;
  --theme-button-text-hover-color: #FFFFFF;
  --theme-button-border-radius: 8px;
  --theme-border-radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--vc-body);
  background-color: var(--vc-mineral);
}

h1, h2, h3, h4,
.woocommerce-loop-product__title,
.product_title {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--vc-ink);
}

.price, .sku, .product_meta .sku, .cnpb-iq-price, .cnpb-price-request {
  font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* Primary Buttons -> Energy Emerald */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce button.button.alt,
.wpcf7-submit,
header .ct-search-form button[type="submit"],
.ct-button {
  background-color: var(--vc-em) !important;
  border-color: var(--vc-em) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt:hover,
.wpcf7-submit:hover,
header .ct-search-form button[type="submit"]:hover,
.ct-button:hover {
  background-color: var(--vc-em-hover) !important;
  border-color: var(--vc-em-hover) !important;
  color: #FFFFFF !important;
}

:focus-visible {
  outline: 2px solid var(--vc-mint) !important;
  outline-offset: 2px;
}

/* Header refinement */
header#header {
  border-bottom: 1px solid var(--vc-line);
}
header#header .default-logo,
header#header .custom-logo {
  max-height: 40px;
  width: auto;
}

/* Override legacy orange (#ff7302) & #2d2d2d in Custom CSS footer rules */
footer#footer [data-row="middle"],
footer#footer [data-row="bottom"] {
  background-color: var(--vc-carbon) !important;
  --theme-text-color: #B2C0CC;
  --theme-heading-color: #FFFFFF;
  --theme-link-color: #E2E8F0;
  --theme-link-hover-color: var(--vc-mint);
  --theme-border-color: rgba(184, 190, 195, .20);
  color: #B2C0CC !important;
}
footer#footer [data-row="bottom"] {
  border-top: 1px solid rgba(184, 190, 195, .18);
}
footer#footer [data-row="middle"] a:hover,
footer#footer [data-row="bottom"] a:hover {
  color: var(--vc-mint) !important;
}

/* Single-product gallery 1:1 containment & overflow protection (Blocker #1) */
.single-product .woocommerce-product-gallery__wrapper,
.single-product .ct-product-gallery-container .ct-media-container {
  aspect-ratio: 1 / 1;
  max-height: 460px;
  overflow: hidden;
  background: linear-gradient(145deg, #F5F7F8 0%, #E7EBEE 100%);
  border: 1.5px solid var(--vc-alu);
  border-radius: 12px;
}
.single-product .woocommerce-product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Suppress retail artifacts & single-product +/- steppers */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product .star-rating,
.single-product .quantity[data-type="type-2"] .ct-increase,
.single-product .quantity[data-type="type-2"] .ct-decrease {
  display: none !important;
}

/* Archive product cards anodized touch */
.woocommerce ul.products li.product {
  background: #FFFFFF;
  border: 1px solid var(--vc-line);
  border-radius: 12px;
  padding: 14px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  border-color: var(--vc-alu);
  box-shadow: 0 12px 24px -12px rgba(14, 21, 27, .14);
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
  color: var(--vc-em) !important;
}

.cnpb-footer-brand-logo {
  display: block;
  margin-bottom: 12px;
  max-width: 210px;
  height: auto;
}
