/**
 * Shop archive — hero + animal tabs + product cards pixel-perfect.
 */

/* ===== Hero de Shop ===== */
.bcc-shop-hero {
  position: relative;
  min-height: 300px;
  padding: 3.5rem clamp(1.5rem, 5vw, 5rem);
  background: #0d4959;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.bcc-shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../images/bg-seasonal.jpg") center/cover no-repeat;
  opacity: 0.85;
  z-index: 0;
}

.bcc-shop-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(13, 73, 89, 0.85) 0%, rgba(13, 73, 89, 0.55) 55%, rgba(13, 73, 89, 0.35) 100%);
  z-index: 1;
}

.bcc-shop-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  color: #fff;
  padding: 1.5rem 0;
}

.bcc-shop-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--bcc-font-sans);
  font-size: 0.8rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.95rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 1.1rem;
}

.bcc-shop-hero__eyebrow::before {
  content: "🌿";
  font-size: 0.9rem;
}

.bcc-shop-hero__title {
  font-family: var(--bcc-font-serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.85rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.35);
}

.bcc-shop-hero__subtitle {
  font-family: var(--bcc-font-sans);
  font-size: 1.02rem;
  color: #fff;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.35);
}

/* ===== Tabs Animal ===== */
.bcc-animal-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background: transparent;
  flex-wrap: wrap;
}

.bcc-animal-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border: 1px solid rgba(13, 73, 89, 0.15);
  border-radius: 999px;
  background: #fff;
  color: var(--bcc-brand-teal);
  font-family: var(--bcc-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bcc-animal-tab__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: inline-block;
}

.bcc-animal-tab__avatar--all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b96346 0%, #d19f47 50%, #b5c3a3 100%);
  color: #fff;
}

.bcc-animal-tab.is-active .bcc-animal-tab__avatar--all {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  color: var(--bcc-brand-teal);
}

.bcc-animal-tab:hover {
  border-color: var(--bcc-brand-teal);
}

.bcc-animal-tab.is-active {
  background: var(--bcc-brand-teal);
  color: #fff;
  border-color: var(--bcc-brand-teal);
}

/* ===== Shop wrap + Grid ===== */
.bcc-shop-wrap {
  max-width: var(--bcc-container-max, 1400px);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem) 3rem;
}

.woocommerce ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 1180px) { ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 820px)  { ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px)  { ul.products { grid-template-columns: 1fr !important; } }

/* ===== Product Card ===== */
.bcc-pcard {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 !important;
  width: auto !important;
  list-style: none;
  display: flex !important;
  flex-direction: column;
  border: 1px solid #f3f4f6; /* border-gray-100 exacto de Lovable */
  box-shadow: 0 1px 8px rgba(13, 73, 89, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
  height: 100%;
}

.bcc-pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 73, 89, 0.1);
}

/* Cinta diagonal "Produit de saison" */
.bcc-pcard__ribbon {
  position: absolute;
  top: 18px;
  right: -36px;
  width: 150px;
  padding: 0.3rem 0;
  background: var(--bcc-conseil);
  color: #fff;
  font-family: var(--bcc-font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 3;
}

/* Wishlist heart top-left */
.bcc-pcard__wishlist {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: var(--bcc-brand-teal);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 73, 89, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: color 0.15s ease, transform 0.1s ease;
}

.bcc-pcard__wishlist:hover {
  color: var(--bcc-conseil);
  transform: scale(1.06);
}

.bcc-pcard__wishlist.is-active {
  color: var(--bcc-conseil);
}

.bcc-pcard__wishlist.is-active svg {
  fill: var(--bcc-conseil);
}

/* Imagen — fondo verde muy suave como en la referencia */
.bcc-pcard__image-wrap {
  display: block;
  background: linear-gradient(180deg, #e8f0e4 0%, #d4e4d2 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.bcc-pcard__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.bcc-pcard:hover .bcc-pcard__image {
  transform: scale(1.04);
}

/* Body */
.bcc-pcard__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
  align-items: center;
}

.bcc-pcard__subtitle {
  font-family: var(--bcc-font-sans);
  font-size: 0.75rem;
  color: #677E73; /* text-muted-foreground exacto de Lovable */
  font-weight: 500;
  letter-spacing: 0.02em;
  order: 1; /* descripción primero */
  width: 100%;
}

.bcc-pcard__title {
  font-family: var(--bcc-font-sans); /* Lovable usa font-sans en el nombre */
  font-size: 0.9375rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  color: #0E4C5A; /* brand-teal exacto de Lovable */
  order: 2; /* nombre del producto segundo */
  width: 100%;
  min-height: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.bcc-pcard__title a {
  color: inherit;
  text-decoration: none;
}

.bcc-pcard__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bcc-pcard__price {
  font-family: var(--bcc-font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bcc-brand-teal);
  margin: 0.25rem 0;
}

.bcc-pcard__price del {
  display: block;
  font-size: 0.95rem;
  color: var(--bcc-muted-foreground);
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 0;
  margin-bottom: 0.1rem;
}

.bcc-pcard__price ins {
  display: block;
  background: none;
  text-decoration: none;
  color: var(--bcc-conseil);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Rating */
.bcc-pcard__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--bcc-font-sans);
  font-size: 0.9rem;
  color: var(--bcc-foreground);
  width: 100%;
}

.bcc-pcard__rating .bcc-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--bcc-gold);
}

.bcc-pcard__rating .bcc-stars svg {
  width: 14px;
  height: 14px; /* h-3.5 w-3.5 exacto de Lovable */
}

.bcc-pcard__rating strong {
  font-weight: 600;
}

/* Recommandations */
.bcc-pcard__recommand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--bcc-font-sans);
  font-size: 0.8rem;
  color: var(--bcc-muted-foreground);
  line-height: 1.3;
}

.bcc-pcard__recommand svg { color: var(--bcc-cta); }
.bcc-pcard__recommand strong { color: var(--bcc-foreground); font-weight: 600; }

/* Points fidélité badge */
.bcc-pcard__points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.4rem auto 0;
  padding: 0.45rem 0.9rem;
  background: rgba(209, 159, 71, 0.12);
  border: 1px solid rgba(209, 159, 71, 0.3);
  border-radius: 999px;
  font-family: var(--bcc-font-sans);
  font-size: 0.78rem;
  color: #a67a2e;
  font-weight: 600;
}

.bcc-pcard__points svg { color: var(--bcc-gold); }

/* Existe aussi pour */
.bcc-pcard__also {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bcc-pcard__also-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--bcc-font-sans);
  font-size: 0.8rem;
  color: var(--bcc-foreground);
}

.bcc-pcard__also-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* CTA */
.bcc-pcard__cta-wrap {
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
}

.bcc-pcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: #db0345;
  color: #fff;
  border-radius: 999px;
  font-family: var(--bcc-font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(219, 3, 69, 0.35); /* shadow más pronunciado como Lovable */
  min-height: 2.75rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  text-align: center;
}

.bcc-pcard__cta:hover {
  background: var(--bcc-conseil-hover);
  color: #fff;
  transform: translateY(-1px);
}

.bcc-pcard__cta.added {
  background: var(--bcc-cta) !important;
}

.bcc-pcard__cta svg { flex-shrink: 0; }

/* Oculta el result count y orderby default del loop para un feel más limpio */
.woocommerce-result-count { display: none !important; }
.woocommerce-ordering {
  position: absolute;
  top: 1rem;
  right: 2rem;
  margin: 0 !important;
}

.woocommerce-ordering select {
  padding: 0.55rem 0.9rem !important;
  border: 1px solid rgba(13, 73, 89, 0.2) !important;
  border-radius: 999px !important;
  font-family: var(--bcc-font-sans);
  font-size: 0.85rem;
  color: var(--bcc-brand-teal);
  background: #fff;
}

/* ── Out of stock — badge image + bouton ──────────────────── */
/* Overlay semi-opaque sur la zone image */
.bcc-product-card__oos-badge {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bcc-font-sans, 'DM Sans', sans-serif);
    font-size: .6875rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .06em;
    text-transform: uppercase;
    z-index: 5;
    border-radius: inherit;
    pointer-events: none;
}

/* Bouton désactivé dans la card */
.bcc-btn-cart--oos {
    background: var(--bcc-muted, #f1f5f9) !important;
    color: var(--bcc-muted-foreground, #94a3b8) !important;
    border: 2px solid var(--bcc-border, #e2e8f0) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 1 !important;
}
