/* ================================================
   PR Products Loop — Wine Shop Grid
   ================================================ */

/* --- Grid ---------------------------------------- */

.pr-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* grid-template-columns: repeat(3, 1fr); */
  column-gap: 60px;
  row-gap: 80px;
  padding: 2rem 0;
}

@media (max-width: 1024px) {
  .pr-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pr-products-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Card ---------------------------------------- */

.pr-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: "Georgia", serif;
  color: #2c2c2c;
}

.pr-product-card--unavailable {
  opacity: 0.75;
}

/* --- Header -------------------------------------- */

.pr-card__title {
  /* padding: 0 0 0.6rem 0; */
  /* border-bottom-left-radius: 10px; */
  /* border-bottom-right-radius: 10px; */
  /* background: #f3f3f3; */
  padding: 20px 0 0 0;
}

.pr-card__title-link {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: left;
}

.pr-card__title-link:hover .pr-card__producer {
  text-decoration: underline;
}

.pr-card__producer {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}

.pr-card__appellation {
  display: block;
  font-size: 0.78rem;
  color: #b08040;
  font-style: italic;
  margin-top: 0.1rem;
  line-height: 1.3;
}

.pr-card__millesime {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 0.2rem;
}

/* --- Body ---------------------------------------- */

.pr-card__body {
  display: flex;
  flex: 1;
  background-color: #f3f3f3;
  /* border-top-left-radius: 10px; */
  /* border-top-right-radius: 10px; */
  border-radius: 5px;
  /* overflow: hidden; */
  /* overflow-x: hidden; */
  /* min-height: 280px; */
}

/* Image */
.pr-card__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  flex-shrink: 0;
  padding: 0;
}

.pr-card__image-wrap img {
  display: block;
  /* max-height: 220px; */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: translateY(-20px);
}

/* Details panel */
.pr-card__details {
  flex: 1;
  padding: 0 0.5rem 0 0;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.pr-card__detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.pr-card__detail-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: contain;
}

.pr-card__detail-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.pr-card__detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b08040;
}

.pr-card__detail-value {
  font-size: 0.82rem;
  color: #2c2c2c;
  white-space: pre-line;
}

/* --- Footer -------------------------------------- */

.pr-card__footer {
  padding: 0.75rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Unavailable */
.pr-card__unavailable {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
  font-style: italic;
}

/* Price */
.pr-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
  border-top: 1px solid #cfcfcf;
  padding-top: 15px;
  margin-top: 8px;
  margin-bottom: 15px;
}

.pr-card__volume {
  font-size: 0.78rem;
  color: #666;
}

.pr-card__price-row .woocommerce-Price-amount,
.pr-card__price-row .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
}

.pr-card__price-row .woocommerce-Price-currencySymbol {
  font-size: 0.85rem;
  vertical-align: super;
}

/* Actions : quantité + bouton panier */
.pr-card__actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* Bloc quantité -/input/+ */
.pr-qty {
  display: flex;
  align-items: stretch;
  border: 1px solid #e1e1e1;
  height: 2.6rem;
  flex-shrink: 0;
}

.pr-qty__btn {
  background: #f3f3f3;
  /* color: #C09158; */
  border: none;
  width: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.pr-qty__btn:hover {
  background: #5a4020;
}

.pr-qty__input {
  width: 2.4rem;
  text-align: center;
  border: none;
  border-left: 1px solid #e1e1e1;
  border-right: 1px solid #e1e1e1;
  font-size: 0.9rem;
  -moz-appearance: textfield;
  background: #fff;
  color: #1a1a1a;
}

.pr-qty__input::-webkit-inner-spin-button,
.pr-qty__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Bouton ajouter au panier */
.pr-add-to-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* background-color: #C09158; */
  color: #c09158 !important;
  border: 1px solid rgba(0, 0, 0, 0);
  padding: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  height: 2.6rem;
}

.pr-add-to-cart:hover {
  /* background-color: #5a4020; */
  border: 1px solid #c09158;
}

/* WooCommerce injecte une flèche > via ::after sur .add_to_cart_button */
.pr-add-to-cart.add_to_cart_button::after {
  display: none !important;
}

/* Rating */
.pr-card__rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pr-card__rating .star-rating {
  font-size: 0.85rem;
  color: #ccc;
  width: auto;
}

.pr-card__rating .star-rating::before {
  color: #ccc;
}

.pr-card__rating .star-rating span::before {
  color: #b08040;
}

.pr-card__review-count {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Pagination ---------------------------------- */

.pr-pagination {
  display: flex;
  justify-content: center;
  padding: 2rem 0 1rem;
}

.pr-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.pr-pagination li a,
.pr-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid #ccc;
  color: #2c2c2c;
  text-decoration: none;
  font-size: 0.85rem;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.pr-pagination li a:hover {
  background-color: #f3f3f3;
  border-color: #b08040;
  color: #b08040;
}

.pr-pagination li.pr-pagination__item--active span,
.pr-pagination li span.current {
  background-color: #c09158;
  border-color: #c09158;
  color: #fff;
  font-weight: 700;
}

/* --- No products --------------------------------- */

.pr-no-products {
  padding: 2rem;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* ------------------------------ */
/* ------------------------------ */
/* filtre  */
/* ------------------------------ */
/* ------------------------------ */

.wpc-filter-set-widget-title {
  display: none;
}

.et_pb_widget_area_left {
  border-right: none;
  padding-right: 0 !important;
}

/* ajouté au panier / voir panier  */
.pr-card__actions {
  position: relative;
  overflow: visible;
}

.pr-product-card {
  overflow: visible;
}
.pr-product-card .added_to_cart {
  position: absolute;
  bottom: -45px;
  right: calc(50% - 60px);
  color: var(--main);
  border-radius: 5px;
  border: 1px solid var(--main);
  padding: 5px;
  width: 120px;
  font-family: sans-serif;
  text-align: center;
}
.pr-product-card .added_to_cart:hover {
  background-color: var(--main);
  color: white;
}
.wpc-filter-title {
  font-weight: bold;
  font-family: "Georgia", serif !important;
}
/* btn  */
/* Pendant le chargement AJAX */
.pr-add-to-cart.loading {
  background: rgb(255, 235, 197);
  animation: add_to_cart_btn_loading 0.8s ease-in-out infinite;
}

/* Après l'ajout réussi */
.pr-add-to-cart.added {
  animation: add_to_cart_btn_added 0.5s ease-out;
  background: none;
}

/* pastille  */
.pr-card__badge {
  position: absolute;
  height: 38px;
  width: 38px;
  left: -19px;
}
.pr-card__badge--bio {
  top: 10px;
}
.pr-card__badge--vegan {
  top: 55px;
}

@keyframes add_to_cart_btn_loading {
  0%,
  100% {
    background: rgb(255, 235, 197);
  }
  50% {
    background: rgb(255, 215, 150);
  }
}

@keyframes add_to_cart_btn_added {
  0% {
    transform: scale(1);
    background: rgb(231, 255, 217);
  }
  50% {
    transform: scale(1.05);
    background: rgb(180, 240, 160);
  }
  100% {
    transform: scale(1);
    background: none;
  }
}

