
/* =========================================================
   SHOP HERO (enhanced)
   ========================================================= */
.shop-hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 80% 50%, rgba(242,101,34,0.10) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 100%);
  padding: 52px 0 44px;
  border-bottom: 3px solid var(--orange);
  position: relative;
  overflow: hidden;
}

.shop-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,101,34,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.shop-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.shop-hero-text {
  flex: 1;
}

.shop-hero-text .page-hero-title span {
  color: var(--orange);
}

.shop-hero-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
  align-items: flex-end;
  padding-bottom: 4px;
}

.shop-hero-stat {
  text-align: center;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  min-width: 88px;
}

.shop-hero-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: 0.02em;
}

.shop-hero-stat-num small {
  font-size: 14px;
  font-weight: 700;
  color: rgba(242,101,34,0.7);
}

.shop-hero-stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 5px;
  white-space: nowrap;
}

/* =========================================================
   CATEGORY PILL FILTER BAR
   ========================================================= */
.bsafe-cat-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 14px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  box-shadow: 0 2px 12px rgba(13,27,42,0.06);
}

.bsafe-cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bsafe-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: 40px;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}

.bsafe-cat-pill:hover {
  color: var(--navy);
  background: var(--off-white);
  border-color: var(--navy);
}

.bsafe-cat-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.bsafe-cat-pill-count {
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.bsafe-cat-pill.active .bsafe-cat-pill-count {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.bsafe-cat-pill:not(.active) .bsafe-cat-pill-count {
  background: rgba(13,27,42,0.1);
  color: var(--gray-500);
}

/* =========================================================
   SHOP PAGE — LAYOUT TWEAKS
   ========================================================= */

/* Give the shop a cleaner off-white base */
.shop-page-wrap {
  background: var(--off-white) !important;
  padding: 40px 0 80px !important;
}

/* Product grid: 3-col on wide, 2-col on tablet */
body .woocommerce ul.products,
body.woocommerce ul.products,
body.woocommerce-page ul.products {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  margin: 24px 0 0 !important;
}

/* Card image area slightly taller for gun safes (tall product) */
.bsafe-card-img-wrap {
  height: 280px !important;
}

/* Make card titles a bit smaller so they don't stack 3 lines for short names */
.bsafe-card-title,
body .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important;
  -webkit-line-clamp: 2 !important;
  min-height: calc(1.3em * 2) !important;
}

/* Add a subtle "In Stock" chip */
.bsafe-card-body::after {
  content: '✓ In Stock';
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #2a7a3b;
  background: #e8f5eb;
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* =========================================================
   RESPONSIVE — SHOP
   ========================================================= */
@media (max-width: 900px) {
  .shop-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .shop-hero-stats {
    gap: 16px;
    align-self: stretch;
    justify-content: space-between;
  }

  body .woocommerce ul.products,
  body.woocommerce ul.products,
  body.woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  body .woocommerce ul.products,
  body.woocommerce ul.products,
  body.woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }

  .shop-hero-stats {
    flex-wrap: wrap;
    gap: 10px;
  }

  .shop-hero-stat {
    min-width: calc(50% - 8px);
    flex: 1;
  }
}
