/**
 * Bombay Boutique Child — main styles
 */

:root {
  --bb-primary: #5c2a4a;
  --bb-secondary: #8b4a6b;
  --bb-accent: #c45c7a;
  --bb-text: #3a2f35;
  --bb-bg: #fbf6f4;
  --bb-muted: #7a6a72;
  --bb-blush: #f3e0e6;
  --bb-cream: #fff9f6;
  --bb-white: #ffffff;
  --bb-border: #e8e4de;
  --bb-radius: 14px;
  --bb-radius-sm: 10px;
  --bb-shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
  --bb-shadow-sm: 0 4px 14px rgba(26, 26, 46, 0.06);
  --bb-font-display: "Poppins", system-ui, sans-serif;
  --bb-font-body: "Inter", system-ui, sans-serif;
  --bb-container: 1200px;
  --bb-header-h: 80px;
  --bb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bb-space: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.bb-theme {
  margin: 0;
  font-family: var(--bb-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bb-text);
  background: var(--bb-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

.bb-site {
  overflow-x: hidden;
  max-width: 100%;
}

body.bb-theme h1,
body.bb-theme h2,
body.bb-theme h3,
body.bb-theme h4,
body.bb-theme .bb-section-title,
body.bb-theme .bb-logo__text,
body.bb-theme .bb-hero__heading {
  font-family: var(--bb-font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--bb-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bb-accent);
  text-decoration: none;
  transition: color 0.2s var(--bb-ease);
}

a:hover {
  color: var(--bb-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bb-accent);
  outline-offset: 2px;
}

.bb-container {
  width: min(100% - 2rem, var(--bb-container));
  margin-inline: auto;
}

.bb-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
}

.bb-skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bb-white);
  padding: 0.75rem 1rem;
  border-radius: var(--bb-radius-sm);
  box-shadow: var(--bb-shadow);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Buttons */
.bb-btn,
button.bb-btn,
a.bb-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-family: var(--bb-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--bb-ease), box-shadow 0.25s var(--bb-ease), background 0.25s var(--bb-ease), color 0.25s var(--bb-ease);
  text-decoration: none;
  line-height: 1.2;
}

.bb-btn--primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--bb-accent);
  color: var(--bb-white) !important;
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.28);
}

.bb-btn--primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--bb-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 26, 46, 0.2);
  color: var(--bb-white) !important;
}

.bb-btn--lg {
  padding: 1rem 1.85rem;
  font-size: 1rem;
}

.bb-btn--ghost {
  background: transparent;
  color: var(--bb-primary);
  border: 1px solid var(--bb-border);
}

.bb-btn--light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--bb-primary) !important;
  box-shadow: 0 8px 24px rgba(92, 42, 74, 0.12);
}

.bb-btn--light:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Sections */
.bb-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.bb-section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.bb-section-subtitle,
.bb-muted {
  color: var(--bb-muted);
  margin: 0;
}

.bb-products-section,
.bb-categories-section,
.bb-testimonials,
.bb-newsletter {
  padding: 4rem 0;
  width: min(100% - 2rem, var(--bb-container));
  margin-inline: auto;
}

/* Categories */
.bb-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.bb-category-card {
  position: relative;
  display: block;
  border-radius: var(--bb-radius);
  overflow: hidden;
  background: var(--bb-white);
  box-shadow: var(--bb-shadow-sm);
  color: inherit;
  text-decoration: none;
}

.bb-category-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #ebe7e0, #d9d3c9);
}

.bb-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--bb-ease);
}

.bb-category-card:hover .bb-category-card__media img {
  transform: scale(1.06);
}

.bb-category-card__body {
  padding: 1rem 1.1rem 1.25rem;
}

.bb-category-card__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.bb-category-card__body span {
  color: var(--bb-muted);
  font-size: 0.875rem;
}

.bb-cat-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--bb-secondary), var(--bb-primary));
}

/* Features strip */
.bb-features-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: min(100% - 2rem, var(--bb-container));
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--bb-white);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-sm);
}

@media (min-width: 768px) {
  .bb-features-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bb-features-strip__item {
  text-align: center;
  padding: 0.75rem;
}

.bb-features-strip__item strong {
  display: block;
  font-family: var(--bb-font-display);
  color: var(--bb-primary);
  margin-bottom: 0.25rem;
}

.bb-features-strip__item span {
  color: var(--bb-muted);
  font-size: 0.875rem;
}

/* Hero — beauty editorial (readable + no horizontal overflow) */
.bb-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: min(78vh, 640px);
  overflow: hidden;
  background: #3c182a;
}

.bb-hero.swiper {
  overflow: hidden;
}

.bb-hero .swiper-wrapper {
  max-width: 100%;
}

.bb-hero__slide {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  width: 100%;
}

.bb-hero__media {
  position: absolute;
  inset: 0;
  background-color: #3c182a;
  background-image: var(--bb-hero-bg, linear-gradient(135deg, #f3e0e6, #c45c7a));
  background-size: cover;
  background-position: center;
}

.bb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(40, 16, 30, 0.88) 0%,
    rgba(60, 24, 42, 0.72) 42%,
    rgba(60, 24, 42, 0.35) 70%,
    rgba(60, 24, 42, 0.2) 100%
  );
  pointer-events: none;
}

.bb-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 560px);
  margin-left: max(1rem, calc((100% - var(--bb-container)) / 2));
  margin-right: 1rem;
  padding: 2rem 1.5rem;
  text-align: left;
  background: rgba(28, 10, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.bb-hero__eyebrow {
  font-family: var(--bb-font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  margin: 0 0 0.75rem;
  color: #ffd6e2;
}

.bb-hero__heading {
  color: #fff !important;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.bb-hero__sub {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32rem;
}

.bb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.bb-hero .swiper-pagination {
  bottom: 16px !important;
  z-index: 3;
}

.bb-hero .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.45;
  width: 8px;
  height: 8px;
}

.bb-hero .swiper-pagination-bullet-active {
  opacity: 1;
  background: #ffd6e2;
  width: 22px;
  border-radius: 999px;
}

.bb-hero .swiper-button-prev,
.bb-hero .swiper-button-next {
  color: #fff;
  width: 40px;
  height: 40px;
  margin-top: 0;
  top: auto;
  bottom: 18px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  z-index: 3;
}

.bb-hero .swiper-button-prev {
  left: 12px;
}

.bb-hero .swiper-button-next {
  right: 12px;
  left: auto;
}

.bb-hero .swiper-button-prev:after,
.bb-hero .swiper-button-next:after {
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .bb-hero,
  .bb-hero__slide {
    min-height: 68vh;
  }

  .bb-hero__content {
    margin: 0 auto;
    text-align: center;
    width: min(100% - 1.5rem, 520px);
    padding: 1.35rem 1.1rem;
  }

  .bb-hero__actions {
    justify-content: center;
  }

  .bb-hero .swiper-button-prev,
  .bb-hero .swiper-button-next {
    display: none;
  }
}

@keyframes bbHeroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonials */
.bb-testimonial {
  background: var(--bb-white);
  border-radius: var(--bb-radius);
  padding: 2rem;
  box-shadow: var(--bb-shadow-sm);
  margin: 0 0.5rem 2rem;
}

.bb-testimonial p {
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.bb-testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bb-testimonial span {
  color: var(--bb-muted);
  font-size: 0.875rem;
}

/* Promo / advertisement strip (light) */
.bb-promo {
  position: relative;
  width: min(100% - 2rem, var(--bb-container));
  margin: 1.5rem auto 2.5rem;
  min-height: 220px;
  border-radius: var(--bb-radius);
  overflow: hidden;
  display: grid;
  align-items: center;
  box-shadow: var(--bb-shadow-sm);
}

.bb-promo__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(60, 24, 42, 0.78), rgba(196, 92, 122, 0.35)),
    var(--bb-promo-img, linear-gradient(135deg, #f3e0e6, #c45c7a)) center / cover no-repeat;
}

.bb-promo__content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  color: #fff;
  max-width: 34rem;
}

.bb-promo__eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  opacity: 0.9;
}

.bb-promo__title {
  margin: 0 0 0.5rem;
  color: #fff !important;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.bb-promo__text {
  margin: 0 0 1.1rem;
  opacity: 0.95;
}

.bb-promo--checkout {
  min-height: 140px;
  margin: 0 0 1.5rem;
  width: 100%;
}

.bb-promo--checkout .bb-promo__content {
  padding: 1.25rem 1.25rem;
}

.bb-form-success {
  background: #ecfdf5;
  color: #065f46;
  padding: 0.85rem 1rem;
  border-radius: var(--bb-radius-sm);
  margin-bottom: 1rem;
}

.bb-form-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 0.85rem 1rem;
  border-radius: var(--bb-radius-sm);
  margin-bottom: 1rem;
}

.bb-contact-form input,
.bb-contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  font: inherit;
  background: #fff;
}

.bb-contact-form input:focus,
.bb-contact-form textarea:focus {
  border-color: var(--bb-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 92, 122, 0.15);
}

/* Newsletter */
.bb-newsletter {
  padding: 0;
}

.bb-newsletter__inner {
  background: linear-gradient(135deg, var(--bb-primary), var(--bb-secondary));
  color: #fff;
  border-radius: var(--bb-radius);
  padding: 3rem 1.5rem;
  text-align: center;
}

.bb-newsletter__inner .bb-section-title {
  color: #fff;
}

.bb-newsletter__inner .bb-section-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

/* Pages — centered */
.bb-page,
.bb-archive {
  padding: 2.5rem 0 4rem;
}

.bb-page--centered .bb-page-article {
  max-width: 820px;
  margin: 0 auto;
}

.bb-page-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #5c2a4a, #c45c7a 55%, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bb-page-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.bb-page-content {
  max-width: 820px;
  margin: 0 auto;
}

.bb-page-content > *:first-child {
  margin-top: 0;
}

.bb-page-article--faqs .bb-faq,
.bb-page-article--contact-us .bb-page-content {
  max-width: 760px;
  margin-inline: auto;
}

.bb-btn--teal {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.25);
}

/* Contact unique multi-color */
.bb-contact-band {
  margin-top: 2rem;
}

.bb-contact-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bb-contact-tile {
  display: block;
  padding: 1.25rem;
  border-radius: 16px;
  color: #fff !important;
  text-decoration: none;
  min-height: 110px;
  box-shadow: var(--bb-shadow-sm);
}

.bb-contact-tile__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.45rem;
}

.bb-contact-tile--rose {
  background: linear-gradient(145deg, #c45c7a, #8b4a6b);
}

.bb-contact-tile--teal {
  background: linear-gradient(145deg, #0f766e, #14b8a6);
}

.bb-contact-tile--gold {
  background: linear-gradient(145deg, #b45309, #d97706);
}

.bb-contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.bb-map-hint {
  text-align: center;
  color: var(--bb-muted);
  font-size: 0.9rem;
}

/* Search suggestions */
.bb-header-search__inner {
  position: relative;
}

.bb-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--bb-shadow);
  z-index: 50;
  overflow: hidden;
  max-height: 360px;
  overflow-y: auto;
}

.bb-search-suggest__item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  color: inherit !important;
  border-bottom: 1px solid #f0e8ec;
}

.bb-search-suggest__item img,
.bb-search-suggest__dot {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #f7eef3;
  flex-shrink: 0;
}

.bb-search-suggest__item strong {
  display: block;
  color: var(--bb-primary);
}

.bb-search-suggest__item small {
  color: var(--bb-muted);
}

.bb-search-suggest__empty {
  padding: 1rem;
  color: var(--bb-muted);
}

/* FAQ */
.bb-faq {
  max-width: 760px;
  margin: 0 auto;
}

.bb-faq__item {
  background: var(--bb-white);
  border-radius: var(--bb-radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--bb-shadow-sm);
  overflow: hidden;
}

.bb-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: 0;
  font-family: var(--bb-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bb-primary);
  text-align: left;
  cursor: pointer;
}

.bb-faq__icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--bb-ease);
  flex-shrink: 0;
}

.bb-faq__trigger[aria-expanded="true"] .bb-faq__icon {
  transform: rotate(-135deg);
}

.bb-faq__panel {
  padding: 0 1.25rem 1.25rem;
  color: var(--bb-muted);
}

.bb-faq__panel[hidden] {
  display: none;
}

/* Contact Form 7 */
.bb-cf7-grid,
.wpcf7 form {
  display: grid;
  gap: 1rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  background: var(--bb-white);
  font: inherit;
  color: var(--bb-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--bb-accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
  outline: none;
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.bb-honeypot,
.bb-hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.wpcf7-response-output {
  border-radius: var(--bb-radius-sm) !important;
  margin: 1rem 0 0 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #dc2626 !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a34a !important;
}

/* Wishlist empty */
.bb-wishlist-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.bb-wishlist-page {
  padding: 2rem 0 4rem;
  width: min(100% - 2rem, var(--bb-container));
  margin-inline: auto;
}

/* Float buttons */
.bb-float-btns {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bb-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff !important;
  box-shadow: var(--bb-shadow);
  transition: transform 0.25s var(--bb-ease);
}

.bb-float-btn:hover {
  transform: scale(1.08);
}

.bb-float-btn--wa {
  background: #25d366;
}

.bb-float-btn--call {
  background: var(--bb-primary);
}

/* Preloader */
.bb-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: var(--bb-bg);
  transition: opacity 0.4s ease, visibility 0.4s;
}

.bb-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bb-preloader__inner {
  text-align: center;
}

.bb-preloader__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--bb-border);
  border-top-color: var(--bb-accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: bbSpin 0.8s linear infinite;
}

.bb-preloader__text {
  font-family: var(--bb-font-display);
  font-weight: 600;
  color: var(--bb-primary);
}

@keyframes bbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Posts */
.bb-posts {
  display: grid;
  gap: 1.5rem;
}

.bb-post-card {
  background: var(--bb-white);
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-shadow-sm);
}

.bb-post-card__body {
  padding: 1.25rem;
}

.bb-elementor-fullwidth {
  width: 100%;
}

/* Toast */
.bb-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--bb-primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  z-index: 1000;
  box-shadow: var(--bb-shadow);
  transition: transform 0.35s var(--bb-ease);
  font-size: 0.9rem;
}

.bb-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}
