/* AZ Trade Shop Layout — loaded after the active theme */

/* Shop area width and spacing */
.az-shop-page{max-width:1200px!important;padding-top:24px!important;padding-bottom:40px!important}
.az-shop-products{padding:0!important}
.az-shop-products .woocommerce .woocommerce-result-count{font-size:16px!important;color:#222!important;margin:0!important;padding:0!important;line-height:44px!important}
.az-shop-products .woocommerce .woocommerce-ordering{margin:0 0 18px!important;float:right!important}
.az-shop-products .woocommerce .woocommerce-ordering select{height:48px!important;min-width:218px!important;padding:0 42px 0 15px!important;border:1px solid #999!important;border-radius:6px!important;background:#fff!important;font-size:15px!important;color:#222!important}

/* Reference layout: two horizontal cards per row */
@media (min-width:701px){
  .az-shop-products .woocommerce ul.products{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
    clear:both!important;
    margin:0!important;
    padding:0!important;
    align-items:stretch!important;
  }

  .az-shop-products .woocommerce ul.products li.product{
    position:relative!important;
    width:auto!important;
    float:none!important;
    margin:0!important;
    padding:14px!important;
    display:grid!important;
    grid-template-columns:minmax(220px,49%) minmax(0,1fr)!important;
    grid-template-rows:1fr!important;
    column-gap:18px!important;
    align-items:center!important;
    min-height:245px!important;
    background:#fff!important;
    border:1px solid #e5e5e8!important;
    border-radius:15px!important;
    box-shadow:0 3px 12px rgba(0,0,0,.06)!important;
    overflow:hidden!important;
  }

  .az-shop-products .woocommerce ul.products li.product:before,
  .az-shop-products .woocommerce ul.products li.product:after{display:none!important}

  /* Image: left half */
  .az-shop-products .woocommerce ul.products li.product > a.az-loop-image-link{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-height:215px!important;
    margin:0!important;
    padding:0!important;
    position:relative!important;
    z-index:20!important;
    pointer-events:auto!important;
    cursor:pointer!important;
    text-decoration:none!important;
  }
  .az-shop-products .woocommerce ul.products li.product > a.az-loop-image-link img{
    width:100%!important;
    height:100%!important;
    max-height:230px!important;
    margin:0!important;
    object-fit:contain!important;
    border-radius:8px!important;
    display:block!important;
    pointer-events:auto!important;
    cursor:pointer!important;
  }

  /* Right information column */
  .az-shop-products .woocommerce ul.products li.product .woocommerce-loop-product__title{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    margin:9px 44px 0 0!important;
    padding:0!important;
    min-height:0!important;
    font-size:15px!important;
    line-height:1.28!important;
    font-weight:800!important;
    color:#111!important;
    position:relative!important;
    z-index:200!important;
    pointer-events:auto!important;
    cursor:pointer!important;
  }
  .az-shop-products .woocommerce ul.products li.product .woocommerce-loop-product__title a{
    display:block!important;
    color:inherit!important;
    text-decoration:none!important;
    pointer-events:auto!important;
    cursor:pointer!important;
    position:relative!important;
    z-index:210!important;
  }

  .az-shop-products .woocommerce ul.products li.product .price{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    margin:61px 0 0!important;
    padding:0!important;
    min-height:0!important;
    color:#ed111b!important;
    font-size:21px!important;
    line-height:1.05!important;
    font-weight:900!important;
    display:flex!important;
    align-items:baseline!important;
    gap:7px!important;
  }
  .az-shop-products .woocommerce ul.products li.product .price del{color:#888!important;font-size:12px!important;font-weight:500!important;margin-left:2px!important}
  .az-shop-products .woocommerce ul.products li.product .price ins{text-decoration:none!important}

  .az-shop-products .woocommerce ul.products li.product .az-loop-excerpt{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    margin:101px 4px 0 0!important;
    min-height:55px!important;
    max-height:55px!important;
    overflow:hidden!important;
    color:#777!important;
    font-size:11px!important;
    line-height:1.45!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
  }

  .az-shop-products .woocommerce ul.products li.product .az-loop-rating{
    grid-column:2!important;
    grid-row:1!important;
    align-self:end!important;
    margin:0 0 37px!important;
    color:#f2b600!important;
    font-size:15px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .az-shop-products .woocommerce ul.products li.product .az-loop-rating em{color:#777!important;font-size:11px!important;font-style:normal!important;margin-left:6px!important}

  /* Small red cart button, bottom-right */
  .az-shop-products .woocommerce ul.products li.product .az-loop-cart{
    grid-column:2!important;
    grid-row:1!important;
    align-self:end!important;
    justify-self:end!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:38px!important;
    min-height:38px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:7px!important;
    background:#ed111b!important;
    color:#fff!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:0!important;
    box-shadow:none!important;
    z-index:220!important;
  }
  .az-shop-products .woocommerce ul.products li.product .az-loop-cart .az-cart-icon{font-size:18px!important;line-height:1!important;display:block!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-cart .az-cart-label{display:none!important}

  /* Badge and heart */
  .az-shop-products .woocommerce ul.products li.product .az-loop-heart{
    position:absolute!important;
    z-index:230!important;
    right:12px!important;
    top:12px!important;
    bottom:auto!important;
    width:38px!important;
    height:38px!important;
    border:1px solid #ddd!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#444!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:25px!important;
    line-height:1!important;
    box-shadow:0 2px 8px rgba(0,0,0,.06)!important;
  }
  .az-shop-products .woocommerce ul.products li.product .az-loop-badge{
    position:absolute!important;
    z-index:230!important;
    left:12px!important;
    top:12px!important;
    padding:6px 9px!important;
    border-radius:8px!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1!important;
  }
  .az-shop-products .woocommerce ul.products li.product .az-loop-new,
  .az-shop-products .woocommerce ul.products li.product .az-loop-sale{background:#159447!important}
}

/* Tablet: keep the same composition but slightly smaller */
@media (min-width:701px) and (max-width:1099px){
  .az-shop-products .woocommerce ul.products li.product{grid-template-columns:minmax(175px,46%) minmax(0,1fr)!important;min-height:220px!important;padding:11px!important;column-gap:14px!important}
  .az-shop-products .woocommerce ul.products li.product > a.az-loop-image-link{min-height:194px!important}
  .az-shop-products .woocommerce ul.products li.product > a.az-loop-image-link img{max-height:205px!important}
  .az-shop-products .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;margin-top:7px!important}
  .az-shop-products .woocommerce ul.products li.product .price{font-size:19px!important;margin-top:54px!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-excerpt{margin-top:91px!important;font-size:10.5px!important;min-height:50px!important;max-height:50px!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-rating{margin-bottom:34px!important;font-size:13px!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-cart{width:42px!important;min-width:42px!important;height:35px!important;min-height:35px!important}
}

/* Phones: preserve the working two-column shop; only compact the vertical card. */
@media (max-width:700px){
  .az-shop-products .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important}
  .az-shop-products .woocommerce ul.products li.product{display:block!important;width:auto!important;float:none!important;margin:0!important;padding:8px!important;min-height:0!important;border-radius:13px!important;background:#fff!important;overflow:hidden!important}
  .az-shop-products .woocommerce ul.products li.product > a.az-loop-image-link{display:block!important;width:100%!important;height:auto!important;min-height:0!important;position:relative!important;z-index:100!important;pointer-events:auto!important}
  .az-shop-products .woocommerce ul.products li.product > a.az-loop-image-link img{display:block!important;width:100%!important;height:155px!important;max-height:155px!important;object-fit:contain!important;pointer-events:auto!important}
  .az-shop-products .woocommerce ul.products li.product .woocommerce-loop-product__title{display:block!important;margin:8px 1px 0!important;font-size:12px!important;line-height:1.25!important;min-height:31px!important;padding:0!important;position:relative!important;z-index:200!important;pointer-events:auto!important}
  .az-shop-products .woocommerce ul.products li.product .woocommerce-loop-product__title a{display:block!important;pointer-events:auto!important;cursor:pointer!important}
  .az-shop-products .woocommerce ul.products li.product .price{display:block!important;margin:6px 1px 0!important;font-size:17px!important;line-height:1.1!important}
  .az-shop-products .woocommerce ul.products li.product .price del{font-size:10px!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-excerpt{display:block!important;margin:5px 1px 0!important;min-height:38px!important;max-height:38px!important;font-size:9px!important;line-height:1.35!important;overflow:hidden!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-rating{display:block!important;margin:6px 1px 0!important;font-size:12px!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-cart{width:100%!important;max-width:none!important;height:42px!important;min-height:42px!important;margin:7px 0 0!important;display:flex!important;border-radius:7px!important;font-size:0!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-cart .az-cart-icon{font-size:18px!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-cart .az-cart-label{display:inline!important;font-size:12px!important;font-weight:800!important;margin-left:5px!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-heart{right:7px!important;bottom:auto!important;top:7px!important;width:34px!important;height:34px!important;font-size:25px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.08)!important;z-index:230!important}
  .az-shop-products .woocommerce ul.products li.product .az-loop-badge{left:7px!important;top:7px!important;padding:6px 8px!important;font-size:9px!important;border-radius:8px!important}
}
