/* =============================================
   POMMECAN BIJOUX — Carte Produit
   Style GAS Bijoux : fond crème, pas de bordure, hover discret
   ============================================= */

/* ── Card Wrapper ── */
/* ── Card Wrapper ── */
.pom-product-card {
  position: relative;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pom-product-card__img-link {
  display: block;
  text-decoration: none;
}

/* ── Image wrap carré (fond transparent + object-fit contain) ── */
.pom-product-card__img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.875rem;
  background: transparent;
}

/* Image principale */
.pom-product-card__img-primary {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  padding: 0.75rem;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

/* 2ème image cachée par défaut */
.pom-product-card__img-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Au hover : cache image 1, affiche image 2 */
.pom-product-card:hover .pom-product-card__img-primary {
  opacity: 0;
}

.pom-product-card:hover .pom-product-card__img-secondary {
  opacity: 1;
}

/* Fallback : img sans classe (compatibilité) */
.pom-product-card__img-wrap img:not(.pom-product-card__img-primary):not(.pom-product-card__img-secondary) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

/* ── Badge haut gauche ── */
.pom-product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0D1B1E;
  z-index: 2;
  line-height: 1;
  display: block;
}

.pom-product-card__badge + .pom-product-card__badge {
  top: 2.2rem;
}

/* ── Wishlist haut droite ── */
.pom-product-card__wishlist {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #0D1B1E;
  z-index: 2;
  padding: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.pom-product-card:hover .pom-product-card__wishlist,
.pom-product-card__wishlist.is-active {
  opacity: 1;
}

.pom-product-card__wishlist.is-active svg {
  fill: #0D1B1E;
}

.pom-product-card__wishlist:hover {
  color: #1B6B77;
}

/* ══════════════════════════════════════════════════════════════
   Cœur favoris — un seul bouton, dans .pom-product-card__info sur
   la ligne du titre, aligné à droite, révélé au survol de la carte.
   DESKTOP UNIQUEMENT : masqué sous 769px (pas de survol au doigt).
   ══════════════════════════════════════════════════════════════ */
.pom-product-card__name-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.pom-wishlist-desktop {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  opacity: 0 !important;
  transition: opacity 0.25s !important;
  margin-top: 2px !important;
  line-height: 0 !important;
}

.pom-product-card:hover .pom-wishlist-desktop,
.pom-wishlist-desktop.is-active {
  opacity: 1 !important;
}

.pom-wishlist-desktop svg {
  stroke: #7A9499 !important;
  transition: stroke 0.25s, fill 0.25s !important;
}

.pom-wishlist-desktop:hover svg,
.pom-wishlist-desktop.is-active svg {
  stroke: #1B6B77 !important;
  fill: #1B6B77 !important;
}

/* Aucun favoris sur mobile */
@media (max-width: 768px) {
  .pom-wishlist-desktop {
    display: none !important;
  }
}

/* Hook natif blockwishlist : présent pour le module, jamais affiché */
.pom-wishlist-native {
  display: none !important;
}

/* Puits caché : reçoit le bouton natif blockwishlist injecté par JS (anti-doublon).
   Le cœur visible reste .pom-product-card__wishlist (.js-pom-wishlist). */
.edv-wishlist-sink {
  display: none !important;
}

/* Wishlist plat : cœur seul, sans fond rond ni cercle (custom + natif blockwishlist) */
.pom-product-card__wishlist,
.wishlist-button-add {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 4px !important;
}

.wishlist-button-add .material-icons {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 18px !important;
  color: #0D1B1E !important;
}

/* ── Cœur wishlist blanc (sur l'image) → teal rempli au hover ── */
.pom-product-card__wishlist,
.wishlist-button-add {
  color: #FFFFFF !important;
}

.pom-product-card__wishlist .material-icons,
.wishlist-button-add .material-icons {
  color: #FFFFFF !important;
}

.pom-product-card__wishlist svg,
.wishlist-button-add svg {
  stroke: #FFFFFF !important;
  fill: none !important;
}

/* Hover — rempli teal */
.pom-product-card__wishlist:hover .material-icons,
.wishlist-button-add:hover .material-icons {
  color: #1B6B77 !important;
}

.pom-product-card__wishlist:hover svg,
.wishlist-button-add:hover svg {
  stroke: #1B6B77 !important;
  fill: #1B6B77 !important;
}

/* ── Infos bas de carte ── */
.pom-product-card__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.8rem 0.5rem 1rem;
  gap: 0.5rem;
}

.pom-product-card__info {
  flex: 1;
  min-width: 0;
}

/* ── Nom produit ── */
/* Noms commerciaux propres en base (« Bague Feuillage ») depuis le renommage
   des 131 produits → plus aucune transformation de casse en CSS. */
.pom-product-card__name,
.pom-product-card .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #0D1B1E;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  min-height: 2.6em; /* 2 lignes : aligne prix et boutons entre les cartes */
}

.pom-product-card__name:hover {
  color: #7A9499;
}

/* ── Prix ── */
.pom-product-card__price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* __price--current est la classe réelle du thème ; les 2 autres couvrent
   le markup rendu par les modules (ps_newproducts, ps_featuredproducts). */
.pom-product-card__price--current,
.pom-product-card__price .price,
.pom-product-card .product-price-and-shipping .price {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1B6B77;
}

.pom-product-card__price--old {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #7A9499;
  text-decoration: line-through;
}

/* ── QUICK ADD DESKTOP — barre teal DANS l'image (absolute bottom), révélée
      au survol. Le bouton .pom-quick-desktop vit dans .__img-wrap.
      Sur mobile c'est .pom-quick-mobile (icône dans .__info) qui prend le relais. ── */
.pom-quick-mobile {
  display: none !important;
}
.pom-quick-desktop {
  display: flex !important;
}

.pom-product-card__quick-add {
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  position: absolute !important;
  bottom: 30px !important;
  left: 25px !important;
  right: 25px !important;
  background: rgba(27, 107, 119, 0.92) !important;
  color: #FFFFFF !important;
  border: none !important;
  padding: 11px 12px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-family: 'DM Sans', sans-serif !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease,
              transform 0.3s ease !important;
  transform: translateY(4px) !important;
  z-index: 3 !important;
}

.pom-product-card:hover .pom-product-card__quick-add {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.pom-product-card__quick-add:hover {
  background: rgba(19,79,89,0.98) !important;
}

/* Retire les anciennes actions hover */
.pom-product-card__actions {
  display: none !important;
}

/* ── BADGES repositionnés SOUS l'image ── */
.pom-product-card__badges,
.pom-product-card__img-wrap .product-flags {
  position: static !important;
}

/* Retire les badges de l'image */
.pom-product-card__img-wrap
.pom-product-card__badge {
  display: none !important;
}

/* Affiche les badges SOUS l'image, au dessus du nom */
.pom-product-card__body {
  position: relative;
}

.pom-product-card__flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.pom-product-card__flag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  font-family: 'DM Sans', sans-serif;
  display: inline-block;
}

.pom-product-card__flag--new {
  background: #EFF6F7;
  color: #1B6B77;
}

.pom-product-card__flag--sale {
  background: #0D1B1E;
  color: #FFFFFF;
}

.pom-product-card__flag--oos {
  background: #F5F5F5;
  color: #7A9499;
}

/* ── GRILLE 4 COLONNES ── */
.pom-product-grid,
.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

/* Conteneurs listing : reset liste, pas de filet gris entre les cards */
#js-product-list .products,
.products.row {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  width: 100% !important;
}

.product-miniature[class*="col-"] {
  padding: 0 !important;
}

@media (max-width: 1024px) {
  .pom-product-grid,
  .products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .pom-product-grid,
  .products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

/* ── Products section wrapper ── */
.pom-products-section {
  padding-block: var(--pom-space-3xl);
}

.pom-products-section__header {
  margin-bottom: var(--pom-space-2xl);
}

.pom-products-section__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--pom-space-2xl);
}

/* ── Compat action-btn (wishlist module) ── */
.pom-product-card__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--pom-black);
  border: none;
  background: none;
  transition: color var(--pom-transition);
}

.pom-product-card__action-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.pom-product-card__action-btn:hover {
  color: var(--pom-gold);
}

/* =============================================
   PAGE LISTING / CATALOGUE — Classes PS8 natives
   ============================================= */

/* ── Header catégorie ── */
.page-header {
  padding: 2rem 0;
  text-align: center;
}

.page-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0D1B1E;
  margin-bottom: 1rem;
}

.category-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #7A9499;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Sous-catégories ── */
.subcategories {
  padding: 2rem 0;
  border-bottom: 1px solid #EFF6F7;
}

.subcategories h2 {
  display: none;
}

.subcategories-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.subcategories-list li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0D1B1E;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border: 1px solid #EFF6F7;
}

.subcategories-list li a:hover {
  border-color: #1B6B77;
  color: #1B6B77;
}

/* ── Toolbar : tri et filtres ── */
.products-selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #EFF6F7;
  border-top: 1px solid #EFF6F7;
  margin: 1rem 0;
}

.products-sort-order,
.products-nb-per-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0D1B1E;
}

.products-sort-order select,
.products-nb-per-page select {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #0D1B1E;
  border: none;
  border-bottom: 1px solid #0D1B1E;
  background: transparent;
  padding: 0.2rem 1rem 0.2rem 0;
  cursor: pointer;
  appearance: none;
}

.filter-button {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0D1B1E;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Grille produits (listing) : la grille 4 colonnes est définie plus haut ── */
#js-product-list .products {
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

#js-product-list .products li.product-miniature {
  background: transparent;
  margin: 0;
  padding: 0;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #7A9499;
}

.pagination .page-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination a {
  color: #0D1B1E;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
}

.pagination .current a {
  border-bottom: 1px solid #1B6B77;
  color: #1B6B77;
}

/* ── Total produits ── */
.total-products {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #7A9499;
  text-transform: uppercase;
}

/* ── Sort select custom ── */
.pom-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pom-sort-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0D1B1E;
  white-space: nowrap;
}

.pom-sort-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #0D1B1E;
  background: transparent;
  border: none;
  border-bottom: 1px solid #0D1B1E;
  padding: 0.3rem 2rem 0.3rem 0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1A1A' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
}

.pom-sort-select:focus {
  outline: none;
}

/* Masquer le dropdown Classic non fonctionnel */
.products-sort-order .select-title,
.products-sort-order ul,
.products-sort-order .select-list,
.products-sort-order .dropdown-menu {
  display: none !important;
}

/* ── Listing toolbar ── */
.pom-listing__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid #EFF6F7;
  border-bottom: 1px solid #EFF6F7;
  margin: 0.75rem 0 1.25rem;
}

.pom-listing__toolbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pom-listing__count {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7A9499;
  margin: 0;
}

.pom-filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0D1B1E;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pom-filter-btn:hover {
  color: #1B6B77;
}

/* ── Category header ── */
.pom-listing__header {
  margin-bottom: 1.5rem;
}

.pom-listing__cover {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.pom-listing__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pom-listing__cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.pom-listing__cover-overlay .pom-listing__title {
  color: #fff;
}

.pom-listing__cover-overlay .pom-listing__desc {
  color: rgba(255,255,255,0.8);
}

.pom-listing__title-wrap {
  text-align: center;
  padding: 2rem 0 1rem;
}

.pom-listing__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #0D1B1E;
  margin: 0 0 0.5rem;
}

/* ── Filet or + centrage sous tous les titres catalogue ── */
.pom-listing__title {
  text-align: center;
}

.pom-listing__title::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background-color: #1B6B77;
  margin: 0.9rem auto 0;
}

/* Titre blanc sur image (cover) : filet doré conservé, lisible */
.pom-listing__cover-content .pom-listing__title::after {
  background-color: #1B6B77;
}

.pom-listing__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #7A9499;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Subcategories pills ── */
.pom-listing__subcats {
  margin-bottom: 1.5rem;
}

.pom-listing__subcat-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0D1B1E;
  text-decoration: none;
  padding: 0.4rem 1.25rem;
  border: 1px solid #EFF6F7;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.pom-listing__subcat-link:hover {
  border-color: #1B6B77;
  color: #1B6B77;
}

/* ── MINIATURES MOBILE : nom compact, prix plus visible ── */
@media (max-width: 640px) {
  .pom-product-card__name { font-size: 13px !important; }
  .pom-product-card__price--current,
  .pom-product-card__price .price {
    font-size: 14px !important;
    font-weight: 500 !important;
  }
  .pom-product-card__img-wrap { margin-bottom: 0.5rem !important; }
}

/* ═══════════════════════════════════════════
   SÉPARATEURS entre miniatures (pages catalogue/recherche)
   ═══════════════════════════════════════════ */
body#category .products,
body#search .products,
body#new-products .products,
body#prices-drop .products,
body#best-sales .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
}

body#category .pom-product-card,
body#search .pom-product-card,
body#new-products .pom-product-card,
body#prices-drop .pom-product-card,
body#best-sales .pom-product-card {
  border-right: 0.5px solid #EFF6F7 !important;
  border-bottom: 0.5px solid #EFF6F7 !important;
  padding: 0.3rem !important;
}

/* Retire bordure droite dernière colonne desktop (4ème) */
body#category .pom-product-card:nth-child(4n),
body#search .pom-product-card:nth-child(4n),
body#new-products .pom-product-card:nth-child(4n),
body#prices-drop .pom-product-card:nth-child(4n),
body#best-sales .pom-product-card:nth-child(4n) {
  border-right: none !important;
}

/* Mobile — 2 colonnes */
@media (max-width: 768px) {
  body#category .products,
  body#search .products,
  body#new-products .products,
  body#prices-drop .products,
  body#best-sales .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Rétablit la bordure droite sur les 4ème (colonne gauche en 2 col) */
  body#category .pom-product-card:nth-child(4n),
  body#search .pom-product-card:nth-child(4n),
  body#new-products .pom-product-card:nth-child(4n),
  body#prices-drop .pom-product-card:nth-child(4n),
  body#best-sales .pom-product-card:nth-child(4n) {
    border-right: 0.5px solid #EFF6F7 !important;
  }
  /* Retire bordure droite dernière colonne mobile (2ème) */
  body#category .pom-product-card:nth-child(2n),
  body#search .pom-product-card:nth-child(2n),
  body#new-products .pom-product-card:nth-child(2n),
  body#prices-drop .pom-product-card:nth-child(2n),
  body#best-sales .pom-product-card:nth-child(2n) {
    border-right: none !important;
  }
}

/* ── MINIATURE MOBILE : badge « Nouveau » en haut-gauche de l'image,
      icône panier alignée avec le titre (dans .__info) ── */
@media (max-width: 768px) {
  /* Badge repositionné sur l'image (coin haut-gauche) */
  .pom-product-card__flags {
    position: absolute !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
    z-index: 3 !important;
    margin: 0 !important;
  }

  .pom-product-card__body {
    padding: 0.5rem !important;
    /* static → le badge absolu s'ancre à la carte (coin de l'image), pas à l'info */
    position: static !important;
  }

  /* Titre + icône sur la même ligne ; prix en dessous */
  .pom-product-card__info {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: start !important;
    gap: 0 0.5rem !important;
  }

  /* Le nom est maintenant dans .__name-row : c'est LUI le fils de la grille */
  .pom-product-card__name-row {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
  }

  .pom-product-card__name {
    grid-column: 1 !important;
    font-size: 13px !important;
    margin: 0 !important;
  }

  .pom-product-card__price {
    grid-column: 1 !important;
    margin-top: 4px !important;
  }

  /* Bouton desktop masqué ; icône mobile en colonne 2, ligne du titre */
  .pom-quick-desktop {
    display: none !important;
  }

  .pom-quick-mobile {
    display: flex !important;
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    cursor: pointer !important;
  }
}
