/* ==========================================================================
   BENJA Fashion – habillage inspiré du thème Pipeline (éditorial, épuré)
   ========================================================================== */

:root {
  --benja-ink: #141414;
  --benja-muted: #6b645c;
  --benja-cream: #f6f1ea;
  --benja-sand: #e9e0d3;
  --benja-gold: #a8875a;
  --benja-line: #e6e1da;
  --benja-serif: 'Amiri', 'Times New Roman', serif;
  --benja-sans: 'Tajawal', var(--font-family);
  --benja-gutter: clamp(16px, 4vw, 56px);
  --benja-space: clamp(56px, 8vw, 110px);
}

body {
  font-family: var(--benja-sans);
  color: var(--benja-ink);
  -webkit-font-smoothing: antialiased;
}

* {
  font-family: inherit;
}

h1, h2, h3, h4,
.h1, .h2, .h3, .h4,
.section-title, .heading {
  font-family: var(--benja-serif);
  font-weight: 400;
  letter-spacing: 0;
}

/* Boutons carrés, majuscules espacées (Pipeline) */
button.primary,
.yc-btn.primary {
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Utilitaires BENJA
   -------------------------------------------------------------------------- */

.benja-section {
  padding: var(--benja-space) var(--benja-gutter);
}

.benja-heading {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.benja-eyebrow {
  font-family: var(--benja-sans);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.85;
}

.benja-title {
  font-family: var(--benja-serif);
  font-size: clamp(2.8rem, 3.6vw, 4.4rem);
  line-height: 1.25;
  font-weight: 400;
}

.benja-rule {
  display: block;
  width: 40px;
  height: 2px;
  margin: 20px auto 0;
  background: currentColor;
  opacity: 0.25;
}

.benja-center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.benja-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 16px 34px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--benja-ink);
  border: 1px solid var(--benja-ink);
  border-radius: 0;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.benja-btn:hover {
  background: transparent;
  color: var(--benja-ink);
}

.benja-btn--light {
  color: var(--benja-ink);
  background: #fff;
  border-color: #fff;
}

.benja-btn--light:hover {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

.benja-btn--outline {
  color: var(--benja-ink);
  background: transparent;
}

.benja-btn--outline:hover {
  color: #fff;
  background: var(--benja-ink);
}

.benja-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--benja-ink);
}

.benja-link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.benja-link:hover::after {
  transform: scaleX(1);
}

.benja-link--light {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.benja-hero {
  position: relative;
  height: var(--hero-height, 85vh);
  min-height: 480px;
  overflow: hidden;
  color: var(--hero-text, #fff);
  background: var(--benja-ink);
}

.benja-hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.benja-hero__panel {
  overflow: hidden;
}

.benja-hero__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: benja-zoom 14s ease-out both;
}

.benja-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, var(--hero-overlay, 0.35)) 55%, rgba(0, 0, 0, calc(var(--hero-overlay, 0.35) + 0.15)) 100%);
}

.benja-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--benja-gutter);
  text-align: center;
  animation: benja-rise 1s 0.2s ease both;
}

.benja-hero__title {
  max-width: 900px;
  font-size: clamp(3.6rem, 6vw, 7.2rem);
  line-height: 1.2;
  color: inherit;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.benja-hero__text {
  max-width: 560px;
  margin-top: 16px;
  font-size: clamp(1.5rem, 1.6vw, 1.8rem);
  color: inherit;
  opacity: 0.92;
}

.benja-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 36px;
  margin-top: 34px;
}

@keyframes benja-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes benja-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .benja-hero__media {
    grid-template-columns: 1fr;
  }
  .benja-hero__panel:not(:first-child) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Catégories
   -------------------------------------------------------------------------- */

.benja-collections__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 12px;
}

.benja-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.4;
  color: #fff;
  background: var(--benja-sand);
}

.benja-tile__media,
.benja-tile__media img {
  width: 100%;
  height: 100%;
}

.benja-tile__media img {
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.benja-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55));
}

.benja-tile:hover .benja-tile__media img {
  transform: scale(1.06);
}

.benja-tile__content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 28px 20px;
  text-align: center;
}

.benja-tile__title {
  font-size: clamp(2.4rem, 2.4vw, 3.2rem);
  color: #fff;
  margin-bottom: 6px;
}

@media (max-width: 990px) {
  .benja-collections__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Lookbook
   -------------------------------------------------------------------------- */

.benja-lookbook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  background: var(--look-bg, var(--benja-cream));
}

.benja-lookbook[data-reverse='true'] .benja-lookbook__media {
  order: 2;
}

.benja-lookbook__media {
  min-height: 620px;
  overflow: hidden;
}

.benja-lookbook__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benja-lookbook__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--benja-space) var(--benja-gutter);
  text-align: center;
}

.benja-lookbook__text {
  max-width: 440px;
  margin-top: 24px;
  font-size: 1.7rem;
  line-height: 1.9;
  color: var(--benja-muted);
}

.benja-lookbook__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
}

@media (max-width: 768px) {
  .benja-lookbook {
    grid-template-columns: 1fr;
  }
  .benja-lookbook__media {
    order: 0 !important;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

/* --------------------------------------------------------------------------
   Avantages
   -------------------------------------------------------------------------- */

.benja-features {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--feat-bg, #fff);
  border-block: 1px solid var(--benja-line);
}

.benja-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.benja-feature {
  text-align: center;
}

.benja-feature__icon {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--benja-gold);
}

.benja-feature__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.benja-feature__text {
  margin-top: 6px;
  font-size: 1.4rem;
  color: var(--benja-muted);
}

@media (max-width: 768px) {
  .benja-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Galerie TikTok
   -------------------------------------------------------------------------- */

.benja-gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.benja-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  background: var(--benja-sand);
}

.benja-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease, filter 0.4s;
}

.benja-gallery__badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}

.benja-gallery__item:hover img {
  transform: scale(1.06);
}

.benja-gallery__item:hover .benja-gallery__badge {
  opacity: 1;
}

@media (max-width: 990px) {
  .benja-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Vente en gros
   -------------------------------------------------------------------------- */

.benja-wholesale {
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(168, 135, 90, 0.35), transparent 45%),
    var(--benja-ink);
  text-align: center;
}

.benja-wholesale__inner {
  max-width: 760px;
  margin: 0 auto;
}

.benja-wholesale .benja-title {
  color: #fff;
}

.benja-wholesale__text {
  margin-top: 18px;
  font-size: 1.7rem;
  line-height: 1.9;
  opacity: 0.8;
}

.benja-wholesale__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.benja-wholesale__address {
  font-size: 1.4rem;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Bouton WhatsApp flottant
   -------------------------------------------------------------------------- */

.benja-whatsapp {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s;
}

.benja-whatsapp:hover {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Logo par défaut (header / footer)
   -------------------------------------------------------------------------- */

.benja-default-logo {
  display: block;
  width: var(--header-logo-width, 70px);
  height: auto;
}

footer .benja-default-logo {
  width: var(--footer-logo-width, 70px);
}

/* --------------------------------------------------------------------------
   Achat direct : bouton sur les cartes produit + formulaire express
   -------------------------------------------------------------------------- */

.product-card {
  overflow: hidden;
}

.product-card .img-link img {
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .img-link img {
  transform: scale(1.05);
}

.product-card .info .title {
  font-size: 1.5rem;
  font-weight: 500;
}

.product-card .info .price .current {
  font-weight: 700;
}

.product-card .info .yc-btn.benja-buy {
  width: 100%;
  margin-block-start: 0.6em;
  padding: 12px 16px;
  font-weight: 700;
  color: #fff;
  background: var(--benja-ink);
  border: 1px solid var(--benja-ink);
  border-radius: 0;
}

.product-card .info .yc-btn.benja-buy:hover {
  color: var(--benja-ink);
  background: transparent;
}

/* Formulaire de commande express sur la fiche produit */
.single-product .express-checkout {
  border: 1px solid var(--benja-ink) !important;
  border-radius: 0 !important;
}

.single-product .express-checkout .header {
  font-weight: 700;
  background: var(--benja-cream);
}

.single-product .place-order button.primary,
.single-product [data-sticky] button.primary {
  flex: 1;
  min-height: 52px;
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--benja-ink);
  border-color: var(--benja-ink);
  border-radius: 0;
  animation: benja-pulse 2.4s ease-in-out infinite;
}

@keyframes benja-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 20, 20, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(20, 20, 20, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .single-product .place-order button.primary,
  .single-product [data-sticky] button.primary,
  .benja-hero__panel img,
  .benja-hero__content {
    animation: none;
  }
}

/* Grille produits : 3 colonnes sur tablette, 2 sur mobile (au lieu d'1) */
@media (max-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .product-card .info {
    padding: 10px 8px !important;
  }
  .product-card .info .title {
    font-size: 1.3rem;
  }
  .product-card .info .yc-btn.benja-buy {
    padding: 10px 6px;
    font-size: 1.3rem;
  }
}

/* --------------------------------------------------------------------------
   Couvertures de l'accueil
   -------------------------------------------------------------------------- */

.benja-covers {
  position: relative;
  display: block;
}

.benja-covers__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.benja-covers__track {
  display: grid;
}

.benja-covers__slide {
  grid-area: 1 / 1;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.benja-covers__slide[data-active] {
  opacity: 1;
  visibility: visible;
}

.benja-covers__slide img {
  display: block;
  width: 100%;
  height: auto;
}

.benja-covers__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.benja-covers__dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  opacity: 0.5;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.benja-covers__dots button[data-active] {
  opacity: 1;
}
