/* MAKIN CONTROL â€” 02-home-shop-layout.css
 * Homepage shop polish, logo and shop archive layout
 * Extracted from original style.css lines 544-1085; load order must remain unchanged.
 */
/* =========================================================
   MAKIN CONTROL â€” WOOCOMMERCE SHOP POLISH v27
   Upload these backgrounds to Media Library, then replace:
   https://antipest.ir/wp-content/uploads/2026/09/section-bg-catigories-optimized.webp
   https://antipest.ir/wp-content/uploads/2026/09/leaves-side-optimized-transparent.webp
   ========================================================= */

body.post-type-archive-product,
body.tax-product_cat{
  background:#f5faf7!important;
}

body.post-type-archive-product #page,
body.tax-product_cat #page{
  width:100%!important;
  max-width:none!important;
  padding-top:0!important;
  background:
    radial-gradient(circle at 12% 24%,rgba(22,131,75,.055),transparent 24%),
    #f5faf7!important;
}

/* Full-width nature hero above Woo shop content */
body.post-type-archive-product #primary::before,
body.tax-product_cat #primary::before{
  content:"ظپط±ظˆط´ع¯ط§ظ‡ ظ…ع©غŒظ† ع©ظ†طھط±ظ„\A ظ…ط­طµظˆظ„ط§طھ طھط®طµطµغŒ ع©ظ†طھط±ظ„ ط¢ظپط§طھطŒ ط­ط´ط±ط§طھ ظˆ ط¬ظˆظ†ط¯ع¯ط§ظ†";
  white-space:pre-line;
  display:flex;
  min-height:245px;
  margin:0 calc(50% - 50vw) 34px!important;
  padding:48px max(24px,calc((100vw - 1320px)/2));
  box-sizing:border-box;
  align-items:center;
  justify-content:flex-start;
  text-align:right;
  color:#0d4f31;
  font-family:'IRANSans','Yekan',Tahoma,sans-serif;
  font-size:18px;
  font-weight:400;
  line-height:2;
  background:
    linear-gradient(90deg,rgba(244,251,246,.97) 0%,rgba(244,251,246,.90) 45%,rgba(244,251,246,.34) 100%),
    url("https://antipest.ir/wp-content/uploads/2026/09/section-bg-catigories-optimized.webp") center/cover no-repeat;
  border-bottom:1px solid #dce9e0;
}

/* Main Woo container */
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main{
  width:min(1320px,calc(100% - 36px))!important;
  margin:0 auto 48px!important;
  padding:28px!important;
  background:rgba(255,255,255,.94)!important;
  border:1px solid #e4ece7!important;
  border-radius:24px!important;
  box-shadow:0 16px 50px rgba(17,72,43,.075)!important;
}

/* Breadcrumb/title/results */
body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb{
  margin:0 0 10px!important;
  color:#77857d!important;
  font-size:12px!important;
}
body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title{
  margin:0 0 14px!important;
  color:#123f29!important;
  font-family:'IRANSans','Yekan',Tahoma,sans-serif!important;
  font-size:34px!important;
  font-weight:700!important;
}
body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count{
  margin:10px 0 20px!important;
  color:#65746c!important;
  font-size:12px!important;
}
body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering{
  margin:0 0 22px!important;
}
body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select{
  min-width:230px;
  min-height:44px;
  padding:7px 14px!important;
  border:1px solid #d7e4db!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#244b36!important;
  font-family:'Yekan',Tahoma,sans-serif!important;
  box-shadow:none!important;
}

/* Product grid */
body.post-type-archive-product .woocommerce ul.products,
body.tax-product_cat .woocommerce ul.products{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  clear:both!important;
  margin:0!important;
}
body.post-type-archive-product .woocommerce ul.products::before,
body.post-type-archive-product .woocommerce ul.products::after,
body.tax-product_cat .woocommerce ul.products::before,
body.tax-product_cat .woocommerce ul.products::after{display:none!important}

body.post-type-archive-product .woocommerce ul.products li.product,
body.tax-product_cat .woocommerce ul.products li.product{
  width:auto!important;
  float:none!important;
  margin:0!important;
  padding:13px!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  background:#fff!important;
  border:1px solid #e1eae4!important;
  border-radius:17px!important;
  box-shadow:0 5px 18px rgba(18,69,43,.045)!important;
  overflow:hidden!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}
body.post-type-archive-product .woocommerce ul.products li.product:hover,
body.tax-product_cat .woocommerce ul.products li.product:hover{
  transform:translateY(-4px);
  border-color:#cfe2d5!important;
  box-shadow:0 14px 34px rgba(18,69,43,.11)!important;
}
body.post-type-archive-product .woocommerce ul.products li.product a img,
body.tax-product_cat .woocommerce ul.products li.product a img{
  width:100%!important;
  height:225px!important;
  margin:0 0 13px!important;
  padding:8px!important;
  object-fit:contain!important;
  background:linear-gradient(180deg,#fbfdfb,#f7faf8)!important;
  border-radius:13px!important;
}
body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title{
  min-height:50px;
  padding:0!important;
  margin:0 0 8px!important;
  color:#135337!important;
  font-family:'Yekan',Tahoma,sans-serif!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.75!important;
}
body.post-type-archive-product .woocommerce ul.products li.product .price,
body.tax-product_cat .woocommerce ul.products li.product .price{
  min-height:30px;
  margin:0 0 10px!important;
  color:#16834b!important;
  font-size:13px!important;
  font-weight:700!important;
}
body.post-type-archive-product .woocommerce ul.products li.product .price del,
body.tax-product_cat .woocommerce ul.products li.product .price del{
  color:#99a49e!important;
  font-size:11px!important;
}
body.post-type-archive-product .woocommerce ul.products li.product .button,
body.tax-product_cat .woocommerce ul.products li.product .button{
  width:100%!important;
  min-height:44px!important;
  margin-top:auto!important;
  padding:9px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:11px!important;
  background:#13824b!important;
  color:#fff!important;
  font-family:'Yekan',Tahoma,sans-serif!important;
  font-size:12px!important;
  font-weight:700!important;
  text-align:center!important;
  box-shadow:0 7px 16px rgba(19,130,75,.14)!important;
}
body.post-type-archive-product .woocommerce ul.products li.product .button:hover,
body.tax-product_cat .woocommerce ul.products li.product .button:hover{
  background:#0d6b3d!important;
}
body.post-type-archive-product .woocommerce span.onsale,
body.tax-product_cat .woocommerce span.onsale{
  top:10px!important;
  right:10px!important;
  left:auto!important;
  min-width:auto!important;
  min-height:30px!important;
  padding:4px 9px!important;
  line-height:22px!important;
  border-radius:10px!important;
  background:#8e9400!important;
  color:#fff!important;
  font-size:11px!important;
}

/* Pagination */
body.post-type-archive-product .woocommerce nav.woocommerce-pagination,
body.tax-product_cat .woocommerce nav.woocommerce-pagination{margin-top:30px!important}
body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul{
  border:0!important;
  display:inline-flex!important;
  gap:6px!important;
}
body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul li,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul li{border:0!important}
body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul li a,
body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul li span,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul li a,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul li span{
  min-width:38px;
  min-height:38px;
  display:grid!important;
  place-items:center;
  border:1px solid #dce8e0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#22523a!important;
}
body.post-type-archive-product .woocommerce nav.woocommerce-pagination ul li span.current,
body.tax-product_cat .woocommerce nav.woocommerce-pagination ul li span.current{
  background:#16834b!important;
  border-color:#16834b!important;
  color:#fff!important;
}

/* Decorative leafy ending before footer */
body.post-type-archive-product .mc-global-footer::before,
body.tax-product_cat .mc-global-footer::before{
  content:"ظ…ط­غŒط·غŒ ظ¾ط§ع©طŒ ط²ظ†ط¯ع¯غŒ ط³ط§ظ„ظ…â€Œطھط±";
  min-height:145px;
  padding:30px max(24px,calc((100vw - 1320px)/2));
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  color:#fff;
  font-family:'IRANSans','Yekan',Tahoma,sans-serif;
  font-size:24px;
  font-weight:700;
  background:
    linear-gradient(90deg,rgba(4,72,39,.90),rgba(4,72,39,.42)),
    url("https://antipest.ir/wp-content/uploads/2026/09/leaves-side-optimized-transparent.webp") center/cover no-repeat;
}

@media(max-width:1100px){
  body.post-type-archive-product .woocommerce ul.products,
  body.tax-product_cat .woocommerce ul.products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:800px){
  body.post-type-archive-product #primary::before,
  body.tax-product_cat #primary::before{
    min-height:190px;
    margin-bottom:20px!important;
    padding:32px 20px;
    font-size:15px;
  }
  body.post-type-archive-product .site-main,
  body.tax-product_cat .site-main{
    width:calc(100% - 24px)!important;
    padding:18px!important;
    border-radius:18px!important;
  }
  body.post-type-archive-product .woocommerce ul.products,
  body.tax-product_cat .woocommerce ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.post-type-archive-product .woocommerce ul.products li.product a img,
  body.tax-product_cat .woocommerce ul.products li.product a img{height:180px!important}
}
@media(max-width:480px){
  body.post-type-archive-product .woocommerce ul.products li.product,
  body.tax-product_cat .woocommerce ul.products li.product{padding:9px!important}
  body.post-type-archive-product .woocommerce ul.products li.product a img,
  body.tax-product_cat .woocommerce ul.products li.product a img{height:145px!important}
  body.post-type-archive-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_cat .woocommerce ul.products li.product .woocommerce-loop-product__title{
    min-height:58px;
    font-size:11px!important;
  }
  body.post-type-archive-product .woocommerce-ordering select,
  body.tax-product_cat .woocommerce-ordering select{
    width:100%;
    min-width:0;
  }
}


/* MAKIN CONTROL v28 â€” final horizontal logo */
@media (min-width:1101px){
  .mc-global-main{
    grid-template-columns:220px minmax(360px,1fr) minmax(280px,350px) auto!important;
  }
  .mc-global-logo{
    width:220px!important;
    min-width:220px!important;
  }
  .mc-global-logo img{
    width:210px!important;
    max-width:210px!important;
    height:auto!important;
    max-height:52px!important;
    object-fit:contain!important;
  }
}
@media (max-width:1100px){
  .mc-global-logo img{
    width:auto!important;
    max-width:190px!important;
    max-height:48px!important;
    object-fit:contain!important;
  }
}
@media (max-width:480px){
  .mc-global-logo img{
    max-width:155px!important;
    max-height:42px!important;
  }
}


/* =========================================================
   MAKIN CONTROL v29 â€” COMPLETE SHOP LAYOUT
   ========================================================= */
body.post-type-archive-product .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header{
  position:relative;
  overflow:hidden;
  margin:0 0 22px!important;
  padding:28px 30px!important;
  border:1px solid #dce9e1!important;
  border-radius:20px!important;
  background:
    linear-gradient(90deg,rgba(246,251,247,.98),rgba(246,251,247,.88)),
    url("https://antipest.ir/wp-content/uploads/2026/09/section-bg-catigories-optimized.webp") center/cover no-repeat!important;
}
body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title{
  font-size:30px!important;
  line-height:1.45!important;
  color:#103d26!important;
}

/* quick category navigation */
.mc-shop-quicklinks{
  clear:both;
  margin:0 0 26px;
  padding:18px;
  border:1px solid #e1ebe5;
  border-radius:18px;
  background:#f8fbf9;
}
.mc-shop-quicklinks-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:15px;
  margin-bottom:14px;
}
.mc-shop-quicklinks-title strong{
  color:#103d26;
  font-family:'IRANSans','Yekan',Tahoma,sans-serif;
  font-size:16px;
}
.mc-shop-quicklinks-title span{color:#7b8981;font-size:11px}
.mc-shop-quicklinks-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.mc-shop-quicklinks-list a{
  min-height:68px;
  padding:12px 14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  text-decoration:none!important;
  border:1px solid #dce8e0;
  border-radius:13px;
  background:#fff;
  transition:.2s ease;
}
.mc-shop-quicklinks-list a:hover{
  transform:translateY(-2px);
  border-color:#a9cfb7;
  box-shadow:0 8px 20px rgba(17,88,51,.08);
}
.mc-shop-quicklinks-list a span{color:#175c39;font-weight:700;font-size:12px}
.mc-shop-quicklinks-list a small{color:#8a978f;font-size:10px}

/* result/order bar */
body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count{
  float:right!important;
  padding:11px 0!important;
}
body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering{float:left!important}

/* cards: cleaner visual hierarchy */
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product{
  isolation:isolate;
}
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__link,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__link{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  text-decoration:none!important;
}
body.post-type-archive-product ul.products li.product .star-rating,
body.tax-product_cat ul.products li.product .star-rating{
  margin:2px 0 10px!important;
  font-size:11px!important;
  color:#d6a72c!important;
}
body.post-type-archive-product a.added_to_cart,
body.tax-product_cat a.added_to_cart{
  margin-top:7px!important;
  text-align:center!important;
  color:#126d42!important;
  font-size:11px!important;
  font-weight:700!important;
}

/* industry / SEO section */
.mc-shop-industry{
  margin:40px 0 8px;
  padding:34px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:34px;
  align-items:center;
  overflow:hidden;
  border-radius:24px;
  color:#fff;
  background:
    linear-gradient(105deg,rgba(8,72,42,.97),rgba(13,103,59,.90)),
    url("https://antipest.ir/wp-content/uploads/2026/09/leaves-side-optimized-transparent.webp") left center/520px auto no-repeat;
  box-shadow:0 18px 45px rgba(8,72,42,.13);
}
.mc-shop-eyebrow{
  display:inline-flex;
  margin-bottom:10px;
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  font-size:10px;
}
.mc-shop-industry h2{
  margin:0 0 12px!important;
  color:#fff!important;
  font-family:'IRANSans','Yekan',Tahoma,sans-serif!important;
  font-size:25px!important;
  line-height:1.7!important;
}
.mc-shop-industry p{
  max-width:680px;
  margin:0!important;
  color:rgba(255,255,255,.82)!important;
  font-size:12px!important;
  line-height:2.15!important;
}
.mc-shop-industry-actions{display:flex;gap:9px;margin-top:18px}
.mc-shop-industry-actions a{
  min-height:42px;
  padding:9px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  text-decoration:none!important;
  font-size:11px;
  font-weight:700;
}
.mc-shop-primary{background:#fff;color:#11653d!important}
.mc-shop-secondary{border:1px solid rgba(255,255,255,.34);color:#fff!important}
.mc-shop-industry-points{display:grid;gap:9px}
.mc-shop-industry-points>div{
  position:relative;
  padding:14px 50px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:3px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:13px;
  background:rgba(255,255,255,.075);
  backdrop-filter:blur(4px);
}
.mc-shop-industry-points b{
  position:absolute;
  right:14px;
  top:14px;
  color:#a9dfbb;
  font-size:11px;
}
.mc-shop-industry-points strong{font-size:12px}
.mc-shop-industry-points span{color:rgba(255,255,255,.70);font-size:10px;line-height:1.8}

/* mobile */
@media(max-width:900px){
  .mc-shop-quicklinks-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-shop-industry{grid-template-columns:1fr;padding:24px;gap:22px}
}
@media(max-width:600px){
  body.post-type-archive-product .woocommerce-products-header,
  body.tax-product_cat .woocommerce-products-header{padding:20px!important;border-radius:15px!important}
  body.post-type-archive-product .woocommerce-products-header__title,
  body.tax-product_cat .woocommerce-products-header__title{font-size:24px!important}
  .mc-shop-quicklinks{padding:13px}
  .mc-shop-quicklinks-title{display:block}
  .mc-shop-quicklinks-title span{display:block;margin-top:4px}
  .mc-shop-quicklinks-list{gap:7px}
  .mc-shop-quicklinks-list a{min-height:60px;padding:9px}
  body.post-type-archive-product .woocommerce-result-count,
  body.tax-product_cat .woocommerce-result-count,
  body.post-type-archive-product .woocommerce-ordering,
  body.tax-product_cat .woocommerce-ordering{
    float:none!important;
    width:100%!important;
  }
  .mc-shop-industry{margin-top:28px;padding:20px;border-radius:18px}
  .mc-shop-industry h2{font-size:20px!important}
  .mc-shop-industry-actions{flex-direction:column}
  .mc-shop-industry-actions a{width:100%}
}


