/*
Theme Name: زیبا دیزاین (Ziba Design Blue)
Theme URI: https://zibadesign.ir
Author: Ziba Design Team
Author URI: https://zibadesign.ir
Description: قالب چندمنظوره و فروشگاهی «زیبا دیزاین»؛ طراحی مدرن و راست‌چین، سازگار با ووکامرس و کاستومایزر وردپرس؛ همراه با منوی واکنش‌گرا، نسخه موبایل شبیه اپلیکیشن (Bottom Navigation) و مودال‌های سبد خرید، ورود، ثبت‌نام، علاقه‌مندی و مقایسه.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ziba-design
Tags: e-commerce, blog, rtl, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

:root{
  --ziba-accent: #0079b3;       /* رنگ آبی هدر (Sky) */
  --ziba-accent-hover: #008acc;
  --ziba-navy: #025278;         /* رنگ تیره متون */
  --ziba-text-dark: #1e293b;
}
@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');

.font-titr {
  font-family: 'Lalezar', system-ui, sans-serif !important;
  letter-spacing: 0px;
}

::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:#bcd7ea;border-radius:8px}
.safe-b{padding-bottom:env(safe-area-inset-bottom)}

.badge{
  position:absolute;
  top:-6px;
  left:-6px;
  min-width:18px;
  height:18px;
  border-radius:9999px;
  background:#10b981;          /* رنگ سبز متناسب با دکمه سبد خرید */
  color:#fff;
  font-size:10px;
  font-weight:700;
  display:grid;
  place-items:center;
  padding:0 4px;
}

#mesh-overlay {
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 40px 40px;
  transition: background-position 0.1s ease-out;
}

/* ---- Modals ---- */
@keyframes zbZoom{from{opacity:0;transform:scale(.94) translateY(14px)}to{opacity:1;transform:none}}
@keyframes zbFade{from{opacity:0}to{opacity:1}}
.ziba-modal .ziba-panel{animation:zbZoom .28s cubic-bezier(.2,.8,.3,1)}
.ziba-modal .ziba-overlay{animation:zbFade .2s ease}

/* ---- Desktop Menu (نوار سفید، متن مشکی دقیقاً مثل عکس) ---- */
.ziba-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
}
.ziba-menu>li{
  position:relative;
}
.ziba-menu>li>a{
  display:inline-flex;
  align-items:center;
  height:2.75rem;              /* ارتفاع تنظیم شده نوار */
  padding:0 1rem;
  font-size:0.875rem;
  font-weight:700;
  color: var(--ziba-text-dark); /* رنگ مشکی / زغالی پررنگ */
  text-decoration:none;
  transition: all .2s ease;
  border-radius:0.375rem;
}
.ziba-menu>li>a:hover{
  color: var(--ziba-accent);
  background: #f1f5f9;
}
/* آیتم صفحه فعلی (Active) */
.ziba-menu>li.current-menu-item>a,
.ziba-menu>li.current-page-item>a{
  color: var(--ziba-accent);
  background: #e0f2fe;
}

/* زیرمنوها (Dropdown) */
.ziba-menu .sub-menu{
  position:absolute;
  top:100%;
  right:0;
  min-width:14rem;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:.5rem;
  box-shadow:0 10px 25px -5px rgba(15, 23, 42, 0.1);
  padding:.5rem;
  visibility:hidden;
  opacity:0;
  transform:translateY(10px);
  transition: all .2s ease;
  z-index:50;
  list-style:none;
  margin:0;
}
.ziba-menu li:hover>.sub-menu{
  visibility:visible;
  opacity:1;
  transform:translateY(0);
}
.ziba-menu .sub-menu li{
  width:100%;
}
.ziba-menu .sub-menu a{
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .75rem;
  border-radius:.375rem;
  font-size:.8rem;
  font-weight:600;
  color:#036290;
  text-decoration:none;
  transition:.15s;
}
.ziba-menu .sub-menu a:hover{
  background:#f8fafc;
  color:var(--ziba-accent);
}

/* ---- Drawer Menu (موبایل) ---- */
.ziba-drawer-menu{list-style:none;padding:0;margin:0}
.ziba-drawer-menu li{margin-bottom:.25rem}
.ziba-drawer-menu a{display:block;padding:.625rem .75rem;border-radius:.5rem;font-size:.875rem;font-weight:700;color:#036594;text-decoration:none}
.ziba-drawer-menu a:hover{background:#f1f5f9;color:var(--ziba-accent)}
.ziba-drawer-menu .sub-menu{list-style:none;padding-right:1.25rem;margin:.25rem 0 0}
.ziba-drawer-menu .sub-menu a{font-size:.8rem;font-weight:500;color:#017080}

/* ---- Owl Carousel ---- */
.owl-carousel{direction:rtl}
.ziba-hero .owl-dots{position:absolute;bottom:16px;width:100%;text-align:center}
.ziba-hero .owl-dots button{width:10px;height:10px;background:rgba(255,255,255,.4)!important;margin:0 4px!important;border-radius:99px!important;transition:.3s}
.ziba-hero .owl-dots button.active{width:26px;background:var(--ziba-accent)!important}
.ziba-products .owl-nav{position:absolute;top:-58px;left:0;display:flex;gap:6px}
.ziba-products .owl-nav button{width:34px;height:34px;border:1px solid #022638;border-radius:9999px;background:#fff!important;color:#015076!important;margin:0!important;font-size:13px;transition:.2s}
.ziba-products .owl-nav button:hover{background:var(--ziba-accent)!important;color:#fff!important;border-color:var(--ziba-accent)}
.ziba-products .owl-nav button.disabled{opacity:.35}

/* ---- WooCommerce Shop Grid ---- */
.woocommerce ul.products{display:grid;grid-template-columns:1fr;gap:1rem;list-style:none;padding:0;margin:0}
@media(min-width:640px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}}
@media(min-width:768px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.woocommerce ul.products{grid-template-columns:repeat(4,1fr)}}
.woocommerce ul.products li.product{background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;padding:1rem;text-align:center;transition:.2s}
.woocommerce ul.products li.product:hover{box-shadow:0 8px 28px -10px rgb(14 47 77/.18)}
.woocommerce ul.products li.product img{border-radius:.5rem;margin:0 auto 1rem}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.875rem;font-weight:700;color:#0079b3;padding:0 0 .5rem}
.woocommerce ul.products li.product .price{color:#008acc;font-weight:700}
.woocommerce ul.products li.product .button{display:inline-block;background:var(--ziba-accent);color:#fff!important;border-radius:.5rem;padding:.5rem 1rem;font-size:.75rem;font-weight:700;transition:.2s;margin-top:.5rem;text-decoration:none}
.woocommerce ul.products li.product .button:hover{background:var(--ziba-accent-hover)}
.woocommerce div.product .product_title{color:#0079b3;font-weight:800}
.woocommerce div.product p.price{color:#008acc;font-weight:800}
.woocommerce div.product .single_add_to_cart_button{background:var(--ziba-accent);color:#fff;border-radius:.75rem;font-weight:700}
.woocommerce div.product .single_add_to_cart_button:hover{background:var(--ziba-accent-hover)}
.woocommerce #reviews, .woocommerce .product_meta{font-size:.875rem}
.woocommerce-message, .woocommerce-info{border-top-color:var(--ziba-accent)}
.woocommerce-message .button, .woocommerce-info .button{background:var(--ziba-accent);color:#fff;border-radius:.5rem;padding:.25rem .75rem;font-size:.75rem}

/* ---- Comments ---- */
.comment-list{list-style:none;padding:0}
.comment-list .comment{background:#f8fafc;border-radius:.75rem;padding:1rem;margin-bottom:1rem}
.comment-reply-link{color:var(--ziba-accent);font-size:.75rem;font-weight:700}
@font-face {
  font-family: 'BTitr';
  src: url('fonts/BTitrBold.woff2') format('woff2'),
       url('fonts/BTitrBold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

/* ساخت یک کلاس اختصاصی برای تیتر */
@font-face {
  font-family: 'titr';
  src: url('https://itgraphics.ir/wp-content/uploads/fonts/asghari Titr Bold.ttf') format('woff2'),
       url('https://itgraphics.ir/wp-content/uploads/fonts/asghari Titr Bold.ttf') format('woff'),
       url('https://itgraphics.ir/wp-content/uploads/fonts/asghari Titr Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* ========================================================
   استایل فوق‌العاده مدرن و شیک دیدگاه‌ها (Ziba Design)
======================================================== */
#comments {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  #comments { padding: 2rem; }
}

/* عنوان‌های بخش دیدگاه */
#comments .comments-title,
#comments .comment-reply-title {
  font-size: 1rem;
  font-weight: 800;
  color: #025177;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #e2e8f0;
}

/* لیست دیدگاه‌ها */
#comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#comments .comment-list .comment {
  list-style: none;
}

#comments .comment-body {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

#comments .comment-body:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* اطلاعات ارسال کننده دیدگاه */
#comments .comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

#comments .comment-author .avatar {
  border-radius: 9999px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  width: 42px !important;
  height: 42px !important;
}

#comments .comment-author .fn {
  font-weight: 700;
  font-size: 0.875rem;
  color: #01537b;
  font-style: normal;
}

#comments .comment-metadata a {
  font-size: 0.75rem;
  color: #37a7dc;
  text-decoration: none;
}

/* متن دیدگاه */
#comments .comment-content {
  font-size: 0.825rem;
  line-height: 1.8;
  color: #016595;
  margin-bottom: 0.5rem;
}

/* دکمه پاسخ */
#comments .reply a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #02537c;
  text-decoration: none;
  background: #e0f2fe;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

#comments .reply a:hover {
  background: #02537c;
  color: #ffffff;
}

/* دیدگاه‌های تو در تو (پاسخ‌ها) */
#comments .children {
  list-style: none;
  margin-right: 1.25rem;
  margin-top: 1rem;
  padding-right: 1rem;
  border-right: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* فرم ارسال دیدگاه */
#comments .comment-respond {
  margin-top: 2rem;
}

#comments .comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#comments .comment-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #016595;
  margin-bottom: 0.35rem;
}

#comments .comment-form input[type="text"],
#comments .comment-form input[type="email"],
#comments .comment-form input[type="url"],
#comments .comment-form textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.825rem;
  color: #035780;
  outline: none;
  transition: all 0.2s ease;
}

#comments .comment-form input:focus,
#comments .comment-form textarea:focus {
  background: #ffffff;
  border-color: #026090;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* دکمه ارسال دیدگاه */
#comments .form-submit input[type="submit"] {
  background: #026090;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.65rem 1.75rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
}

#comments .form-submit input[type="submit"]:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* سکشن اصلی با گرادیانت آبی آسمانی ملایم */
.ziba-bubble-section {
    position: relative;
    background: linear-gradient(180deg, #dbeafe 0%, #e0f2fe 50%, #f0f9ff 100%);
    padding: 90px 20px 70px;
    overflow: hidden; /* جلوگیری از بیرون زدن حباب‌ها */
    z-index: 1;
}

/* موج بالای بخش */
.ziba-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.ziba-wave-top svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* استایل عمومی حباب‌ها (دایره‌های آبی شفاف) */
.ziba-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.45) 0%, rgba(147, 197, 253, 0.15) 70%);
    pointer-events: none; /* ماوس روشون گیر نکنه */
    z-index: 1;
}

/* حباب بزرگ سمت چپ بالا */
.ziba-bubble.bubble-1 {
    width: 160px;
    height: 160px;
    top: 10%;
    left: 4%;
}

/* حباب کوچک سمت چپ */
.ziba-bubble.bubble-2 {
    width: 80px;
    height: 80px;
    top: 45%;
    left: 8%;
    opacity: 0.7;
}

/* حباب سمت راست بالا */
.ziba-bubble.bubble-3 {
    width: 180px;
    height: 180px;
    top: 12%;
    right: 3%;
}

/* کانتینر محتوا تا بیاد روی حباب‌ها */
.ziba-bubble-content {
    position: relative;
    z-index: 3;
}
/* ===================================================
   استایل اختصاصی و متالیک بخش وبلاگ (Ziba Blog Premium)
   =================================================== */
/* ----------------------------------------------------
   ۱. استایل‌های بخش وبلاگ (Ziba Blog Premium - Modern Blue)
   ---------------------------------------------------- */
.ziba-blog-section-alt {
  /* جایگزینی سرمه‌ای با آبی 007eaf در پس‌زمینه */
  background: radial-gradient(circle at 15% 50%, #02557d 0%, #49becf 60%, #02557d 100%);
}

.ziba-blog-section-alt::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 126, 175, 0.3) 0%, rgba(0, 126, 175, 0) 70%);
  top: -60px;
  right: -60px;
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.ziba-blog-section-alt::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 126, 175, 0.25) 0%, rgba(0, 126, 175, 0) 70%);
  bottom: -80px;
  left: -80px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.ziba-blog-card-alt {
  background: rgba(255, 255, 255, 0.05); /* شیشه‌ای ملایم */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ziba-blog-card-alt:hover {
  transform: translateY(-7px);
  background: rgba(0, 126, 175, 0.4); /* افکت رنگی هنگام هاور */
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.4), 0 0 18px 2px rgba(0, 126, 175, 0.3);
}

.ziba-blog-btn-alt {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: all 0.25s ease;
}

.ziba-blog-btn-alt:hover {
  background: #008acc;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 126, 175, 0.5);
}


/* ============================================================
   نسخه ملایم و دل‌پسند بخش وبلاگ (Soft Blue 007eaf)
   ============================================================ */
/* ============================================================
   نسخه نهایی: بکگراند خاکستری-آبی d9d9d9 + حباب‌ها + متن خوانا
   ============================================================ */

/* ---- ۱. پس‌زمینه ملایم خاکستری-آبی ---- */
.ziba-blog-section-alt,
section[class*="ziba-blog"]{
  background: linear-gradient(160deg, #e3e6e8 0%, #d9d9d9 45%, #cfd9de 100%) !important;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

/* ---- ۲. حباب‌های تزئینی (هماهنگ با بخش بالای سایت) ---- */
.ziba-blog-section-alt::before,
.ziba-blog-section-alt::after{
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,126,175,.18) 0%, rgba(0,126,175,.06) 60%, rgba(0,126,175,0) 75%);
  pointer-events: none;
  z-index: 1;
}

/* حباب بزرگ چپ بالا */
.ziba-blog-section-alt::before{
  width: 340px;
  height: 340px;
  top: -100px;
  left: -80px;
}

/* حباب راست پایین */
.ziba-blog-section-alt::after{
  width: 260px;
  height: 260px;
  bottom: -80px;
  right: -60px;
}

/* حباب کوچک اضافی — اگر خواستی در HTML یک <span class="ziba-bubble b3"></span> اضافه کن */
.ziba-blog-section-alt .ziba-bubble.b3{
  position: absolute;
  width: 120px;
  height: 120px;
  top: 20%;
  right: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,126,175,.15) 0%, rgba(0,126,175,0) 75%);
  pointer-events: none;
  z-index: 1;
}

/* ---- ۳. تیتر بخش: سرمه‌ای خوانا ---- */
.ziba-blog-section-alt h2,
.ziba-blog-section-alt h1,
.ziba-blog-section-alt .section-title{
  color: #024768 !important;
}

.ziba-blog-section-alt p,
.ziba-blog-section-alt .text-slate-300,
.ziba-blog-section-alt .text-slate-400{
  color: #5a6a72 !important;
}

/* دکمه «مشاهده وبلاگ» */
.ziba-blog-section-alt .ziba-blog-btn-alt,
.ziba-blog-section-alt > div > a{
  background: #ffffff !important;
  color: #015f90 !important;
  border: 1px solid #b9c4ca !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}

/* ---- ۴. کارت‌ها: سفید ماتِ ملایم ---- */
.ziba-blog-card-alt{
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.07) !important;
  transition: all .3s ease !important;
  position: relative;
  z-index: 2;
}

.ziba-blog-card-alt:hover{
  transform: translateY(-5px);
  background: #ffffff !important;
  border-color: rgba(0,126,175,.35) !important;
  box-shadow: 0 12px 26px rgba(0,126,175,.16) !important;
}

.ziba-blog-card-alt img{
  border-radius: .75rem;
}

/* ---- ۵. فورس متن خوانا (رفع مشکل سفیدِ محو) ---- */
.ziba-blog-card-alt h3,
.ziba-blog-card-alt h3 a,
.ziba-blog-card-alt h3 span,
.ziba-blog-card-alt a[class*="text-"],
.ziba-blog-card-alt .text-white,
.ziba-blog-card-alt .text-slate-100{
  color: #035780 !important;
}

.ziba-blog-card-alt:hover h3 a{
  color: #007eaf !important;
}

/* تاریخ، آیکون‌ها و بج‌ها */
.ziba-blog-card-alt span,
.ziba-blog-card-alt time,
.ziba-blog-card-alt .text-slate-400,
.ziba-blog-card-alt .text-slate-300,
.ziba-blog-card-alt .text-white\/70,
.ziba-blog-card-alt .text-white\/60{
  color: #64707a !important;
}

/* بج دسته‌بندی (اینديزاين و...) روی تصویر */
.ziba-blog-card-alt img ~ span,
.ziba-blog-card-alt .badge-category{
  color: #ffffff !important;
}

/* ---- ۶. دکمه «مطالعه مطلب» ---- */
.ziba-blog-btn-alt,
.ziba-blog-card-alt a[href*="مطالعه"],
.ziba-blog-card-alt > div > a{
  background: #eef3f5 !important;
  background-color: #eef3f5 !important;
  color: #0e3a52 !important;
  border: 1px solid rgba(0,126,175,.2) !important;
  font-weight: 700;
}

.ziba-blog-card-alt > div > a:hover,
.ziba-blog-btn-alt:hover{
  background: #007eaf !important;
  color: #ffffff !important;
  border-color: #007eaf !important;
  box-shadow: 0 4px 12px rgba(0,126,175,.25) !important;
}
/* ============================================================
   تم نهایی بخش وبلاگ — عنوان بدون هایلایت + دکمه سالم
   ============================================================ */

/* ۱. عنوان مقالات: بدون هیچ پس‌زمینه و کادر */
section[class*="blog"] h3,
section[class*="blog"] h3 a {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    display: inline !important;
    color: #000000 !important;
}

section[class*="blog"] h3 a:hover {
    color: #007eaf !important;
}

/* ۲. دکمه «مطالعه مطلب»: سالم، وسط‌چین و خوانا */
section[class*="blog"] a[class*="rounded-lg"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    color: #02557d !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: background-color 0.2s ease !important;
}

section[class*="blog"] a[class*="rounded-lg"]:hover {
    background-color: #007eaf !important;
    color: #ffffff !important;
}

/* ۳. کوچک و متناسب کردن دکمه «مشاهده وبلاگ» بالای بخش */
section[class*="blog"] a:not([class*="mt-4"]):not(.ziba-blog-card-alt a) {
    width: auto !important;
    display: inline-flex !important;
}

/* فقط در دسکتاپ و تبلت افقی (صفحات بزرگ‌تر از 1024 پیکسل) */
@media (min-width: 1024px) {
  main .max-w-4xl,
  main .max-w-5xl,
  main .max-w-6xl,
  main article {
    width: 88% !important;        /* عرض برگه: ۸۸ درصد صفحه (می‌تونی بین ۸۵ تا ۹۲ درصد تغییرش بدی) */
    max-width: 1400px !important;  /* سقف نهایت پهنا در مانیتورهای خیلی عریض */
    margin-inline: auto !important;/* وسط‌چین نگه‌داشتن کادر */
  }
}
@media (min-width: 1024px) {
  /* ۱. کانتینر اصلی برگه */
  #site-main div[class*="max-w-"] {
    width: 88% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ۲. زنجیره داخلی: باکس سفید، متن، و خود ووکامرس */
  #site-main article,
  #site-main article > div,
  #site-main .woocommerce,
  #site-main .woocommerce-MyAccount-content,
  #site-main .woocommerce-MyAccount-navigation {
    max-width: 100% !important;
  }

  #site-main article,
  #site-main .woocommerce,
  #site-main .woocommerce-MyAccount-content {
    width: 100% !important;
  }

  /* ۳. جلوگیری از شناور شدن منوی حساب (اگه float داشت) */
  #site-main .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
  }
}

/* تنظیم ۵ ستونه بلاک محصولات جدید در سبد خرید */
.wc-block-grid.has-5-columns .wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
}

@media (min-width: 1024px) {
    .wc-block-grid.has-5-columns .wc-block-grid__products {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 1.25rem !important;
    }
}

.wc-block-grid.has-5-columns .wc-block-grid__product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.wc-block-grid.has-5-columns .wc-block-grid__product-image img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}

/* درشت‌تر کردن متن‌ها و دکمه‌های گرید ۵ تایی سبد خرید */
.wc-block-grid .wc-block-grid__product-title {
    font-size: 15px !important;      /* عنوان محصول */
    font-weight: 700 !important;
    line-height: 1.6 !important;
}

.wc-block-grid .wc-block-grid__product-price {
    font-size: 15px !important;      /* قیمت */
    font-weight: 600 !important;
}

.wc-block-grid .wc-block-grid__product-price .woocommerce-Price-amount {
    font-size: 15px !important;
}

/* دکمه افزودن به سبد خرید */
.wc-block-grid .wp-block-button__link,
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-grid .add_to_cart_button {
    font-size: 14px !important;
    padding: 10px 18px !important;
    min-height: 44px !important;
    width: 100% !important;
    border-radius: 8px !important;
}

/* یکم فاصله داخلی بیشتر بین عنوان، قیمت و دکمه */
.wc-block-grid .wc-block-grid__product {
    padding: 10px !important;
    box-sizing: border-box !important;
}

/* ============ هدر فروشگاه — نسخه ضدگلوله ============ */

/* ظرف هدر: با سلکتورهای گسترده تا حتماً بگیره */
.woocommerce-products-header,
.woocommerce-page .page-header,
.archive .page-header,
.woocommerce.archive .page-header,
.woocommerce-term h1,
.woocommerce-products-header__title.page-title {
    position: relative !important;
    background: linear-gradient(135deg, #017080 0%, #014a55 60%, #0f172a 100%) !important;
    border-radius: 20px !important;
    padding: 36px 30px 40px !important;
    margin: 0 0 28px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 40px -15px rgba(1, 112, 128, 0.45) !important;
}

/* دایره‌های تزئینی */
.woocommerce-page .page-header::before,
.woocommerce-products-header::before {
    content: '' !important;
    position: absolute !important;
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    background: rgba(9, 199, 143, 0.18) !important;
    top: -70px !important;
    left: -50px !important;
}

/* ================= استایل عنوان فوق‌العاده حرفه‌ای فروشگاه ================= */
.woocommerce-page .page-header .page-title,
.woocommerce-products-header__title,
.woocommerce-page h1.page-title {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    color: #025076 !important; /* رنگ تیره و متین سرمه‌ای/دودی */
    font-size: 26px !important;
    font-weight: 900 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 14px 0 0 !important;
    position: relative !important;
    z-index: 2 !important;
    letter-spacing: -0.5px !important;
    border-right: 4px solid #045981 !important; /* نوار شیک عمودی سمت راست */
    text-shadow: none !important;
    float: none !important;
}

/* خط افقی گرادیانی زیر عنوان همراه با دایره تزئینی */
.woocommerce-page .page-header .page-title::after,
.woocommerce-products-header__title::after,
.woocommerce-page h1.page-title::after {
    content: '' !important;
    display: block !important;
    position: relative !important;
    width: 90px !important;
    height: 4px !important;
    margin-top: 8px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, transparent 0%, #09c78f 40%, #017080 100%) !important;
    box-shadow: 0 2px 8px rgba(9, 199, 143, 0.4) !important;
}


.woocommerce-page .page-header .page-title::after {
    content: '' !important;
    display: block !important;
    width: 70px !important;
    height: 5px !important;
    border-radius: 999px !important;
    margin-top: 12px !important;
    background: linear-gradient(to left, #09c78f, #facc15) !important;
}

/* breadcrumb: روشنی کافی روی گرادیان یا خوانا روی سفید */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .page-header > * {
    color: #0a8415 !important;
    position: relative !important;
    z-index: 2 !important;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #4f0000 !important;
    font-weight: 600 !important;
}

/* ================= نوار ابزار: شیشه‌ای شناور ================= */

/* شمارنده نتایج */
.woocommerce .woocommerce-result-count {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #278dbe !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    margin: 0 !important;
}

/* دراپ‌داون مرتب‌سازی: شیشه‌ای با فلش متحرک */
.woocommerce .woocommerce-ordering select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(1, 112, 128, 0.25) !important;
    border-radius: 999px !important;
    padding: 10px 18px 10px 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #00537a !important;
    box-shadow: 0 6px 18px rgba(1, 112, 128, 0.15) !important;
    cursor: pointer !important;
    transition: all .25s ease !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23017080' stroke-width='2.5' stroke-linecap='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center !important;
    background-size: 16px !important;
}

.woocommerce .woocommerce-ordering select:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(1, 112, 128, 0.25) !important;
    border-color: #0079b3 !important;
}

.woocommerce .woocommerce-ordering select:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(9, 199, 143, 0.2) !important;
    border-color: #036493 !important;
}

/* کارت محصولات: سایه‌های لطیف هنگام هاور */
.woocommerce ul.products li.product {
    border-radius: 16px !important;
    transition: transform .3s ease, box-shadow .3s ease !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 35px -12px rgba(1, 112, 128, 0.3) !important;
}

/* ================= استایل فوق‌العاده بولد و شیک برای قیمت‌ها ================= */
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price,
.wc-block-components-product-price,
.wp-block-woocommerce-cart .price,
.wp-block-woocommerce-cart .wc-block-components-product-price {
    font-size: 15px !important;
    font-weight: 900 !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    color: #035f8b !important; /* رنگ فیروزه‌ای شیک */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
}

/* هدف‌گیری مستقیم تگ‌های تولیدکننده رقم و واحد پول */
.wc-block-grid__product-price *,
.wc-block-components-product-price *,
.woocommerce ul.products li.product .price * {
    font-size: 15px !important;
    font-weight: 900 !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    color: #035f8b !important;
    letter-spacing: 1px !important; /* ایجاد فاصله شیک بین رقم‌ها */
}

/* تنظیم اندازه کلمه "تومان" تا نسبت به عدد کمی ظریف‌تر و شیک‌تر باشه */
.woocommerce-Price-currencySymbol,
.wc-block-components-product-price__currency-symbol {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #268fc1 !important; /* خاکستری ملایم برای جلوه بیشتر عدد */
    letter-spacing: normal !important;
    margin-right: 4px !important;
}

/* مخفی کردن امتیازدهی در کل ظاهر فروشگاه و بلاک‌ها */
.wc-block-grid__product-rating,
.wc-block-components-product-rating,
.woocommerce-product-rating,
.woocommerce .star-rating {
    display: none !important;
}


