/* ================================================================
   Boutique WooCommerce — Graph'Art Studio
   Scope : body.ast-woo-shop-archive
   v1.3.0
   ================================================================ */

/* ── Corps de page — fond navy ──────────────────────────────────── */

body.ast-woo-shop-archive {
  background: var(--gas-color-bg-primary) !important;
}

/* ── Header sticky ─────────────────────────────────────────────── */

body.ast-woo-shop-archive #masthead,
body.ast-woo-shop-archive .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gas-color-bg-primary) !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.ast-woo-shop-archive .main-header-bar,
body.ast-woo-shop-archive .main-header-bar-wrap,
body.ast-woo-shop-archive .ast-main-header-wrap {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* ── Conteneurs transparents — fond navy du body passe à travers ── */

body.ast-woo-shop-archive #page,
body.ast-woo-shop-archive #content,
body.ast-woo-shop-archive .site-content,
body.ast-woo-shop-archive #primary,
body.ast-woo-shop-archive .content-area,
body.ast-woo-shop-archive .ast-container,
body.ast-woo-shop-archive .ast-woocommerce-container {
  background: transparent !important;
}

body.ast-woo-shop-archive .ast-woocommerce-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* ── Zone hero — fil d'Ariane et titre sur fond navy ─────────────── */

body.ast-woo-shop-archive .woocommerce-breadcrumb {
  padding: 28px 80px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

body.ast-woo-shop-archive .woocommerce-breadcrumb a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

body.ast-woo-shop-archive .woocommerce-products-header {
  padding: 48px 80px 64px;
}

body.ast-woo-shop-archive h1.woocommerce-products-header__title {
  font-family: var(--gas-font-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 200;
  color: var(--gas-color-text-primary);
  letter-spacing: -0.02em;
  line-height: 0.88;
  margin: 0;
}

/* ── Description de collection — zone navy header ─────────────── */

body.ast-woo-shop-archive .term-description {
  margin-top: 28px;
}

body.ast-woo-shop-archive .term-description p {
  font-family: var(--gas-font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gas-color-text-secondary);
  margin: 0;
}

body.ast-woo-shop-archive .term-description p + p {
  margin-top: 12px;
}

/* ── Zone grille — fond blanc injecté par PHP ────────────────────── */

body.ast-woo-shop-archive .gas-boutique-grid {
  background: #ffffff;
  padding: 48px 32px 64px;
}

/* ── Grille produits — CSS grid pour contrôle précis du gap ─────── */

body.ast-woo-shop-archive ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

/* ── Cartes produit ─────────────────────────────────────────────── */

body.ast-woo-shop-archive ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  border-radius: 4px;
  overflow: hidden;
  border: none;
}

/* ── Ratio 1:1 — override Astra qui force 4:3 ───────────────────── */

body.ast-woo-shop-archive ul.products li.product a img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  width: 100% !important;
  display: block;
  margin: 0 !important;
}

/* ── Désactiver le swap d'image natif WooCommerce ───────────────── */

body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-product__link img + img {
  display: none !important;
}

/* ── Zoom sur hover ─────────────────────────────────────────────── */

body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-product__link {
  overflow: hidden;
  display: block;
  border-bottom: none !important;
  box-shadow: none !important;
}

body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-product__link img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

body.ast-woo-shop-archive ul.products li.product:hover .woocommerce-loop-product__link img {
  transform: scale(1.06);
}

/* ── Bouton panier au survol Astra (on-card) — masqué ───────────── */

body.ast-woo-shop-archive .ast-on-card-button {
  display: none !important;
}

/* ── Titre produit ──────────────────────────────────────────────── */

body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--gas-font-display) !important;
  font-size: 18px !important;
  font-weight: 300;
  color: #b09b78 !important;
  padding: 10px 16px 14px;
  margin: 0;
}

/* ── Étiquette collection (catégorie Astra) ─────────────────────── */

body.ast-woo-shop-archive ul.products li.product .ast-woo-product-category {
  display: block;
  font-family: var(--gas-font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6a62;
  padding: 10px 16px 14px;
}

/* ── Prix — typo et couleur ─────────────────────────────────────── */

body.ast-woo-shop-archive ul.products li.product .price {
  font-style: normal !important;
  color: var(--gas-color-bg-primary) !important;
  margin-top: 8px;
}

body.ast-woo-shop-archive ul.products li.product .price .gas-price-from {
  font-family: var(--gas-font-body) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  margin-right: 6px;
}

body.ast-woo-shop-archive ul.products li.product .price .woocommerce-Price-amount {
  font-family: var(--gas-font-serif) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: var(--gas-color-bg-primary) !important;
}

/* ── Pied de carte — prix + bouton sur la même ligne ─────────────── */

body.ast-woo-shop-archive ul.products li.product .gas-card-footer {
  display: flex;
  align-items: stretch;
}

body.ast-woo-shop-archive ul.products li.product .gas-card-footer .price {
  flex: 1;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  padding: 14px 16px;
  display: flex;
  align-items: center;
}

body.ast-woo-shop-archive ul.products li.product .gas-card-footer a.button {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  color: var(--gas-color-accent) !important;
  font-size: 13px;
  padding: 14px 12px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

body.ast-woo-shop-archive ul.products li.product .gas-card-footer a.button:hover {
  color: var(--gas-color-bg-dark) !important;
  background: rgba(0, 0, 0, 0.03) !important;
}

/* ── Tri — masqué (inutile avec 4-6 produits par collection) ─────── */

body.ast-woo-shop-archive .woocommerce-ordering {
  display: none !important;
}

/* ── Focus reset ────────────────────────────────────────────────── */

body.ast-woo-shop-archive ul.products li.product a:focus,
body.ast-woo-shop-archive ul.products li.product a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */

/* Tablette 921-1199px — zone blanche avec marges + centrage texte */
@media (min-width: 921px) and (max-width: 1199px) {
  body.ast-woo-shop-archive .woocommerce-breadcrumb {
    padding: 24px var(--gas-gutter-tablet) 0;
  }
  body.ast-woo-shop-archive .woocommerce-products-header {
    padding: 40px var(--gas-gutter-tablet) 52px;
  }
  body.ast-woo-shop-archive .gas-boutique-grid {
    margin-left: var(--gas-gutter-tablet) !important;
    margin-right: var(--gas-gutter-tablet) !important;
    border-radius: 4px;
  }
  body.ast-woo-shop-archive ul.products li.product .ast-woo-product-category,
  body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-product__title {
    text-align: center !important;
  }
  body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap {
    text-align: center !important;
  }
  body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap a.button {
    display: inline-block !important;
    margin-top: 4px !important;
  }
}

@media (max-width: 920px) {
  body.ast-woo-shop-archive .woocommerce-breadcrumb {
    padding: 20px 24px 0;
  }
  body.ast-woo-shop-archive .woocommerce-products-header {
    padding: 32px 24px 40px;
  }
  body.ast-woo-shop-archive .term-description p {
    font-size: 15px;
  }
  /* Zone blanche : marges latérales + padding réduit */
  body.ast-woo-shop-archive .gas-boutique-grid {
    margin-left: var(--gas-gutter-mobile) !important;
    margin-right: var(--gas-gutter-mobile) !important;
    padding: 24px 16px 40px;
    border-radius: 4px;
  }
  /* Centrage du contenu carte sous l'image */
  body.ast-woo-shop-archive ul.products li.product .ast-woo-product-category,
  body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-product__title {
    text-align: center !important;
  }
  /* Prix et bouton dans astra-shop-summary-wrap (rendu Astra, pas gas-card-footer) */
  body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap {
    text-align: center !important;
  }
  body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap a.button {
    display: inline-block !important;
    margin-top: 4px !important;
  }
  body.ast-woo-shop-archive ul.products {
    grid-template-columns: 1fr !important;
  }
}
