/* ==========================================================================
   Bachaa Party style homepage sections (scoped with .bp- prefix)
   Loaded only on index.php — does not affect shop/product/cart pages.
   ========================================================================== */

:root {
  --bp-pink: #ffd7e6;
  --bp-pink-dark: #ff5c93;
  --bp-blue: #cdeaff;
  --bp-blue-dark: #2f9bff;
  --bp-yellow: #fff3bf;
  --bp-yellow-dark: #ffc93c;
  --bp-teal: #c8f3ea;
  --bp-teal-dark: #17b897;
  --bp-purple: #9b5de5;
  --bp-red: #ff3b3b;
  --bp-ink: #12141c;
  --bp-radius: 18px;
}

.bp-section { padding: 56px 0; }
.bp-section-alt { background: #fafafa; }

.bp-section-head {
  text-align: center;
  margin-bottom: 36px;
}
.bp-section-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--bp-ink);
  text-transform: uppercase;
  margin: 0;
}
.bp-section-head p {
  color: #777;
  margin-top: 8px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.bp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f9bff 0%, #6f6bff 55%, #9b5de5 100%);
  padding: 70px 0 90px;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.bp-hero-bg-video,
.bp-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bp-hero-bg-img {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.bp-hero-bg-video {
  object-fit: cover;
}
/* Dark overlay so text is always readable over any image */
.bp-hero-bg-video + .container,
.bp-hero-bg-img + .container {
  position: relative;
  z-index: 2;
}
.bp-hero.has-bg {
  background: rgba(0,0,0,0.45);
}
/* When hero has background image/video, hide floating cards (they overlap) */
.bp-hero.has-bg .bp-hero-visual {
  display: none;
}
.bp-hero.has-bg .bp-hero-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.bp-hero.has-bg .bp-hero-badge {
  margin-left: auto;
  margin-right: auto;
}
.bp-hero.has-bg .bp-hero p {
  margin-left: auto;
  margin-right: auto;
}
.bp-hero.has-bg .bp-hero-btns {
  justify-content: center;
}
.bp-hero.has-bg .bp-hero .container {
  grid-template-columns: 1fr;
}
.bp-hero.has-bg .bp-hero-content h1,
.bp-hero.has-bg .bp-hero-content p {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.bp-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}
.bp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,22,30,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}
.bp-hero h1 {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 30px rgba(0,0,0,0.3);
}
.bp-hero h1 span {
  display: inline-block;
  color: var(--bp-yellow-dark);
  -webkit-text-stroke: 1px #12141c;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.bp-hero p {
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  max-width: 460px;
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.bp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bp-btn:hover { transform: translateY(-3px); }
.bp-btn-yellow { background: var(--bp-yellow-dark); color: var(--bp-ink); box-shadow: 0 10px 24px rgba(255,201,60,0.35); }
.bp-btn-black { background: var(--bp-ink); color: #fff; }
.bp-btn-outline { background: rgba(20,22,30,0.55); color: #fff; border: 2px solid rgba(255,255,255,0.7); backdrop-filter: blur(6px); }
.bp-btn-outline:hover { background: rgba(20,22,30,0.75); border-color: #fff; }

.bp-hero-visual {
  position: relative;
  height: 340px;
}
.bp-float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bpFloat 4s ease-in-out infinite;
}
.bp-float-card i { font-size: 30px; }
.bp-float-1 { width: 130px; height: 130px; top: 10px; left: 40px; color: var(--bp-pink-dark); animation-delay: 0s; }
.bp-float-2 { width: 100px; height: 100px; top: 60px; right: 30px; color: var(--bp-blue-dark); animation-delay: .6s; }
.bp-float-3 { width: 110px; height: 110px; bottom: 30px; left: 100px; color: var(--bp-teal-dark); animation-delay: 1.2s; }
.bp-float-4 { width: 90px; height: 90px; bottom: 0; right: 90px; color: var(--bp-yellow-dark); animation-delay: 1.8s; }
.bp-hero-circle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
  animation: bpPulse 3.5s ease-in-out infinite;
}
@keyframes bpFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}
@keyframes bpPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}
.bp-hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.bp-shape-1 { width: 420px; height: 420px; top: -180px; left: -140px; }
.bp-shape-2 { width: 320px; height: 320px; bottom: -160px; right: -80px; }

/* ---------- Category cards ---------- */
.bp-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.bp-cat-card {
  position: relative;
  border-radius: var(--bp-radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.bp-cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.14); }
.bp-cat-card .bp-cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bp-cat-card .bp-cat-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  color: rgba(18,20,28,0.25);
}
.bp-cat-card .bp-cat-label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 14px 10px 16px;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bp-cat-card.bp-c1 { background: var(--bp-pink); }
.bp-cat-card.bp-c2 { background: var(--bp-blue); }
.bp-cat-card.bp-c3 { background: var(--bp-yellow); }
.bp-cat-card.bp-c4 { background: var(--bp-teal); }

/* ---------- Promo split banner ---------- */
.bp-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  background: #f4f6ff;
  border-radius: 24px;
  padding: 40px;
}
.bp-promo-visual {
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bp-blue), var(--bp-teal));
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-promo-visual i { font-size: 90px; color: rgba(18,20,28,0.18); }
.bp-promo-visual img { width: 100%; height: 100%; object-fit: cover; }
.bp-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bp-ink);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.bp-promo-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--bp-ink);
  margin: 0 0 14px;
  text-transform: none;
}
.bp-promo-content p { color: #666; margin-bottom: 22px; font-size: 15px; }
.bp-chip-row { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.bp-chip {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-ink);
}
.bp-chip i { display: block; font-size: 20px; margin-bottom: 6px; }
.bp-promo.bp-promo-rev { grid-template-columns: 1fr 1fr; }
.bp-promo.bp-promo-rev .bp-promo-visual { order: 2; }
.bp-promo.bp-promo-rev .bp-promo-content { order: 1; }
.bp-btn-pair { display: flex; gap: 12px; }

/* ---------- Product grid (Premium Picks) ---------- */
.bp-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.bp-product-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bp-product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.08); }
.bp-product-img {
  position: relative;
  aspect-ratio: 1/1;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-product-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-product-img i { font-size: 40px; color: #ccc; }
.bp-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  color: #fff;
  z-index: 2;
}
.bp-badge-save { background: var(--bp-red); }
.bp-badge-new { background: var(--bp-teal-dark); }
.bp-badge-oos { background: #555; }
.bp-product-card.bp-out-of-stock .bp-product-img img { opacity: 0.5; }
.bp-wishlist-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--bp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform .15s ease, color .15s ease;
}
.bp-wishlist-btn:hover { color: var(--bp-pink-dark); transform: scale(1.1); }
.bp-wishlist-btn.active i { font-weight: 900; color: var(--bp-pink-dark); }
.bp-add-cart-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bp-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.bp-add-cart-btn:hover { background: var(--bp-blue-dark); transform: scale(1.06); }
.bp-add-cart-btn:disabled { background: #ccc; cursor: not-allowed; }
.bp-product-info { padding: 14px 14px 16px; }
.bp-product-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bp-ink);
  margin: 0 0 8px;
  line-height: 1.4;
  min-height: 37px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}
.bp-price-row { display: flex; align-items: baseline; gap: 8px; }
.bp-price { font-weight: 800; color: var(--bp-ink); font-size: 15px; }
.bp-price-strike { text-decoration: line-through; color: #aaa; font-size: 12.5px; }
.bp-price-sale { color: var(--bp-red); }
.bp-view-all-wrap { text-align: center; margin-top: 32px; }

/* ---------- Lifestyle dual banner ---------- */
.bp-dual-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 20px;
  overflow: hidden;
}
.bp-dual-banner-item {
  position: relative;
  aspect-ratio: 16/11;
  background: linear-gradient(135deg, var(--bp-yellow-dark), var(--bp-pink-dark));
  display: flex;
  align-items: center;
}
.bp-dual-banner-item:nth-child(2) { background: linear-gradient(135deg, var(--bp-blue-dark), var(--bp-purple)); }
.bp-dual-banner-item img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.bp-dual-caption {
  position: relative;
  z-index: 2;
  background: #fff;
  margin: 24px;
  padding: 20px;
  border-radius: 14px;
  max-width: 260px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.bp-dual-caption p { font-size: 14px; color: var(--bp-ink); margin: 0 0 14px; font-weight: 600; }

/* ---------- Sale carousel ---------- */
.bp-tab-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.bp-tab {
  border: none;
  background: #f1f1f1;
  color: var(--bp-ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.bp-tab.active, .bp-tab:hover { background: var(--bp-ink); color: #fff; }

.bp-carousel-wrap { position: relative; }
.bp-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.bp-carousel-track::-webkit-scrollbar { display: none; }
.bp-carousel-track .bp-product-card { min-width: 230px; flex: 0 0 230px; }
.bp-carousel-nav {
  position: absolute;
  top: 40%;
  right: -14px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bp-ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.bp-carousel-nav.bp-prev { left: -14px; right: auto; }

/* ---------- Video/campaign banner ---------- */
.bp-video-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, #ff9966, #ff5e62);
}
.bp-video-banner video, .bp-video-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bp-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05) 55%);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}
.bp-video-overlay h2 {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Testimonials ---------- */
.bp-testimonial-track {
  display: flex;
  gap: 22px;
  align-items: center;
  transition: transform .4s ease;
}
.bp-testimonial-viewport { overflow: hidden; }
.bp-testimonial-card {
  flex: 0 0 calc(33.333% - 15px);
  text-align: center;
  padding: 20px;
  transition: all .3s ease;
  opacity: .55;
  transform: scale(0.92);
}
.bp-testimonial-card.active {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
  opacity: 1;
  transform: scale(1);
}
.bp-stars { color: var(--bp-yellow-dark); margin-bottom: 10px; font-size: 14px; }
.bp-testimonial-card p.bp-review-text { font-size: 14.5px; color: #444; margin-bottom: 14px; }
.bp-testimonial-card .bp-cust-name { font-weight: 700; color: var(--bp-ink); font-size: 13.5px; }
.bp-testimonial-card .bp-cust-loc { font-size: 12px; color: #999; }
.bp-testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.bp-testimonial-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: #ddd; cursor: pointer; padding: 0;
}
.bp-testimonial-dots button.active { background: var(--bp-ink); width: 22px; border-radius: 5px; }

/* ---------- Scroll reveal (reuse existing .reveal from style.css if present) ---------- */
.bp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.bp-reveal.bp-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .bp-hero { padding: 50px 0 60px; min-height: 420px; }
  .bp-hero .container { grid-template-columns: 1fr; text-align: center; }
  .bp-hero p { margin-left: auto; margin-right: auto; }
  .bp-hero-btns { justify-content: center; }
  .bp-hero-visual { height: 220px; margin-top: 20px; }
  .bp-hero h1 { font-size: 38px; }
  .bp-hero-bg-img { background-size: cover; background-position: center top; }
  .bp-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .bp-product-grid { grid-template-columns: repeat(3, 1fr); }
  .bp-promo, .bp-promo.bp-promo-rev { grid-template-columns: 1fr; }
  .bp-promo.bp-promo-rev .bp-promo-visual, .bp-promo.bp-promo-rev .bp-promo-content { order: initial; }
  .bp-promo-visual { order: -1; }
  .bp-testimonial-card { flex: 0 0 calc(50% - 11px); }
}

@media (max-width: 700px) {
  .bp-section { padding: 40px 0; }
  .bp-hero { padding: 36px 0 44px; min-height: auto; display: block; }
  .bp-hero .container { display: block; }
  .bp-hero-content { text-align: center; }
  .bp-hero h1 { font-size: 26px; line-height: 1.25; }
  .bp-hero p { font-size: 13px; margin-bottom: 20px; }
  .bp-hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 14px; }
  .bp-hero-visual { display: none; }
  .bp-hero-bg-img { background-size: cover; background-position: center center; }
  .bp-hero.has-bg { background: rgba(0,0,0,0.55); }
  .bp-hero-btns { justify-content: center; gap: 10px; }
  .bp-section-head h2 { font-size: 22px; }
  .bp-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bp-dual-banner { grid-template-columns: 1fr; }
  .bp-dual-banner-item { aspect-ratio: 16/9; }
  .bp-dual-caption { margin: 16px; padding: 14px; max-width: 220px; }
  .bp-video-banner { aspect-ratio: 16/9; }
  .bp-promo { padding: 24px; border-radius: 18px; }
  .bp-promo-visual { height: 200px; }
  .bp-promo-content h2 { font-size: 24px; }
  .bp-chip-row { gap: 8px; }
  .bp-btn-pair { flex-direction: column; }
  .bp-carousel-track .bp-product-card { min-width: 190px; flex: 0 0 190px; }
  .bp-video-overlay h2 { font-size: 22px; }
  .bp-testimonial-card { flex: 0 0 100%; }
  .bp-carousel-nav { width: 36px; height: 36px; }
  .bp-btn { padding: 12px 20px; font-size: 13px; }
}

@media (max-width: 420px) {
  .bp-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bp-hero { padding: 28px 0 36px; min-height: auto; }
  .bp-hero h1 { font-size: 22px; }
  .bp-hero p { font-size: 12px; margin-bottom: 16px; }
  .bp-hero-btns { gap: 8px; }
  .bp-btn { padding: 10px 16px; font-size: 12px; }
  .bp-hero-badge { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
}
