/*
Theme Name: BLL Peptides
Theme URI: https://bllpeptides.com
Author: BLL Peptides
Author URI: https://bllpeptides.com
Description: Custom WordPress theme for BLL Peptides - Research Peptides. Built for WooCommerce on WordPress 6.9.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bll-peptides
Tags: e-commerce, full-site-editing, block-patterns, woocommerce

BLL Peptides Theme - Pharmaceutical-Grade Research Peptides
*/

/* =============================================================================
   CSS Custom Properties (Variables)
   ============================================================================= */

:root {
  /* Primary Colors */
  --bll-color-primary: #E74C3C;
  --bll-color-primary-hover: #c0392b;
  --bll-color-dark: #1a1a2e;
  --bll-color-dark-hover: #2d2d44;

  /* Text Colors */
  --bll-color-text: #333333;
  --bll-color-text-secondary: #666666;
  --bll-color-text-muted: #999999;
  --bll-color-text-light: #ffffff;

  /* Background Colors */
  --bll-color-bg: #ffffff;
  --bll-color-bg-light: #f5f5f5;
  --bll-color-bg-alt: #fafafa;

  /* Accent Colors */
  --bll-color-success: #27ae60;
  --bll-color-warning: #f39c12;
  --bll-color-error: #e74c3c;
  --bll-color-info: #3498db;
  --bll-color-link: #3498db;
  --bll-color-border: #e0e0e0;

  /* Typography */
  --bll-font-family: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bll-font-size-xs: 11px;
  --bll-font-size-sm: 13px;
  --bll-font-size-base: 14px;
  --bll-font-size-md: 16px;
  --bll-font-size-lg: 18px;
  --bll-font-size-xl: 20px;
  --bll-font-size-2xl: 24px;
  --bll-font-size-3xl: 28px;
  --bll-font-size-4xl: 32px;
  --bll-font-size-5xl: 40px;

  /* Spacing */
  --bll-spacing-xs: 4px;
  --bll-spacing-sm: 8px;
  --bll-spacing-md: 16px;
  --bll-spacing-lg: 24px;
  --bll-spacing-xl: 32px;
  --bll-spacing-2xl: 48px;
  --bll-spacing-3xl: 64px;

  /* Layout */
  --bll-container-max: 1400px;
  --bll-container-narrow: 800px;
  --bll-sidebar-width: 280px;
  --bll-grid-gap: 20px;
  --bll-header-height: 80px;

  /* Borders */
  --bll-border-radius: 4px;
  --bll-border-radius-lg: 8px;
  --bll-border-radius-xl: 12px;

  /* Shadows */
  --bll-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --bll-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --bll-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --bll-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --bll-transition-fast: 150ms ease;
  --bll-transition-base: 300ms ease;
  --bll-transition-slow: 500ms ease;

  /* Free Shipping Threshold */
  --bll-free-shipping-threshold: 150;
}

/* =============================================================================
   Base Reset & Typography
   ============================================================================= */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--bll-font-family);
  font-size: var(--bll-font-size-base);
  color: var(--bll-color-text);
  line-height: 1.6;
  background-color: var(--bll-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--bll-spacing-md);
  font-weight: 600;
  line-height: 1.3;
  color: var(--bll-color-text);
}

h1 { font-size: var(--bll-font-size-4xl); }
h2 { font-size: var(--bll-font-size-3xl); }
h3 { font-size: var(--bll-font-size-2xl); }
h4 { font-size: var(--bll-font-size-xl); }
h5 { font-size: var(--bll-font-size-lg); }
h6 { font-size: var(--bll-font-size-md); }

p {
  margin: 0 0 var(--bll-spacing-md);
}

a {
  color: var(--bll-color-link);
  text-decoration: none;
  transition: color var(--bll-transition-fast);
}

a:hover {
  color: var(--bll-color-primary);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* =============================================================================
   Layout Utilities
   ============================================================================= */

.bll-container {
  max-width: var(--bll-container-max);
  margin: 0 auto;
  padding: 0 var(--bll-spacing-md);
}

.bll-container--narrow {
  max-width: var(--bll-container-narrow);
}

.bll-section {
  padding: var(--bll-spacing-2xl) 0;
}

.bll-section--dark {
  background-color: var(--bll-color-dark);
  color: var(--bll-color-text-light);
}

.bll-section--light {
  background-color: var(--bll-color-bg-light);
}

/* =============================================================================
   Buttons
   ============================================================================= */

.bll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bll-spacing-sm);
  padding: 12px var(--bll-spacing-lg);
  font-size: var(--bll-font-size-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--bll-border-radius);
  cursor: pointer;
  transition: all var(--bll-transition-fast);
}

.bll-btn--primary {
  background-color: var(--bll-color-primary);
  color: var(--bll-color-text-light);
}

.bll-btn--primary:hover {
  background-color: var(--bll-color-primary-hover);
  color: var(--bll-color-text-light);
}

.bll-btn--secondary {
  background-color: var(--bll-color-dark);
  color: var(--bll-color-text-light);
}

.bll-btn--secondary:hover {
  background-color: var(--bll-color-dark-hover);
  color: var(--bll-color-text-light);
}

.bll-btn--outline {
  background-color: transparent;
  color: var(--bll-color-primary);
  border: 2px solid var(--bll-color-primary);
}

.bll-btn--outline:hover {
  background-color: var(--bll-color-primary);
  color: var(--bll-color-text-light);
}

.bll-btn--large {
  padding: 16px var(--bll-spacing-xl);
  font-size: var(--bll-font-size-md);
}

.bll-btn--full {
  width: 100%;
}

/* =============================================================================
   Header Styles
   ============================================================================= */

.bll-header {
  background-color: var(--bll-color-bg);
  border-bottom: 1px solid var(--bll-color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.bll-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bll-header-height);
  gap: var(--bll-spacing-lg);
}

.bll-header__logo img {
  height: 50px;
  width: auto;
}

.bll-header__nav {
  display: flex;
  align-items: center;
  gap: var(--bll-spacing-xl);
}

.bll-header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--bll-spacing-lg);
}

.bll-header__menu-item a {
  color: var(--bll-color-text);
  font-size: var(--bll-font-size-sm);
  font-weight: 500;
  text-decoration: none;
  padding: var(--bll-spacing-sm) 0;
  transition: color var(--bll-transition-fast);
}

.bll-header__menu-item a:hover,
.bll-header__menu-item.current-menu-item a {
  color: var(--bll-color-primary);
}

.bll-header__actions {
  display: flex;
  align-items: center;
  gap: var(--bll-spacing-md);
}

.bll-header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--bll-color-text);
  transition: color var(--bll-transition-fast);
  position: relative;
}

.bll-header__icon:hover {
  color: var(--bll-color-primary);
}

.bll-header__icon svg {
  width: 24px;
  height: 24px;
}

.bll-header__cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--bll-color-primary);
  color: var(--bll-color-text-light);
  font-size: var(--bll-font-size-xs);
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Mobile Menu Toggle */
.bll-header__menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--bll-spacing-sm);
  color: var(--bll-color-text);
}

.bll-header__menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 992px) {
  .bll-header__nav {
    display: none;
  }

  .bll-header__menu-toggle {
    display: flex;
  }
}

/* =============================================================================
   Footer Styles
   ============================================================================= */

.bll-footer {
  background-color: var(--bll-color-dark);
  color: var(--bll-color-text-light);
  padding: var(--bll-spacing-2xl) 0 var(--bll-spacing-lg);
}

.bll-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--bll-spacing-xl);
  padding-bottom: var(--bll-spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bll-footer__brand-text {
  font-size: var(--bll-font-size-sm);
  opacity: 0.8;
  line-height: 1.7;
  max-width: 300px;
}

.bll-footer__heading {
  font-size: var(--bll-font-size-md);
  font-weight: 600;
  margin-bottom: var(--bll-spacing-md);
  color: var(--bll-color-text-light);
}

.bll-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bll-footer__menu li {
  margin-bottom: var(--bll-spacing-sm);
}

.bll-footer__menu a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--bll-font-size-sm);
  text-decoration: none;
  transition: color var(--bll-transition-fast);
}

.bll-footer__menu a:hover {
  color: var(--bll-color-text-light);
}

/* Footer Navigation Block Override */
.bll-footer .wp-block-navigation {
  gap: 0 !important;
}

.bll-footer .wp-block-navigation__container,
.bll-footer .wp-block-navigation ul {
  gap: 4px !important;
}

.bll-footer .wp-block-navigation-item {
  margin: 0 !important;
}

.bll-footer .wp-block-navigation a,
.bll-footer .wp-block-navigation-item__content {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: var(--bll-font-size-sm);
  padding: 2px 0 !important;
}

.bll-footer .wp-block-navigation a:hover {
  color: #ffffff !important;
}

/* Override WordPress .has-text-color for footer */
.bll-footer.has-text-color,
.bll-footer .has-text-color {
  color: rgba(255, 255, 255, 0.5) !important;
}

.bll-footer h4.has-text-color,
.bll-footer .bll-footer__heading.has-text-color {
  color: #ffffff !important;
}

.bll-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--bll-spacing-sm);
}

.bll-footer__contact-item {
  font-size: var(--bll-font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.bll-footer__contact-item a {
  color: rgba(255, 255, 255, 0.5);
}

.bll-footer__contact-item a:hover {
  color: #ffffff;
}

.bll-footer__bottom {
  padding-top: var(--bll-spacing-lg);
  text-align: center;
}

.bll-footer__copyright {
  font-size: var(--bll-font-size-sm);
  opacity: 0.7;
  margin-bottom: var(--bll-spacing-sm);
}

.bll-footer__disclaimer {
  font-size: var(--bll-font-size-xs);
  opacity: 0.5;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Footer Shipping Note */
.bll-footer__shipping-note {
  opacity: 0.7;
  margin-top: var(--bll-spacing-sm);
}

/* Footer Payment Icons */
.bll-footer__payment-methods {
  margin-bottom: var(--bll-spacing-md);
}

.bll-footer__payment-methods img {
  max-width: 200px;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .bll-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bll-footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .bll-footer__grid {
    grid-template-columns: 1fr;
  }

  .bll-footer__brand {
    grid-column: span 1;
    text-align: center;
  }

  .bll-footer__brand-text {
    max-width: none;
  }
}

/* =============================================================================
   Hero Banner
   ============================================================================= */

.bll-hero {
  position: relative;
  background-color: var(--bll-color-dark);
  color: var(--bll-color-text-light);
  min-height: 350px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Remove gaps between header, hero, and ticker */
.bll-hero.wp-block-cover {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-items: flex-end !important; /* Position content at bottom like Shopify */
}

/* Ensure hero text is white (override WordPress block styles) */
.bll-hero .bll-hero__title,
.bll-hero .wp-block-heading,
.bll-hero h1 {
  color: #ffffff !important;
}

.bll-hero .bll-hero__subtitle,
.bll-hero p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Hero inner container padding for bottom-aligned content */
.bll-hero .wp-block-cover__inner-container {
  padding-bottom: 40px;
}

.bll-hero .bll-hero__content {
  text-align: center;
  margin: 0 auto;
}

.bll-ticker.wp-block-group {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.bll-main.wp-block-group {
  margin-top: 0;
}

.bll-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.bll-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Center the button in hero */
.bll-hero .wp-block-buttons {
  justify-content: center;
}

.bll-hero__title {
  font-size: var(--bll-font-size-5xl);
  font-weight: 700;
  margin-bottom: var(--bll-spacing-md);
  color: var(--bll-color-text-light);
}

.bll-hero__subtitle {
  font-size: var(--bll-font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--bll-spacing-lg);
}

@media (max-width: 768px) {
  .bll-hero {
    min-height: 280px;
  }

  .bll-hero__title {
    font-size: var(--bll-font-size-3xl);
  }
}

/* =============================================================================
   Scrolling Ticker
   ============================================================================= */

.bll-ticker {
  background-color: var(--bll-color-dark);
  overflow: hidden;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bll-ticker__track {
  --ticker-copies: 4;
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}

.bll-ticker__content {
  display: flex;
  gap: 60px;
  flex-shrink: 0;
  padding-right: 60px;
}

.bll-ticker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bll-color-text-light);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bll-ticker__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.bll-ticker__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--bll-color-primary);
  stroke-width: 2;
}

.bll-ticker__separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 10px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / var(--ticker-copies, 4))); }
}

.bll-ticker:hover .bll-ticker__track {
  animation-play-state: paused;
}

/* =============================================================================
   Product Grid
   ============================================================================= */

.bll-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bll-grid-gap);
}

@media (max-width: 1200px) {
  .bll-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .bll-products-grid {
    grid-template-columns: 1fr;
  }
}

/* WooCommerce Product Collection block - child UL must span full grid */
.bll-products-grid > ul,
.bll-products-grid .wc-block-product-template {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bll-grid-gap);
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 1200px) {
  .bll-products-grid > ul,
  .bll-products-grid .wc-block-product-template {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .bll-products-grid > ul,
  .bll-products-grid .wc-block-product-template {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .bll-products-grid > ul,
  .bll-products-grid .wc-block-product-template {
    grid-template-columns: 1fr;
  }
}

/* Product items in WooCommerce blocks */
.bll-products-grid .wc-block-product-template > li,
.bll-products-grid .wc-block-product-template > li.product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  justify-self: stretch;
  align-self: stretch;
}

/* Override WooCommerce flex container styles */
.bll-products-grid .wc-block-product-template.is-flex-container {
  display: grid !important;
}

.bll-products-grid .wc-block-product-template.is-flex-container > li {
  flex: none !important;
  width: 100% !important;
}

/* =============================================================================
   Product Card
   ============================================================================= */

.bll-product-card {
  background: var(--bll-color-bg);
  border: 1px solid var(--bll-color-border);
  border-radius: var(--bll-border-radius);
  padding: var(--bll-spacing-md);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--bll-transition-base);
}

.bll-product-card:hover {
  box-shadow: var(--bll-shadow-lg);
}

.bll-product-card__image {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: var(--bll-spacing-md);
  overflow: hidden;
}

.bll-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--bll-transition-base);
}

.bll-product-card:hover .bll-product-card__image img {
  transform: scale(1.05);
}

.bll-product-card__badge {
  position: absolute;
  top: var(--bll-spacing-sm);
  left: var(--bll-spacing-sm);
  background-color: var(--bll-color-success);
  color: var(--bll-color-text-light);
  font-size: var(--bll-font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--bll-border-radius);
}

.bll-product-card__title {
  font-size: var(--bll-font-size-base);
  font-weight: 500;
  margin: 0 0 var(--bll-spacing-sm);
  flex-grow: 1;
}

.bll-product-card__title a {
  color: var(--bll-color-text);
  text-decoration: none;
}

.bll-product-card__title a:hover {
  color: var(--bll-color-primary);
}

.bll-product-card__price {
  font-size: var(--bll-font-size-md);
  font-weight: 600;
  color: var(--bll-color-text);
  margin-bottom: var(--bll-spacing-md);
}

.bll-product-card__price del {
  color: var(--bll-color-text-muted);
  font-weight: 400;
  margin-right: var(--bll-spacing-sm);
}

.bll-product-card__price ins {
  text-decoration: none;
  color: var(--bll-color-primary);
}

.bll-product-card__actions {
  margin-top: auto;
}

.bll-product-card__add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--bll-spacing-sm);
  width: 100%;
  padding: 12px var(--bll-spacing-md);
  background-color: var(--bll-color-primary);
  color: var(--bll-color-text-light);
  border: none;
  border-radius: var(--bll-border-radius);
  font-size: var(--bll-font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--bll-transition-fast);
}

.bll-product-card__add-to-cart:hover {
  background-color: var(--bll-color-primary-hover);
}

/* =============================================================================
   FAQ Accordion
   ============================================================================= */

.bll-faq {
  max-width: var(--bll-container-narrow);
  margin: 0 auto;
}

.bll-faq__item {
  border-bottom: 1px solid var(--bll-color-border);
}

.bll-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bll-spacing-lg) 0;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--bll-font-size-md);
  font-weight: 600;
  color: var(--bll-color-text);
  cursor: pointer;
  transition: color var(--bll-transition-fast);
}

.bll-faq__question:hover {
  color: var(--bll-color-primary);
}

.bll-faq__icon {
  width: 24px;
  height: 24px;
  transition: transform var(--bll-transition-base);
}

.bll-faq__item[open] .bll-faq__icon {
  transform: rotate(180deg);
}

.bll-faq__answer {
  padding-bottom: var(--bll-spacing-lg);
  color: var(--bll-color-text-secondary);
  line-height: 1.7;
}

/* =============================================================================
   Quality Assurance Section
   ============================================================================= */

.bll-quality {
  text-align: center;
  padding: var(--bll-spacing-2xl) var(--bll-spacing-md);
  background-color: var(--bll-color-bg-light);
}

.bll-quality__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--bll-spacing-md);
  color: var(--bll-color-primary);
}

.bll-quality__title {
  font-size: var(--bll-font-size-2xl);
  margin-bottom: var(--bll-spacing-sm);
}

.bll-quality__text {
  color: var(--bll-color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* =============================================================================
   Free Shipping Bar
   ============================================================================= */

.bll-shipping-bar {
  background: var(--bll-color-bg-light);
  border-radius: var(--bll-border-radius);
  padding: var(--bll-spacing-md);
  margin-bottom: var(--bll-spacing-md);
}

.bll-shipping-bar__track {
  height: 8px;
  background: var(--bll-color-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--bll-spacing-sm);
}

.bll-shipping-bar__progress {
  height: 100%;
  background: var(--bll-color-success);
  border-radius: 4px;
  transition: width var(--bll-transition-base);
}

.bll-shipping-bar__text {
  font-size: var(--bll-font-size-sm);
  color: var(--bll-color-text-secondary);
  text-align: center;
}

.bll-shipping-bar__text strong {
  color: var(--bll-color-primary);
}

.bll-shipping-bar--complete .bll-shipping-bar__progress {
  width: 100% !important;
}

.bll-shipping-bar--complete .bll-shipping-bar__text {
  color: var(--bll-color-success);
  font-weight: 600;
}

/* =============================================================================
   Disclaimer Modal
   ============================================================================= */

.bll-disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--bll-transition-base), visibility var(--bll-transition-base);
}

.bll-disclaimer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.bll-disclaimer-modal {
  background: var(--bll-color-bg);
  max-width: 550px;
  width: 90%;
  border-radius: var(--bll-border-radius-lg);
  box-shadow: var(--bll-shadow-xl);
  transform: translateY(20px);
  transition: transform var(--bll-transition-base);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.bll-disclaimer-overlay.is-visible .bll-disclaimer-modal {
  transform: translateY(0);
}

.bll-disclaimer-modal__header {
  background: var(--bll-color-dark);
  color: var(--bll-color-text-light);
  padding: var(--bll-spacing-lg) var(--bll-spacing-lg);
  text-align: center;
}

.bll-disclaimer-modal__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--bll-spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bll-disclaimer-modal__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--bll-color-text-light);
}

.bll-disclaimer-modal__header h2 {
  margin: 0;
  font-size: var(--bll-font-size-xl);
  color: var(--bll-color-text-light);
}

.bll-disclaimer-modal__content {
  padding: var(--bll-spacing-lg);
}

.bll-disclaimer-modal__text {
  font-size: var(--bll-font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--bll-spacing-md);
}

.bll-disclaimer-modal__list {
  background: var(--bll-color-bg-light);
  border-radius: var(--bll-border-radius);
  padding: var(--bll-spacing-md);
  margin-bottom: var(--bll-spacing-md);
}

.bll-disclaimer-modal__list ul {
  margin: 0;
  padding-left: var(--bll-spacing-lg);
}

.bll-disclaimer-modal__list li {
  font-size: var(--bll-font-size-sm);
  color: var(--bll-color-text-secondary);
  margin-bottom: var(--bll-spacing-sm);
  line-height: 1.5;
}

.bll-disclaimer-modal__list li:last-child {
  margin-bottom: 0;
}

.bll-disclaimer-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--bll-spacing-sm);
  margin: var(--bll-spacing-md) 0;
  padding: var(--bll-spacing-md);
  background: #fff3cd;
  border-radius: var(--bll-border-radius);
  border: 1px solid #ffc107;
}

.bll-disclaimer-modal__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--bll-color-primary);
}

.bll-disclaimer-modal__checkbox label {
  font-size: var(--bll-font-size-sm);
  color: #856404;
  cursor: pointer;
  line-height: 1.5;
}

.bll-disclaimer-modal__actions {
  padding-top: var(--bll-spacing-sm);
}

.bll-disclaimer-modal__btn {
  width: 100%;
  padding: 14px var(--bll-spacing-lg);
  border-radius: var(--bll-border-radius);
  font-size: var(--bll-font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--bll-transition-fast);
  border: none;
  background-color: var(--bll-color-primary);
  color: var(--bll-color-text-light);
}

.bll-disclaimer-modal__btn:hover:not(:disabled) {
  background-color: var(--bll-color-primary-hover);
}

.bll-disclaimer-modal__btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* =============================================================================
   WooCommerce Overrides
   ============================================================================= */

/* Product Gallery */
.woocommerce-product-gallery {
  margin-bottom: var(--bll-spacing-lg);
}

/* Product Title */
.woocommerce div.product .product_title {
  font-size: var(--bll-font-size-3xl);
  font-weight: 600;
  margin-bottom: var(--bll-spacing-md);
}

/* Product Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: var(--bll-font-size-2xl);
  font-weight: 600;
  color: var(--bll-color-text);
}

/* Add to Cart Button */
.woocommerce div.product form.cart .button,
.woocommerce .cart .button,
.woocommerce #respond input#submit,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--bll-color-primary) !important;
  color: var(--bll-color-text-light) !important;
  border: none !important;
  border-radius: var(--bll-border-radius) !important;
  padding: 12px var(--bll-spacing-lg) !important;
  font-size: var(--bll-font-size-base) !important;
  font-weight: 500 !important;
  transition: background-color var(--bll-transition-fast) !important;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce .cart .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--bll-color-primary-hover) !important;
}

/* Product Tabs - Horizontal Layout */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--bll-spacing-lg);
  border-bottom: 2px solid var(--bll-color-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none; /* Remove WooCommerce default pseudo-element */
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  display: block;
  border: none;
  background: none;
  padding: 0;
  margin: 0 var(--bll-spacing-sm) 0 0;
  position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none; /* Remove WooCommerce default arrows */
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: var(--bll-spacing-md) var(--bll-spacing-lg);
  color: var(--bll-color-text-secondary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--bll-color-primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--bll-color-primary);
  border-bottom-color: var(--bll-color-primary);
}

/* Tab content panel */
.woocommerce div.product .woocommerce-tabs .panel {
  padding: var(--bll-spacing-lg) 0;
}

/* Shop Page - Product Grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bll-grid-gap);
  padding: 0;
  margin: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  float: none;
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
  background: var(--bll-color-bg);
  border: 1px solid var(--bll-color-border);
  border-radius: var(--bll-border-radius);
  overflow: hidden;
  transition: box-shadow var(--bll-transition-base);
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--bll-shadow-lg);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  padding: var(--bll-spacing-md);
}

.woocommerce ul.products li.product a img {
  margin: 0 0 var(--bll-spacing-md);
  border-radius: var(--bll-border-radius);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: var(--bll-font-size-base);
  font-weight: 500;
  padding: 0;
  margin: 0 0 var(--bll-spacing-sm);
}

.woocommerce ul.products li.product .price {
  color: var(--bll-color-text);
  font-size: var(--bll-font-size-md);
  font-weight: 600;
  margin-bottom: var(--bll-spacing-sm);
}

.woocommerce ul.products li.product .button {
  margin: var(--bll-spacing-sm) var(--bll-spacing-md) var(--bll-spacing-md);
  width: calc(100% - var(--bll-spacing-md) * 2);
}

/* Responsive grid for shop page */
@media (max-width: 1200px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

/* Cart Page */
.woocommerce-cart table.cart {
  border: 1px solid var(--bll-color-border);
  border-radius: var(--bll-border-radius);
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
  padding: var(--bll-spacing-md);
  border-bottom: 1px solid var(--bll-color-border);
}

/* Checkout Page */
.woocommerce-checkout #payment {
  background: var(--bll-color-bg-light);
  border-radius: var(--bll-border-radius);
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--bll-border-radius);
}

.woocommerce-message {
  border-top-color: var(--bll-color-success);
}

.woocommerce-message::before {
  color: var(--bll-color-success);
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  font-size: var(--bll-font-size-sm);
  color: var(--bll-color-text-secondary);
  margin-bottom: var(--bll-spacing-md);
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--bll-color-link);
}

/* =============================================================================
   Blog Styles
   ============================================================================= */

.bll-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bll-grid-gap);
}

@media (max-width: 992px) {
  .bll-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .bll-posts-grid {
    grid-template-columns: 1fr;
  }
}

.bll-post-card {
  background: var(--bll-color-bg);
  border: 1px solid var(--bll-color-border);
  border-radius: var(--bll-border-radius);
  overflow: hidden;
  transition: box-shadow var(--bll-transition-base);
}

.bll-post-card:hover {
  box-shadow: var(--bll-shadow-lg);
}

.bll-post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.bll-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bll-transition-base);
}

.bll-post-card:hover .bll-post-card__image img {
  transform: scale(1.05);
}

.bll-post-card__content {
  padding: var(--bll-spacing-md);
}

.bll-post-card__title {
  font-size: var(--bll-font-size-md);
  font-weight: 600;
  margin-bottom: var(--bll-spacing-sm);
}

.bll-post-card__title a {
  color: var(--bll-color-text);
  text-decoration: none;
}

.bll-post-card__title a:hover {
  color: var(--bll-color-primary);
}

.bll-post-card__excerpt {
  font-size: var(--bll-font-size-sm);
  color: var(--bll-color-text-secondary);
  line-height: 1.6;
}

.bll-post-card__meta {
  font-size: var(--bll-font-size-xs);
  color: var(--bll-color-text-muted);
  margin-top: var(--bll-spacing-sm);
}

/* Single Post */
.bll-single-post {
  max-width: var(--bll-container-narrow);
  margin: 0 auto;
}

.bll-single-post__header {
  margin-bottom: var(--bll-spacing-xl);
  text-align: center;
}

.bll-single-post__title {
  font-size: var(--bll-font-size-4xl);
  margin-bottom: var(--bll-spacing-md);
}

.bll-single-post__meta {
  font-size: var(--bll-font-size-sm);
  color: var(--bll-color-text-secondary);
}

.bll-single-post__content {
  line-height: 1.8;
}

.bll-single-post__content p {
  margin-bottom: var(--bll-spacing-lg);
}

.bll-single-post__content h2 {
  margin-top: var(--bll-spacing-xl);
}

/* =============================================================================
   Contact Form
   ============================================================================= */

.bll-contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.bll-form-group {
  margin-bottom: var(--bll-spacing-md);
}

.bll-form-group label {
  display: block;
  font-size: var(--bll-font-size-sm);
  font-weight: 500;
  margin-bottom: var(--bll-spacing-xs);
  color: var(--bll-color-text);
}

.bll-form-group input,
.bll-form-group textarea {
  width: 100%;
  padding: 12px var(--bll-spacing-md);
  border: 1px solid var(--bll-color-border);
  border-radius: var(--bll-border-radius);
  font-family: inherit;
  font-size: var(--bll-font-size-base);
  transition: border-color var(--bll-transition-fast);
}

.bll-form-group input:focus,
.bll-form-group textarea:focus {
  outline: none;
  border-color: var(--bll-color-primary);
}

.bll-form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* =============================================================================
   Utility Classes
   ============================================================================= */

.bll-text-center { text-align: center; }
.bll-text-left { text-align: left; }
.bll-text-right { text-align: right; }

.bll-mb-0 { margin-bottom: 0; }
.bll-mb-sm { margin-bottom: var(--bll-spacing-sm); }
.bll-mb-md { margin-bottom: var(--bll-spacing-md); }
.bll-mb-lg { margin-bottom: var(--bll-spacing-lg); }
.bll-mb-xl { margin-bottom: var(--bll-spacing-xl); }
.bll-mb-2xl { margin-bottom: var(--bll-spacing-2xl); }

.bll-mt-0 { margin-top: 0; }
.bll-mt-sm { margin-top: var(--bll-spacing-sm); }
.bll-mt-md { margin-top: var(--bll-spacing-md); }
.bll-mt-lg { margin-top: var(--bll-spacing-lg); }
.bll-mt-xl { margin-top: var(--bll-spacing-xl); }
.bll-mt-2xl { margin-top: var(--bll-spacing-2xl); }

.bll-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   404 Page
   ============================================================================= */

.bll-404 {
  text-align: center;
  padding: var(--bll-spacing-3xl) var(--bll-spacing-md);
}

.bll-404__title {
  font-size: 120px;
  font-weight: 700;
  color: var(--bll-color-border);
  line-height: 1;
  margin-bottom: var(--bll-spacing-md);
}

.bll-404__text {
  font-size: var(--bll-font-size-lg);
  color: var(--bll-color-text-secondary);
  margin-bottom: var(--bll-spacing-lg);
}

/* =============================================================================
   Search Results
   ============================================================================= */

.bll-search-results__header {
  margin-bottom: var(--bll-spacing-xl);
}

.bll-search-results__title {
  font-size: var(--bll-font-size-2xl);
}

.bll-search-results__count {
  color: var(--bll-color-text-secondary);
  font-size: var(--bll-font-size-sm);
}

/* =============================================================================
   Responsive Adjustments
   ============================================================================= */

@media (max-width: 768px) {
  :root {
    --bll-spacing-2xl: 32px;
    --bll-spacing-3xl: 48px;
  }

  h1 { font-size: var(--bll-font-size-3xl); }
  h2 { font-size: var(--bll-font-size-2xl); }
  h3 { font-size: var(--bll-font-size-xl); }
}

/* =============================================================================
   COA Gallery
   ============================================================================= */

.bll-coa-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--bll-spacing-md);
  margin-top: var(--bll-spacing-md);
}

.bll-coa-gallery__item {
  border: 1px solid var(--bll-color-border);
  border-radius: var(--bll-border-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bll-coa-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bll-coa-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.bll-coa-gallery__item a {
  display: block;
}

/* COA PDF Download Button */
.bll-coa-pdf-download {
  margin-bottom: var(--bll-spacing-lg);
}

/* Responsive adjustments for COA gallery */
@media (max-width: 576px) {
  .bll-coa-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .bll-coa-gallery {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   Single Product Page - Gallery Size
   ============================================================================= */

/* Product Gallery - Smaller Size (40% width instead of 50%) */
.bll-product-gallery,
.woocommerce div.product div.images,
.woocommerce-product-gallery {
  flex-basis: 40% !important;
  max-width: 40%;
}

.bll-product-details,
.woocommerce div.product div.summary {
  flex-basis: 60% !important;
  max-width: 60%;
}

/* Constrain gallery image size */
.woocommerce div.product div.images,
.woocommerce-product-gallery {
  max-width: 400px;
}

/* Ensure product layout is flex */
.woocommerce div.product {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bll-spacing-xl);
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
  .bll-product-gallery,
  .woocommerce div.product div.images,
  .woocommerce-product-gallery,
  .bll-product-details,
  .woocommerce div.product div.summary {
    flex-basis: 100% !important;
    max-width: 100%;
  }
}
