/*
Theme Name: Al Shorouk Green Store V4.2
Theme URI: https://sahamalshorouk.com
Author: Al Shorouk
Description: Lightweight Arabic WooCommerce theme for irrigation and agricultural products. Land Green inspired layout with news bars, side menu, RTL, mobile, tablet and desktop.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: al-shorouk-green
Tags: ecommerce, woocommerce, rtl-language-support, custom-logo, custom-menu, responsive-layout
*/
:root{
  --asg-green-dark:#063d22;
  --asg-green:#0b6b32;
  --asg-green-2:#138a43;
  --asg-soft:#f3faf5;
  --asg-gold:#f2c94c;
  --asg-text:#1f2933;
  --asg-muted:#667085;
  --asg-white:#fff;
  --asg-border:rgba(6,61,34,.12);
  --asg-shadow:0 12px 32px rgba(16,24,40,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{margin:0;background:#fff;color:var(--asg-text);font-family:Cairo,Tajawal,Arial,sans-serif;line-height:1.85;direction:rtl;overflow-x:hidden}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.asg-container{width:min(1240px,calc(100% - 36px));margin-inline:auto}
.asg-topbar{background:var(--asg-green-dark);color:#fff;height:40px;display:flex;align-items:center;overflow:hidden;font-weight:900;font-size:16px;position:relative}.asg-topbar__inner{width:100%;overflow:hidden}.asg-marquee{display:flex;width:max-content;animation:asgMarquee 28s linear infinite;gap:46px;white-space:nowrap}.asg-marquee span{display:inline-flex;align-items:center;gap:8px}.asg-marquee:hover{animation-play-state:paused}@keyframes asgMarquee{from{transform:translateX(-35%)}to{transform:translateX(35%)}}
.asg-header{background:#fff;border-bottom:1px solid var(--asg-border);box-shadow:0 4px 22px rgba(16,24,40,.06);position:sticky;top:0;z-index:1000}.admin-bar .asg-header{top:32px}.asg-header__inner{height:82px;display:grid;grid-template-areas:"actions nav logo";grid-template-columns:230px 1fr 230px;align-items:center;gap:18px;direction:ltr}.asg-logo{grid-area:logo;display:flex;align-items:center;justify-content:flex-end;direction:rtl}.asg-logo a{display:flex;align-items:center}.asg-logo img{max-height:64px;width:auto;display:block}.asg-logo strong{font-weight:900;color:var(--asg-green-dark);font-size:24px}.asg-nav{grid-area:nav;display:flex;justify-content:center;align-items:center;direction:rtl}.asg-nav ul{list-style:none;display:flex;gap:8px;align-items:center;justify-content:center;padding:0;margin:0;flex-wrap:wrap}.asg-nav a{font-weight:900;color:var(--asg-text);font-size:16px;padding:9px 15px;border-radius:999px;display:block;transition:.2s}.asg-nav a:hover,.asg-nav .current-menu-item>a{background:#eaf6ee;color:var(--asg-green)}.asg-actions{grid-area:actions;display:flex;align-items:center;justify-content:flex-start;gap:10px;direction:ltr}.asg-icon{width:42px;height:42px;border:2px solid var(--asg-green);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--asg-green);background:#fff;position:relative;transition:.2s}.asg-icon svg{width:21px;height:21px;fill:currentColor}.asg-icon:hover{background:var(--asg-green);color:#fff;transform:translateY(-2px)}.asg-cart-count{position:absolute;top:-7px;right:-5px;background:var(--asg-gold);color:var(--asg-green-dark);border:2px solid #fff;border-radius:50%;font-size:11px;min-width:20px;height:20px;line-height:16px;text-align:center;font-weight:900}.asg-mobile-toggle{display:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--asg-green);color:#fff;align-items:center;justify-content:center;flex-direction:column;gap:4px}.asg-mobile-toggle span{display:block;width:18px;height:2px;background:#fff;border-radius:4px}.asg-mobile-panel{display:none;background:#fff;border-top:1px solid var(--asg-border);box-shadow:var(--asg-shadow)}.asg-mobile-panel ul{list-style:none;margin:0;padding:12px 18px}.asg-mobile-panel a{display:block;padding:11px 6px;font-weight:900;border-bottom:1px solid #edf2ee;color:var(--asg-text)}
.asg-product-news{background:#fff;border-bottom:1px solid var(--asg-border);box-shadow:0 6px 18px rgba(16,24,40,.04);overflow:hidden}.asg-product-news__inner{height:50px;display:flex;align-items:center;gap:26px;white-space:nowrap;animation:asgProductTicker 32s linear infinite;width:max-content}.asg-product-news:hover .asg-product-news__inner{animation-play-state:paused}.asg-product-news a,.asg-product-news span{display:inline-flex;align-items:center;gap:8px;color:var(--asg-green-dark);font-weight:900}.asg-product-news .dot{width:8px;height:8px;border-radius:50%;background:var(--asg-gold);display:inline-block}@keyframes asgProductTicker{from{transform:translateX(-28%)}to{transform:translateX(28%)}}
.asg-side-rail{position:fixed;right:16px;top:50%;transform:translateY(-50%);z-index:1100;display:flex;flex-direction:column;gap:12px;align-items:center}.asg-side-button,.asg-side-link{width:46px;height:46px;border-radius:50%;border:2px solid rgba(11,107,50,.18);background:#fff;color:var(--asg-green);box-shadow:0 10px 26px rgba(16,24,40,.10);display:flex;align-items:center;justify-content:center;font-size:21px;cursor:pointer;transition:.2s}.asg-side-button{background:var(--asg-green);color:#fff;border-color:var(--asg-green)}.asg-side-link:hover{background:var(--asg-green);color:#fff;transform:translateX(-3px)}.asg-side-drawer{position:fixed;right:80px;top:50%;transform:translateY(-50%) translateX(18px);opacity:0;visibility:hidden;width:285px;max-height:78vh;overflow:auto;background:#fff;border:1px solid var(--asg-border);border-radius:24px;box-shadow:0 24px 60px rgba(16,24,40,.18);z-index:1101;padding:18px;transition:.25s}.asg-side-drawer.is-open{opacity:1;visibility:visible;transform:translateY(-50%) translateX(0)}.asg-side-drawer h3{margin:0 0 12px;color:var(--asg-green-dark);font-size:20px;font-weight:900}.asg-side-drawer ul{list-style:none;margin:0;padding:0}.asg-side-drawer li a{display:flex;align-items:center;gap:10px;padding:11px 8px;border-bottom:1px solid #eef3ef;color:var(--asg-text);font-weight:900}.asg-side-drawer li a:hover{color:var(--asg-green)}.asg-side-close{position:absolute;left:14px;top:14px;border:0;background:#eef8f1;color:var(--asg-green-dark);border-radius:50%;width:30px;height:30px;font-weight:900;cursor:pointer}
.asg-hero{min-height:620px;display:flex;align-items:center;position:relative;overflow:hidden;background-image:linear-gradient(90deg,rgba(6,61,34,.82),rgba(6,61,34,.52)),url('assets/hero-green.svg');background-position:center;background-size:cover;background-repeat:no-repeat}.asg-hero__content{max-width:780px;text-align:right;color:#fff}.asg-kicker{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);padding:7px 14px;border-radius:999px;font-weight:900;margin-bottom:16px}.asg-hero h1{margin:0 0 14px;font-size:clamp(34px,4.5vw,58px);line-height:1.25;font-weight:900;letter-spacing:-.5px}.asg-hero p{margin:0 0 26px;font-size:clamp(17px,1.6vw,22px);font-weight:750;color:#f5fff7}.asg-buttons{display:flex;gap:12px;flex-wrap:wrap}.asg-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:13px 28px;font-weight:900;font-size:16px;transition:.2s}.asg-btn:hover{transform:translateY(-2px)}.asg-btn--primary{background:var(--asg-gold);color:var(--asg-green-dark)}.asg-btn--secondary{background:#fff;color:var(--asg-green-dark)}
.asg-trust{transform:translateY(-34px);position:relative;z-index:4}.asg-trust__grid{background:#fff;border-radius:22px;box-shadow:var(--asg-shadow);display:grid;grid-template-columns:repeat(4,1fr);gap:0;overflow:hidden;border:1px solid var(--asg-border)}.asg-trust__item{padding:22px;text-align:center;border-inline-start:1px solid #edf2ee}.asg-trust__item:first-child{border-inline-start:0}.asg-trust__icon{font-size:30px;margin-bottom:7px}.asg-trust__title{font-weight:900;color:var(--asg-green-dark);font-size:17px}.asg-trust p{margin:6px 0 0;color:var(--asg-muted);font-weight:700;font-size:14px}
.asg-section{padding:52px 0}.asg-section--soft{background:var(--asg-soft)}.asg-section__head{text-align:center;margin-bottom:32px}.asg-section__head h2{margin:0 0 8px;color:var(--asg-green-dark);font-size:clamp(26px,3vw,38px);font-weight:900}.asg-section__head p{margin:0;color:var(--asg-muted);font-size:17px}.asg-cats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.asg-cat{background:#fff;border-radius:24px;box-shadow:var(--asg-shadow);overflow:hidden;border:1px solid var(--asg-border);transition:.2s}.asg-cat:hover{transform:translateY(-5px)}.asg-cat__image{height:230px;background:#eaf6ee;display:flex;align-items:center;justify-content:center;overflow:hidden}.asg-cat__image img{width:100%;height:100%;object-fit:cover}.asg-cat__placeholder{font-size:58px}.asg-cat__body{padding:18px;text-align:center}.asg-cat__body h3{margin:0;color:var(--asg-green-dark);font-size:19px;font-weight:900}
.asg-products ul.products{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:22px!important}.asg-products ul.products li.product,.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff!important;border:1px solid var(--asg-border)!important;border-radius:22px!important;box-shadow:var(--asg-shadow)!important;padding:14px!important;text-align:center!important;overflow:hidden!important;transition:.2s!important}.asg-products ul.products li.product:hover,.woocommerce ul.products li.product:hover{transform:translateY(-5px)}.woocommerce ul.products li.product img{border-radius:16px!important;aspect-ratio:1/1;object-fit:contain;background:#fff}.woocommerce-loop-product__title{font-size:15px!important;line-height:1.6!important;color:var(--asg-text)!important;font-weight:900!important}.woocommerce ul.products li.product .price{font-size:17px!important;font-weight:900!important;color:var(--asg-green)!important}.woocommerce a.button,.woocommerce button.button,.button,.single_add_to_cart_button{background:var(--asg-green)!important;color:#fff!important;border-radius:999px!important;padding:11px 22px!important;font-weight:900!important;border:0!important}.woocommerce a.button:hover,.woocommerce button.button:hover,.button:hover{background:var(--asg-green-dark)!important;color:#fff!important}.woocommerce span.onsale{background:var(--asg-gold)!important;color:var(--asg-green-dark)!important;border-radius:999px!important;font-weight:900!important}
.asg-dark-section{background:linear-gradient(135deg,var(--asg-green-dark),#0d5a2d);color:#fff;padding:70px 0}.asg-dark-section .asg-section__head h2{color:#fff}.asg-dark-section .asg-section__head p{color:#e9fff0}.asg-dark-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.asg-dark-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-radius:24px;padding:28px;text-align:center}.asg-dark-card__icon{font-size:44px;margin-bottom:12px}.asg-dark-card h3{margin:0 0 10px;font-size:19px}.asg-dark-card p{margin:0;color:#e9fff0}.asg-footer{background:#eef7f1;border-top:1px solid var(--asg-border);padding:44px 0 20px}.asg-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}.asg-footer h3{color:var(--asg-green-dark);font-weight:900;margin:0 0 12px}.asg-footer p,.asg-footer a{color:#334155;font-weight:700}.asg-footer ul{list-style:none;padding:0;margin:0}.asg-footer li{margin:7px 0}.asg-copyright{text-align:center;border-top:1px solid rgba(6,61,34,.12);padding-top:16px;margin-top:28px;color:#475569;font-weight:800}.asg-wa{position:fixed;left:18px;bottom:18px;min-width:56px;height:56px;border-radius:999px;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;z-index:1000;box-shadow:0 12px 28px rgba(0,0,0,.18);padding:0 14px}
@media(max-width:1180px){.asg-side-rail{right:10px}.asg-side-drawer{right:65px}}
@media(max-width:1024px){.asg-header__inner{grid-template-columns:170px 1fr 170px;height:74px}.asg-nav a{font-size:14px;padding:8px 10px}.asg-logo img{max-height:56px}.asg-hero{min-height:540px}.asg-trust__grid,.asg-dark-grid{grid-template-columns:repeat(2,1fr)}.asg-cats{grid-template-columns:repeat(2,1fr)}.asg-products ul.products{grid-template-columns:repeat(3,1fr)!important}}
@media(max-width:767px){.asg-topbar{display:flex;height:34px;font-size:12px}.asg-marquee{animation-duration:20s;gap:28px}.asg-product-news{display:none}.asg-side-rail{display:none}.asg-side-drawer{display:none}.admin-bar .asg-header{top:0}.asg-header__inner{height:66px;display:flex;justify-content:space-between;direction:rtl}.asg-logo{order:3}.asg-actions{order:1}.asg-logo img{max-height:48px}.asg-nav{display:none}.asg-actions .asg-icon--search,.asg-actions .asg-icon--account{display:none}.asg-mobile-toggle{display:inline-flex}.asg-mobile-panel.is-open{display:block}.asg-hero{min-height:500px;text-align:center}.asg-hero__content{text-align:center;margin:auto}.asg-buttons{justify-content:center}.asg-trust{transform:none;padding-top:18px}.asg-trust__grid,.asg-dark-grid,.asg-footer__grid{grid-template-columns:1fr}.asg-cats{grid-template-columns:1fr}.asg-products ul.products,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important;gap:14px!important}.asg-section{padding:38px 0}.asg-cat__image{height:210px}.asg-wa{height:50px;min-width:50px;font-size:12px}}


/* =====================================================
   V4 - Latest Products + Mobile Refinement
   Fixes product cards, mobile readability, and side rail behavior
===================================================== */

.asg-products {
  max-width: 1180px;
  margin-inline: auto;
}

.asg-products .asg-section__head {
  margin-bottom: 28px;
}

.asg-products ul.products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  justify-content: center !important;
}

.asg-products ul.products::before,
.asg-products ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.asg-products ul.products li.product,
.woocommerce ul.products li.product {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 430px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  width: 100% !important;
}

.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 220px !important;
  max-height: 220px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto 14px !important;
  background: #fff !important;
}

.woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-align: center !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.woocommerce ul.products li.product .price {
  width: 100% !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin: 8px 0 12px !important;
  text-align: center !important;
  direction: rtl !important;
  line-height: 1.55 !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
  align-self: center !important;
  margin-top: auto !important;
  min-width: 118px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

/* Keep side shortcuts away from tablet/mobile previews */
@media (max-width: 1100px) {
  .asg-side-rail,
  .asg-side-drawer {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .asg-products {
    max-width: 760px;
  }

  .asg-products ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .asg-products ul.products li.product,
  .woocommerce ul.products li.product {
    min-height: 400px !important;
  }

  .woocommerce ul.products li.product img {
    height: 205px !important;
    max-height: 205px !important;
  }
}

@media (max-width: 767px) {
  .asg-container {
    width: min(100% - 24px, 430px) !important;
  }

  .asg-hero {
    min-height: 480px !important;
    padding: 44px 0 72px !important;
  }

  .asg-hero h1 {
    font-size: clamp(25px, 8vw, 34px) !important;
    line-height: 1.45 !important;
  }

  .asg-hero p {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  .asg-buttons {
    gap: 10px !important;
  }

  .asg-btn {
    padding: 11px 20px !important;
    font-size: 14px !important;
  }

  .asg-trust__grid {
    border-radius: 20px !important;
  }

  .asg-trust__item {
    padding: 18px 14px !important;
    border-inline-start: 0 !important;
    border-top: 1px solid #edf2ee !important;
  }

  .asg-trust__item:first-child {
    border-top: 0 !important;
  }

  .asg-section__head {
    margin-bottom: 22px !important;
  }

  .asg-section__head h2 {
    font-size: 25px !important;
  }

  .asg-section__head p {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  .asg-cats {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .asg-cat {
    max-width: 360px !important;
    margin-inline: auto !important;
  }

  .asg-cat__image {
    height: 190px !important;
  }

  .asg-products ul.products,
  .woocommerce ul.products,
  .asg-products ul.products.columns-4,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 340px !important;
    margin-inline: auto !important;
  }

  .asg-products ul.products li.product,
  .woocommerce ul.products li.product {
    min-height: auto !important;
    padding: 14px 14px 16px !important;
    border-radius: 20px !important;
  }

  .woocommerce ul.products li.product img {
    height: 180px !important;
    max-height: 180px !important;
    margin-bottom: 10px !important;
  }

  .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: auto !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 4;
  }

  .woocommerce ul.products li.product .price {
    min-height: auto !important;
    font-size: 16px !important;
    margin: 8px 0 10px !important;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button {
    font-size: 14px !important;
    padding: 10px 22px !important;
  }

  .asg-dark-section {
    padding: 44px 0 !important;
  }

  .asg-dark-grid {
    gap: 14px !important;
  }

  .asg-dark-card {
    max-width: 340px !important;
    margin-inline: auto !important;
    padding: 22px 16px !important;
  }

  .asg-footer {
    padding: 34px 0 18px !important;
    text-align: center !important;
  }

  .asg-footer__grid {
    gap: 20px !important;
  }

  .asg-wa {
    left: 12px !important;
    bottom: 12px !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .asg-wa::before {
    content: '☎';
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .asg-container {
    width: calc(100% - 18px) !important;
  }

  .asg-products ul.products,
  .woocommerce ul.products {
    max-width: 300px !important;
  }

  .woocommerce ul.products li.product img {
    height: 160px !important;
  }

  .asg-hero h1 {
    font-size: 24px !important;
  }
}


/* =====================================================
   V4.2 SAFE PATCH - mobile/tablet sales-first refinement
   Only CSS refinements. No risky layout rewrites.
===================================================== */

/* Reduce excessive whitespace and make trust section sales-first */
.asg-trust { margin-bottom: 10px; }
.asg-trust__item { min-width: 0; }

/* Categories: more controlled cards */
.asg-cat__image { height: 210px; }
.asg-cat__body { padding: 14px 16px 18px; }

/* Latest products: stable desktop/tablet/mobile grid */
.asg-products ul.products,
.woocommerce ul.products {
  clear: both !important;
  list-style: none !important;
}
.asg-products ul.products li.product,
.woocommerce ul.products li.product {
  float: none !important;
  box-sizing: border-box !important;
}
.woocommerce ul.products li.product .onsale { display: none !important; }

/* Single product mobile/tablet cleanup */
.single-product div.product {
  max-width: 1180px;
  margin-inline: auto;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  float: none !important;
}
.single-product div.product .product_title {
  color: var(--asg-green-dark) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}
.single-product div.product .price {
  color: var(--asg-green) !important;
  font-weight: 900 !important;
}

/* Payment strip */
.asg-payments {
  margin-top: 26px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(6,61,34,.12);
  text-align: center;
}
.asg-payments__title {
  color: var(--asg-green-dark);
  font-weight: 900;
  margin-bottom: 12px;
  font-size: 16px;
}
.asg-payments__list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.asg-payment-pill {
  background: #fff;
  border: 1px solid rgba(6,61,34,.12);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
  color: #1f2933;
  box-shadow: 0 6px 18px rgba(16,24,40,.05);
  font-size: 13px;
}
.asg-payment-pill b { color: var(--asg-green); }

@media (min-width: 768px) and (max-width: 1024px) {
  .asg-hero {
    min-height: 470px !important;
    padding: 42px 0 58px !important;
  }
  .asg-hero__content {
    max-width: 680px !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .asg-buttons { justify-content: center !important; }

  .asg-trust {
    transform: translateY(-22px) !important;
  }
  .asg-trust__grid {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    border-radius: 18px !important;
  }
  .asg-trust__item {
    padding: 16px 10px !important;
  }
  .asg-trust__icon { font-size: 24px !important; margin-bottom: 4px !important; }
  .asg-trust__title { font-size: 14px !important; }
  .asg-trust p { font-size: 12px !important; line-height: 1.55 !important; }

  .asg-cats {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 18px !important;
  }
  .asg-cat__image {
    height: 190px !important;
  }

  .asg-products ul.products,
  .woocommerce ul.products,
  .asg-products ul.products.columns-4,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 760px !important;
    gap: 18px !important;
    margin-inline: auto !important;
  }
  .asg-products ul.products li.product,
  .woocommerce ul.products li.product {
    min-height: 360px !important;
    padding: 14px !important;
  }
  .woocommerce ul.products li.product img {
    height: 180px !important;
    max-height: 180px !important;
  }
  .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    line-height: 1.5 !important;
    min-height: 64px !important;
    -webkit-line-clamp: 3 !important;
  }
  .woocommerce ul.products li.product .price {
    font-size: 16px !important;
    min-height: 38px !important;
  }
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button {
    padding: 9px 18px !important;
    min-width: 105px !important;
    font-size: 13px !important;
  }

  .single-product div.product {
    padding-inline: 24px !important;
  }
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  body { padding-bottom: 70px; }

  .asg-topbar {
    height: 30px !important;
    font-size: 11px !important;
  }
  .asg-marquee { gap: 22px !important; }

  .asg-header__inner {
    height: 58px !important;
  }
  .asg-logo img { max-height: 42px !important; }
  .asg-icon, .asg-mobile-toggle {
    width: 38px !important;
    height: 38px !important;
  }

  .asg-hero {
    min-height: 405px !important;
    padding: 34px 0 62px !important;
  }
  .asg-kicker {
    font-size: 12px !important;
    padding: 6px 11px !important;
    margin-bottom: 10px !important;
  }
  .asg-hero h1 {
    font-size: clamp(23px, 7vw, 30px) !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
  }
  .asg-hero p {
    font-size: 13.5px !important;
    line-height: 1.85 !important;
    margin-bottom: 16px !important;
  }
  .asg-buttons {
    gap: 8px !important;
  }
  .asg-btn {
    padding: 10px 15px !important;
    font-size: 12.5px !important;
    min-width: 118px !important;
  }

  /* Convert trust block into compact 2-column sales strip */
  .asg-trust {
    transform: translateY(-18px) !important;
    padding-top: 0 !important;
    margin-bottom: -6px !important;
  }
  .asg-trust__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    max-width: 360px !important;
    margin-inline: auto !important;
  }
  .asg-trust__item {
    padding: 12px 8px !important;
    border-top: 0 !important;
    border-inline-start: 1px solid #edf2ee !important;
    border-bottom: 1px solid #edf2ee !important;
  }
  .asg-trust__item:nth-child(odd) { border-inline-start: 0 !important; }
  .asg-trust__icon { font-size: 22px !important; margin-bottom: 3px !important; }
  .asg-trust__title { font-size: 13px !important; line-height: 1.4 !important; }
  .asg-trust p { display: none !important; }

  .asg-section {
    padding: 30px 0 !important;
  }
  .asg-section__head h2 {
    font-size: 23px !important;
  }
  .asg-section__head p {
    font-size: 13px !important;
  }

  .asg-cats {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .asg-cat {
    max-width: 340px !important;
  }
  .asg-cat__image {
    height: 170px !important;
  }
  .asg-cat__body h3 {
    font-size: 16px !important;
  }

  /* Force latest products to one clean card per row */
  .asg-products ul.products,
  .woocommerce ul.products,
  .asg-products ul.products.columns-4,
  .woocommerce ul.products.columns-4,
  .asg-products ul.products[class*="columns-"],
  .woocommerce ul.products[class*="columns-"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 330px !important;
    margin-inline: auto !important;
    padding: 0 !important;
  }
  .asg-products ul.products li.product,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    max-width: 330px !important;
    min-height: auto !important;
    margin: 0 auto !important;
    padding: 12px 12px 14px !important;
    border-radius: 18px !important;
  }
  .woocommerce ul.products li.product img {
    height: 150px !important;
    max-height: 150px !important;
    margin-bottom: 8px !important;
  }
  .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    min-height: 0 !important;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 3 !important;
  }
  .woocommerce ul.products li.product .price {
    font-size: 15px !important;
    line-height: 1.45 !important;
    min-height: 0 !important;
    margin: 6px 0 9px !important;
  }
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button {
    font-size: 12.5px !important;
    padding: 8px 16px !important;
    min-width: 98px !important;
    border-radius: 999px !important;
  }

  .asg-dark-section {
    padding: 32px 0 !important;
  }
  .asg-dark-card {
    padding: 16px 12px !important;
  }
  .asg-dark-card__icon { font-size: 30px !important; }
  .asg-dark-card h3 { font-size: 15px !important; }
  .asg-dark-card p { font-size: 12px !important; line-height: 1.7 !important; }

  .asg-wa { display: none !important; }

  .single-product div.product {
    padding: 14px !important;
  }
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary {
    width: 100% !important;
    margin: 0 0 18px !important;
  }
  .single-product div.product .woocommerce-product-gallery img {
    max-height: 360px !important;
    object-fit: contain !important;
  }
  .single-product div.product .product_title {
    font-size: 22px !important;
  }
  .single-product div.product .price {
    font-size: 20px !important;
  }
}

@media (max-width: 380px) {
  .asg-hero { min-height: 390px !important; }
  .asg-btn { min-width: 108px !important; padding: 9px 12px !important; }
  .asg-products ul.products,
  .woocommerce ul.products,
  .asg-products ul.products li.product,
  .woocommerce ul.products li.product {
    max-width: 300px !important;
  }
  .woocommerce ul.products li.product img {
    height: 135px !important;
  }
}
