/* v0.12.2 — home-only mobile cards; the ticker is isolated in mobile-notice.css. */

/* v0.12.4: all ten products are now visible on desktop too. */

@media(max-width:767px){
  /* The tabs already identify the selection. Remove repeated visible headings. */
  .semac-theme.semac-home-mobile-v120 .semac-home-products{padding:18px 0 26px;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products>.semac-container{width:calc(100% - 24px);}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-home-products-heading{display:none;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tabs{margin-bottom:6px;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tab-meta>strong{display:none;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tab-meta{
    justify-content:flex-end;min-height:32px;gap:0;padding:0;margin:0 0 6px;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tab-meta>a{
    box-sizing:border-box;min-height:32px;padding:4px 10px;gap:6px;
    border:1px solid #bfdec9;border-radius:9px;background:linear-gradient(145deg,#fff,#eaf7ef);
    box-shadow:0 3px 9px rgba(0,90,40,.055);color:#076631;font-size:12px;font-weight:800;line-height:1.25;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tab-meta>a>.semac-icon{
    box-sizing:border-box;width:20px;height:20px;padding:4px;border-radius:50%;background:#008f43;color:#fff;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tab-meta>a:hover{border-color:#78c797;background:#e4f5eb;}

  /* Larger products, not zoomed/cropped source photos. Exactly two cards per row. */
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px 10px!important;align-items:stretch;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid ul.products>li.product{
    display:flex;flex-direction:column;padding:6px 8px 10px!important;border-radius:15px!important;
    border:1px solid #dce7e0!important;box-shadow:0 5px 13px rgba(15,50,30,.07)!important;
    text-align:center;min-width:0!important;min-height:0;height:auto;overflow:hidden;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid ul.products>li.product::before{height:3px;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.product-main-wrap,.product-inner,.product-wrap,.product-info,.product-content){
    min-width:0;max-width:100%;padding-left:0;padding-right:0;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product>a.woocommerce-loop-product__link{
    display:flex;flex-direction:column;flex:1;min-width:0;text-decoration:none;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.product-thumbnail,.product-thumb){
    margin:0;padding:0;border:0;position:relative;min-width:0;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product img.attachment-woocommerce_thumbnail,
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product img.size-woocommerce_thumbnail,
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product a.woocommerce-loop-product__link>img,
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .product-thumb img,
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .product-thumbnail img{
    display:block;width:100%!important;max-width:100%!important;height:auto!important;
    aspect-ratio:1 / 1;object-fit:contain;object-position:center;
    padding:0!important;margin:0 auto 7px!important;border:0;border-radius:9px;background:#fff!important;
    box-shadow:none;transform:none;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.product-title,.woocommerce-loop-product__title,h2,h3){
    margin:3px 0 8px!important;min-height:38px;padding:0!important;
    font-family:Arial,Helvetica,sans-serif;font-size:14px!important;line-height:1.36!important;
    font-weight:700;letter-spacing:0;text-transform:none;color:#23382c;overflow-wrap:anywhere;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .price{
    margin:4px 0 10px!important;padding-top:9px;border-top:1px solid #edf3ef;
    color:#173724;font-size:19px!important;line-height:1.26;font-weight:800;overflow-wrap:anywhere;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.product-main-wrap,.product-inner,.product-wrap,.product-summary-wrap){display:flex;flex-direction:column;flex:1;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .product-buttons{margin-top:auto;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .price{margin-top:auto!important;}
  /* Phone home: one stock indicator, on the product-link button below the price.
     Override the inherited ::before badge only on unavailable product cards. */
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid ul.products>li.product.outofstock::before{
    content:none!important;display:none!important;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.out-of-stock,.out-of-stock-notice,.out-of-stock-label,.outofstock-notice,.stock-out,.stockout,.sold-out,.soldout,.os-out-of-stock-notice,.semac-legacy-stock-label):not(.semac-agotado-link){
    display:none!important;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .button.semac-agotado-link{
    color:#aa2941!important;background:#fff2f4!important;border-color:#edc2cc!important;
    box-shadow:none!important;cursor:pointer;pointer-events:auto;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .button.semac-agotado-link:hover,
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .button.semac-agotado-link:focus-visible{
    color:#902039!important;background:#ffe5eb!important;border-color:#da91a3!important;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .price del{font-size:12px;display:inline-block;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .price ins{display:inline-block;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.button,a.added_to_cart){
    display:inline-flex!important;align-items:center;justify-content:center;gap:6px!important;
    width:100%!important;min-width:0!important;min-height:44px!important;padding:9px 6px!important;
    margin:0!important;margin-top:auto!important;border-radius:10px!important;
    font-size:11.5px!important;line-height:1.25!important;letter-spacing:0!important;
    white-space:normal;overflow-wrap:anywhere;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .button:not(.semac-agotado-link)::before{width:15px;height:15px;flex-basis:15px;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product a.added_to_cart{margin-top:7px!important;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.onsale,.out-of-stock,.out-of-stock-notice,.out-of-stock-label){
    position:absolute;left:7px!important;right:auto!important;top:8px!important;bottom:auto!important;
    padding:4px 7px!important;max-width:calc(100% - 14px);font-size:10px!important;line-height:1.3;z-index:2;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .yith-wcqv-button{min-width:32px!important;width:32px!important;min-height:32px!important;padding:0!important;}
}
@media(max-width:359px){
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid ul.products{gap:11px 8px!important;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid ul.products>li.product{padding-left:6px!important;padding-right:6px!important;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.product-title,.woocommerce-loop-product__title,h2,h3){font-size:13px!important;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product .price{font-size:17px!important;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-products-tab-grid li.product :is(.button,a.added_to_cart){font-size:10.5px!important;gap:4px!important;padding-left:4px!important;padding-right:4px!important;}
}

/* v0.12.2 — one compact footer below each phone grid. Desktop markup stays put. */
.semac-theme .semac-home-products .semac-product-tab-footer,
.semac-theme .semac-home-products .semac-product-page-message{display:none;}
@media(max-width:767px){
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tab-meta{display:none;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tabs{margin-bottom:12px;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-tab-footer{
    display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;
    box-sizing:border-box;width:100%;margin-top:13px;padding:9px 8px;
    border:1px solid #d8e8dd;border-radius:13px;background:linear-gradient(135deg,#fff,#eff8f2);
    box-shadow:0 3px 10px rgba(0,70,31,.04);
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-pagination{
    display:flex;gap:3px;align-items:center;flex:0 1 auto;min-width:0;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-pagination[hidden]{display:none!important;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-pagination button{
    display:inline-flex;align-items:center;justify-content:center;appearance:none;
    min-width:31px;width:31px;height:36px;min-height:36px;padding:0;margin:0;
    border:1px solid transparent;border-radius:8px;background:transparent;color:#29543b;
    font:700 12px/1 Arial,Helvetica,sans-serif;text-transform:none;box-shadow:none;cursor:pointer;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-pagination button.semac-page-arrow{width:27px;min-width:27px;font-size:24px;font-weight:400;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-pagination button:hover{background:#e3f3e8;border-color:#c7e3d0;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-pagination button.is-current{background:#008f43;color:#fff;box-shadow:0 3px 8px #008f4320;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-pagination button:disabled{opacity:.35;cursor:default;box-shadow:none;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-footer-all{
    display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-left:auto;
    min-height:36px;padding:4px 9px;box-sizing:border-box;white-space:nowrap;
    border:1px solid #bfdec9;border-radius:9px;background:#fff;color:#086534;
    font:800 12px/1.25 Arial,Helvetica,sans-serif;text-decoration:none;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-footer-all .semac-icon{
    box-sizing:border-box;width:20px;height:20px;padding:4px;border-radius:50%;background:#008f43;color:#fff;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-footer-all:hover{background:#e4f5eb;}
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-page-message:not([hidden]){
    display:block;font-size:12px;line-height:1.5;margin:8px 2px 0;color:#405f4b;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-product-page-message.is-error{color:#a32942;}
  .semac-theme.semac-home-mobile-v120 .semac-products-tab-grid[aria-busy=true]{opacity:.5;pointer-events:none;}
  .semac-theme.semac-home-mobile-v120 .semac-products-tab-grid{scroll-margin-top:14px;transition:opacity .16s ease;}

  /* Only the photo area grows; name, price, buy-button and grid type are unchanged. */
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-home-photo{
    display:block;position:relative;width:calc(100% + 12px);margin:0 -6px 7px;
    aspect-ratio:1 / 1.08;overflow:hidden;background:#fff;border-radius:10px;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-home-photo>img{
    display:block!important;width:100%!important;max-width:100%!important;height:100%!important;
    aspect-ratio:auto!important;margin:0!important;padding:0!important;border:0!important;
    object-fit:contain!important;object-position:center!important;border-radius:0!important;
    transform:translate(var(--semac-photo-x,0%),var(--semac-photo-y,0%)) scale(var(--semac-photo-scale,1))!important;
    transform-origin:50% 50%!important;box-shadow:none!important;
  }
  .semac-theme.semac-home-mobile-v120 .semac-home-products .semac-home-photo:focus-within{outline:0;}
}
@media(prefers-reduced-motion:reduce){.semac-theme.semac-home-mobile-v120 .semac-products-tab-grid{transition:none;}}
