/* Shop catalog card styling, scoped to product archives only. */
/* WooCommerce archive template has no extra .woocommerce wrapper:
   force the actual ul into grid so equal-height items share a row. */
body.post-type-archive-product .shop-content ul.products,
body.tax-product_cat .shop-content ul.products,
body.tax-product_tag .shop-content ul.products{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:20px!important;align-items:stretch!important;clear:both;
}
body.post-type-archive-product .shop-content ul.products::before,
body.post-type-archive-product .shop-content ul.products::after,
body.tax-product_cat .shop-content ul.products::before,
body.tax-product_cat .shop-content ul.products::after,
body.tax-product_tag .shop-content ul.products::before,
body.tax-product_tag .shop-content ul.products::after{display:none!important}
body.post-type-archive-product :is(.shop-content,.icc-latest-products) ul.products li.product,
body.tax-product_cat :is(.shop-content,.icc-latest-products) ul.products li.product,
body.tax-product_tag :is(.shop-content,.icc-latest-products) ul.products li.product{
 width:100%!important;float:none!important;clear:none!important;
 margin:0!important;align-self:stretch!important;height:100%!important;
}
@media(max-width:1000px){
 body.post-type-archive-product .shop-content ul.products,
 body.tax-product_cat .shop-content ul.products,
 body.tax-product_tag .shop-content ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
 body.post-type-archive-product .shop-content ul.products,
 body.tax-product_cat .shop-content ul.products,
 body.tax-product_tag .shop-content ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}
/* Same height per product row; keep actions at the bottom without fixed tall cards. */
body.post-type-archive-product .shop-content ul.products,
body.tax-product_cat .shop-content ul.products,
body.tax-product_tag .shop-content ul.products{align-items:stretch!important;grid-auto-rows:auto}
body.post-type-archive-product .shop-content ul.products>li.product,
body.tax-product_cat .shop-content ul.products>li.product,
body.tax-product_tag .shop-content ul.products>li.product{align-self:stretch;height:100%;min-height:0}

body.post-type-archive-product :is(.shop-content,.icc-latest-products) ul.products li.product,
body.tax-product_cat :is(.shop-content,.icc-latest-products) ul.products li.product,
body.tax-product_tag :is(.shop-content,.icc-latest-products) ul.products li.product{display:flex;flex-direction:column;gap:9px;background:#fff;border-radius:16px;border:1px solid #e5ebf1;padding:13px;min-width:0}
:is(.shop-content,.icc-latest-products) ul.products li.product .woocommerce-loop-product__link{display:block;text-decoration:none}
:is(.shop-content,.icc-latest-products) ul.products li.product .woocommerce-loop-product__title{min-height:48px;font-size:14px;line-height:1.75}
:is(.shop-content,.icc-latest-products) ul.products li.product .price{font-weight:800;margin:0}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-offer-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 9px;border-top:1px dashed #efc6cb;padding-top:9px;color:#864552;font-size:11px}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-offer-meta strong{font-weight:900;color:#b62236}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-offer-meta .icc-offer-timer{direction:ltr;color:#bf2438;font-weight:900}
:is(.shop-content,.icc-latest-products) ul.products li.product form.icc-shop-buy{margin-top:auto;display:flex;flex-direction:column;gap:8px}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-row{display:flex;align-items:center;gap:10px}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-row label{font-size:12px;font-weight:800;color:#344e67}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-control{flex:1;min-width:0;display:flex;align-items:center;height:42px;background:#f1f4f8;border-radius:10px;overflow:hidden;direction:rtl}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-control button{border:0;background:transparent;color:#204968;height:42px;min-width:35px;padding:0;font-size:20px;cursor:pointer}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-control button:hover{background:#e2ecf5}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-control button:disabled{opacity:.35;cursor:default}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-control input.qty{width:100%;min-width:0;flex:1;border:0;border-radius:0;text-align:center;font-size:14px;font-weight:800;background:transparent;padding:0;appearance:textfield;-moz-appearance:textfield;direction:ltr;height:42px}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-control input.qty::-webkit-inner-spin-button,:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-control input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-cart-button{min-height:43px;width:100%;background:#0876c4;border:0;border-radius:9px;color:#fff;font-size:12px;font-weight:800;cursor:pointer}
:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-cart-button:hover{background:#075d99}
:is(.shop-content,.icc-latest-products) ul.products li.product form.icc-buy-offer .icc-shop-cart-button{background:#b8253b}
:is(.shop-content,.icc-latest-products) ul.products li.product form.icc-buy-offer .icc-shop-cart-button:hover{background:#921c31}
:is(.shop-content,.icc-latest-products) ul.products li.product :is(button,input):focus-visible{outline:2px solid #0876c4;outline-offset:2px}
@media(max-width:700px){:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-row{gap:5px}:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-qty-control button{min-width:31px}:is(.shop-content,.icc-latest-products) ul.products li.product .icc-shop-offer-meta{font-size:10px}}

/* Equal height for homepage latest-product cards, regardless of active offer. */
.icc-latest-products ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important;grid-auto-rows:auto}
.icc-latest-products ul.products::before,.icc-latest-products ul.products::after{display:none!important}
.icc-latest-products ul.products>li.product{width:100%!important;float:none!important;clear:none!important;margin:0!important;align-self:stretch!important;height:100%!important;min-height:0;display:flex;flex-direction:column}
@media(max-width:1000px){.icc-latest-products ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.icc-latest-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}

/* Mobile homepage latest products: one-row touch swipe rail. */
@media(max-width:700px){
 .icc-latest-products .woocommerce{min-width:0}
 .icc-latest-products ul.products{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,78%)!important;grid-template-columns:none!important;grid-template-rows:1fr!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:3px 2px 10px!important;align-items:stretch!important}
 .icc-latest-products ul.products::-webkit-scrollbar{display:none}
 .icc-latest-products ul.products>li.product{scroll-snap-align:start;width:100%!important;height:100%!important;min-width:0!important;margin:0!important;float:none!important;display:flex!important;flex-direction:column!important}
}
@media(max-width:380px){.icc-latest-products ul.products{grid-auto-columns:minmax(0,84%)!important}}
/* Override the WooCommerce 2/4-column layout on mobile with one touch-scroll row. */
@media(max-width:700px){
 body.home .icc-latest-products .woocommerce ul.products{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:stretch!important;gap:12px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scroll-padding-inline:2px;-webkit-overflow-scrolling:touch;scrollbar-width:none;max-width:100%;width:100%;}
 body.home .icc-latest-products .woocommerce ul.products>li.product{box-sizing:border-box!important;flex:0 0 calc(80% - 2px)!important;width:calc(80% - 2px)!important;max-width:calc(80% - 2px)!important;min-width:0!important;float:none!important;clear:none!important;margin:0!important;scroll-snap-align:start;}
 body.home .icc-latest-products .woocommerce ul.products::before,body.home .icc-latest-products .woocommerce ul.products::after{display:none!important}
}
@media(max-width:380px){body.home .icc-latest-products .woocommerce ul.products>li.product{flex-basis:82%!important;width:82%!important;max-width:82%!important}}

/* Compact promotional meta on the mobile homepage rail, without hiding quota or countdown. */
@media(max-width:700px){
 body.home .icc-latest-products ul.products>li.product{gap:5px!important;padding:10px!important}
 body.home .icc-latest-products ul.products>li.product .woocommerce-loop-product__title{min-height:0!important;line-height:1.5!important;margin:0!important}
 body.home .icc-latest-products ul.products>li.product .icc-shop-offer-meta{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:3px 8px!important;padding-top:4px!important;font-size:10px!important;line-height:1.35!important}
 body.home .icc-latest-products ul.products>li.product .icc-shop-offer-meta .icc-offer-timer{white-space:nowrap;font-size:10px!important}
 body.home .icc-latest-products ul.products>li.product form.icc-shop-buy{gap:5px!important}
 body.home .icc-latest-products ul.products>li.product .icc-shop-qty-control{height:38px!important}
 body.home .icc-latest-products ul.products>li.product .icc-shop-qty-control button,body.home .icc-latest-products ul.products>li.product .icc-shop-qty-control input.qty{height:38px!important}
 body.home .icc-latest-products ul.products>li.product .icc-shop-cart-button{min-height:40px!important}
}

/* Stretch every mobile swipe card to the same rail height. */
@media(max-width:700px){
 body.home .icc-latest-products .woocommerce ul.products{align-items:stretch!important;}
 body.home .icc-latest-products .woocommerce ul.products>li.product{align-self:stretch!important;height:auto!important;min-height:100%!important;display:flex!important;flex-direction:column!important;}
 body.home .icc-latest-products .woocommerce ul.products>li.product form.icc-shop-buy{margin-top:auto!important;}
}

/* Compact blue homepage link and latest-products archive. */
.icc-latest-products .icc-section-head a.icc-latest-all-button{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:auto;min-height:34px;padding:6px 20px;background:#0876c4;color:#fff!important;border:0;border-radius:9px;font-size:12px;font-weight:800;line-height:1.5;text-decoration:none;white-space:nowrap}
@media(hover:hover) and (pointer:fine){.icc-latest-products .icc-section-head a.icc-latest-all-button:hover{background:#075d99}}
.icc-latest-archive-main{width:min(1320px,100%);margin:32px auto 60px;padding:0 20px;direction:rtl}
.icc-latest-archive-heading{margin-bottom:22px}
.icc-latest-archive-heading h1{font-size:clamp(22px,3vw,31px);margin:0 0 6px;color:#15344b}
.icc-latest-archive-heading p{font-size:13px;color:#62778b;margin:0}
.icc-latest-archive .shop-content ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important}
.icc-latest-archive .shop-content ul.products::before,.icc-latest-archive .shop-content ul.products::after{display:none!important}
.icc-latest-archive .shop-content ul.products>li.product{width:100%!important;float:none!important;margin:0!important;display:flex;flex-direction:column;min-width:0;align-self:stretch}
@media(max-width:1000px){.icc-latest-archive .shop-content ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.icc-latest-archive-main{padding:0 12px}.icc-latest-archive .shop-content ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}
