/* Mobile-only shop / related card tightening.
   Desktop stays as the 2026-11-26 19:15 pass (candy-live + c9.css).
   This file is enqueued late so it can override candy-live card spacing. */

/* Hidden on desktop; shown under the price on mobile. */
.product-card .dose-under-price,
.related-card .dose-under-price{
  display:none;
}

@media (max-width:640px){
  /* Move compact dose under the price; drop the card unit line. */
  .product-card .dose-under-title,
  .related-card .dose-under-title{
    display:none !important;
  }
  .product-card .per-vial,
  .related-card .per-vial{
    display:none !important;
  }
  .product-card .dose-under-price,
  .related-card .dose-under-price{
    display:block;
  }

  /* Keep category filters; hide the card eyebrow (already in c9.css, repeated for candy). */
  body.c9-candy .product-card .family-label,
  body.c9-candy .related-card .family-label,
  .product-card .family-label,
  .related-card .family-label{
    display:none !important;
  }

  /* Image size/aspect and inset stay at the pre-pass candy values (8px pad, 0.9/1).
     Do not shrink the photo. Text-row tightening below is unchanged. */
  body.c9-candy .product-card,
  .product-card{
    padding:8px !important;
  }
  body.c9-candy .product-card-body,
  .product-card-body{
    padding:4px 6px 0 !important;
  }
  body.c9-candy .product-card h3,
  .product-card h3{
    font-size:1rem !important;
    line-height:1.15 !important;
    margin:4px 0 0 !important;
  }
  body.c9-candy .product-card .dose,
  body.c9-candy .product-card .family-label,
  .product-card .dose,
  .product-card .family-label,
  .related-card .dose,
  .related-card .related-name,
  .related-card .related-price{
    margin:0 !important;
    line-height:1.15;
  }
  body.c9-candy .product-card-buy,
  .product-card-buy{
    margin-top:0 !important;
    gap:6px !important;
    padding:4px 6px 6px !important;
  }
  .product-card .price.price-stack,
  .product-card .price.price-stack .price-amt{
    line-height:1.15 !important;
    gap:2px;
  }
  .product-card .price.price-stack .dose,
  .product-card-buy .dose-under-price{
    margin:2px 0 0 !important;
    line-height:1.15;
    font-size:.8rem;
  }
  .c9-card-atc{
    gap:6px;
  }
  /* Tap targets stay at ~40px; do not shrink the control min-heights. */
  .product-card .c9-card-size,
  .related-card .c9-card-size{
    min-height:40px;
  }
  .product-card .c9-card-add,
  .related-card .c9-card-add,
  .product-card-buy .btn,
  .related-card-buy .btn{
    min-height:40px;
  }

  .related-card-body{
    padding:4px 8px 4px;
    gap:4px;
  }
  .related-card .related-price{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
  }
  .related-card-buy{
    padding:0 6px 6px;
  }
}


/* Shop / related card price dropdowns: subtle downward chevron
   so shoppers can tell there are more strength options.
   Candy sets `select { background:#fff !important }` which was wiping the theme arrow.
   Padding-right matches the existing reserved space so card size does not change.
   Static single-strength boxes are not selects and stay arrow-free. */
body.c9-candy .product-card select.c9-card-size,
body.c9-candy .related-card select.c9-card-size,
.product-card select.c9-card-size,
.related-card select.c9-card-size{
  -webkit-appearance:none !important;
  appearance:none !important;
  background-color:#fff !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M2 2.2l4 3.6 4-3.6' fill='none' stroke='%238b8396' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:right .7rem center !important;
  background-size:11px 7px !important;
  padding-right:2.4rem !important;
}
@media (max-width:640px){
  body.c9-candy .product-card select.c9-card-size,
  body.c9-candy .related-card select.c9-card-size,
  .product-card select.c9-card-size,
  .related-card select.c9-card-size{
    background-position:right .45rem center !important;
    background-size:10px 6px !important;
    padding-right:2rem !important;
  }
}
