/*
 Theme Name:   Kadence BestVapesDeals Child
 Template:     kadence
 Version:      1.0.0
 Description:  Kadence child theme replicating the approved bestvapesdeals.com storefront (4-col grid, opaque single-row header, 3-slide hero carousel, multi-col footer, 21+ checkout DOB + checkbox verification).
*/

:root {
  --bvd-ink: #111318;
  --bvd-muted: #5b6170;
  --bvd-red: #dc2626;
  --bvd-red-soft: #fef2f2;
  --bvd-border: #e5e7eb;
  --bvd-subtle: #f5f6f8;
  --bvd-dark: #0f131a;
}

/* 21+ Nicotine Warning Top Bar */
.bvd-age-bar {
  background: #111318;
  color: #f3f4f6;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  padding: 8px 16px;
}

/* Single-Row Opaque Sticky Header */
.site-header,
#masthead,
.kadence-sticky-header.item-is-fixed {
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--bvd-border);
}

.site-header-row {
  min-height: 68px;
}

/* 3-Slide Hero Carousel ([bvd_hero_slider]) */
.bvd-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--bvd-border);
}

.bvd-hero-slide {
  display: none;
  padding: 52px 20px 64px;
}

.bvd-hero-slide.is-active {
  display: block;
}

.bvd-hero-slide--light {
  background: linear-gradient(120deg, #f6f7fa 0%, #e8ebf2 100%);
  color: var(--bvd-ink);
}

.bvd-hero-slide--dark {
  background: linear-gradient(120deg, #0f131a 0%, #141b27 100%);
  color: #ffffff;
}

.bvd-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .bvd-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.bvd-hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bvd-red);
  margin-bottom: 10px;
}

.bvd-hero-slide--dark .bvd-hero-kicker {
  color: #ff6b6b;
}

.bvd-hero-title {
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 14px;
}

.bvd-hero-slide--dark .bvd-hero-title,
.bvd-hero-slide--dark .bvd-hero-desc {
  color: #ffffff;
}

.bvd-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--bvd-red);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  margin-top: 16px;
}

.bvd-hero-controls {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bvd-hero-dots {
  display: flex;
  gap: 8px;
}

.bvd-hero-dot {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 19, 24, 0.22);
  cursor: pointer;
}

.bvd-hero-dot.is-active {
  background: var(--bvd-red);
}

/* 4-Column Desktop / 1-2 Column Mobile WooCommerce Product Grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

@media (min-width: 580px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 860px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  background: #ffffff;
  border: 1px solid var(--bvd-border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 220px !important;
  object-fit: contain !important;
  background: var(--bvd-subtle);
  border-radius: 10px;
  padding: 12px;
}

/* Constrained Single Product Gallery (Above the Fold) */
.woocommerce-product-gallery__image img {
  max-height: 430px !important;
  object-fit: contain;
  background: var(--bvd-subtle);
  border-radius: 14px;
  padding: 16px;
}

/* Checkout 21+ Age Verification Box */
.bvd-checkout-age-box {
  background: var(--bvd-red-soft);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
}

.bvd-checkout-age-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--bvd-red);
}

.bvd-checkout-age-box label {
  font-weight: 600;
}

/* Multi-column Dark Footer + Single foger-us.com Link */
.site-footer {
  background: var(--bvd-dark);
  color: #d1d5db;
}

.bvd-footer-legal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #9ca3af;
}

.bvd-footer-legal a {
  color: #f87171;
}
