/* Mobile catalog rows inspired by side-by-side shopping lists.
   Load after mobile-large-images.css. No content, stock, reviews or handlers changed. */
@media (max-width:650px) {
  body.az-products-unified :is(.v21-item-grid,.store-products) {
    grid-template-columns:minmax(0,1fr);
    gap:13px;
  }
  /* Grid honors the document's RTL/LTR direction: image leads, copy follows. */
  body.az-products-unified :is(.v21-item,.store-product-card) {
    display:grid;
    grid-template-columns:minmax(0,42%) minmax(0,1fr);
    align-items:start;
    gap:0;
    border-radius:14px;
    border:1px solid #e6deee;
    background:#fff;
    overflow:hidden;
  }
  body.az-products-unified .store-photo-panel {
    display:flex;
    flex-direction:column;
    padding:0;
    min-width:0;
    background:#fff;
    border:0;
  }
  body.az-products-unified :is(.v21-item-photo,.store-photo) {
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    width:100%;
    min-width:0;
    height:clamp(220px,65vw,350px);
    min-height:0;
    max-height:none;
    aspect-ratio:auto;
    padding:39px 5px 33px;
    box-sizing:border-box;
    background:#fff;
  }
  body.az-products-unified :is(.v21-item-photo>img:not(.az-accessory-wa),.store-photo-img) {
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    padding:0;
    object-fit:contain!important;
    object-position:center;
    transform:none!important;
    clip-path:none!important;
    mix-blend-mode:normal;
  }
  body.az-products-unified :is(.v21-item-photo,.store-photo)::after {
    inset-block-start:8px;
    inset-inline-start:9px;
    width:27px;
    height:27px;
  }
  body.az-products-unified .store-product-thumbs {
    position:static;
    display:flex;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:5px;
    width:auto;
    max-width:100%;
    padding:4px 6px 10px;
    margin:0;
    overflow-x:auto;
    box-sizing:border-box;
  }
  body.az-products-unified .store-product-thumb {
    width:34px;
    height:37px;
    min-width:34px;
    flex:0 0 34px;
  }
  body.az-products-unified .store-view-full {
    max-width:calc(100% - 12px);
    inset-inline-end:6px;
    bottom:5px;
    white-space:normal;
    min-height:28px;
    font-size:10px;
    padding:4px 7px;
  }
  body.az-products-unified :is(.v21-item-body,.store-product-info) {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    min-width:0;
    width:auto;
    padding:12px 10px;
    gap:8px;
    border-inline-start:1px solid #f5f0fa;
    box-sizing:border-box;
  }
  body.az-products-unified :is(.v21-item-brand,.store-product-category) {
    font-size:9px;
    line-height:1.6;
    padding-inline-end:29px;
    min-height:29px;
    overflow-wrap:anywhere;
  }
  body.az-products-unified :is(.v21-item-body h3,.store-product-title) {
    margin:0;
    min-height:0;
    font-size:15px;
    line-height:1.55;
    letter-spacing:0;
    overflow-wrap:anywhere;
    -webkit-line-clamp:3;
  }
  body.az-products-unified :is(.v21-item-body>p,.store-product-summary) {
    min-height:0;
    font-size:11px;
    line-height:1.65;
    -webkit-line-clamp:2;
  }
  body.az-products-unified :is(.v21-item-body,.store-product-info)>.az-favorite-btn {
    top:10px;
    inset-inline-end:8px;
    width:29px;
    height:29px;
    min-width:0;
    font-size:21px;
  }
  body.az-products-unified .az-review-link {
    font-size:11px;
    line-height:1.65;
    min-height:27px;
    overflow-wrap:anywhere;
  }
  body.az-products-unified :is(.v21-item-bottom,.store-price-row) {
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    width:100%;
    min-width:0;
    gap:4px 8px;
    margin:1px 0 0;
    padding:3px 0;
  }
  body.az-products-unified .v21-item-bottom>div {
    min-width:0;
    gap:4px 8px;
    flex-wrap:wrap;
  }
  body.az-products-unified :is(.v21-item-bottom strong,.store-price-current) {
    font-size:23px;
    line-height:1.4;
    color:#59298d;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  body.az-products-unified :is(.v21-item-bottom del,.store-price-old) {
    font-size:12px;
    white-space:normal;
  }
  body.az-products-unified :is(.v21-item-body,.store-product-info)>.az-stock-badge {
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:10px;
  }
  body.az-products-unified .store-product-quantity {
    flex-wrap:wrap;
    gap:6px;
    margin:0;
  }
  body.az-products-unified .store-product-actions {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:6px;
    margin:0;
  }
  body.az-products-unified :is(.store-product-actions button,.v21-buy-now,.v21-item-bottom>a) {
    width:100%;
    min-width:0;
    min-height:42px;
    padding:9px 6px;
    box-sizing:border-box;
    font-size:12px;
    line-height:1.5;
    white-space:normal;
    overflow-wrap:anywhere;
    border-radius:9px;
  }
  body.az-products-unified .store-feature-row {gap:4px;min-width:0}
  body.az-products-unified .store-feature {max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:10px}
  body.az-products-unified .store-product-fineprint {font-size:10px;line-height:1.6;overflow-wrap:anywhere}
}
@media (max-width:359px) {
  body.az-products-unified :is(.v21-item,.store-product-card) {
    grid-template-columns:minmax(0,40%) minmax(0,1fr);
  }
  body.az-products-unified :is(.v21-item-body,.store-product-info) {padding:10px 8px;gap:7px}
  body.az-products-unified :is(.v21-item-body h3,.store-product-title) {font-size:13px}
  body.az-products-unified :is(.v21-item-bottom strong,.store-price-current) {font-size:21px}
  body.az-products-unified :is(.v21-item-photo,.store-photo) {height:220px;padding-inline:3px}
}
/* Keep the favourite hit target clear of metadata in both text directions. */
@media(max-width:650px){
 body.az-products-unified :is(.v21-item-brand,.store-product-category){padding-inline-start:30px;min-height:30px}
 body.az-products-unified :is(.v21-item-body>p,.store-product-summary){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
}
/* Compact mobile rows: content determines height, not desktop spacing.
   No image cropping, hidden controls or truncated product-detail content. */
@media(max-width:650px){
 body.az-products-unified :is(.v21-item-grid,.store-products){align-items:start;gap:10px}
 body.az-products-unified :is(.v21-item,.store-product-card){min-height:0;height:auto;align-items:center}
 body.az-products-unified :is(.v21-item-body,.store-product-info){padding:9px 8px;gap:4px;min-height:0;align-self:start}
 body.az-products-unified :is(.v21-item-brand,.store-product-category){padding-inline:30px;min-height:25px;font-size:9px;line-height:1.35;letter-spacing:0}
 body.az-products-unified :is(.v21-item-body h3,.store-product-title){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:0;font-size:14px;line-height:1.4}
 body.az-products-unified :is(.v21-item-body>p,.store-product-summary){margin:0;min-height:0;font-size:11px;line-height:1.45;-webkit-line-clamp:2}
 body.az-products-unified :is(.v21-item-body,.store-product-info)>.az-favorite-btn{top:5px;inset-inline-end:5px}
 body.az-products-unified :is(.v21-item-body,.store-product-info)>.az-review-link{min-height:25px;font-size:10px;line-height:1.35;gap:3px}
 body.az-products-unified :is(.v21-item-bottom,.store-price-row){margin:0;padding:0;gap:3px 6px}
 body.az-products-unified .v21-item-bottom>div{gap:3px 6px}
 body.az-products-unified :is(.v21-item-bottom strong,.store-price-current){font-size:21px;line-height:1.25}
 body.az-products-unified :is(.v21-item-body,.store-product-info)>.az-stock-badge{margin:0;padding:2px 5px;font-size:10px;line-height:1.35}
 body.az-products-unified :is(.store-product-actions button,.v21-buy-now,.v21-item-bottom>a){min-height:36px;padding:7px 5px;font-size:11px;line-height:1.35;margin:0}
 body.az-products-unified .store-product-actions{gap:4px}
 body.az-products-unified .store-product-quantity{gap:3px;justify-content:space-between}
 body.az-products-unified .store-qty-control{height:32px;flex:0 0 auto}
 body.az-products-unified .store-qty-control :is(button,output){min-width:27px;width:27px;height:30px;line-height:30px;font-size:14px}
 body.az-products-unified .store-qty-label{font-size:10px}
 body.az-products-unified .store-feature{padding:2px 4px;font-size:9px;line-height:1.35}
 body.az-products-unified .store-feature-row{gap:3px}
 body.az-products-unified .store-product-fineprint{font-size:9px;line-height:1.4}
 body.az-products-unified .v21-details-link{font-size:11px;line-height:1.4}
 body.az-products-unified :is(.v21-item-photo,.store-photo){height:clamp(200px,60vw,290px);padding:32px 3px 25px;align-self:center}
 body.az-products-unified .store-product-thumbs{padding:3px 4px 5px;gap:4px}
 body.az-products-unified .store-product-thumb{width:30px;min-width:30px;flex-basis:30px;height:32px}
}
@media(max-width:359px){
 body.az-products-unified :is(.v21-item-body h3,.store-product-title){font-size:13px}
 body.az-products-unified :is(.v21-item-body,.store-product-info){padding-inline:6px}
 body.az-products-unified :is(.v21-item-bottom strong,.store-price-current){font-size:19px}
}
