/* ==========================================================
   BonVulux Store Stylesheet (Unified & Responsive)
   ========================================================== */

:root {
  --bv-bg: #eef4ff;
  --bv-white: #ffffff;
  --bv-ink: #1e1d24;
  --bv-muted: rgba(30, 29, 36, .68);
  --bv-line: rgba(30, 29, 36, .14);
  --bv-primary: #1e1d24;
  --bv-primary-hover: #eef4ff;
  --bv-font-body: Roboto, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font: 400 16px/1.65 var(--bv-font-body);
  background-color: var(--bv-bg);
  color: var(--bv-ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bv-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
}

/* Hero Title - Clean background & exact user styling */
.bv-hero {
  background: none !important;
  box-shadow: none !important;
  text-align: center;
  padding: 1.5rem 0 1rem !important;
}

.bv-store-title {
  color: #1e1d24;
  font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.1;
}

/* Category Filter Pills Bar */
.bv-category-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem 0;
  margin-bottom: 1rem;
  scrollbar-width: thin;
}

.bv-category-bar::-webkit-scrollbar {
  height: 4px;
}
.bv-category-bar::-webkit-scrollbar-thumb {
  background: var(--bv-line);
  border-radius: 4px;
}

/* Controls Bar (Count & Sort) */
.bv-store-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--bv-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modern Sorting Dropdown Styling */
/* Modern Sorting Dropdown Styling */
.woocommerce-ordering select,
#bv-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%231e1d24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  border: 1px solid rgba(30, 29, 36, 0.15);
  border-radius: 10px;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1e1d24;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30, 29, 36, 0.02);
  transition: all 0.2s ease;
}

/* Remove ugly thick black focus outline and replace with a clean soft focus */
.woocommerce-ordering select:focus,
#bv-sort-select:focus {
  outline: none;
  border-color: #1e1d24;
  box-shadow: 0 0 0 3px rgba(30, 29, 36, 0.06);
  background-color: #eef4ff;
}

.woocommerce-ordering select:hover,
#bv-sort-select:hover {
  border-color: rgba(30, 29, 36, 0.3);
  background-color: #ffffff;
}


/* Product Grid Layout */
.bv-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bv-product-card {
  background: #ffffff !important;
  border: 1px solid rgba(30, 29, 36, 0.08) !important;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(30, 29, 36, .06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bv-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(30, 29, 36, .09);
}

.bv-card-media {
  width: 100%;
  height: 240px;
  background: #eef4ff;
  overflow: hidden;
  position: relative;
}

.bv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bv-product-card:hover .bv-card-media img {
  transform: scale(1.03);
}

.bv-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bv-product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bv-ink);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

/* Pricing Section */
.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.bv-price-now {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bv-ink);
  text-decoration: none;
}

.bv-price-was {
  font-size: .85rem;
  font-weight: 400;
  color: var(--bv-muted);
  text-decoration: line-through;
}

/* Modern Button */
.bv-btn-buy {
  background: var(--bv-primary);
  color: var(--bv-white);
  border: 1px solid var(--bv-primary);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font: 700 .88rem/1.2 var(--bv-font-body);
  width: 100%;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.bv-btn-buy:hover {
  background-color: var(--bv-primary-hover);
  color: var(--bv-ink);
  border-color: var(--bv-ink);
}

.bv-btn-buy:active {
  transform: scale(0.98);
}

/* Loading & States */
.bv-loading, .bv-error, .bv-no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--bv-muted);
  font-size: 1.1rem;
}

/* Footer */
.bv-store-footer {
  background: var(--bv-white);
  border-top: 1px solid var(--bv-line);
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
  color: var(--bv-muted);
  font-size: 0.9rem;
}

/* Product Image Badges (Sale set to black #1e1d24) */
.bv-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.bv-badge-sale { background-color: #1e1d24; }
.bv-badge-new { background-color: #eef4ff; color: #1e1d24; border: 1px solid rgba(30,29,36,.14); }
.bv-badge-sold { background-color: rgba(30,29,36,.68); }

[dir="rtl"] .bv-badge-tag {
  left: auto;
  right: 10px;
}

/* Category Strip Styling */
/* Centered Category Strip matching WordPress */
.bv-shop-cats {
  position: relative;
  margin: 0 auto 1.7rem;
  padding: 0 42px;
  max-width: 900px;
}

.bv-shop-cats-scroll {
  display: flex;
  justify-content: center;
  justify-content: safe center;
  gap: .65rem;
  overflow-x: auto;
  padding: 0 0 .75rem;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bv-shop-cats-scroll::-webkit-scrollbar {
  display: none;
}

/* Navigation Arrows (Hidden by default, shown when scrollable on mobile/smaller screens) */
.bv-shop-cats-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--bv-line, rgba(30,29,36,.14));
  border-radius: 50%;
  background: #ffffff;
  color: #1e1d24;
  box-shadow: 0 8px 20px rgba(30, 29, 36, .10);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease;
}

.bv-shop-cats-nav:hover {
  background: #1e1d24;
  color: #ffffff;
}

.bv-shop-cats.is-scrollable .bv-shop-cats-nav {
  display: inline-flex;
}

.bv-shop-cats-prev { left: 0; }
.bv-shop-cats-next { right: 0; }

[dir="rtl"] .bv-shop-cats-prev svg,
[dir="rtl"] .bv-shop-cats-next svg {
  transform: scaleX(-1);
}

.bv-shop-cat {
  flex: 0 0 116px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--bv-line, rgba(30,29,36,.14));
  border-radius: 16px;
  color: #1e1d24;
  text-decoration: none;
  cursor: pointer;
  padding: .4rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.bv-shop-cat:hover, .bv-shop-cat.is-active {
  border-color: #1e1d24;
  background: #1e1d24;
  color: #ffffff;
}

.bv-shop-cat.is-active .bv-shop-cat-name {
  color: #ffffff;
}

.bv-shop-cat-all {
  flex: 0 0 auto;
  min-width: 68px;
  justify-content: center;
  align-items: center;
  background: #1e1d24;
  color: #ffffff;
  border-color: #1e1d24;
}

.bv-shop-cat-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.bv-shop-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bv-shop-cat-name {
  display: block;
  padding: .55rem .6rem;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .bv-shop-cat {
    flex-basis: 90px;
  }
}

/* Brand alignment overrides */
.bv-store-title { color: var(--bv-ink); }
.bv-product-title,
.bv-product-title a { color: var(--bv-ink); }
.bv-btn-buy:hover {
  background: var(--bv-bg);
  color: var(--bv-ink);
  border-color: var(--bv-ink);
}
@media (max-width: 640px) {
  .bv-container { width: min(1200px, calc(100% - 28px)); }
}


/* Store heading: one line, centered, brand colour */
.bv-store-title{color:#1e1d24!important;text-align:center!important;white-space:nowrap;font:700 clamp(2.1rem,4vw,3.6rem)/1.1 "Roboto Condensed",Roboto,Arial,sans-serif;letter-spacing:-.02em;margin:0 auto!important}
@media(max-width:420px){.bv-store-title{font-size:clamp(1.65rem,6vw,2.35rem)}}
