/* PupVibes 8.10.61 — Boutique cards + Studio preview replaces native image */
@media (min-width: 768px) {
  body#category .pv-shop-page .products,
  body#category .page--full-width .pv-shop-page .products {
    row-gap: 14px !important;
    column-gap: 14px !important;
    align-items: start !important;
  }

  body#category .pv-shop-page .product-miniature.pv-boutique-card {
    width: auto !important;
    max-width: none !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    margin: 0 !important;
  }

  body#category .pv-shop-page .product-miniature.pv-boutique-card .product-miniature__inner {
    box-sizing: border-box !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    padding: 9px !important;
    border: 1px solid rgba(76, 51, 31, .05) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(82, 55, 29, .07) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body#category .pv-shop-page .product-miniature.pv-boutique-card:hover .product-miniature__inner {
    box-shadow: 0 6px 18px rgba(82, 55, 29, .10) !important;
  }

  /* The source is now the large/original-ratio image, so contain really shows the WHOLE photo. */
  body#category .pv-shop-page .product-miniature.pv-boutique-card .product-miniature__top {
    position: relative !important;
    height: 214px !important;
    min-height: 214px !important;
    max-height: 214px !important;
    flex: 0 0 214px !important;
    margin: 0 !important;
    border-radius: 13px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body#category .pv-shop-page .product-miniature.pv-boutique-card .product-miniature__image-container,
  body#category .pv-shop-page .product-miniature.pv-boutique-card .product-miniature__image-link,
  body#category .pv-shop-page .product-miniature.pv-boutique-card .product-miniature__image-container picture {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body#category .pv-shop-page .product-miniature.pv-boutique-card .product-miniature__image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    border-radius: 11px !important;
    transform: none !important;
  }

  body#category .pv-shop-page .product-miniature.pv-boutique-card .product-miniature__bottom {
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    padding: 7px 2px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body#category .pv-shop-page .product-miniature.pv-boutique-card .pv-boutique-start-price {
    margin: 0 0 4px !important;
    color: #9a8b7e !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
  }

  body#category .pv-shop-page .product-miniature.pv-boutique-card .product-miniature__title {
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    color: #bc5a16 !important;
    font-size: 14px !important;
    line-height: 17px !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  body#category .pv-shop-page .pv-boutique-card-foot {
    width: 100% !important;
    min-height: 34px !important;
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  body#category .pv-shop-page .pv-boutique-variants {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: calc(100% - 42px) !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    background: #fff8e9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow: hidden !important;
    flex: 0 1 auto !important;
  }

  body#category .pv-shop-page .pv-boutique-variants-label {
    margin: 0 !important;
    color: #806b58 !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body#category .pv-shop-page .product-miniature__variants {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body#category .pv-shop-page .product-miniature__variants .color,
  body#category .pv-shop-page .product-miniature__variants .texture,
  body#category .pv-shop-page .product-miniature__variants .input-color__label {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    border-radius: 4px !important;
  }

  body#category .pv-shop-page .pv-boutique-card-action,
  body#category .pv-shop-page .pv-boutique-card-action form {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 0 0 auto !important;
  }

  body#category .pv-shop-page .pv-boutique-cart-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: grid !important;
    place-items: center !important;
  }

  body#category .pv-shop-page .pv-boutique-cart-button .pv-cart-svg,
  body#category .pv-shop-page .pv-boutique-cart-button .pv-details-svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
  }

  /* Hide only truly empty/native-less holders. Studio adds .pv-has-colors. */
  body#category .pv-shop-page .pv-boutique-variants:not(.pv-has-native-colors):not(.pv-has-colors) {
    display: none !important;
  }

  body#category .pv-shop-page .pv-boutique-variants.pv-has-colors,
  body#category .pv-shop-page .pv-boutique-variants.pv-has-native-colors {
    display: flex !important;
  }
}


/* 8.10.60 — PupVibes Studio catalogue colour preview
   Keep the native picture invisible only while Studio preview is active. */
body#category .pv-shop-page .product-miniature__image-link.pv-customizer-ready > picture,
body#category .pv-shop-page .product-miniature__image-link.pv-customizer-ready > img.product-miniature__image {
  display: none !important;
}
body#category .pv-shop-page .product-miniature__image-link.pv-customizer-ready > .pv-customizer-card-preview {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  background: #fff !important;
}


/* 8.10.61 — definitive replacement mode for PupVibes Studio preview.
   This selector is deliberately more specific than the catalogue image rule above. */
body#category .pv-shop-page .product-miniature.pv-boutique-card
.product-miniature__image-container
.product-miniature__image-link.pv-customizer-ready > picture,
body#category .pv-shop-page .product-miniature.pv-boutique-card
.product-miniature__image-container
.product-miniature__image-link.pv-customizer-ready > img.product-miniature__image {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 0 !important;
}

body#category .pv-shop-page .product-miniature.pv-boutique-card
.product-miniature__image-container
.product-miniature__image-link.pv-customizer-ready > .pv-customizer-card-preview {
  display: block !important;
  position: relative !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
