/**
 * Boston Molecules - WooCommerce Dark Theme Overrides
 *
 * Comprehensive dark theme styles for products, prices, buttons,
 * cart, checkout, notices, and badges.
 */

/* ──────────────────────────────────────────────
   Product Archive / Shop Grid
   ────────────────────────────────────────────── */

.shop-page-wrapper {
  display: flex;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
}

.shop-main {
  flex: 1;
  min-width: 0;
}

/* Product Grid */
ul.products,
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Kill WC clearfix pseudo-elements — they become ghost grid items */
ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}

/* Shop Header Bar */
.shop-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.shop-results-info {
  color: rgba(0,0,0,0.4);
  font-size: 14px;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  color: #333333;
  font-size: 13px;
}

.sort-select {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
  color: #222222;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sort-select:focus {
  border-color: #00d4ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* ──────────────────────────────────────────────
   Product Card (Glass Card)
   ────────────────────────────────────────────── */

.product-card,
.product-card.glass-card {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 212, 255, 0.05);
}

/* Product Image */
.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8f9fa;
}

.product-card-image img,
.product-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img,
.product-card:hover .product-card-thumb {
  transform: scale(1.05);
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(0, 255, 136, 0.03));
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.quick-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.15);
  color: #222222;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.quick-view-btn:hover {
  background: rgba(0,0,0,0.15);
}

/* Badges on card */
.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.catalog-badge {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.temp-badge {
  border: 1px solid;
}

.temp-purple {
  background: rgba(147, 51, 234, 0.15);
  color: #a855f7;
  border-color: rgba(147, 51, 234, 0.3);
}

.temp-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.temp-cyan {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.3);
}

.temp-green {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.3);
}

.product-card-sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #222222;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-out-of-stock {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Card Body */
.product-card-body {
  padding: 20px;
}

.product-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
  margin-bottom: 8px;
}

.product-card-category a {
  color: #666666;
  text-decoration: none;
}

.product-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a {
  color: #222222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card-title a:hover {
  color: #00d4ff;
}

/* Specs Preview */
.product-card-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.spec-item {
  font-size: 12px;
  color: #333333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spec-label {
  color: #666666;
  margin-right: 4px;
}

.spec-value {
  color: #333333;
}

/* Card Footer */
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.product-card-price .price,
.product-card-price .amount {
  font-weight: 700;
  font-size: 18px;
  color: #00ff88;
}

.product-card-price .price del {
  color: #666666;
  font-size: 14px;
  font-weight: 400;
}

.product-card-price .price del .amount {
  color: #666666;
  font-size: 14px;
  font-weight: 400;
}

.product-card-price .price ins {
  text-decoration: none;
}

.product-card-actions .button,
.product-card-actions .add_to_cart_button {
  background: var(--primary, #1a5276);
  color: #ffffff;
  border: 2px solid var(--primary, #1a5276);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card-actions .button:hover,
.product-card-actions .add_to_cart_button:hover {
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

/* ──────────────────────────────────────────────
   Sidebar / Filters
   ────────────────────────────────────────────── */

.shop-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}

.shop-sidebar::-webkit-scrollbar {
  width: 4px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin: 0;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: #333333;
  font-size: 24px;
  cursor: pointer;
}

/* Active Filters */
.active-filters {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
}

.active-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: #333333;
}

.clear-all-filters {
  color: #00d4ff;
  text-decoration: none;
  font-size: 12px;
}

.clear-all-filters:hover {
  text-decoration: underline;
}

.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: #00d4ff;
}

.filter-tag .remove-filter {
  background: none;
  border: none;
  color: rgba(0, 212, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.filter-tag .remove-filter:hover {
  color: #00d4ff;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 24px;
  background: #f5f7f9;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 16px;
}

.filter-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #333333;
  margin: 0 0 12px;
  cursor: pointer;
  user-select: none;
}

.filter-group-title .chevron {
  transition: transform 0.2s ease;
}

.filter-group-title.collapsed .chevron {
  transform: rotate(-90deg);
}

.filter-group-content {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.filter-group-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

/* Custom Checkboxes */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: #333333;
  position: relative;
}

.filter-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-checkbox .checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.25);
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.filter-checkbox input:checked + .checkmark {
  background: #00d4ff;
  border-color: #00d4ff;
}

.filter-checkbox input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox:hover .checkmark {
  border-color: rgba(0, 212, 255, 0.5);
}

.filter-label {
  flex: 1;
}

.filter-count-badge {
  font-size: 11px;
  color: #666666;
  background: rgba(0,0,0,0.04);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Price Range */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-input-group {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
}

.price-currency {
  padding: 6px 8px;
  color: #666666;
  font-size: 13px;
}

.price-input {
  background: transparent;
  border: none;
  color: #222222;
  padding: 8px 8px 8px 0;
  width: 100%;
  font-size: 13px;
  outline: none;
}

.price-separator {
  color: #666666;
}

.apply-filters-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.2s ease;
}

.apply-filters-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
  color: #222222;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
}

.mobile-filter-toggle .filter-count {
  background: #00d4ff;
  color: #0a0a0f;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

/* ──────────────────────────────────────────────
   Single Product
   ────────────────────────────────────────────── */

.single-product-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.product-breadcrumbs {
  margin-bottom: 24px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.breadcrumb-item a {
  color: #111111;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 800;
}

.breadcrumb-item a:hover {
  color: #00d4ff;
}

.breadcrumb-item:last-child {
  color: #111111;
  font-weight: 800;
}

.breadcrumb-sep {
  color: rgba(0,0,0,0.15);
  vertical-align: middle;
}

/* Main Layout */
.product-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.product-gallery-column {
  position: sticky;
  top: 100px;
  align-self: start;
}

.product-gallery-wrapper {
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  overflow: hidden;
}

.product-gallery-wrapper .woocommerce-product-gallery {
  opacity: 1 !important;
  margin: 0 !important;
}

.product-gallery-wrapper .woocommerce-product-gallery__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-wrapper .woocommerce-product-gallery__image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.product-gallery-wrapper .woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
}

.product-gallery-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Auto-generated placeholder cards — constrain aspect ratio */
.product-gallery-wrapper .bm-protein-auto-image,
.product-gallery-wrapper .bm-peptide-auto-image {
  aspect-ratio: 1 / 1;
  max-height: 500px;
}

/* Transaction Panel */
.product-transaction-panel {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 20px 24px;
  backdrop-filter: blur(10px);
}

.catalog-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.catalog-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666666;
}

.catalog-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #00d4ff;
  font-family: 'Fira Code', 'Roboto Mono', monospace;
}

.product-title {
  font-size: 28px;
  font-weight: 700;
  color: #222222;
  line-height: 1.3;
  margin: 0 0 10px;
}

/* Badges Row */
.product-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
}

.badge-formulation {
  background: rgba(0,0,0,0.05);
  color: #333333;
  border: 1px solid rgba(0,0,0,0.08);
}

.badge-clonality {
  background: rgba(147, 51, 234, 0.15);
  color: #a855f7;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.badge-stock.in-stock {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.badge-stock.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* SKU */
.product-sku {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #111111;
  font-weight: 700;
}

.sku-value {
  font-family: 'Fira Code', monospace;
  color: #111111;
  font-weight: 700;
}

/* Price */
.product-price-section {
  padding: 10px 0;
  margin-bottom: 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-price-section .price {
  font-size: 32px;
  font-weight: 700;
  color: #00ff88;
}

.product-price-section .price del {
  font-size: 18px;
  color: #666666;
  font-weight: 400;
}

.product-price-section .price del .amount {
  color: #666666;
}

.product-price-section .price ins {
  text-decoration: none;
}

/* Quick Specs */
.product-quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.quick-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-spec-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
}

.quick-spec-value {
  font-size: 1.05rem;
  color: #111111;
  font-weight: 500;
}

/* Add to Cart */
.product-add-to-cart .quantity {
  margin-bottom: 12px;
}

.product-add-to-cart .quantity input[type="number"],
.product-variants .quantity input[type="number"] {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  color: #222222;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 16px;
  width: 100px;
  text-align: center;
}

.product-add-to-cart .quantity input:focus,
.product-variants .quantity input:focus {
  border-color: #00d4ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.single_add_to_cart_button,
.product-add-to-cart .button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #222222;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single_add_to_cart_button:hover,
.product-add-to-cart .button:hover {
  box-shadow:
    0 8px 30px rgba(0, 212, 255, 0.3),
    0 0 20px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

/* Bulk Pricing */
.bulk-pricing-section {
  margin-top: 24px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
}

.bulk-pricing-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333333;
  margin: 0 0 12px;
}

.bulk-pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.bulk-pricing-table th,
.bulk-pricing-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.bulk-pricing-table th {
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.bulk-pricing-table td {
  color: rgba(0,0,0,0.6);
}

.discount-cell {
  color: #00ff88;
  font-weight: 600;
}

/* Trust Indicators */
.trust-indicators {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #111111;
}

.trust-item svg {
  color: #00d4ff;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   Product Tabs (Scientific)
   ────────────────────────────────────────────── */

.product-scientific-tabs {
  margin-bottom: 48px;
}

.tabs-navigation {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 12px 24px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  color: #111111;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: rgba(0,0,0,0.08);
  color: #111111;
}

.tab-btn.active {
  background: rgba(26, 82, 118, 0.1);
  border-color: rgba(26, 82, 118, 0.3);
  color: #1a5276;
  font-weight: 700;
}

.tab-panel {
  display: none;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 32px;
  transition: opacity 0.3s ease;
}

.tab-panel.active {
  display: block;
  opacity: 1;
}

.tab-panel-content h3 {
  font-size: 1.4rem;
  color: #111111;
  margin: 0 0 20px;
}

.tab-panel-content p,
.tab-panel-content li,
.tab-panel-content td,
.tab-panel-content span {
  font-size: 1rem;
  color: #222222;
  line-height: 1.7;
}

/* Specifications Table */
.specifications-table {
  width: 100%;
  border-collapse: collapse;
}

.specifications-table th,
.specifications-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.specifications-table th {
  color: #333333;
  font-weight: 500;
  width: 200px;
}

.specifications-table td {
  color: #222222;
}

.specifications-table tr:nth-child(even) {
  background: #f8f9fa;
}

/* Applications Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.application-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
}

.application-name {
  font-size: 14px;
  color: #222222;
  font-weight: 500;
}

.application-status.validated {
  font-size: 11px;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  padding: 2px 10px;
  border-radius: 10px;
}

/* Publications */
.publication-item {
  padding: 20px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
}

.pub-title {
  font-size: 15px;
  color: #222222;
  margin: 0 0 8px;
}

.pub-authors {
  font-size: 13px;
  color: #333333;
  margin: 0 0 4px;
}

.pub-journal {
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  font-style: italic;
  margin: 0 0 8px;
}

.pub-doi {
  font-size: 12px;
  color: #00d4ff;
  text-decoration: none;
}

.pub-doi:hover {
  text-decoration: underline;
}

/* Documents */
.document-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.document-link:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-name {
  color: #222222;
  font-weight: 500;
  font-size: 14px;
}

.doc-type {
  color: #666666;
  font-size: 12px;
}

.documents-placeholder {
  text-align: center;
  padding: 40px;
  color: #666666;
}

.documents-placeholder a {
  color: #00d4ff;
}

/* QA Grid */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.qa-item {
  padding: 24px;
  text-align: center;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
}

.qa-item h4 {
  font-size: 15px;
  color: #222222;
  margin: 12px 0 8px;
}

.qa-item p {
  font-size: 13px;
  color: #333333;
  line-height: 1.5;
  margin: 0;
}

/* Related Products */
.related-products-section {
  margin-top: 48px;
}

.related-products-section h2 {
  font-size: 24px;
  color: #222222;
  margin-bottom: 24px;
}

/* ──────────────────────────────────────────────
   Cart
   ────────────────────────────────────────────── */

.woocommerce-cart-form table {
  width: 100%;
  border-collapse: collapse;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-cart-form th {
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.4);
  padding: 14px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.woocommerce-cart-form td {
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: #222222;
  vertical-align: middle;
}

.cart_item:hover td {
  background: #f8f9fa;
}

.cart_item .product-remove a {
  color: rgba(239, 68, 68, 0.7);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s;
}

.cart_item .product-remove a:hover {
  color: #ef4444;
}

.cart_item .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cart_item .product-name a {
  color: #222222;
  text-decoration: none;
}

.cart_item .product-name a:hover {
  color: #00d4ff;
}

.cart_item .quantity input {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  color: #222222;
  padding: 8px;
  border-radius: 8px;
  width: 70px;
  text-align: center;
}

.cart-collaterals .cart_totals {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 24px;
}

.cart_totals h2 {
  font-size: 18px;
  color: #222222;
  margin-bottom: 16px;
}

.cart_totals table th {
  color: rgba(0,0,0,0.4);
  font-weight: 500;
  padding: 10px 0;
}

.cart_totals table td {
  color: #222222;
  padding: 10px 0;
  text-align: right;
}

.cart_totals .order-total .amount {
  color: #00ff88;
  font-size: 20px;
  font-weight: 700;
}

button[name="update_cart"],
.wc-proceed-to-checkout .checkout-button {
  background: linear-gradient(135deg, #00d4ff, #0066ff);
  color: #222222;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

button[name="update_cart"]:hover,
.wc-proceed-to-checkout .checkout-button:hover {
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.3);
}

/* ──────────────────────────────────────────────
   Checkout
   ────────────────────────────────────────────── */

/* ── Notices: Login, Coupon, Errors ── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #f8fafe;
  border-radius: 12px;
  padding: 16px 20px 16px 48px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #222222;
  border: 1px solid #e5e7eb;
  position: relative;
  line-height: 1.6;
}

.woocommerce-message::before,
.woocommerce-info::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.woocommerce-message {
  border-left: 4px solid #00bfa6;
}

.woocommerce-info {
  border-left: 4px solid #3b82f6;
}

.woocommerce-error {
  border-left: 4px solid #ef4444;
  list-style: none;
  padding-left: 48px;
  color: #b91c1c;
}

.woocommerce-message a,
.woocommerce-info a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 600;
}

.woocommerce-error li {
  color: #b91c1c;
  font-size: 1rem;
  margin-bottom: 4px;
}

/* ── Checkout Form Layout ── */
.woocommerce-checkout .form-row {
  margin-bottom: 14px;
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: visible;
}

/* Kill WooCommerce clearfix pseudo-elements that break grid */
.woocommerce-checkout .form-row::before,
.woocommerce-checkout .form-row::after,
.woocommerce-checkout .woocommerce-billing-fields::before,
.woocommerce-checkout .woocommerce-billing-fields::after,
.woocommerce-checkout .woocommerce-shipping-fields::before,
.woocommerce-checkout .woocommerce-shipping-fields::after {
  display: none !important;
}

/* Two-column grid for billing/shipping fields */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  align-items: start;
}

/* First/Last name side-by-side (single row each) */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: 100% !important;
  float: none !important;
  margin-bottom: 0;
}

/* Full-width fields span both columns */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1;
}

/* Consistent inner layout for each form-row */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

/* ── Labels ── */
.woocommerce-checkout .form-row label {
  color: #111111;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  line-height: 1.4;
  white-space: nowrap;
}

.woocommerce-checkout .form-row label .required {
  color: #e53e3e;
}

.woocommerce-checkout .form-row label .optional {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.85rem;
}

/* ── Input Fields ── */
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .select2-container .select2-selection--single {
  background: #ffffff;
  border: 2px solid #c5ccd6 !important;
  color: #111111;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 1rem;
  width: 100% !important;
  min-height: 48px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  height: 48px;
}

.woocommerce-checkout .select2-container .select2-selection__rendered {
  font-size: 1rem;
  color: #111111;
  line-height: 1.4;
  padding-left: 4px;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: #00bfa6 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 191, 166, 0.15);
}

.woocommerce-checkout .form-row input::placeholder {
  color: #9ca3af;
  font-size: 0.95rem;
}

/* ── Section Headings ── */
.woocommerce-checkout h3 {
  color: #111111;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef0f4;
}

/* ── Order Review Table ── */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8fafe;
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-checkout-review-order-table th {
  background: #f1f5f9;
  color: #374151;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}

.woocommerce-checkout-review-order-table td {
  padding: 14px 16px;
  color: #222222;
  font-size: 0.95rem;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111111;
}

/* ── Place Order Button ── */
#place_order {
  width: 100%;
  padding: 16px;
  background: #00bfa6;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#place_order:hover {
  background: #00a896;
  box-shadow: 0 8px 24px rgba(0, 191, 166, 0.3);
}

/* ── Payment Methods ── */
.wc_payment_methods {
  list-style: none;
  padding: 0;
}

.wc_payment_method {
  padding: 16px 20px;
  margin-bottom: 10px;
  background: #f8fafe;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s;
}

.wc_payment_method:hover {
  border-color: #00bfa6;
}

.wc_payment_method label {
  color: #222222;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wc_payment_method .payment_box {
  padding: 16px 0 4px 28px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.wc_payment_method input[type="radio"] {
  accent-color: #00bfa6;
  width: 18px;
  height: 18px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────
   Pagination
   ────────────────────────────────────────────── */

.shop-pagination,
.woocommerce-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.woocommerce-pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.woocommerce-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.woocommerce-pagination .page-numbers:hover {
  background: #f0fdf4;
  border-color: #00bfa6;
  color: #00897b;
}

.woocommerce-pagination .page-numbers.current {
  background: #00bfa6;
  border-color: #00bfa6;
  color: #ffffff;
  font-weight: 700;
}

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .shop-page-wrapper {
    flex-direction: column;
  }

  .shop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    z-index: 999;
    background: #ffffff;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .shop-sidebar.active {
    display: block;
    transform: translateX(0);
  }

  .sidebar-close {
    display: block;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .mobile-filter-toggle {
    display: inline-flex;
  }

  ul.products,
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-main-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-gallery-column {
    position: static;
  }

  .product-quick-specs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  ul.products,
  .products {
    grid-template-columns: 1fr;
  }

  .product-card-body {
    padding: 16px;
  }

  .product-transaction-panel {
    padding: 20px;
  }

  .product-title {
    font-size: 22px;
  }

  .product-price-section .price {
    font-size: 26px;
  }

  .tabs-navigation {
    gap: 4px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .tab-panel {
    padding: 20px;
  }

  .shop-header-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qa-grid {
    grid-template-columns: 1fr;
  }
}

/* === LIGHT THEME: All WooCommerce product buttons === */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_variable,
.woocommerce ul.products li.product .product_type_simple,
.product-card-actions .button,
.product-card-actions a.button,
a.button.product_type_variable,
a.button.product_type_simple,
a.button.add_to_cart_button {
  background: var(--primary, #1a5276) !important;
  color: #ffffff !important;
  border: 2px solid var(--primary, #1a5276) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
a.button.product_type_variable:hover,
a.button.product_type_simple:hover,
a.button.add_to_cart_button:hover {
  background: #133a6b !important;
  border-color: #133a6b !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3);
}

/* ── Product page section content font sizes ── */
.bm-content-section {
  font-size: 19px !important;
  line-height: 1.85 !important;
  color: #222222 !important;
}

.bm-content-section h2 {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 28px !important;
  margin-bottom: 14px !important;
}

.bm-content-section h2:first-child {
  margin-top: 0 !important;
}

.bm-content-section h3 {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
}

.bm-content-section h4 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #222222 !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}

.bm-content-section p,
.bm-content-section li,
.bm-content-section span {
  font-size: 19px !important;
  line-height: 1.85 !important;
  color: #222222 !important;
}

.bm-content-section ul,
.bm-content-section ol {
  padding-left: 1.5em !important;
  margin-bottom: 1em !important;
}

.bm-content-section li {
  margin-bottom: 6px !important;
}

.bm-content-section td,
.bm-content-section th {
  font-size: 18px !important;
  color: #222222 !important;
  padding: 10px 14px !important;
}

.bm-content-section strong {
  color: #111111 !important;
  font-weight: 700 !important;
}

/* ── Custom Product Image Carousel ── */
.bm-gallery-carousel {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f8f9fa;
  cursor: pointer;
}

.bm-gallery-track {
  position: relative;
  width: 100%;
}

.bm-gallery-slide {
  display: none;
  width: 100%;
  animation: bmGalleryFadeIn 0.5s ease;
}

.bm-gallery-slide.is-active {
  display: block;
}

.bm-gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 600px;
  margin: 0 auto;
  background: #f8f9fa;
}

@keyframes bmGalleryFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Dots */
.bm-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.bm-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.bm-gallery-dot.is-active {
  background: #1a5276;
  border-color: #1a5276;
  transform: scale(1.2);
}

.bm-gallery-dot:hover {
  border-color: #1a5276;
}

/* Counter badge */
.bm-gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 10;
}

/* ==========================================================================
   Archive / Category Page — Unified Breadcrumb & Typography
   ========================================================================== */

/* WooCommerce archive breadcrumb — match product page breadcrumb style */
.woocommerce-breadcrumb {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #111111 !important;
  padding: 1.5rem 0 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.woocommerce-breadcrumb a {
  color: #111111 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
  color: #00897b !important;
}

/* Product card title — larger & bolder */
.product-card-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #111 !important;
}

.product-card-title a {
  color: #111 !important;
  font-weight: 700 !important;
}

/* Shop results info — bigger text */
.shop-results-info {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #333 !important;
}

/* Sort label */
.sort-label {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

/* Product card SKU */
.product-card-sku {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

/* Product card price */
.product-card-price {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

