.bv-hero-slider {
  position: relative;
  width: 100%;
  background: var(--bv-blue-bg);
  overflow: hidden;
}

.bv-slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 2;
  min-height: 280px;
  max-height: 560px;
}

.bv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--bv-ease-out);
  pointer-events: none;
}
.bv-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* .bv-slide a {
  display: block;
  width: 100%;
  height: 100%;
} */

.bv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrow nav */
.bv-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: var(--bv-white);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--bv-ease);
}
.bv-slider-btn:hover { background: var(--bv-blue); }
.bv-slider-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bv-slider-prev { left: 16px; }
.bv-slider-next { right: 16px; }

/* Dots */
.bv-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.bv-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--bv-ease);
  padding: 0;
}
.bv-slider-dot.active {
  background: var(--bv-white);
  transform: scale(1.4);
}
.bv-slider-dot:hover { background: var(--bv-white); }
/* Slide content overlay */
.bv-slide {
  position: absolute;
  inset: 0;
}

.bv-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bv-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--bv-space-lg);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  z-index: 2;
}

.bv-slide-inner {
  max-width: 520px;
  color: var(--bv-white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--bv-ease-out) 0.3s, transform 0.8s var(--bv-ease-out) 0.3s;
}

.bv-slide.active .bv-slide-inner {
  opacity: 1;
  transform: translateY(0);
}

.bv-slide-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bv-accent);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--bv-radius-sm);
}

.bv-slide-heading {
  font-family: var(--bv-font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bv-white);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.bv-slide-subheading {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.75rem;
  max-width: 440px;
}

.bv-slide-btn-cta {
  background: var(--bv-white) !important;
  color: var(--bv-blue) !important;
  border-color: var(--bv-white) !important;
}
.bv-slide-btn-cta:hover {
  background: var(--bv-accent) !important;
  border-color: var(--bv-accent) !important;
  color: var(--bv-white) !important;
}

@media (max-width: 768px) {
  .bv-slide-content {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.65) 100%);
    align-items: flex-end;
    padding: 2.5rem;
	  display:block;
  }
  .bv-slide-inner {
    max-width: 100%;
    text-align: center;
  }
  .bv-slide-subheading {
    margin-left: auto;
    margin-right: auto;
  }
  .bv-slider-track {
    aspect-ratio: 3 / 2;
    max-height: none;
  }
  .bv-slider-btn { display: none; }
}

/* =========================================================================
   SECTION 2 — CATEGORIES (Shop By Categories)
   ========================================================================= */
.bv-home-categories {
  padding: var(--bv-space-2xl) 0;
  background: linear-gradient(180deg, var(--bv-white) 0%, var(--bv-blue-bg) 100%);
}

.bv-categories-heading {
  margin-bottom: var(--bv-space-lg);
  position: relative;
  display: inline-block;
}
.bv-categories-heading h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--bv-ink);
  margin: 0;
  padding-bottom: 0.75rem;
}
.bv-categories-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: var(--bv-blue);
}

.bv-home-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--bv-space-md);
}

.bv-home-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--bv-ink);
  gap: 0.75rem;
  transition: transform 0.3s var(--bv-ease);
}
.bv-home-category-card:hover {
  transform: translateY(-4px);
  color: var(--bv-blue);
}

.bv-home-category-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--bv-radius-lg);
  overflow: hidden;
  background: var(--bv-cream);
  border: 2px solid var(--bv-white);
  box-shadow: var(--bv-shadow-sm);
  transition: box-shadow 0.3s var(--bv-ease), border-color 0.3s var(--bv-ease);
}
.bv-home-category-card:hover .bv-home-category-image {
  box-shadow: var(--bv-shadow-md);
  border-color: var(--bv-blue-softer);
}

.bv-home-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--bv-ease-out);
}
.bv-home-category-card:hover .bv-home-category-image img {
  transform: scale(1.08);
}

.bv-home-category-name {
  font-family: var(--bv-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bv-ink);
  transition: color 0.3s var(--bv-ease);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .bv-home-category-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
@media (max-width: 640px) {
  .bv-home-category-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .bv-home-category-name { font-size: 0.8rem; }
}
@media (max-width: 400px) {
  .bv-home-category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   SECTION 3 — FEATURED PRODUCT (uses native WooCommerce single product)
   ========================================================================= */
.bv-featured-product {
  padding: 20px 0;
  background: var(--bv-white);
}
.bv-featured-default::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bv-blue-softer) 0%, transparent 70%);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

/* Two-column layout for the product itself */
.bv-featured-default .bv-featured-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bv-space-xl);
  align-items: start;
  position: relative;
  z-index: 1;
}
/* CRITICAL: flexslider overflow fix for WooCommerce gallery */
.bv-featured-default .woocommerce-product-gallery {
  overflow: hidden !important;
  max-width: 100% !important;
}
.bv-featured-default .woocommerce-product-gallery__wrapper {
  overflow: hidden !important;
}
.bv-featured-default .flex-viewport {
  overflow: hidden !important;
  max-width: 100% !important;
}
/* Gallery column */
.bv-featured-default .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  position: relative;
}
.bv-featured-default .woocommerce-product-gallery__wrapper {
  border-radius: var(--bv-radius-lg);
  overflow: hidden;
  background: var(--bv-white);
  box-shadow: var(--bv-shadow-sm);
  margin: 0 !important;
}
.bv-featured-default .woocommerce-product-gallery__image a {
  display: block;
  aspect-ratio: 1;
}
.bv-featured-default .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.bv-featured-default .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: var(--bv-white);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bv-shadow-sm);
}
.bv-featured-default .woocommerce-product-gallery__trigger img { width: 20px; height: 20px; }

/* Flex slider thumbs */
.bv-featured-default .flex-control-nav.flex-control-thumbs {
  display: flex !important;
  gap: 0.6rem;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
  list-style: none;
  flex-wrap: wrap;
}
.bv-featured-default .flex-control-nav.flex-control-thumbs li {
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  float: none !important;
}
.bv-featured-default .flex-control-nav.flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--bv-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s var(--bv-ease);
}
.bv-featured-default .flex-control-nav.flex-control-thumbs li img:hover,
.bv-featured-default .flex-control-nav.flex-control-thumbs li img.flex-active {
  border-color: var(--bv-blue);
  opacity: 1;
}

/* Summary (right column) */
.bv-featured-default .summary.entry-summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0;
}

/* Breadcrumb / category line hidden on homepage featured */
.bv-featured-default .woocommerce-breadcrumb,
.bv-featured-default .single-product-category {
  display: none;
}

/* Title */
.bv-featured-default .product_title {
  font-family: var(--bv-font-display) !important;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--bv-ink) !important;
  margin: 0 0 0.75rem !important;
}

/* Rating */
.bv-featured-default .woocommerce-product-rating {
  margin-bottom: 0.75rem;
}
.bv-featured-default .star-rating {
  color: var(--bv-accent) !important;
}
.bv-featured-default .star-rating::before {
  color: var(--bv-line) !important;
}

/* Price */
.bv-featured-default .summary .price {
  font-family: var(--bv-font-display) !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--bv-blue) !important;
  margin: 0 0 1rem !important;
}
.bv-featured-default .summary .price del {
  color: var(--bv-muted) !important;
  font-weight: 400 !important;
  font-size: 1.1rem !important;
  margin-right: 0.5rem;
  opacity: 0.75;
}
.bv-featured-default .summary .price ins {
  background: none !important;
  text-decoration: none !important;
  color: var(--bv-blue) !important;
}

/* Short description */
.bv-featured-default .woocommerce-product-details__short-description {
  color: var(--bv-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.bv-featured-default .woocommerce-product-details__short-description p {
  margin: 0 0 0.5rem;
}

/* Variations table */
.bv-featured-default table.variations {
  width: 100% !important;
  margin: 0 0 1rem !important;
  border: none !important;
  background: transparent !important;
}
.bv-featured-default table.variations tr {
  border: none !important;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}
.bv-featured-default table.variations th,
.bv-featured-default table.variations td {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}
.bv-featured-default table.variations th.label {
  text-align: left;
}
.bv-featured-default table.variations th.label label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bv-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}
.bv-featured-default table.variations select {
  width: 100% !important;
  padding: 0.7rem 0.85rem !important;
  border: 1.5px solid var(--bv-line) !important;
  border-radius: var(--bv-radius-sm) !important;
  background: var(--bv-white) !important;
  color: var(--bv-ink) !important;
  font-family: var(--bv-font-body) !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  transition: border-color 0.2s var(--bv-ease);
}
.bv-featured-default table.variations select:focus {
  outline: none;
  border-color: var(--bv-blue) !important;
}
.bv-featured-default .reset_variations {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--bv-muted);
  text-decoration: underline;
}

/* Single variation price display */
.bv-featured-default .single_variation .woocommerce-variation-price {
  font-family: var(--bv-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bv-blue);
  margin-bottom: 0.5rem;
}
.bv-featured-default .single_variation .woocommerce-variation-availability {
  font-size: 0.85rem;
  color: var(--bv-muted);
  margin-bottom: 0.5rem;
}

/* Qty + add to cart row */
.bv-featured-default .variations_button,
.bv-featured-default form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 !important;
}
.bv-featured-default .quantity {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--bv-line);
  border-radius: var(--bv-radius-sm);
  overflow: hidden;
  background: var(--bv-white);
}
.bv-featured-default .quantity .qty {
  width: 64px !important;
  height: 46px !important;
  padding: 0 0.5rem !important;
  border: none !important;
  background: transparent !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  text-align: center;
  color: var(--bv-ink) !important;
  -moz-appearance: textfield;
}
.bv-featured-default .quantity .qty::-webkit-outer-spin-button,
.bv-featured-default .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to cart button */
.bv-featured-default .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 180px;
  padding: 0.85rem 1.5rem !important;
  background: var(--bv-blue) !important;
  border: 1.5px solid var(--bv-blue) !important;
  color: var(--bv-white) !important;
  border-radius: var(--bv-radius-sm) !important;
  font-family: var(--bv-font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  cursor: pointer;
  transition: all 0.3s var(--bv-ease) !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: 1.3 !important;
}
.bv-featured-default .single_add_to_cart_button:hover {
  background: var(--bv-blue-dark) !important;
  border-color: var(--bv-blue-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--bv-shadow-blue) !important;
}
.bv-featured-default .single_add_to_cart_button.disabled,
.bv-featured-default .single_add_to_cart_button.wc-variation-selection-needed {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Product meta (SKU + category) */
.bv-featured-default .product_meta {
  font-size: 0.8rem;
  color: var(--bv-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bv-line);
}
.bv-featured-default .product_meta > span {
  display: block;
  margin-bottom: 0.25rem;
}
.bv-featured-default .product_meta a {
  color: var(--bv-blue);
}

/* Wishlist button */
.bv-featured-default .yith-add-to-wishlist-button-block {
  margin-top: 0.75rem;
}
.bv-featured-default .yith-wcwl-add-to-wishlist-button {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.85rem;
  color: var(--bv-ink-soft) !important;
  text-decoration: none;
  border-radius: var(--bv-radius-sm);
  transition: color 0.2s var(--bv-ease);
}
.bv-featured-default .yith-wcwl-add-to-wishlist-button:hover {
  color: var(--bv-blue) !important;
}
.bv-featured-default .yith-wcwl-icon {
  width: 16px;
  height: 16px;
}

/* Product tabs (Description / Additional info / Reviews) */
.bv-featured-default .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: var(--bv-space-xl) !important;
  padding-top: var(--bv-space-lg);
  border-top: 1px solid var(--bv-line);
  width: 100%;
}
.bv-featured-default .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  border: none !important;
  flex-wrap: wrap;
}
.bv-featured-default .woocommerce-tabs ul.tabs::before,
.bv-featured-default .woocommerce-tabs ul.tabs::after {
  display: none !important;
}
.bv-featured-default .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.bv-featured-default .woocommerce-tabs ul.tabs li::before,
.bv-featured-default .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}
.bv-featured-default .woocommerce-tabs ul.tabs li a {
  padding: 0.7rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--bv-ink-soft) !important;
  background: var(--bv-white) !important;
  border: 1.5px solid var(--bv-line) !important;
  border-radius: var(--bv-radius-sm) !important;
  text-decoration: none;
  transition: all 0.2s var(--bv-ease) !important;
  display: block;
}
.bv-featured-default .woocommerce-tabs ul.tabs li.active a,
.bv-featured-default .woocommerce-tabs ul.tabs li a:hover {
  background: var(--bv-blue) !important;
  color: var(--bv-white) !important;
  border-color: var(--bv-blue) !important;
}
.bv-featured-default .woocommerce-Tabs-panel {
  padding: 1.25rem 0 !important;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--bv-ink-soft);
}
.bv-featured-default .woocommerce-Tabs-panel h2 {
  font-size: 1.2rem !important;
  margin: 0 0 1rem !important;
  color: var(--bv-ink);
}
.bv-featured-default .woocommerce-Tabs-panel img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bv-radius-sm);
  margin: 0.5rem 0;
}
.bv-featured-default .woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
}
.bv-featured-default .woocommerce-product-attributes th,
.bv-featured-default .woocommerce-product-attributes td {
  padding: 0.75rem !important;
  border: 1px solid var(--bv-line) !important;
  background: var(--bv-white) !important;
  font-size: 0.9rem;
  text-align: left;
}
.bv-featured-default .woocommerce-product-attributes th {
  background: var(--bv-cream-dark) !important;
  font-weight: 600;
  color: var(--bv-ink);
  width: 30%;
}

/* Notices */
.bv-featured-default .woocommerce-notices-wrapper { display: none; }

@media (max-width: 900px) {
  .bv-featured-default {
    padding: var(--bv-space-lg) var(--bv-space-md);
  }
  .bv-featured-default .bv-featured-single {
    grid-template-columns: 1fr;
    gap: var(--bv-space-lg);
  }
  .bv-featured-default .summary .price {
    font-size: 1.4rem !important;
  }
  .bv-featured-default .woocommerce-tabs ul.tabs li a {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.8rem !important;
  }
}

/* =========================================================================
   SECTION 4 — BEST PRODUCTS (with tabs)
   ========================================================================= */
.bv-home-trends {
  padding: 20px 0;
  background: var(--bv-cream);
}

.bv-home-tabs-wrap {
  max-width: 100%;
}

.bv-home-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--bv-space-lg);
  flex-wrap: wrap;
}
.bv-home-tab-btn {
  background: var(--bv-white);
  border: 1.5px solid var(--bv-line);
  padding: 0.75rem 1.5rem;
  font-family: var(--bv-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bv-ink-soft);
  cursor: pointer;
  transition: all 0.3s var(--bv-ease);
  border-radius: var(--bv-radius-sm);
}
.bv-home-tab-btn:hover {
  border-color: var(--bv-blue);
  color: var(--bv-blue);
}
.bv-home-tab-btn.active {
  background: var(--bv-blue);
  color: var(--bv-white);
  border-color: var(--bv-blue);
  box-shadow: var(--bv-shadow-blue);
}

.bv-home-tab-panel {
  display: none;
  animation: bv-fade-up 0.5s var(--bv-ease-out);
}
.bv-home-tab-panel.active { display: block; }

.bv-view-all-wrap {
  text-align: center;
  margin-top: var(--bv-space-xl);
}

/* =========================================================================
   STORY SECTION
   ========================================================================= */
.bv-home-story {
  padding: var(--bv-space-2xl) 0;
  background: var(--bv-blue-deep);
  color: var(--bv-white);
  position: relative;
  overflow: hidden;
}
.bv-home-story::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--bv-blue) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(80px);
  transform: translate(-50%, -50%);
}
.bv-home-story-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--bv-space-md);
}
.bv-home-story h2 {
  color: var(--bv-white);
  margin-bottom: var(--bv-space-md);
}
.bv-home-story h2 em {
  color: var(--bv-accent);
  font-style: italic;
}
.bv-home-story p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--bv-space-md);
}
.bv-home-story .bv-eyebrow { color: var(--bv-accent); }
.home .woocommerce-js div.product .related.products, .woocommerce-js div.product .woocommerce-tabs {
    display: none !important;
}
