/* Venty growth foundation: layout stability and checkout containment. */

html body:not(.wp-admin) img {
  height: auto;
}

html body:not(.wp-admin) li.wc-block-product,
html body:not(.wp-admin) li.product,
html body:not(.wp-admin) .wc-block-grid__product {
  min-width: 0;
}

html body:not(.wp-admin) li.wc-block-product .wc-block-components-product-image,
html body:not(.wp-admin) li.wc-block-product .wp-block-woocommerce-product-image,
html body:not(.wp-admin) li.product .woocommerce-loop-product__link > img,
html body:not(.wp-admin) .wc-block-grid__product .wc-block-grid__product-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

html body:not(.wp-admin) li.wc-block-product .wc-block-components-product-image img,
html body:not(.wp-admin) li.wc-block-product .wp-block-woocommerce-product-image img,
html body:not(.wp-admin) li.product .woocommerce-loop-product__link > img,
html body:not(.wp-admin) .wc-block-grid__product .wc-block-grid__product-image img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
}

html body.single-product:not(.wp-admin) .wc-block-product-gallery,
html body.single-product:not(.wp-admin) .wp-block-woocommerce-product-gallery {
  min-width: 0;
  contain: layout;
}

html body.single-product:not(.wp-admin) .wc-block-product-gallery-large-image,
html body.single-product:not(.wp-admin) .wc-block-product-gallery-large-image__container {
  width: 100%;
  min-height: clamp(420px, 54vw, 720px);
  box-sizing: border-box;
}

html body.single-product:not(.wp-admin) .wc-block-product-gallery-large-image img {
  width: 100%;
  height: 100% !important;
  max-height: 720px;
  object-fit: contain;
  object-position: center;
}

html body.single-product:not(.wp-admin) .wc-block-product-gallery-thumbnails {
  min-height: 92px;
}

html body.single-product:not(.wp-admin) .wc-block-product-gallery-thumbnails__thumbnail {
  flex: 0 0 72px;
  width: 72px;
  height: 82px;
}

html body.single-product:not(.wp-admin) .wc-block-product-gallery-thumbnails__thumbnail img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
}

html body.woocommerce-checkout:not(.wp-admin) form.checkout,
html body.woocommerce-checkout:not(.wp-admin) #customer_details,
html body.woocommerce-checkout:not(.wp-admin) #order_review,
html body.woocommerce-checkout:not(.wp-admin) .woocommerce-checkout-review-order,
html body.woocommerce-checkout:not(.wp-admin) .woocommerce-checkout-payment {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

html body.woocommerce-checkout:not(.wp-admin) .venty-checkout-order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

html body.woocommerce-checkout:not(.wp-admin) .venty-checkout-order-copy,
html body.woocommerce-checkout:not(.wp-admin) .venty-checkout-order-name,
html body.woocommerce-checkout:not(.wp-admin) .product-name,
html body.woocommerce-checkout:not(.wp-admin) .woocommerce-checkout-review-order-table td {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

html body.woocommerce-checkout:not(.wp-admin) #payment,
html body.woocommerce-checkout:not(.wp-admin) #payment ul.payment_methods,
html body.woocommerce-checkout:not(.wp-admin) #payment .payment_box,
html body.woocommerce-checkout:not(.wp-admin) #payment iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

html body:not(.wp-admin) .venty-zero-cart__close,
html body:not(.wp-admin) [data-venty-zero-cart-qty],
html body:not(.wp-admin) [data-venty-unified-cart-qty],
html body:not(.wp-admin) [data-venty-zero-cart-remove],
html body:not(.wp-admin) [data-venty-unified-cart-remove] {
  min-width: 44px;
  min-height: 44px;
}

@media (min-width: 1025px) {
  html body.tax-product_cat:not(.wp-admin) #venty-shop-hero {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.tax-product_cat:not(.wp-admin) #venty-shop-hero.is-long-title .venty-shop-hero__content {
    width: 100% !important;
    max-width: 560px !important;
  }

  html body.tax-product_cat:not(.wp-admin) #venty-shop-hero.is-long-title .venty-shop-hero__title,
  html body.tax-product_cat:not(.wp-admin) #venty-shop-hero.is-very-long-title .venty-shop-hero__title {
    display: block !important;
    width: 100% !important;
    max-width: 520px !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  html body.tax-product_cat:not(.wp-admin) #venty-shop-hero .venty-shop-hero__copy,
  html body.tax-product_cat:not(.wp-admin) #venty-shop-hero .venty-shop-hero__copy p {
    width: 100% !important;
    max-width: 500px !important;
  }

  html body.tax-product_cat:not(.wp-admin) #venty-shop-hero .venty-shop-hero__actions {
    width: 100% !important;
    max-width: 520px !important;
  }

  html body.tax-product_cat:not(.wp-admin) #venty-shop-hero .venty-shop-hero__actions::before,
  html body.woocommerce-shop:not(.wp-admin) #venty-shop-hero .venty-shop-hero__actions::before,
  html body.post-type-archive-product:not(.tax-product_cat):not(.wp-admin) #venty-shop-hero .venty-shop-hero__actions::before {
    content: "Browse the collection below" !important;
    display: block !important;
    margin: 0 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: rgba(255, 244, 222, 0.92) !important;
  }

  html body.page-id-2136:not(.wp-admin) .venty-category-browser__grid > .venty-category-card,
  html body.page-id-2136:not(.wp-admin) .venty-category-browser__grid > a.venty-category-card {
    grid-column: auto !important;
  }

  html body.page-id-2136:not(.wp-admin) .venty-category-browser__grid > .venty-category-card:last-child:nth-child(5n + 1),
  html body.page-id-2136:not(.wp-admin) .venty-category-browser__grid > a.venty-category-card:last-child:nth-child(5n + 1) {
    grid-column: 2 / span 3 !important;
  }

  html body.page-id-2136:not(.wp-admin) .venty-category-browser__grid > .venty-category-card:nth-last-child(2):nth-child(5n + 1),
  html body.page-id-2136:not(.wp-admin) .venty-category-browser__grid > a.venty-category-card:nth-last-child(2):nth-child(5n + 1) {
    grid-column: 2 / span 2 !important;
  }

  html body.page-id-2136:not(.wp-admin) .venty-category-browser__grid > .venty-category-card:last-child:nth-child(5n + 2),
  html body.page-id-2136:not(.wp-admin) .venty-category-browser__grid > a.venty-category-card:last-child:nth-child(5n + 2) {
    grid-column: 4 / span 2 !important;
  }
}

@media (max-width: 1024px) {
  html body.single-product:not(.wp-admin),
  html body.single-product:not(.wp-admin) .wp-site-blocks,
  html body.single-product:not(.wp-admin) main {
    overflow-x: clip !important;
  }

  html body.single-product:not(.wp-admin) main > .wp-block-group.alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  html body.single-product:not(.wp-admin) .wc-block-product-gallery-large-image,
  html body.single-product:not(.wp-admin) .wc-block-product-gallery-large-image__container {
    min-height: min(116vw, 560px);
  }

  html body.single-product:not(.wp-admin) .wc-block-product-gallery-thumbnails {
    min-height: 82px;
  }

  html body.single-product:not(.wp-admin) .wc-block-product-gallery-thumbnails__thumbnail {
    flex-basis: 64px;
    width: 64px;
    height: 72px;
  }

  html body.woocommerce-checkout:not(.wp-admin) .venty-checkout-order-item {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (min-width: 1025px) {
  html body.woocommerce-checkout:not(.wp-admin) form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.92fr) !important;
    column-gap: clamp(28px, 3vw, 48px) !important;
    width: min(1240px, calc(100vw - 64px)) !important;
    max-width: min(1240px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.woocommerce-checkout:not(.wp-admin) #order_review_heading,
  html body.woocommerce-checkout:not(.wp-admin) #order_review {
    width: 100% !important;
    max-width: 100% !important;
  }

  html body.woocommerce-checkout:not(.wp-admin) .woocommerce-checkout-review-order {
    overflow-x: hidden !important;
  }
}
