/* =========================================================
   by osmy — WooCommerce Product
   Semana con Propósito
   Requires tokens.css
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

body.os-site .os-product-hero {
  padding-block: clamp(3rem, 6vw, 6rem);

  background: var(--os-paper);

  color: var(--os-ink);
}

body.os-site .os-product-hero__grid {
  width: calc(100% - (var(--os-gutter) * 2)) !important;
  max-width: var(--os-container-max) !important;

  margin-inline: auto !important;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

body.os-site .os-product-gallery {
  width: 100%;
}

body.os-site .os-product-gallery .woocommerce-product-gallery {
  width: 100% !important;
}

body.os-site .os-product-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

body.os-site .os-product-gallery .woocommerce-product-gallery__image {
  overflow: hidden;

  border-radius: var(--os-radius-lg);

  background: var(--os-paper-2);
}

body.os-site .os-product-gallery .woocommerce-product-gallery__image img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;
}


/* ---------- THUMBNAILS ---------- */

body.os-site .os-product-gallery .flex-control-thumbs {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: var(--os-space-3);

  margin-top: var(--os-space-3) !important;
}

body.os-site .os-product-gallery .flex-control-thumbs li {
  width: auto !important;

  margin: 0 !important;
}

body.os-site .os-product-gallery .flex-control-thumbs img {
  overflow: hidden;

  border: 1px solid transparent;
  border-radius: var(--os-radius-sm);

  opacity: 0.65;

  transition:
    opacity var(--os-motion-fast) var(--os-ease),
    border-color var(--os-motion-fast) var(--os-ease);
}

body.os-site .os-product-gallery .flex-control-thumbs img:hover,
body.os-site .os-product-gallery .flex-control-thumbs img.flex-active {
  border-color: var(--os-wine);

  opacity: 1;
}


/* =========================================================
   CONTENT COLUMN
   ========================================================= */

body.os-site .os-product-hero__grid .et_pb_column:last-child {
  display: flex;
  flex-direction: column;

  justify-content: center;
}


/* =========================================================
   EYEBROW
   ========================================================= */

body.os-site .os-product-hero .os-eyebrow {
  display: block;

  margin-bottom: var(--os-space-4);
}


/* =========================================================
   TITLE
   ========================================================= */

body.os-site .os-product-title {
  margin-bottom: var(--os-space-4) !important;
}

body.os-site .os-product-title h1 {
  max-width: 12ch;

  margin: 0;

  color: var(--os-ink);

  font-family: var(--os-font-display);
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  font-weight: var(--os-weight-regular);
  line-height: 0.98;

  letter-spacing: -0.035em;
}


/* =========================================================
   PRICE
   ========================================================= */

body.os-site .os-product-price {
  margin-bottom: var(--os-space-5) !important;
}

body.os-site .os-product-price .price {
  margin: 0;

  color: var(--os-wine);

  font-family: var(--os-font-display);
  font-size: clamp(1.65rem, 1.4rem + 0.8vw, 2.15rem);
  font-weight: var(--os-weight-regular);
  line-height: 1.1;
}

body.os-site .os-product-price del {
  color: var(--os-color-text-muted);

  opacity: 0.55;
}

body.os-site .os-product-price ins {
  text-decoration: none;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

body.os-site .os-product-description {
  max-width: 36rem;

  margin-bottom: var(--os-space-6) !important;
}

body.os-site .os-product-description,
body.os-site .os-product-description p {
  color: var(--os-color-text-secondary);

  font-family: var(--os-font-body);
  font-size: var(--os-type-lead);
  line-height: 1.55;
}

body.os-site .os-product-description p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   PRODUCT FACTS
   ========================================================= */

body.os-site .os-product-facts {
  display: flex;
  flex-wrap: wrap;

  gap: var(--os-space-2);

  max-width: 38rem;

  margin-bottom: var(--os-space-6);
}

body.os-site .os-product-facts span {
  display: inline-flex;
  align-items: center;

  min-height: 2.15rem;

  padding:
    0.45rem
    0.75rem;

  border: 1px solid var(--os-color-border);
  border-radius: 999px;

  color: var(--os-color-text-secondary);

  font-family: var(--os-font-body);
  font-size: 0.75rem;
  font-weight: var(--os-weight-medium);
  line-height: 1;
}


/* =========================================================
   ADD TO CART
   ========================================================= */

body.os-site .os-product-cart {
  width: 100%;

  max-width: 38rem;

  margin-bottom: var(--os-space-4) !important;
}

body.os-site .os-product-cart form.cart {
  display: flex;

  gap: var(--os-space-3);

  width: 100%;

  margin: 0 !important;
}


/* ---------- QUANTITY ---------- */

body.os-site .os-product-cart .quantity {
  flex: 0 0 auto;

  margin: 0 !important;
}

body.os-site .os-product-cart .quantity input.qty {
  width: 4.25rem;
  height: 3.75rem;

  padding: 0.75rem;

  border: 1px solid var(--os-color-border);
  border-radius: var(--os-radius-sm);

  background: var(--os-paper);

  color: var(--os-ink);

  font-family: var(--os-font-body);
  font-size: 0.95rem;

  text-align: center;

  box-shadow: none;
}


/* ---------- BUTTON ---------- */

body.os-site .os-product-cart .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  flex: 1 1 auto;

  min-height: 3.75rem;

  padding:
    0.9rem
    1.5rem !important;

  border: 1px solid var(--os-wine) !important;
  border-radius: var(--os-radius-sm) !important;

  background: var(--os-wine) !important;

  color: var(--os-paper) !important;

  font-family: var(--os-font-body) !important;
  font-size: var(--os-type-button) !important;
  font-weight: var(--os-weight-bold) !important;
  line-height: 1 !important;

  letter-spacing: 0.035em !important;

  text-transform: none !important;

  transition:
    background-color var(--os-motion-fast) var(--os-ease),
    border-color var(--os-motion-fast) var(--os-ease),
    transform var(--os-motion-fast) var(--os-ease);
}

body.os-site .os-product-cart .single_add_to_cart_button:hover {
  border-color: var(--os-wine-deep) !important;

  background: var(--os-wine-deep) !important;

  transform: translateY(-1px);
}

body.os-site .os-product-cart .single_add_to_cart_button::after {
  display: none !important;
}


/* =========================================================
   PURCHASE NOTE
   ========================================================= */

body.os-site .os-product-purchase-note {
  display: flex;
  flex-direction: column;

  gap: 0.2rem;

  max-width: 38rem;
}

body.os-site .os-product-purchase-note p {
  margin: 0;

  color: var(--os-color-text-muted);

  font-family: var(--os-font-body);
  font-size: 0.75rem;
  line-height: 1.5;
}


/* =========================================================
   WOOCOMMERCE MESSAGES
   ========================================================= */

body.os-site .woocommerce-message,
body.os-site .woocommerce-info,
body.os-site .woocommerce-error {
  border: 0;
  border-radius: var(--os-radius-sm);

  background: var(--os-paper-2);

  color: var(--os-ink);

  font-family: var(--os-font-body);

  box-shadow: none;
}

body.os-site .woocommerce-message::before,
body.os-site .woocommerce-info::before {
  color: var(--os-wine);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  body.os-site .os-product-hero__grid {
    display: grid !important;

    grid-template-columns: 1fr;

    gap: var(--os-space-8);
  }

  body.os-site .os-product-hero__grid .et_pb_column {
    width: 100% !important;

    margin: 0 !important;
  }

  body.os-site .os-product-gallery {
    max-width: 42rem;

    margin-inline: auto;
  }

  body.os-site .os-product-hero__grid .et_pb_column:last-child {
    max-width: 42rem;

    margin-inline: auto !important;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  body.os-site .os-product-hero {
    padding-top: var(--os-space-6);
  }

  body.os-site .os-product-title h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  body.os-site .os-product-description,
  body.os-site .os-product-description p {
    font-size: 1.05rem;
  }

  body.os-site .os-product-cart form.cart {
    flex-direction: column;
  }

  body.os-site .os-product-cart .quantity,
  body.os-site .os-product-cart .quantity input.qty {
    width: 100%;
  }

  body.os-site .os-product-cart .single_add_to_cart_button {
    width: 100%;
  }

}