/*
Theme Name: Biopharma
Theme URI: https://biopharma.co
Author: Biopharma Development
Author URI: https://biopharma.co
Description: A premium, clinical-aesthetic WordPress theme for Biopharma Sciences LLC. Built as a lab interface, not an ecommerce store. Custom WooCommerce integration with batch-level COA documentation, data-first UI, and research-grade positioning.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biopharma
Tags: custom-menu, custom-logo, woocommerce, one-column, two-columns

Biopharma Sciences LLC - A Controlled Access Research Supply System.
*/

/* ============================================
   0. DESIGN TOKENS (Global System)
   ============================================ */

:root {
  /* Colors */
  --bp-bg: #F7F8FA;
  --bp-surface: #FFFFFF;
  --bp-text: #0A0A0A;
  --bp-text-secondary: #6B7280;
  --bp-purple: #6C3BFF;
  --bp-purple-hover: #5A2DE6;
  --bp-red: #FF3B5C;
  --bp-border: #E5E7EB;
  --bp-muted-bg: #F0F1F3;

  /* Spacing */
  --bp-xs: 8px;
  --bp-sm: 16px;
  --bp-md: 32px;
  --bp-lg: 64px;
  --bp-xl: 96px;

  /* Grid */
  --bp-max-width: 1280px;
  --bp-content-width: 1120px;
  --bp-gutter: 24px;

  /* Typography */
  --bp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bp-font-mono: 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;

  /* Radius */
  --bp-radius: 3px;
}

/* ============================================
   1. RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--bp-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bp-text);
  background-color: var(--bp-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Focus-visible (Accessibility) --- */
.bp-btn:focus-visible,
.bp-input:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bp-purple);
  outline-offset: 2px;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, .bp-h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--bp-text);
}

h2, .bp-h2 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bp-text);
}

h3, .bp-h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bp-text);
}

p {
  font-size: 16px;
  line-height: 24px;
  color: var(--bp-text-secondary);
}

.bp-mono {
  font-family: var(--bp-font-mono);
  font-size: 14px;
  line-height: 20px;
}

.bp-label {
  font-family: var(--bp-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bp-text-secondary);
}

/* ============================================
   3. LAYOUT
   ============================================ */

.bp-container {
  width: 100%;
  max-width: var(--bp-max-width);
  margin: 0 auto;
  padding: 0 var(--bp-sm);
}

@media (min-width: 640px) {
  .bp-container {
    padding: 0 var(--bp-gutter);
  }
}

@media (min-width: 1024px) {
  .bp-container {
    padding: 0 var(--bp-md);
  }
}

.bp-grid {
  display: grid;
  gap: var(--bp-gutter);
}

.bp-grid-2 { grid-template-columns: 1fr; }
.bp-grid-3 { grid-template-columns: 1fr; }
.bp-grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 768px) {
  .bp-grid-2 { grid-template-columns: 1fr 1fr; }
  .bp-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .bp-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.bp-section {
  padding: var(--bp-lg) 0;
}

@media (min-width: 1024px) {
  .bp-section {
    padding: var(--bp-xl) 0;
  }
}

/* ============================================
   4. COMPONENTS
   ============================================ */

/* --- Buttons --- */
.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--bp-radius);
  transition: all 200ms ease;
  line-height: 1;
}

.bp-btn-primary {
  background: var(--bp-purple);
  color: #fff !important;
}

.bp-btn-primary a,
.bp-header-cta.bp-btn-primary {
  color: #fff !important;
}

.bp-btn-primary:hover {
  background: var(--bp-purple-hover);
}

.bp-btn-secondary {
  background: transparent;
  color: var(--bp-text-secondary);
  padding: 12px 0;
}

.bp-btn-secondary:hover {
  color: var(--bp-text);
}

.bp-btn-outline {
  background: transparent;
  border: 1px solid var(--bp-border);
  color: var(--bp-text-secondary);
}

.bp-btn-outline:hover {
  border-color: rgba(10, 10, 10, 0.3);
  color: var(--bp-text);
}

/* --- Data Panel --- */
.bp-data-panel {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  overflow: hidden;
}

.bp-data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.bp-data-row:last-child {
  border-bottom: none;
}

.bp-data-label {
  font-family: var(--bp-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bp-text-secondary);
}

.bp-data-value {
  font-family: var(--bp-font-mono);
  font-size: 14px;
  color: var(--bp-text);
  text-align: right;
}

.bp-data-value.highlight {
  color: var(--bp-purple);
  font-weight: 500;
}

/* --- Card --- */
.bp-card {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  overflow: hidden;
  transition: all 200ms ease;
}

.bp-card:hover {
  border-color: rgba(108, 59, 255, 0.4);
  box-shadow: 0 2px 12px rgba(108, 59, 255, 0.06);
}

.bp-card-image {
  aspect-ratio: 1;
  background: var(--bp-bg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms ease;
}

.bp-card:hover .bp-card-image img {
  transform: scale(1.02);
}

.bp-card-body {
  padding: 20px;
  border-top: 1px solid var(--bp-border);
}

.bp-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Tabs --- */
.bp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--bp-border);
  overflow-x: auto;
}

.bp-tab {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 200ms ease;
}

.bp-tab:hover {
  color: var(--bp-text);
}

.bp-tab.active {
  color: var(--bp-purple);
  border-bottom-color: var(--bp-purple);
}

.bp-tab-content {
  display: none;
  padding-top: var(--bp-md);
  max-width: 720px;
}

.bp-tab-content.active {
  display: block;
}

/* --- Spec Table --- */
.bp-spec-table {
  width: 100%;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  overflow: hidden;
  border-collapse: collapse;
}

.bp-spec-table tr {
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.bp-spec-table tr:last-child {
  border-bottom: none;
}

.bp-spec-table th {
  text-align: left;
  padding: 14px 20px;
  background: var(--bp-bg);
  font-family: var(--bp-font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bp-text-secondary);
  border-right: 1px solid rgba(229, 231, 235, 0.6);
  width: 180px;
}

.bp-spec-table td {
  padding: 14px 20px;
  font-family: var(--bp-font-mono);
  font-size: 14px;
  color: var(--bp-text);
  word-break: break-all;
}

/* --- Batch Table --- */
.bp-batch-table {
  width: 100%;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  overflow: hidden;
  border-collapse: collapse;
}

.bp-batch-table thead tr {
  background: var(--bp-bg);
  border-bottom: 1px solid var(--bp-border);
}

.bp-batch-table thead th {
  text-align: left;
  padding: 14px 20px;
  font-family: var(--bp-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-text-secondary);
}

.bp-batch-table thead th:last-child {
  text-align: right;
}

.bp-batch-table tbody tr {
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: background 200ms ease;
}

.bp-batch-table tbody tr:last-child {
  border-bottom: none;
}

.bp-batch-table tbody tr:hover {
  background: rgba(247, 248, 250, 0.5);
}

.bp-batch-table tbody td {
  padding: 16px 20px;
  font-size: 14px;
}

.bp-batch-table tbody td:last-child {
  text-align: right;
}

/* --- Purity Dot --- */
.bp-purity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bp-purity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bp-purple);
}

/* ============================================
   5. HEADER
   ============================================ */

.bp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: all 200ms ease;
}

.bp-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bp-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bp-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--bp-radius);
  background: var(--bp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.bp-logo-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--bp-text);
}

.bp-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.bp-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-text-secondary);
  transition: color 200ms ease;
}

.bp-nav a:hover {
  color: var(--bp-text);
}

.bp-mobile-toggle {
  display: none;
  padding: 8px;
  color: var(--bp-text-secondary);
}

/* --- Header Search --- */
.bp-header-search {
  position: relative;
  margin-left: 16px;
}

.bp-header-search input {
  width: 180px;
  padding: 7px 32px 7px 12px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  font-size: 13px;
  font-family: var(--bp-font-sans);
  color: var(--bp-text);
  background: var(--bp-bg);
  transition: border-color 200ms, width 200ms;
}

.bp-header-search input:focus {
  outline: none;
  border-color: var(--bp-purple);
  width: 240px;
}

.bp-header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bp-text-secondary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* --- Header CTA --- */
.bp-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.bp-header-cta .bp-btn {
  padding: 8px 18px;
  font-size: 13px;
}

@media (max-width: 767px) {
  .bp-nav { display: none; }
  .bp-mobile-toggle { display: block; }

  .bp-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bp-surface);
    border-bottom: 1px solid var(--bp-border);
    padding: 16px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  .bp-nav.open a {
    padding: 8px 0;
  }
}

/* ============================================
   6. HERO SECTION
   ============================================ */

.bp-hero {
  padding-top: 72px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.bp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: var(--bp-lg) 0;
}

@media (min-width: 1024px) {
  .bp-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0;
  }
}

.bp-hero-content {
  max-width: 520px;
}

.bp-hero-image {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .bp-hero-image {
    justify-content: flex-end;
  }
}

.bp-hero-image img {
  max-width: 520px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
  animation: bp-float 6s ease-in-out infinite;
}

@keyframes bp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bp-hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: var(--bp-md);
}

/* ============================================
   7. TRUST STRIP
   ============================================ */

.bp-trust-strip {
  border-top: 1px solid var(--bp-border);
  border-bottom: 1px solid var(--bp-border);
  background: var(--bp-surface);
}

.bp-trust-strip-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow-x: auto;
}

.bp-trust-item {
  font-family: var(--bp-font-mono);
  font-size: 13px;
  color: var(--bp-text-secondary);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ============================================
   8. SECTIONS
   ============================================ */

.bp-section-header {
  margin-bottom: 40px;
}

.bp-section-header p {
  margin-top: 12px;
  max-width: 480px;
  font-size: 15px;
}

/* System explanation columns */
.bp-system-col {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  padding: 24px;
  height: 100%;
}

.bp-system-col ul {
  list-style: none;
  margin-top: 16px;
}

.bp-system-col li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--bp-text-secondary);
}

.bp-system-col li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bp-purple);
  margin-top: 7px;
  flex-shrink: 0;
}

/* COA Preview */
.bp-coa-card {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-bg);
  overflow: hidden;
  display: flex;
}

.bp-coa-thumb {
  width: 140px;
  flex-shrink: 0;
  background: var(--bp-bg);
  border-right: 1px solid var(--bp-border);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bp-coa-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bp-coa-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.bp-coa-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.bp-coa-actions a {
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-purple);
  transition: text-decoration 200ms;
}

.bp-coa-actions a:hover {
  text-decoration: underline;
}

.bp-coa-actions button {
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms;
}

.bp-coa-actions button:hover {
  color: var(--bp-text);
}

/* Disclaimer */
.bp-disclaimer {
  padding: 48px 0;
  background: var(--bp-muted-bg);
  border-top: 1px solid var(--bp-border);
  text-align: center;
}

.bp-disclaimer p {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 14px;
}

.bp-ruo-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 59, 92, 0.08);
  border: 1px solid rgba(255, 59, 92, 0.25);
  border-radius: var(--bp-radius);
  font-family: var(--bp-font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-red);
}

/* ============================================
   9. FOOTER
   ============================================ */

.bp-footer {
  border-top: 1px solid var(--bp-border);
  background: var(--bp-surface);
  padding: var(--bp-lg) 0;
}

.bp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .bp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .bp-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

.bp-footer-heading {
  font-family: var(--bp-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-text-secondary);
  margin-bottom: 16px;
}

.bp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-footer-links a,
.bp-footer-links span {
  font-size: 13px;
  color: var(--bp-text-secondary);
  transition: color 200ms;
}

.bp-footer-links a:hover {
  color: var(--bp-text);
}

.bp-footer-disclaimer {
  margin-top: 48px;
  padding: 24px 0 0;
  border-top: 1px solid var(--bp-border);
  max-width: 900px;
}

.bp-footer-disclaimer p {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(107, 114, 128, 0.6);
  margin-bottom: 8px;
}

.bp-footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.bp-footer-disclaimer strong {
  color: rgba(107, 114, 128, 0.8);
}

.bp-footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bp-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .bp-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.bp-footer-bottom p {
  font-size: 12px;
  color: rgba(107, 114, 128, 0.6);
}

.bp-footer-bottom .bp-mono {
  font-size: 11px;
  color: rgba(107, 114, 128, 0.5);
}

/* ============================================
   10. WOOCOMMERCE OVERRIDES
   ============================================ */

/* Remove all default Woo styling */
.woocommerce .products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bp-gutter);
}

@media (max-width: 767px) {
  .woocommerce .products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .woocommerce .products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Override Woo buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--bp-purple) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--bp-radius) !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: var(--bp-font-sans) !important;
  transition: background 200ms ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--bp-purple-hover) !important;
}

/* Override Woo notices */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--bp-purple) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--bp-purple) !important;
}

/* Hide default Woo elements we don't want */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce .star-rating,
.woocommerce .price del,
.woocommerce span.onsale,
.woocommerce .related.products,
.woocommerce .up-sells,
.woocommerce .cross-sells {
  display: none !important;
}

/* Clean cart page */
.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .coupon {
  display: none !important;
}

/* Clean checkout (legacy — kept for non-isolated fallback) */
.woocommerce-checkout #order_review_heading + #order_review .shop_table {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
}

/* ============================================
   11. FORM ELEMENTS
   ============================================ */

.bp-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  font-size: 14px;
  font-family: var(--bp-font-sans);
  color: var(--bp-text);
  background: var(--bp-bg);
  transition: border-color 200ms ease;
}

.bp-input:focus {
  outline: none;
  border-color: var(--bp-purple);
}

.bp-input::placeholder {
  color: var(--bp-text-secondary);
}

/* --- Select Dropdown --- */
.bp-select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  font-size: 14px;
  font-family: var(--bp-font-sans);
  color: var(--bp-text);
  background: var(--bp-bg);
  transition: border-color 200ms ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.bp-select:focus {
  outline: none;
  border-color: var(--bp-purple);
}

.bp-select option[disabled] {
  color: var(--bp-text-secondary);
}

.bp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--bp-text-secondary);
  line-height: 1.6;
}

.bp-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--bp-purple);
}

/* ============================================
   12. UTILITIES
   ============================================ */

.bp-border-t { border-top: 1px solid var(--bp-border); }
.bp-border-b { border-bottom: 1px solid var(--bp-border); }
.bp-bg-white { background: var(--bp-surface); }
.bp-bg-muted { background: var(--bp-muted-bg); }
.bp-text-purple { color: var(--bp-purple); }
.bp-text-red { color: var(--bp-red); }
.bp-text-secondary { color: var(--bp-text-secondary); }
.bp-mt-xs { margin-top: var(--bp-xs); }
.bp-mt-sm { margin-top: var(--bp-sm); }
.bp-mt-md { margin-top: var(--bp-md); }
.bp-mt-lg { margin-top: var(--bp-lg); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ============================================
   13. CATALOG LAYOUT (Full-width, no sidebar)
   ============================================ */

.bp-catalog-layout {
  display: block;
}

/* --- Toolbar --- */
.bp-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-sort-form {
  display: flex;
  align-items: center;
}

.bp-sort-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  font-size: 13px;
  font-family: var(--bp-font-sans);
  color: var(--bp-text);
  background: var(--bp-surface);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.bp-sort-select:focus {
  outline: none;
  border-color: var(--bp-purple);
}

/* --- Product Grid --- */
.bp-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bp-gutter);
}

@media (max-width: 1023px) {
  .bp-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .bp-product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   14. BRANDED PAGINATION
   ============================================ */

.bp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
}

.bp-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--bp-font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-text-secondary);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  transition: all 200ms ease;
}

.bp-page-btn:hover {
  border-color: var(--bp-purple);
  color: var(--bp-purple);
}

.bp-page-btn.active {
  background: var(--bp-purple);
  border-color: var(--bp-purple);
  color: #fff;
}

.bp-page-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  font-size: 14px;
  color: var(--bp-text-secondary);
}

/* ============================================
   16. REQUEST ACCESS / AUTH GATING
   ============================================ */

.bp-request-access {
  margin-top: 24px;
}

.bp-request-access-note {
  font-size: 13px;
  color: var(--bp-text-secondary);
  margin-top: 8px;
}

.bp-btn-full {
  width: 100%;
  justify-content: center;
}

.bp-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.bp-login-to-see {
  font-size: 13px;
  color: var(--bp-text-secondary);
  font-style: italic;
}

/* ============================================
   17. NAV ICONS (Cart, Account)
   ============================================ */

.bp-nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--bp-text-secondary);
  transition: color 200ms ease;
}

.bp-nav-icon:hover {
  color: var(--bp-text);
}

.bp-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bp-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   18. FAQ ACCORDION
   ============================================ */

.bp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-faq-item {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  overflow: hidden;
  transition: border-color 200ms ease;
}

.bp-faq-item.active {
  border-color: rgba(108, 59, 255, 0.3);
}

.bp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bp-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.bp-faq-icon {
  flex-shrink: 0;
  color: var(--bp-text-secondary);
  transition: transform 200ms ease;
}

.bp-faq-item.active .bp-faq-vline {
  display: none;
}

.bp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.bp-faq-item.active .bp-faq-answer {
  max-height: 500px;
  padding: 0 20px 18px;
}

.bp-faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bp-text-secondary);
}

/* ============================================
   19. CONTACT PAGE
   ============================================ */

.bp-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 767px) {
  .bp-contact-layout {
    grid-template-columns: 1fr;
  }
}

.bp-contact-form-wrap {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  padding: 32px;
}

/* ============================================
   20. SOCIAL LOGIN
   ============================================ */

.bp-social-login {
  margin-top: 24px;
}

.bp-social-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.bp-social-divider::before,
.bp-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bp-border);
}

.bp-social-divider span {
  font-size: 13px;
  color: var(--bp-text-secondary);
  white-space: nowrap;
}

.bp-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

/* Override Nextend Social Login button styles to match brand */
.bp-social-buttons a,
.bp-social-buttons [data-plugin="nsl"] a,
.bp-social-buttons .nsl-container a,
.bp-social-buttons .nsl-button a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 13px 16px !important;
  border: 1px solid var(--bp-border) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: var(--bp-font-sans) !important;
  color: var(--bp-text) !important;
  background: var(--bp-surface) !important;
  text-decoration: none !important;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease !important;
  box-shadow: none !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
}

.bp-social-buttons a:hover,
.bp-social-buttons [data-plugin="nsl"] a:hover,
.bp-social-buttons .nsl-container a:hover,
.bp-social-buttons .nsl-button a:hover {
  background: var(--bp-muted-bg) !important;
  border-color: #d1d5db !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* Nextend container resets */
.bp-social-buttons .nsl-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.bp-social-buttons .nsl-container-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Nextend button wrapper */
.bp-social-buttons .nsl-button {
  display: block !important;
  width: 100% !important;
}

/* Nextend icon sizing */
.bp-social-buttons .nsl-button-icon,
.bp-social-buttons .nsl-button svg,
.bp-social-buttons .nsl-button img {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

/* Nextend label */
.bp-social-buttons .nsl-button-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: var(--bp-font-sans) !important;
  color: var(--bp-text) !important;
}

/* Divider between social and email form */
.bp-social-login + form,
.bp-social-buttons + .bp-social-divider-bottom {
  margin-top: 24px;
}

.bp-social-note {
  font-size: 13px;
  color: var(--bp-text-secondary);
  text-align: center;
  padding: 12px;
  background: var(--bp-muted-bg);
  border-radius: var(--bp-radius);
}

/* ============================================
   21. ACCOUNT PAGE TABS
   ============================================ */

.bp-account-tabs ul.bp-tabs {
  list-style: none;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--bp-border);
  overflow-x: auto;
  padding: 0;
  margin: 0;
}

.bp-account-tabs ul.bp-tabs li {
  list-style: none;
}

.bp-account-tabs .bp-tab.active {
  background: var(--bp-purple);
  color: #fff;
  border-bottom-color: var(--bp-purple);
  border-radius: var(--bp-radius) var(--bp-radius) 0 0;
}

/* WooCommerce account content styling */
.woocommerce-MyAccount-content {
  margin-top: 24px;
}

.woocommerce-MyAccount-content table {
  width: 100%;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  border-collapse: collapse;
  background: var(--bp-surface);
}

.woocommerce-MyAccount-content table thead th {
  text-align: left;
  padding: 14px 20px;
  font-family: var(--bp-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-text-secondary);
  background: var(--bp-bg);
  border-bottom: 1px solid var(--bp-border);
}

.woocommerce-MyAccount-content table tbody td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.woocommerce-MyAccount-content table tbody tr:last-child td {
  border-bottom: none;
}

/* Order status badges */
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status mark {
  background: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ============================================
   22. QUANTITY SELECTOR (WooCommerce Override)
   ============================================ */

.woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  overflow: hidden;
  background: var(--bp-surface);
}

.woocommerce .quantity .qty {
  width: 48px;
  height: 40px;
  text-align: center;
  font-family: var(--bp-font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-text);
  border: none;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add +/- buttons via JS in main.js */
.bp-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  font-size: 16px;
  font-weight: 500;
  color: var(--bp-text-secondary);
  background: var(--bp-bg);
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
}

.bp-qty-btn:hover {
  background: var(--bp-muted-bg);
  color: var(--bp-text);
}

/* ============================================
   23. RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 767px) {
  .bp-catalog-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }


  .bp-contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   14. LEGAL PAGES (Terms, Privacy, Shipping, Returns)
   ============================================ */

.bp-legal-page {
  padding: 64px 0;
}

.bp-legal-header {
  margin-bottom: 48px;
}

.bp-legal-header h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.bp-legal-updated {
  font-size: 13px;
  font-family: var(--bp-mono);
  color: var(--bp-text-secondary);
  margin-top: 8px;
}

.bp-legal-content section {
  margin-bottom: 32px;
}

.bp-legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bp-legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.85);
  margin-bottom: 12px;
}

.bp-legal-content ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.bp-legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.85);
  margin-bottom: 6px;
  list-style: disc;
}

.bp-legal-content a {
  color: var(--bp-purple);
}

.bp-legal-content a:hover {
  text-decoration: underline;
}

.bp-shipping-table {
  margin: 16px 0;
  overflow-x: auto;
}

.bp-shipping-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  overflow: hidden;
}

.bp-shipping-table th,
.bp-shipping-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-shipping-table th {
  background: var(--bp-bg);
  font-family: var(--bp-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bp-text-secondary);
  font-weight: 500;
}

.bp-shipping-table td {
  font-family: var(--bp-mono);
}

/* ============================================
   15. ABOUT PAGE
   ============================================ */

.bp-about-hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp-about-hero-inner {
  max-width: 768px;
}

.bp-about-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 12px;
}

.bp-about-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--bp-text-secondary);
  margin-top: 24px;
}

.bp-about-metrics {
  border-bottom: 1px solid var(--bp-border);
}

.bp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.bp-metric {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--bp-border);
}

.bp-metric:last-child {
  border-right: none;
}

.bp-metric-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--bp-mono);
  letter-spacing: -0.02em;
}

.bp-metric-label {
  display: block;
  font-size: 11px;
  font-family: var(--bp-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bp-text-secondary);
  margin-top: 4px;
}

.bp-about-story {
  padding: 80px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.bp-story-grid h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 24px;
}

.bp-story-grid p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.85);
  margin-bottom: 16px;
}

.bp-about-pillars {
  padding: 80px 0;
  border-bottom: 1px solid var(--bp-border);
  background: rgba(247, 248, 250, 0.5);
}

.bp-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.bp-pillar-card {
  border: 1px solid var(--bp-border);
  background: white;
  border-radius: var(--bp-radius);
  padding: 24px;
}

.bp-pillar-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bp-pillar-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bp-text-secondary);
}

.bp-about-team {
  padding: 80px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp-about-team-desc {
  color: var(--bp-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  margin-top: 12px;
}

.bp-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.bp-team-card {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 24px;
  text-align: center;
}

.bp-team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bp-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--bp-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--bp-text-secondary);
}

.bp-team-role {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.bp-team-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--bp-text-secondary);
}

.bp-team-note {
  text-align: center;
  font-size: 14px;
  color: var(--bp-text-secondary);
  margin-top: 32px;
}

.bp-team-note a {
  color: var(--bp-purple);
}

.bp-about-cta {
  padding: 80px 0;
}

.bp-about-cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bp-about-cta p {
  color: var(--bp-text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

.bp-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ============================================
   16. WHOLESALE PAGE
   ============================================ */

.bp-wholesale-page .bp-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--bp-text-secondary);
  margin-top: 24px;
}

.bp-account-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.bp-account-type-card {
  border: 1px solid var(--bp-border);
  background: white;
  border-radius: var(--bp-radius);
  padding: 20px;
}

.bp-account-type-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bp-account-type-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--bp-text-secondary);
}

.bp-wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.bp-wholesale-grid h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 24px;
}

.bp-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bp-benefit-item {
  border-left: 2px solid var(--bp-border);
  padding-left: 16px;
  transition: border-color 200ms;
}

.bp-benefit-item:hover {
  border-left-color: var(--bp-purple);
}

.bp-benefit-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bp-benefit-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bp-text-secondary);
}

.bp-wholesale-form-card {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 32px;
}

.bp-wholesale-form-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  margin-top: 0;
}

.bp-form-subtitle {
  font-size: 14px;
  color: var(--bp-text-secondary);
  margin-bottom: 24px;
}

/* ============================================
   17. ORDER TRACKING PAGE
   ============================================ */

.bp-tracking-page {
  padding: 64px 0;
}

.bp-tracking-page h1 {
  font-size: 36px;
  font-weight: 700;
  margin-top: 8px;
}

.bp-page-desc {
  color: var(--bp-text-secondary);
  margin-bottom: 40px;
}

.bp-tracking-form-wrap {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 24px;
  margin-bottom: 32px;
}

.bp-tracking-form-wrap .woocommerce-form-track-order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bp-tracking-form-wrap label {
  font-size: 11px;
  font-family: var(--bp-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bp-text-secondary);
  display: block;
  margin-bottom: 6px;
}

.bp-tracking-form-wrap input[type="text"],
.bp-tracking-form-wrap input[type="email"] {
  width: 100%;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--bp-mono);
  transition: border-color 200ms;
}

.bp-tracking-form-wrap input:focus {
  outline: none;
  border-color: var(--bp-purple);
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.1);
}

.bp-tracking-form-wrap button[type="submit"] {
  grid-column: 1 / -1;
  background: var(--bp-purple);
  color: white;
  border: none;
  border-radius: var(--bp-radius);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms;
}

.bp-tracking-form-wrap button[type="submit"]:hover {
  background: var(--bp-purple-hover);
}

.bp-tracking-help {
  border-top: 1px solid var(--bp-border);
  padding-top: 32px;
  margin-top: 32px;
}

.bp-tracking-help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.bp-tracking-help-card {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 20px;
}

.bp-tracking-help-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bp-tracking-help-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--bp-text-secondary);
}

.bp-tracking-help-card a {
  color: var(--bp-purple);
}

/* ============================================
   18. RELATED PRODUCTS (Cross-sell)
   ============================================ */

.bp-related-card {
  display: block;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  background: white;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms;
}

.bp-related-card:hover {
  border-color: rgba(108, 59, 255, 0.4);
}

.bp-related-img {
  aspect-ratio: 1;
  background: var(--bp-bg);
  border-radius: var(--bp-radius);
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-related-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 300ms;
}

.bp-related-card:hover .bp-related-img img {
  transform: scale(1.05);
}

.bp-related-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-related-meta {
  font-size: 12px;
  font-family: var(--bp-mono);
  color: var(--bp-text-secondary);
  margin-top: 4px;
}

.bp-related-price {
  font-size: 13px;
  font-family: var(--bp-mono);
  font-weight: 600;
  margin-top: 6px;
}

/* ============================================
   19. RESPONSIVE: New Pages
   ============================================ */

@media (max-width: 768px) {
  .bp-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bp-metric {
    border-bottom: 1px solid var(--bp-border);
  }

  .bp-metric:nth-child(odd) {
    border-right: 1px solid var(--bp-border);
  }

  .bp-metric:nth-child(even) {
    border-right: none;
  }

  .bp-story-grid,
  .bp-wholesale-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bp-pillars-grid,
  .bp-team-grid {
    grid-template-columns: 1fr;
  }

  .bp-account-types-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bp-tracking-help-grid {
    grid-template-columns: 1fr;
  }

  .bp-tracking-form-wrap .woocommerce-form-track-order {
    grid-template-columns: 1fr;
  }

  .bp-about-hero h1 {
    font-size: 36px;
  }

  .bp-cta-buttons {
    flex-direction: column;
  }
}

/* ============================================
   20. AJAX CART SLIDER
   ============================================ */

.bp-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.bp-cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bp-cart-slider {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — accounts for mobile browser toolbar */
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.bp-cart-slider.open {
  transform: translateX(0);
}

.bp-cart-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bp-border);
  flex-shrink: 0;
}

.bp-cart-slider-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.bp-cart-slider-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--bp-text-secondary);
  transition: color 150ms;
}

.bp-cart-slider-close:hover {
  color: var(--bp-text);
}

/* Free shipping progress bar */
.bp-shipping-progress {
  padding: 16px 24px;
  border-bottom: 1px solid var(--bp-border);
  flex-shrink: 0;
}

.bp-shipping-progress-text {
  font-size: 13px;
  color: var(--bp-text-secondary);
  margin-bottom: 8px;
}

.bp-shipping-progress-text strong {
  color: var(--bp-text);
}

.bp-shipping-bar {
  height: 6px;
  background: var(--bp-bg);
  border-radius: 3px;
  overflow: hidden;
}

.bp-shipping-bar-fill {
  height: 100%;
  background: var(--bp-purple);
  border-radius: 3px;
  transition: width 300ms ease;
}

.bp-shipping-bar-fill.complete {
  background: #059669;
}

.bp-shipping-achieved {
  font-size: 13px;
  color: #059669;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Cart items list */
.bp-cart-slider-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.bp-cart-slider-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp-cart-slider-item:last-child {
  border-bottom: none;
}

.bp-cart-slider-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--bp-bg);
  overflow: hidden;
  flex-shrink: 0;
}

.bp-cart-slider-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.bp-cart-slider-item-info {
  flex: 1;
  min-width: 0;
}

.bp-cart-slider-item-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  color: var(--bp-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-cart-slider-item-price {
  display: block;
  font-size: 13px;
  font-family: var(--bp-mono);
  color: var(--bp-text-secondary);
}

.bp-cart-slider-qty {
  display: inline-flex;
  align-items: center;
  align-self: center;
  border: 1px solid var(--bp-border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.bp-cart-slider-qty button {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--bp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
}

.bp-cart-slider-qty button:hover {
  background: var(--bp-bg);
}

.bp-qty-val {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--bp-mono);
}

.bp-cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bp-text-secondary);
  padding: 4px;
  align-self: center;
  flex-shrink: 0;
  transition: color 150ms;
  flex-shrink: 0;
  align-self: flex-start;
}

.bp-cart-item-remove:hover {
  color: #ef4444;
}

/* Cart empty state */
.bp-cart-slider-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.bp-cart-slider-empty svg {
  color: var(--bp-text-secondary);
  margin-bottom: 16px;
  opacity: 0.4;
}

.bp-cart-slider-empty p {
  font-size: 14px;
  color: var(--bp-text-secondary);
  margin-bottom: 16px;
}

/* Cart footer */
.bp-cart-slider-footer {
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bp-border);
  flex-shrink: 0;
}

.bp-cart-slider-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bp-cart-slider-subtotal span:first-child {
  font-size: 14px;
  color: var(--bp-text-secondary);
}

.bp-cart-slider-subtotal span:last-child {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--bp-mono);
}

.bp-cart-slider-checkout {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--bp-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--bp-font-sans, 'Inter', sans-serif);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 150ms;
  margin-bottom: 8px;
}

.bp-cart-slider-checkout:hover {
  background: var(--bp-purple-hover);
  color: #fff;
}

.bp-cart-slider-continue {
  display: block;
  width: 100%;
  padding: 10px 24px;
  background: none;
  color: var(--bp-text-secondary);
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: border-color 150ms, color 150ms;
}

.bp-cart-slider-continue:hover {
  border-color: var(--bp-text);
  color: var(--bp-text);
}

/* ============================================
   21. MY ACCOUNT PAGE (Branded)
   ============================================ */

.bp-account-page {
  padding: 48px 0 80px;
}

.bp-account-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bp-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.bp-account-welcome h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.bp-account-welcome p {
  font-size: 14px;
  color: var(--bp-text-secondary);
  margin: 0;
}

.bp-account-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--bp-border);
  overflow-x: auto;
}

.bp-account-nav a {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 150ms, border-color 150ms;
}

.bp-account-nav a:hover,
.bp-account-nav a.active {
  color: var(--bp-purple);
  border-bottom-color: var(--bp-purple);
}

.bp-account-content {
  min-height: 300px;
}

/* Order history table */
.bp-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.bp-orders-table th {
  font-size: 11px;
  font-family: var(--bp-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bp-text-secondary);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-orders-table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--bp-border);
  vertical-align: middle;
}

.bp-order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.bp-order-status.processing {
  background: #FEF3C7;
  color: #92400E;
}

.bp-order-status.completed {
  background: #D1FAE5;
  color: #065F46;
}

.bp-order-status.on-hold {
  background: #E0E7FF;
  color: #3730A3;
}

.bp-order-status.cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.bp-orders-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--bp-text-secondary);
}

.bp-orders-empty p {
  margin-bottom: 16px;
}

/* Account details form */
.bp-account-form .bp-form-row {
  margin-bottom: 16px;
}

.bp-account-form label {
  display: block;
  font-size: 12px;
  font-family: var(--bp-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bp-text-secondary);
  margin-bottom: 6px;
}

.bp-account-form input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--bp-font-sans);
  transition: border-color 200ms;
}

.bp-account-form input:focus {
  outline: none;
  border-color: var(--bp-purple);
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.1);
}

.bp-account-logout {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 24px;
  background: none;
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--bp-text-secondary);
  text-decoration: none;
  transition: border-color 150ms, color 150ms;
}

.bp-account-logout:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* ============================================
   22. RESPONSIVE: Cart Slider & Account
   ============================================ */

@media (max-width: 768px) {
  .bp-cart-slider {
    width: 100%;
    max-width: 100vw;
    height: 100dvh;
    height: -webkit-fill-available;
  }

  /* Extra bottom padding so checkout button clears mobile browser toolbar */
  .bp-cart-slider-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 20px));
  }

  .bp-cart-slider-checkout {
    margin-bottom: 8px;
  }

  .bp-account-header {
    flex-direction: column;
    text-align: center;
  }

  .bp-account-nav {
    gap: 0;
  }

  .bp-account-nav a {
    padding: 10px 14px;
    font-size: 13px;
  }

  .bp-orders-table {
    font-size: 13px;
  }

  .bp-orders-table th,
  .bp-orders-table td {
    padding: 10px 8px;
  }
}

/* ============================================
   23. COMPREHENSIVE MOBILE FIXES
   ============================================ */

/* --- Mobile: Catalog products in 2-column grid --- */
@media (max-width: 639px) {
  .bp-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .bp-product-grid .bp-card-image {
    padding: 12px;
  }

  .bp-product-grid .bp-card-body {
    padding: 12px;
  }

  .bp-product-grid .bp-card-body h3 {
    font-size: 13px;
    line-height: 1.3;
  }

  .bp-product-grid .bp-card-footer {
    padding-top: 8px;
    margin-top: 8px;
  }

  .bp-product-grid .bp-card-footer .bp-mono {
    font-size: 12px;
  }

  /* Also fix the WooCommerce default grid override */
  .woocommerce .products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

/* --- Mobile: Buttons never break into two lines --- */
.bp-btn {
  white-space: nowrap;
}

.bp-hero-ctas .bp-btn {
  white-space: nowrap;
  font-size: 14px;
}

@media (max-width: 639px) {
  .bp-hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bp-hero-ctas .bp-btn {
    justify-content: center;
    text-align: center;
    font-size: 14px;
    padding: 14px 20px;
  }

  .bp-hero-ctas .bp-btn-secondary {
    padding: 12px 20px;
  }
}

/* --- Mobile: Request Access button margin in mobile menu --- */
@media (max-width: 767px) {
  .bp-nav.open .bp-header-cta,
  .bp-nav.open .bp-btn-primary {
    margin: 8px 0;
    padding: 14px 24px;
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: var(--bp-radius);
  }

  .bp-nav.open .bp-nav-icon {
    padding: 8px 0;
  }
}

/* --- Single Product Page Layout --- */
.bp-product-header-section {
  padding: 32px 0;
}

.bp-product-header-grid {
  gap: 64px;
  align-items: start;
}

.bp-product-image-card {
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-product-info {
  padding: 0 4px;
}

.bp-product-title {
  margin-top: 8px;
  font-size: 42px;
}

/* --- Mobile: Product page — margins, name spacing, tab bar --- */
@media (max-width: 767px) {
  /* Product header grid — stack, proper gap, breathing room */
  .bp-product-header-grid {
    gap: 20px !important;
  }

  .bp-product-header-section {
    padding: 16px 0 24px;
  }

  /* Give the whole product page side margins */
  .bp-single-product-main .bp-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Product image card: less padding on mobile */
  .bp-product-image-card {
    padding: 16px 20px;
  }

  /* Product info: real margin */
  .bp-product-info {
    padding: 0 2px;
  }

  /* Product name: properly sized */
  .bp-product-title {
    font-size: 26px !important;
    line-height: 1.2;
    margin-top: 8px;
  }

  /* Tab bar: prevent dragging, snap, proper spacing */
  .bp-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding: 0 var(--bp-sm);
    margin: 0 calc(-1 * var(--bp-sm));
    width: calc(100% + var(--bp-sm) * 2);
  }

  .bp-tabs::-webkit-scrollbar {
    display: none;
  }

  .bp-tab {
    scroll-snap-align: start;
    padding: 12px 16px;
    font-size: 13px;
    flex-shrink: 0;
  }

  /* Tab content margins */
  .bp-tab-content {
    padding-top: 20px;
    max-width: 100%;
  }

  /* Data panel on mobile */
  .bp-data-row {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .bp-data-label {
    font-size: 11px;
  }

  .bp-data-value {
    font-size: 13px;
  }

  /* Spec table on mobile */
  .bp-spec-table th {
    width: 120px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .bp-spec-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Related products on mobile — 2 column */
  .bp-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

/* --- Mobile: Documentation table → card layout --- */

/* Prevent horizontal overflow on documentation page */
.bp-batch-table {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 767px) {
  /* Ensure documentation section has proper side padding */
  main > .bp-container.bp-section {
    padding-left: var(--bp-sm) !important;
    padding-right: var(--bp-sm) !important;
  }

  .bp-batch-table {
    border: none;
    overflow-x: visible;
  }

  .bp-batch-table thead {
    display: none;
  }

  .bp-batch-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .bp-batch-table tbody tr {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    background: var(--bp-surface);
    padding: 16px;
    gap: 8px;
  }

  .bp-batch-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    text-align: left !important;
  }

  .bp-batch-table tbody td::before {
    content: attr(data-label);
    font-family: var(--bp-font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bp-text-secondary);
    flex-shrink: 0;
    margin-right: 12px;
  }

  .bp-batch-table tbody td:first-child {
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid var(--bp-border);
    padding-bottom: 8px;
    margin-bottom: 4px;
  }

  .bp-batch-table tbody td:last-child {
    text-align: left !important;
  }
}

/* --- General mobile fixes --- */
@media (max-width: 767px) {
  h1, .bp-h1 {
    font-size: 32px;
    line-height: 38px;
  }

  h2, .bp-h2 {
    font-size: 24px;
    line-height: 30px;
  }

  /* Hero */
  .bp-hero {
    min-height: auto;
    padding-top: 72px;
  }

  .bp-hero-grid {
    padding: var(--bp-md) 0;
    gap: 32px;
  }

  .bp-hero-content h1 {
    font-size: 34px;
    line-height: 40px;
  }

  .bp-hero-image img {
    max-width: 280px;
  }

  /* Trust strip scroll */
  .bp-trust-strip-inner {
    gap: 16px;
    justify-content: flex-start;
    padding: 0 4px;
  }

  /* Section padding */
  .bp-section {
    padding: var(--bp-md) 0;
  }

  /* COA cards stack */
  .bp-coa-card {
    flex-direction: column;
  }

  .bp-coa-thumb {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--bp-border);
    height: 120px;
  }

  /* Footer */
  .bp-footer-grid {
    gap: 32px;
  }
}

/* ============================================
   24. SHOPIFY-STYLE CHECKOUT
   ============================================ */

/* --- Isolated checkout: hide normal site chrome --- */
.bp-checkout-isolated .bp-header,
.bp-checkout-isolated .bp-cart-overlay,
.bp-checkout-isolated .bp-cart-slider,
.bp-checkout-isolated .bp-footer {
  display: none !important;
}

/* --- Checkout header --- */
.bp-checkout-header {
  background: #fff;
  border-bottom: 1px solid var(--bp-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bp-checkout-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bp-checkout-logo .bp-logo-text {
  font-size: 18px;
}

.bp-checkout-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--bp-text-secondary);
  font-weight: 500;
}

.bp-checkout-secure svg {
  color: #22c55e;
}

.bp-checkout-progress-bar {
  height: 3px;
  background: var(--bp-purple);
}

.bp-checkout-secure svg {
  color: #22c55e;
}

/* --- Checkout main area --- */
.bp-checkout-main {
  min-height: calc(100vh - 130px);
  background: var(--bp-bg);
  padding: 40px 24px 60px;
}

.bp-checkout-container {
  max-width: 1140px;
  margin: 0 auto;
}

/* --- Checkout footer --- */
.bp-checkout-footer {
  background: #fff;
  border-top: 1px solid var(--bp-border);
  padding: 20px 24px;
}

.bp-checkout-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bp-text-secondary);
  flex-wrap: wrap;
}

.bp-checkout-footer a {
  color: var(--bp-text-secondary);
  text-decoration: none;
}

.bp-checkout-footer a:hover {
  color: var(--bp-purple);
}

.bp-checkout-footer-sep {
  color: var(--bp-border);
}

/* -----------------------------------------------
   24a. CHECKOUT — Two-column grid (form-checkout.php)
   LEFT  = billing / shipping / payment / place order
   RIGHT = order summary sidebar (products, coupon, totals)
   ----------------------------------------------- */

/* Hide page title — we use the checkout header */
.bp-checkout-isolated .entry-title,
.bp-checkout-isolated .woocommerce > h1,
.bp-checkout-isolated .page-title {
  display: none;
}

/* Hide the default WooCommerce coupon toggle — we have our own in sidebar */
.bp-checkout-isolated .woocommerce-form-coupon-toggle,
.bp-checkout-isolated .checkout_coupon.woocommerce-form-coupon {
  display: none !important;
}

/* Hide the WC order review TABLE inside the left column —
   we render our own product list in the right sidebar.
   Payment + place-order still render in left column. */
.bp-co-left #order_review .woocommerce-checkout-review-order-table,
.bp-co-left #order_review_heading,
#customer_details #order_review .woocommerce-checkout-review-order-table {
  display: none !important;
}

/* --- Main grid --- */
.bp-co-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 900px) {
  .bp-co-grid {
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .bp-co-grid {
    grid-template-columns: 1fr 420px;
    gap: 56px;
  }
}

/* --- Left column: billing, shipping, payment --- */
.bp-co-left {
  min-width: 0;
}

.bp-co-left #customer_details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bp-co-left #customer_details .col-1,
.bp-co-left #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Section headings — Shopify-style: smaller, clean, with subtle separator */
.bp-co-left .woocommerce-billing-fields h3,
.bp-co-left .woocommerce-shipping-fields h3,
.bp-co-left .woocommerce-additional-fields h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--bp-text);
  margin: 0 0 16px;
  padding: 0;
  border: none;
  letter-spacing: -0.01em;
}

/* Add top separator for shipping + additional (not first section) */
.bp-co-left .woocommerce-shipping-fields,
.bp-co-left .woocommerce-additional-fields {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--bp-border);
}

/* --- Floating label system --- */
/* Only applies to form rows INSIDE #customer_details (billing/shipping fields).
   Excludes #payment, disclaimer, and other sections. */

.bp-co-left .form-row {
  margin-bottom: 0;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.bp-co-left #customer_details .col-1 .form-row,
.bp-co-left #customer_details .col-2 .form-row {
  position: relative;
}

/* Label floats inside the input — scoped to col-1/col-2 only (NOT #order_review/payment) */
.bp-co-left #customer_details .col-1 .form-row label,
.bp-co-left #customer_details .col-2 .form-row label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 15px;
  font-weight: 400;
  color: #6b7280;
  pointer-events: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left top;
  z-index: 1;
  line-height: 1;
  margin: 0;
  background: transparent;
  padding: 0;
}

/* When input has content or focus → shrink label to top */
.bp-co-left #customer_details .col-1 .form-row.bp-float label,
.bp-co-left #customer_details .col-1 .form-row:focus-within label,
.bp-co-left #customer_details .col-2 .form-row.bp-float label,
.bp-co-left #customer_details .col-2 .form-row:focus-within label {
  top: 7px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

.bp-co-left #customer_details .col-1 .form-row label .required,
.bp-co-left #customer_details .col-2 .form-row label .required {
  color: #ef4444;
}

.bp-co-left #customer_details .col-1 .form-row label .optional,
.bp-co-left #customer_details .col-2 .form-row label .optional {
  font-weight: 400;
  color: #9ca3af;
  font-size: inherit;
}

/* Order notes textarea — also gets floating label */
.bp-co-left .woocommerce-additional-fields__field-wrapper .form-row {
  position: relative;
}

.bp-co-left .woocommerce-additional-fields__field-wrapper .form-row label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 15px;
  font-weight: 400;
  color: #6b7280;
  pointer-events: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left top;
  z-index: 1;
  line-height: 1;
  margin: 0;
}

.bp-co-left .woocommerce-additional-fields__field-wrapper .form-row.bp-float label,
.bp-co-left .woocommerce-additional-fields__field-wrapper .form-row:focus-within label {
  top: 7px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

/* Inputs — taller to accommodate floating label */
.bp-co-left .form-row input.input-text,
.bp-co-left .form-row textarea {
  width: 100% !important;
  padding: 22px 16px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--bp-font-sans);
  color: var(--bp-text);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
  height: auto;
  line-height: 1.3;
  -webkit-appearance: none;
}

/* Select (native) */
.bp-co-left .form-row select {
  width: 100% !important;
  padding: 22px 16px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--bp-font-sans);
  color: var(--bp-text);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
  height: auto;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Select2 dropdown (WC country/state) */
.bp-co-left .select2-container .select2-selection--single {
  height: 52px !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 0 16px 8px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

.bp-co-left .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.3;
  color: var(--bp-text);
  font-size: 15px;
}

.bp-co-left .select2-container .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 12px;
  top: 0;
}

/* Select2 containers always get float label */
.bp-co-left #customer_details .col-1 .form-row:has(.select2-container) label,
.bp-co-left #customer_details .col-2 .form-row:has(.select2-container) label {
  top: 7px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

/* Focus state */
.bp-co-left .form-row input.input-text:focus,
.bp-co-left .form-row select:focus,
.bp-co-left .form-row textarea:focus,
.bp-co-left .form-row:focus-within .select2-selection--single {
  outline: none;
  border-color: var(--bp-purple) !important;
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.08) !important;
}

/* --- Field wrapper grid — tight gaps like Shopify --- */
.bp-co-left .woocommerce-billing-fields__field-wrapper,
.bp-co-left .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Full-width fields */
.bp-co-left .form-row-wide,
.bp-co-left #billing_company_field,
.bp-co-left #billing_country_field,
.bp-co-left #billing_address_1_field,
.bp-co-left #billing_address_2_field,
.bp-co-left #billing_email_field,
.bp-co-left #billing_phone_field,
.bp-co-left #order_comments_field,
.bp-co-left #shipping_country_field,
.bp-co-left #shipping_address_1_field,
.bp-co-left #shipping_address_2_field {
  grid-column: 1 / -1;
}

/* City / State / Postcode → 3-column row (Shopify-style) */
.bp-co-left #billing_city_field {
  grid-column: 1 / 2;
}
.bp-co-left #billing_state_field {
  grid-column: 2 / 3;
}
.bp-co-left #billing_postcode_field {
  grid-column: 1 / -1;
}

/* When all 3 exist, use 3-column layout */
.bp-co-left .woocommerce-billing-fields__field-wrapper:has(#billing_city_field):has(#billing_state_field):has(#billing_postcode_field) {
  grid-template-columns: 1fr 1fr 1fr;
}

.bp-co-left .woocommerce-billing-fields__field-wrapper:has(#billing_city_field):has(#billing_state_field):has(#billing_postcode_field) #billing_city_field,
.bp-co-left .woocommerce-billing-fields__field-wrapper:has(#billing_city_field):has(#billing_state_field):has(#billing_postcode_field) #billing_state_field,
.bp-co-left .woocommerce-billing-fields__field-wrapper:has(#billing_city_field):has(#billing_state_field):has(#billing_postcode_field) #billing_postcode_field {
  grid-column: auto;
}

/* Same for shipping */
.bp-co-left .woocommerce-shipping-fields__field-wrapper:has(#shipping_city_field):has(#shipping_state_field):has(#shipping_postcode_field) {
  grid-template-columns: 1fr 1fr 1fr;
}

.bp-co-left .woocommerce-shipping-fields__field-wrapper:has(#shipping_city_field):has(#shipping_state_field):has(#shipping_postcode_field) #shipping_city_field,
.bp-co-left .woocommerce-shipping-fields__field-wrapper:has(#shipping_city_field):has(#shipping_state_field):has(#shipping_postcode_field) #shipping_state_field,
.bp-co-left .woocommerce-shipping-fields__field-wrapper:has(#shipping_city_field):has(#shipping_state_field):has(#shipping_postcode_field) #shipping_postcode_field {
  grid-column: auto;
}

/* Fallback: State + Postcode side-by-side when city is full-width */
.bp-co-left #shipping_state_field,
.bp-co-left #shipping_postcode_field {
  grid-column: auto;
}

.bp-co-left #shipping_city_field {
  grid-column: 1 / 2;
}

/* --- "Ship to different address?" checkbox --- */
.bp-co-left .woocommerce-shipping-fields #ship-to-different-address {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bp-text);
  cursor: pointer;
  margin-bottom: 16px;
}

.bp-co-left .woocommerce-shipping-fields #ship-to-different-address label {
  position: static;
  font-size: 15px;
  font-weight: 600;
  color: var(--bp-text);
  pointer-events: auto;
  cursor: pointer;
}

.bp-co-left .woocommerce-shipping-fields #ship-to-different-address input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--bp-purple);
}

/* --- Order notes textarea --- */
.bp-co-left #order_comments_field textarea {
  min-height: 80px;
  resize: vertical;
}

/* Hide placeholder text when floating label is active (avoids overlap) */
.bp-co-left #customer_details .col-1 .form-row input::placeholder,
.bp-co-left #customer_details .col-2 .form-row input::placeholder,
.bp-co-left .woocommerce-additional-fields__field-wrapper .form-row textarea::placeholder {
  color: transparent;
}

.bp-co-left #customer_details .col-1 .form-row input:focus::placeholder,
.bp-co-left #customer_details .col-2 .form-row input:focus::placeholder,
.bp-co-left .woocommerce-additional-fields__field-wrapper .form-row textarea:focus::placeholder {
  color: #9ca3af;
  transition: color 150ms ease 100ms;
}

/* --- Payment section (inside #customer_details between col-1 and col-2) --- */
#customer_details #order_review {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--bp-border);
}

.bp-co-left #payment {
  border-radius: 12px;
  border: 1px solid var(--bp-border);
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  background: #fff;
}

.bp-co-left #payment .payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bp-co-left #payment .payment_methods li {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.bp-co-left #payment .payment_methods li:last-child {
  border-bottom: none;
}

.bp-co-left #payment .payment_methods li label {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bp-text);
}

.bp-co-left #payment .payment_methods li input[type="radio"] {
  accent-color: var(--bp-purple);
  width: 16px;
  height: 16px;
}

.bp-co-left #payment .payment_box {
  padding: 12px 20px 12px;
  background: var(--bp-bg);
  font-size: 13px;
  color: var(--bp-text-secondary);
  line-height: 1.5;
  border-top: 1px solid rgba(229, 231, 235, 0.4);
}

/* "No payment methods" notice inside payment */
.bp-co-left #payment .woocommerce-notice,
.bp-co-left #payment .woocommerce-info {
  margin: 16px 20px;
  padding: 14px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* Place order button */
.bp-co-left #place_order {
  display: block !important;
  width: 100% !important;
  padding: 16px 32px !important;
  background: var(--bp-purple) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: var(--bp-font-sans) !important;
  cursor: pointer !important;
  transition: background 150ms ease, transform 100ms ease !important;
  margin-top: 12px !important;
  letter-spacing: 0.01em;
}

.bp-co-left #place_order:hover {
  background: var(--bp-purple-hover) !important;
  transform: translateY(-1px);
}

.bp-co-left #place_order:active {
  transform: translateY(0);
}

/* Checkout disclaimer — cleaner, inline */
.bp-checkout-disclaimer {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: rgba(255, 59, 92, 0.03);
  border: 1px solid rgba(255, 59, 92, 0.12);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

/* Override ANY floating label styles on disclaimer */
.bp-checkout-disclaimer .form-row {
  position: static !important;
}

.bp-checkout-disclaimer label,
.bp-checkout-disclaimer .form-row label,
.bp-checkout-disclaimer .bp-checkbox-field label {
  position: static !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--bp-text) !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

.bp-checkout-disclaimer input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--bp-purple);
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
}

/* Privacy policy text — hidden, redundant with footer links */
.bp-co-left .woocommerce-privacy-policy-text {
  display: none;
}

/* -----------------------------------------------
   24b. CHECKOUT — Right sidebar (order summary)
   ----------------------------------------------- */

.bp-co-right {
  min-width: 0;
}

.bp-co-sidebar {
  background: #fff;
  border: 1px solid var(--bp-border);
  border-radius: 12px;
  padding: 28px;
}

@media (min-width: 900px) {
  .bp-co-sidebar {
    position: sticky;
    top: 80px;
  }
}

.bp-co-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bp-text);
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--bp-border);
}

/* --- Product items --- */
.bp-co-items {
  display: flex;
  flex-direction: column;
}

.bp-co-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.bp-co-item:last-child {
  border-bottom: none;
}

.bp-co-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
  overflow: visible;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-co-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  border-radius: 6px;
}

.bp-co-item-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--bp-text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
}

.bp-co-item-info {
  flex: 1;
  min-width: 0;
}

.bp-co-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-co-item-meta {
  font-size: 12px;
  color: var(--bp-text-secondary);
  margin-top: 2px;
}

.bp-co-item-price {
  font-size: 14px;
  font-family: var(--bp-font-mono);
  font-weight: 500;
  flex-shrink: 0;
  color: var(--bp-text);
}

/* --- Coupon input --- */
.bp-co-coupon {
  padding: 16px 0;
  border-top: 1px solid var(--bp-border);
}

.bp-co-coupon-row {
  display: flex;
  gap: 8px;
}

.bp-co-coupon-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--bp-font-sans);
  color: var(--bp-text);
  background: var(--bp-bg);
  transition: border-color 150ms ease;
  box-sizing: border-box;
}

.bp-co-coupon-input:focus {
  outline: none;
  border-color: var(--bp-purple);
}

.bp-co-coupon-input::placeholder {
  color: var(--bp-text-secondary);
}

.bp-co-coupon-btn {
  padding: 10px 18px;
  background: var(--bp-text);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--bp-font-sans);
  cursor: pointer;
  transition: background 150ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.bp-co-coupon-btn:hover {
  background: #374151;
}

.bp-co-coupon-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Totals --- */
.bp-co-totals {
  padding-top: 16px;
  border-top: 1px solid var(--bp-border);
}

.bp-co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--bp-text-secondary);
}

.bp-co-total-row .bp-co-amount {
  font-family: var(--bp-font-mono);
  color: var(--bp-text);
  font-weight: 500;
}

.bp-co-total-row.bp-co-discount .bp-co-amount {
  color: #059669;
}

.bp-co-free {
  color: #059669;
  font-weight: 600;
  font-size: 13px;
}

.bp-co-total-row.bp-co-total-final {
  font-size: 18px;
  font-weight: 700;
  color: var(--bp-text);
  padding-top: 14px;
  margin-top: 8px;
  border-top: 2px solid var(--bp-border);
}

.bp-co-total-final .bp-co-amount {
  font-size: 18px;
  font-weight: 700 !important;
}

/* --- WooCommerce notices --- */
.bp-checkout-isolated .woocommerce-error,
.bp-checkout-isolated .woocommerce-message,
.bp-checkout-isolated .woocommerce-info {
  border-radius: 10px;
  border-left: none;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
}

.bp-checkout-isolated .woocommerce-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.bp-checkout-isolated .woocommerce-error::before {
  color: #ef4444;
}

.bp-checkout-isolated .woocommerce-info {
  background: #fff;
  border: 1px solid var(--bp-border);
  color: var(--bp-text-secondary);
}

.bp-checkout-isolated .woocommerce-info::before {
  color: var(--bp-purple);
}

/* -----------------------------------------------
   24c. CHECKOUT — Mobile responsive
   ----------------------------------------------- */

/* Tablet: stack columns, order summary on top */
@media (max-width: 899px) {
  .bp-checkout-main {
    padding: 24px 16px 40px;
  }

  .bp-co-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Order summary above billing on mobile (Shopify-style) */
  .bp-co-right {
    order: -1;
    margin-bottom: 24px;
  }

  .bp-co-sidebar {
    padding: 20px;
  }

  .bp-co-sidebar-title {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  /* Fields still 2-col on tablet for name pairs */
  .bp-co-left .woocommerce-billing-fields__field-wrapper,
  .bp-co-left .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  /* Force 3-col fields back to full-width on tablet */
  .bp-co-left .woocommerce-billing-fields__field-wrapper:has(#billing_city_field):has(#billing_state_field):has(#billing_postcode_field),
  .bp-co-left .woocommerce-shipping-fields__field-wrapper:has(#shipping_city_field):has(#shipping_state_field):has(#shipping_postcode_field) {
    grid-template-columns: 1fr 1fr;
  }

  .bp-co-left #billing_city_field,
  .bp-co-left #shipping_city_field {
    grid-column: 1 / -1;
  }

  .bp-co-left .woocommerce-billing-fields h3,
  .bp-co-left .woocommerce-shipping-fields h3,
  .bp-co-left .woocommerce-additional-fields h3 {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .bp-co-left .woocommerce-shipping-fields,
  .bp-co-left .woocommerce-additional-fields {
    margin-top: 24px;
    padding-top: 24px;
  }

  .bp-co-left #payment {
    margin-top: 24px;
  }

  /* Tighten payment box on mobile */
  .bp-co-left #payment .payment_box {
    padding: 10px 16px 8px !important;
  }

  /* Payment section + order review tighter on mobile */
  #customer_details #order_review {
    margin-top: 20px;
    padding-top: 20px;
  }

  /* Disclaimer tighter on mobile */
  .bp-checkout-disclaimer {
    margin: 10px 0 0 !important;
    padding: 12px 14px !important;
  }

  /* Place order — proper spacing on mobile */
  .bp-co-left #place_order {
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
  }

  .bp-co-item-img {
    width: 56px;
    height: 56px;
  }

  .bp-co-item-qty {
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .bp-checkout-header-inner {
    padding: 12px 16px;
  }

  .bp-checkout-main {
    padding: 16px 12px 32px;
  }

  .bp-co-sidebar {
    padding: 16px;
    border-radius: 10px;
  }

  .bp-co-coupon-input {
    padding: 9px 12px;
    font-size: 13px;
  }

  .bp-co-coupon-btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  /* All fields single-column on small mobile */
  .bp-co-left .woocommerce-billing-fields__field-wrapper,
  .bp-co-left .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .bp-co-left .form-row {
    grid-column: 1 / -1 !important;
  }

  .bp-co-left #customer_details .form-row input.input-text,
  .bp-co-left #customer_details .form-row select,
  .bp-co-left #customer_details .form-row textarea,
  .bp-co-left .woocommerce-additional-fields__field-wrapper .form-row textarea {
    padding: 20px 14px 7px;
    font-size: 14px;
  }

  .bp-co-left #customer_details .form-row label,
  .bp-co-left .woocommerce-additional-fields__field-wrapper .form-row label {
    top: 14px;
    left: 14px;
    font-size: 14px;
  }

  .bp-co-left #customer_details .form-row.bp-float label,
  .bp-co-left #customer_details .form-row:focus-within label,
  .bp-co-left .woocommerce-additional-fields__field-wrapper .form-row.bp-float label,
  .bp-co-left .woocommerce-additional-fields__field-wrapper .form-row:focus-within label {
    top: 6px;
    font-size: 10px;
  }

  .bp-co-left .select2-container .select2-selection--single {
    height: 48px !important;
    padding-bottom: 6px !important;
  }

  .bp-co-left #payment .payment_methods li {
    padding: 12px 16px;
  }

  .bp-co-left .woocommerce-billing-fields h3,
  .bp-co-left .woocommerce-shipping-fields h3,
  .bp-co-left .woocommerce-additional-fields h3 {
    font-size: 16px;
  }
}

/* ============================================
   25. PERFORMANCE: GPU layers, will-change
   ============================================ */

/* Promote animated elements to GPU layer */
.bp-cart-slider {
  will-change: transform;
}

.bp-cart-overlay {
  will-change: opacity;
}

.bp-header {
  will-change: background, backdrop-filter;
}

/* Smooth font rendering on animations */
.bp-cart-slider-item {
  will-change: opacity, transform;
}

/* Content visibility for offscreen sections */
.bp-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* Reduce layout thrashing */
.bp-card-image img {
  content-visibility: auto;
}

/* Instant-feel transitions */
.bp-btn {
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
}

.bp-btn:active {
  transform: scale(0.98);
}

/* Link hover instant */
a {
  transition: color 120ms ease;
}
