@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&display=swap');

/* ==========================================================================
   Quarantined Global Product Cards
   Source: moved out of assets/css/styles.css.
   Scope: non-archive product cards, homepage bestsellers and routine finder.
   Do not load this file on WooCommerce product archive pages.
   ========================================================================== */

.product-grid,
.ingredient-grid,
.review-grid {
  display: grid;
  gap: 12px;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-section .product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: stretch;
}

.finder .product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: stretch;
}

.product-section .product-card,
.finder .product-card {
  display: flex;
  flex: 0 1 calc((100% - 48px) / 4);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 14px;
  overflow: visible;
  color: #171429;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  line-height: 1.45;
  background: #fff;
  border: 1px solid #ddd3c2;
  border-radius: 8px;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(36, 29, 42, 0.1);
}

.product-shot {
  display: grid;
  width: 100%;
  min-height: 0;
  place-items: center;
  aspect-ratio: 1 / 1.08;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 7px;
}

.shot-coral {
  background: #ff6b5c;
}

.shot-mint {
  background: #76dfc4;
}

.shot-lemon {
  background: #ffc72f;
}

.shot-lilac {
  background: #b78df7;
}

.product-shot img.product-bottle-image,
.product-bottle-image {
  display: block;
  width: min(62%, 210px);
  max-width: 210px;
  height: 82%;
  aspect-ratio: auto 300 / 300;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 24px rgba(36, 29, 42, 0.18));
}

.product-type {
  margin: 0 0 8px;
  color: #ff6b5c !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0 0 10px;
  padding: 0;
  color: #171429;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: none;
}

.product-card p:not(.product-type) {
  min-height: 50px;
  margin: 0;
  color: #65687a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.product-section .product-bottom .price,
.finder .product-bottom .price {
  color: #171429;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding-top: 0;
  font-weight: 950;
}

.product-bottom .price del,
.product-bottom .price del .amount,
.product-bottom .price del bdi,
.product-bottom .price del .woocommerce-Price-currencySymbol {
  color: #9f95a9;
}

.product-bottom .price del {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-color: rgba(159, 149, 169, 0.78);
  text-decoration-thickness: 1px;
}

.product-bottom .price del .amount,
.product-bottom .price del bdi,
.product-bottom .price del .woocommerce-Price-currencySymbol {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.product-bottom .price ins {
  text-decoration: none;
}

.product-bottom a.button.add-button,
.product-bottom button.add-button,
.product-bottom .add-button.is-view-cart,
.product-section .add-button,
.finder .add-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  max-width: none;
  min-height: 44px;
  height: 44px;
  margin-top: 1em;
  padding: 0 18px;
  color: #fff;
  background: #171429;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.product-bottom a.button.add-button:hover,
.product-bottom a.button.add-button:focus-visible,
.product-bottom .add-button.is-view-cart:hover,
.product-bottom .add-button.is-view-cart:focus-visible {
  color: #fff;
  background: #171429;
}

.product-section a.added_to_cart.wc-forward,
.finder a.added_to_cart.wc-forward {
  display: none;
}

@media (max-width: 1199px) {
  .product-section .product-grid,
  .finder .product-grid {
    gap: 10px;
  }

  .product-section .product-card,
  .finder .product-card {
    flex-basis: calc((100% - 20px) / 3);
  }
}

@media (max-width: 640px) {
  .product-section .product-card,
  .finder .product-card {
    flex-basis: calc((100% - 10px) / 2);
  }
}

@media (max-width: 430px) {
  .product-section .product-card,
  .finder .product-card {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .product-card {
    padding: 12px 12px 14px;
    border-radius: 7px;
  }

  .product-shot {
    margin-bottom: 17px;
    border-radius: 6px;
  }

  .product-shot img.product-bottle-image,
  .product-bottle-image {
    width: min(54%, 190px);
    max-width: 190px;
    height: 72%;
  }

  .product-type {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1;
  }

  .product-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.22;
  }

  .product-card p:not(.product-type) {
    min-height: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .product-bottom,
  .finder .product-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
  }

  .product-section .product-bottom .price,
  .product-bottom .price,
  .product-bottom .price .amount,
  .product-bottom .price .woocommerce-Price-currencySymbol,
  .finder .product-bottom .price {
    font-size: 15px;
    line-height: 1;
    margin-bottom: 0.5em;
  }

  .product-bottom a.button.add-button,
  .product-bottom button.add-button,
  .product-bottom .add-button.is-view-cart,
  .product-section .add-button,
  .finder .add-button {
    min-width: 108px;
    width: auto;
    max-width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-bottom,
  .finder .product-bottom {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .product-bottom a.button.add-button,
  .product-bottom button.add-button,
  .product-bottom .add-button.is-view-cart,
  .product-section .add-button,
  .finder .add-button {
    width: 100%;
    min-width: 0;
  }
}

.routine-product-grid {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.routine-product-grid .product-card.is-hidden {
  display: none;
}

.product-card[data-product-url] {
  cursor: pointer;
}

.product-card[data-product-url]:focus-visible {
  outline: 3px solid rgba(255, 114, 95, 0.35);
  outline-offset: 3px;
}

.product-section .add-button.is-loading,
.product-section .add-button.loading,
.finder .add-button.is-loading,
.finder .add-button.loading {
  pointer-events: none;
  opacity: 0.92;
}

.product-section .add-button.is-loading::before,
.product-section .add-button.loading::before,
.finder .add-button.is-loading::before,
.finder .add-button.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: viraaButtonSpin 0.72s linear infinite;
}

@keyframes viraaButtonSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Routine finder product-card parity */
.finder .product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding-top: 0;
  font-weight: 950;
}

.finder .product-bottom .price {
  color: #171429;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.finder .add-button.is-loading,
.finder .add-button.loading {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .finder .product-bottom .price {
    font-size: 15px;
    line-height: 1;
    margin-bottom: 0.5em;
  }
}

@media (max-width: 480px) {
  .finder .product-bottom {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }
}

@media (max-width: 980px) {
  .product-grid,
  .ingredient-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-grid,
  .ingredient-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}
