/* BrookCherit Homepage — appearance-aligned redesign */

.bc-home {
  --bc-home-bg: #f7f3e8;
  --bc-home-surface: #ffffff;
  --bc-home-accent: var(--bc-gold, #d4af37);
  --bc-home-accent-dark: var(--bc-gold-dark, #c5a028);
  --bc-home-navy: var(--bc-navy, #05162e);
  --bc-home-text: #05162e;
  --bc-home-muted: #6b7280;
  --bc-home-radius: 16px;
  --bc-home-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --bc-card-image-height: 200px;
  --bc-card-body-padding: 12px 14px;
}

.bc-home {
  background: var(--bc-home-bg);
}

.bc-home .bc-home-section {
  padding: 72px 0;
}

.bc-home .bc-home-section--compact {
  padding: 48px 0;
}

.bc-home .bc-home-section--flush-top {
  padding-top: 0;
}

.bc-home .bc-section-heading {
  margin-bottom: 32px;
}

.bc-home .bc-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bc-home-accent);
  margin-bottom: 8px;
}

.bc-home .bc-section-title {
  font-family: var(--headingFont, inherit);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--bc-home-text);
  margin: 0;
  line-height: 1.2;
}

.bc-home .bc-section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bc-home .bc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bc-home-accent);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  transition: all 0.2s ease;
}

.bc-home .bc-link-btn:hover {
  background: var(--bc-home-navy);
  color: var(--bc-gold, #d4af37);
  border-color: var(--bc-home-navy);
}

/* Hero — navy & gold brand */
.bc-home .bc-hero {
  background: linear-gradient(135deg, #05162e 0%, #0a2240 52%, #12345c 100%);
  padding: 28px 0 0;
  overflow: hidden;
}

.bc-home .bc-hero .beauty_banner_text h4 {
  color: #d4af37;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bc-home .bc-hero .beauty_banner_text h1 {
  font-family: var(--bc-hero-font, var(--headingFont, inherit));
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.bc-home .bc-hero .beauty_banner_text p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 24px;
}

.bc-home .bc-hero .common_btn {
  background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%) !important;
  color: #05162e !important;
  border-color: #d4af37 !important;
  font-weight: 600 !important;
}

.bc-home .bc-hero .common_btn:hover {
  background: #fff !important;
  color: #05162e !important;
  border-color: #fff !important;
}

.bc-home .bc-hero .beauty_banner_img .img {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.bc-home .bc-hero .beauty_banner_img .img img {
  border-radius: 12px;
  max-height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.bc-home .bc-hero .beauty_banner_slider_small_item img {
  object-fit: cover;
  border-radius: 8px;
}

/* Product cards — unified size across all homepage sections */
.bc-home .bc-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bc-home .bc-product-card {
  display: flex;
  flex-direction: column;
  background: var(--bc-home-surface);
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  margin: 0 !important;
}

.bc-home .bc-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bc-home-shadow);
  border-color: rgba(212, 175, 55, 0.3);
}

.bc-home .bc-product-card__media {
  position: relative;
  overflow: hidden;
  height: var(--bc-card-image-height);
  flex-shrink: 0;
  background: #f3f4f6;
}

.bc-home .bc-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.bc-home .bc-product-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.bc-home .bc-product-card:hover .bc-product-card__media img {
  transform: scale(1.03);
}

/* Override legacy theme product image heights inside homepage */
.bc-home .beauty_product_item,
.bc-home .beauty_featured_products .beauty_product_item {
  margin-top: 0 !important;
  background: transparent !important;
}

.bc-home .beauty_product_item .img,
.bc-home .beauty_featured_products .beauty_product_item .img {
  height: var(--bc-card-image-height) !important;
}

/* Sliders use the same card dimensions as the grid */
.bc-home .beauty_featured_slider .slick-slide,
.bc-home .flash_sell_slider .slick-slide {
  padding: 0 8px;
  height: auto;
}

.bc-home .beauty_featured_slider .slick-slide > div,
.bc-home .flash_sell_slider .slick-slide > div {
  height: 100%;
}

.bc-home .beauty_featured_slider .col-xl-4,
.bc-home .beauty_featured_slider .col-xl-3,
.bc-home .flash_sell_slider .col-xl-3,
.bc-home .flash_sell_slider .col-xl-4 {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.bc-home .bc-product-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bc-home .bc-featured-products-col .bc-section-heading {
  margin-bottom: 20px;
}

.bc-home .bc-product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.bc-home .bc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
}

.bc-home .bc-badge--new { background: #111827; }
.bc-home .bc-badge--sale { background: #ef4444; }
.bc-home .bc-badge--sold { background: var(--bc-home-navy, #05162e); color: #d4af37; }

.bc-home .bc-product-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.bc-home .bc-product-card__cart {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  white-space: nowrap;
  z-index: 2;
}

.bc-home .bc-product-card:hover .bc-product-card__cart {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bc-home .bc-product-card__body {
  padding: var(--bc-card-body-padding);
  flex: 1;
}

.bc-home .bc-product-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bc-home .bc-product-card__price del {
  color: #9ca3af;
  font-size: 14px;
}

.bc-home .bc-product-card__price span {
  color: var(--bc-home-accent);
  font-weight: 700;
  font-size: 15px;
}

.bc-home .bc-product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--bc-home-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.35;
}

.bc-home .bc-product-card__title:hover {
  color: var(--bc-home-accent);
}

/* Featured layout */
.bc-home .bc-featured-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 20px;
  align-items: start;
}

.bc-home .bc-featured-banner,
.bc-home .beauty_featured_products_banner.bc-featured-banner {
  position: relative;
  border-radius: 12px !important;
  overflow: hidden;
  height: calc(var(--bc-card-image-height) + 96px) !important;
  max-height: calc(var(--bc-card-image-height) + 96px);
  flex-shrink: 0;
}

.bc-home .bc-featured-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bc-home .bc-featured-banner .text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 16px;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.75) 100%);
}

.bc-home .bc-featured-banner .text h6 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
}

.bc-home .bc-featured-banner .text h2 {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.bc-home .bc-featured-banner .common_btn {
  font-size: 13px;
  padding: 8px 14px;
}

/* Categories */
.bc-home .bc-category-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.bc-home .bc-category-card:hover {
  border-color: var(--bc-home-accent);
  box-shadow: var(--bc-home-shadow);
  transform: translateY(-3px);
}

.bc-home .bc-category-card .img {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #eef2f7;
}

.bc-home .bc-category-card h4 {
  font-size: 15px;
  color: var(--bc-home-text);
  margin: 0;
}

.bc-home .bc-category-card h4 span {
  display: block;
  font-size: 12px;
  color: var(--bc-home-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Promo banners — 3 equal cards, appearance-driven */
.bc-home .bc-promo-banners .row > [class*="col-"] {
  display: flex;
}

.bc-home .bc-promo-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bc-home .bc-promo-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}

.bc-home .bc-promo-banner__media {
  position: absolute;
  inset: 0;
}

.bc-home .bc-promo-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bc-home .bc-promo-banner__video {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

.bc-home .bc-promo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 22, 46, 0.12) 0%, rgba(5, 22, 46, 0.58) 55%, rgba(5, 22, 46, 0.85) 100%);
}

.bc-home .bc-promo-banner__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 22px 20px 24px;
  color: #fff;
}

.bc-home .bc-promo-banner__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
}

.bc-home .bc-promo-banner__title {
  font-family: var(--headingFont, inherit);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 16px;
  max-width: 95%;
}

.bc-home .bc-promo-banner__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, #d4af37, #c5a028) !important;
  border-color: #d4af37 !important;
  color: #05162e !important;
  font-weight: 600 !important;
}

.bc-home .bc-promo-banner__btn:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #05162e !important;
}

.bc-home .bc-promo-banner--left .bc-promo-banner__content {
  text-align: left;
}

.bc-home .bc-promo-banner--right .bc-promo-banner__content {
  text-align: left;
}

.bc-home .bc-promo-banner--video .bc-promo-banner__content {
  text-align: left;
}

/* Product promo banners — image + name only */
.bc-home .bc-promo-banner--product {
  min-height: 300px;
  background: #fff;
  border: 1px solid #e8edf3;
  text-decoration: none;
  color: inherit;
}

.bc-home .bc-promo-banner--product:hover {
  border-color: rgba(212, 175, 55, 0.35);
  color: inherit;
}

.bc-home .bc-promo-banner--product .bc-promo-banner__media {
  position: relative;
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 18px;
}

.bc-home .bc-promo-banner--product .bc-promo-banner__image {
  position: static;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
}

.bc-home .bc-promo-banner--product .bc-promo-banner__content {
  margin-top: 0;
  padding: 14px 16px 18px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #eef2f7;
}

.bc-home .bc-promo-banner--product .bc-promo-banner__title {
  color: var(--bc-home-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Flash sale */
.bc-home .bc-flash-panel {
  background: linear-gradient(135deg, #05162e 0%, #0a2240 55%, #12345c 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
  margin-bottom: 28px;
}

.bc-home .bc-flash-panel .bc-section-eyebrow,
.bc-home .bc-flash-panel .bc-section-title {
  color: #fff;
}

.bc-home .bc-flash-panel .bc-section-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.bc-home .bc-flash-panel .view_all_btn {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Brands */
.bc-home .bc-brands-wrap {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: var(--bc-home-radius);
  padding: 28px 20px;
}

.bc-home .beauty_brand_slider li {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 12px;
  margin: 0 8px;
}

/* Instagram */
.bc-home .bc-instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.bc-home .bc-instagram-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.bc-home .bc-instagram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bc-home .bc-instagram-tile:hover img {
  transform: scale(1.06);
}

.bc-home .bc-instagram-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5, 22, 46, 0.82);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-align: center;
  padding: 12px;
}

.bc-home .bc-instagram-tile:hover .bc-instagram-tile__overlay {
  opacity: 1;
  color: #d4af37;
}

/* Hero decorative circles — gold tint on navy */
.bc-home .bc-hero .beauty_banner_img::before {
  background: rgba(212, 175, 55, 0.18) !important;
}

.bc-home .bc-hero .beauty_banner_img::after {
  border-color: rgba(212, 175, 55, 0.35) !important;
}

.bc-home .bc-section-eyebrow,
.bc-home .bc-section-title span,
.bc-home .bc-home-link {
  color: var(--bc-gold-dark, #c5a028);
}

.bc-home .bc-section-title {
  color: var(--bc-navy, #05162e);
}

.bc-home .simply-countdown > .simply-section {
  background: var(--bc-navy, #05162e) !important;
  color: #d4af37 !important;
}

.bc-home .bc-instagram-cta {
  margin-top: 24px;
  text-align: center;
}

/* Trending tabs refresh */
.bc-home .product_tabs .pws_tabs_list_container {
  margin-bottom: 24px;
}

.bc-home .product_tabs .pws_tabs_list li a {
  border-radius: 999px !important;
}

/* Countdown fallback */
.bc-home .bc-countdown-fallback .beauty_countdown_area {
  border-radius: var(--bc-home-radius);
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .bc-home .bc-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bc-home .bc-product-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bc-home .bc-featured-layout {
    grid-template-columns: 1fr;
  }

  .bc-home .bc-instagram-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .bc-home .bc-home-section {
    padding: 52px 0;
  }

  .bc-home {
    --bc-card-image-height: 170px;
  }

  .bc-home .bc-featured-banner,
  .bc-home .beauty_featured_products_banner.bc-featured-banner {
    height: 240px !important;
    max-height: 240px;
    margin-bottom: 16px;
  }

  .bc-home .bc-product-grid,
  .bc-home .bc-product-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bc-home .bc-product-card__cart {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .bc-home .bc-instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-home .bc-promo-banner {
    min-height: 280px;
  }

  .bc-home .bc-promo-banner__content {
    padding: 18px 16px 20px;
  }
}
