/* ============================================
   عطاری گیاهی طب نوین — استایل اختصاصی فروشگاه (نسخه ۱.۲)
   ============================================ */

:root{
  --gold:#c8a027;
  --gold-light:#e2c465;
  --gold-dark:#9c7a1a;
  --green:#0f5c3f;
  --green-dark:#0a3d2a;
  --green-light:#1d8a5f;
  --cream:#faf7ef;
  --ink:#20241f;
}

body, input, select, textarea, button{
  font-family:'Vazirmatn', Tahoma, sans-serif !important;
}
body{ background:var(--cream); color:var(--ink); }
a{ color:inherit; }
a:hover{ color:var(--gold-dark); }

/* حذف کامل نوار کناری */
.sidebar, #secondary, .widget-area{ display:none !important; }
.content-area, #primary, #main{ width:100% !important; float:none !important; margin:0 auto !important; }
.storefront-full-width-content #primary{ width:100% !important; }

/* هدر */
#masthead, .site-header{
  background:linear-gradient(135deg, var(--green-dark), var(--green) 60%, var(--green-light)) !important;
  border-bottom:3px solid var(--gold);
}
.site-header .site-branding{ display:flex; align-items:center; gap:14px; }
.site-header .custom-logo-link{ display:inline-flex; }
.site-header .custom-logo{
  height:64px; width:auto; max-width:120px; object-fit:contain;
  border-radius:10px; background:#fff; padding:4px;
}
.site-header .site-branding .site-title a,
.site-header .site-branding .site-title{ color:var(--gold-light) !important; font-weight:800; }
.site-header a, .site-header .site-description{ color:#eef7ef !important; }
.site-header-cart a.cart-contents, .main-navigation ul li a{ color:#eef7ef !important; }
.main-navigation ul li a:hover{ color:var(--gold-light) !important; }

/* بنر */
.tebnovin-banner{ width:100%; margin-bottom:24px; border-radius:16px; overflow:hidden; box-shadow:0 8px 24px rgba(15,92,63,.15); }
.tebnovin-banner img{ width:100%; height:auto; display:block; }

/* حذف عنوان صفحه فروشگاه (بنر جایگزینش شده) */
.woocommerce-products-header, .page-header{ display:none !important; }

/* جستجو */
.woocommerce-product-search{
  max-width:640px; margin:16px auto 0; display:flex; background:#fff; border-radius:18px;
  box-shadow:0 12px 30px rgba(15,92,63,.18); border:1px solid #e6dfc7; overflow:hidden;
}
.woocommerce-product-search input[type="search"]{ flex:1; border:none; outline:none; padding:14px 18px; font-size:1rem; background:transparent; }
.woocommerce-product-search button{ background:var(--gold) !important; color:#fff !important; border:none; padding:0 22px; font-weight:700; }

/* شبکه محصولات - دسکتاپ */
ul.products{
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(230px,1fr)) !important;
  gap:18px !important;
  width:100% !important;
}
ul.products li.product{
  background:#fff; border-radius:14px; padding:12px 12px 16px; border:1px solid #ece6d2;
  box-shadow:0 4px 14px rgba(15,92,63,.06); transition:transform .2s, box-shadow .2s;
  position:relative; overflow:hidden; margin:0 !important;
}
ul.products li.product::before{
  content:""; position:absolute; right:0; top:0; bottom:0; width:4px;
  background:linear-gradient(180deg, var(--gold), var(--green));
}
ul.products li.product:hover{ transform:translateY(-3px); box-shadow:0 12px 26px rgba(15,92,63,.14); }
ul.products li.product img{ border-radius:10px; aspect-ratio:1/1; object-fit:cover; width:100%; }
ul.products li.product .woocommerce-loop-product__title{
  color:var(--green-dark); font-weight:700; font-size:.95rem; margin:8px 0 4px; line-height:1.4;
}
ul.products li.product .price{ color:var(--green) !important; font-weight:800; font-size:.92rem; }
ul.products li.product .button{
  background:linear-gradient(90deg, var(--green), var(--green-dark)) !important;
  color:#fff !important; border-radius:8px !important; border:none !important;
  font-weight:700 !important; font-size:.82rem !important; padding:8px 10px !important;
}
.single_add_to_cart_button, .checkout-button, button.button, input.button, #place_order{
  background:linear-gradient(90deg, var(--green), var(--green-dark)) !important;
  color:#fff !important; border-radius:10px !important; border:none !important; font-weight:700 !important;
}

/* ---------- موبایل ---------- */
@media (max-width:768px){
  ul.products{
    grid-template-columns:repeat(2, 1fr) !important;
    gap:10px !important;
  }
  ul.products li.product{
    padding:8px 8px 10px;
    border-radius:10px;
    display:flex;
    flex-direction:column;
  }
  ul.products li.product .woocommerce-loop-product__title{
    font-size:.82rem;
    margin:6px 0 4px;
    line-height:1.35;
    min-height:2.6em;
    overflow:hidden;
  }
  ul.products li.product .price{ font-size:.8rem; margin-top:auto; }
  ul.products li.product .button{
    font-size:.72rem !important;
    padding:7px 6px !important;
    width:100%;
    margin-top:6px;
  }
  .site-header .custom-logo{ height:44px; }
  .tebnovin-banner{ border-radius:10px; margin-bottom:14px; }
}

/* کارت / تسویه‌حساب */
table.shop_table{ border-radius:14px; overflow:hidden; border:1px solid #ece6d2 !important; }
table.shop_table th{ background:var(--green-dark); color:#fff !important; }

/* فوتر */
#colophon, .site-footer{
  background:linear-gradient(160deg, var(--green-dark), #08281b) !important;
  color:#eef7ef !important; border-top:3px solid var(--gold);
}
.site-footer a{ color:#d9ecdd !important; }