/* Hidden Gizmos desktop catalog View Offer button */
@media(min-width:1024px){
  .dc-view-offer{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:34px;margin-top:10px;padding:7px 10px;border-radius:9px;background:#3f5f4a;color:#fff;text-decoration:none;font-size:11px;font-weight:850;line-height:1;box-shadow:0 6px 14px rgba(45,67,52,.14);transition:background .16s ease,transform .16s ease,box-shadow .16s ease}
  .dc-view-offer small{font-size:8px;font-weight:700;opacity:.7}
  .dc-view-offer:hover{background:#334f3d;transform:translateY(-1px);box-shadow:0 8px 18px rgba(45,67,52,.18)}
  .dc-view-offer:focus-visible{outline:2px solid #78917f;outline-offset:2px}
}

/* Hidden Gizmos uniform desktop product cards */
@media(min-width:1024px){
  .dc-product-card{
    display:flex!important;
    flex-direction:column!important;
    height:372px!important;
    min-height:372px!important;
    max-height:372px!important;
  }

  .dc-product-image{
    flex:0 0 198px!important;
    height:198px!important;
    min-height:198px!important;
    max-height:198px!important;
    aspect-ratio:auto!important;
  }

  .dc-product-image img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    padding:8px!important;
  }

  .dc-product-info{
    display:flex!important;
    flex:1 1 auto!important;
    min-height:0!important;
    flex-direction:column!important;
    padding:8px 10px 9px!important;
  }

  .dc-product-info h3{
    min-height:30px!important;
    max-height:30px!important;
    margin:0 0 4px!important;
    -webkit-line-clamp:2!important;
  }

  .dc-product-info p{
    min-height:25px!important;
    max-height:25px!important;
    margin:0!important;
    -webkit-line-clamp:2!important;
  }

  .dc-card-bottom{
    margin-top:auto!important;
    min-height:31px!important;
    align-items:flex-end!important;
  }

  .dc-view-offer{
    flex:0 0 auto!important;
    margin-top:6px!important;
    min-height:32px!important;
  }
}

@media(min-width:1440px){
  .dc-product-card{
    height:382px!important;
    min-height:382px!important;
    max-height:382px!important;
  }
  .dc-product-image{
    flex-basis:205px!important;
    height:205px!important;
    min-height:205px!important;
    max-height:205px!important;
  }
}

/* Price reference clarity */
@media(min-width:1024px){
  .dc-price-reference-note{margin:5px 0 0;color:#69736d;font-size:11px;line-height:1.35;font-weight:500}
  .dc-card-price-label{display:block;margin:3px 0 1px;color:#7b847e;font-size:8px;font-weight:700;line-height:1.2}
  .dc-card-bottom{min-height:31px!important}
}


/* Compact desktop cards after public Amazon prices were removed */
@media(min-width:1024px){
  .dc-product-info{gap:0!important}
  .dc-rating{margin:0!important;line-height:1.15!important}
  .dc-card-bottom{padding-top:4px!important}
  .dc-view-offer{height:32px!important;padding:6px 9px!important}
}

/* FINAL compact desktop card sizing */
@media(min-width:1024px){
  .dc-product-card{
    height:350px!important;
    min-height:350px!important;
    max-height:350px!important;
  }
  .dc-product-image{
    flex:0 0 185px!important;
    height:185px!important;
    min-height:185px!important;
    max-height:185px!important;
  }
  .dc-product-image img{
    padding:6px!important;
  }
  .dc-product-info{
    padding:7px 9px 8px!important;
  }
  .dc-product-info h3{
    min-height:29px!important;
    max-height:29px!important;
    margin-bottom:3px!important;
  }
  .dc-product-info p{
    min-height:23px!important;
    max-height:23px!important;
  }
  .dc-card-bottom{
    min-height:28px!important;
    padding-top:2px!important;
  }
  .dc-view-offer{
    height:30px!important;
    min-height:30px!important;
    margin-top:4px!important;
    padding:5px 8px!important;
  }
}
@media(min-width:1440px){
  .dc-product-card{
    height:350px!important;
    min-height:350px!important;
    max-height:350px!important;
  }
  .dc-product-image{
    flex:0 0 185px!important;
    height:185px!important;
    min-height:185px!important;
    max-height:185px!important;
  }
}

/* Keep catalog heading clear of sticky desktop navigation */
@media(min-width:1024px){
  #dc-all-products{
    scroll-margin-top:112px!important;
  }
}

/* Keep a visible price-row placeholder when retailer price is intentionally hidden */
@media(min-width:1024px){
  .dc-card-price-placeholder{
    display:block!important;
    margin-top:3px!important;
    font-size:16px!important;
    line-height:1.1!important;
    font-weight:800!important;
    color:#1f2923!important;
  }
  .dc-product-info p{
    min-height:30px!important;
    max-height:30px!important;
    line-height:15px!important;
    -webkit-line-clamp:2!important;
  }
  .dc-card-bottom{
    min-height:48px!important;
  }
}


/* Refine hidden-price placeholder */
@media(min-width:1024px){
  .dc-card-price-placeholder{
    font-size:13px!important;
    line-height:1.15!important;
    font-weight:800!important;
    margin-top:2px!important;
  }
}

/* Desktop filtering: hidden cards must stay hidden.
   This overrides the compact-card display:flex!important rule only when
   desktop-commerce.js marks a card hidden. */
@media(min-width:1024px){
  .dc-product-card[hidden]{
    display:none!important;
  }
}
