/* =========================
   Maxwell Home V2 (safe)
   ========================= */

:root{
  --mx-primary:#0B3A64;     /* آبی اعتمادساز */
  --mx-primary-2:#0E4A80;
  --mx-accent:#16A34A;      /* سبز تایید/اعتماد */
  --mx-text:#111827;
  --mx-muted:#6B7280;
  --mx-border:rgba(17,24,39,.12);
  --mx-card:#ffffff;
  --mx-radius:18px;
  --mx-shadow:0 14px 40px rgba(17,24,39,.10);
}

.wd-logo img{
	height : 62px !important;
	width: auto !important;
	max-height: none !important;
}

.home .whb-header{
  --wd-primary-color: #0B3A64;
  --wd-alternative-color: #0E4A80;
}

.wd-home-v2 .home-hero__image{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px;
  box-shadow:0 18px 40px rgba(17,24,39,.12);
}

.wd-home-v2 .home-hero__trust{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.wd-home-v2 .home-hero__trust li{
  position:relative;
  padding : 1rem 2.5rem;
  margin-bottom: 0;
  border-radius:999px;
  border:1px solid rgba(11,58,100,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(11,58,100,.03));
  color:#0B3A64;
  font-weight:900;
  font-size:13px;
  box-shadow:0 10px 24px rgba(17,24,39,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.wd-home-v2 .home-hero__trust li::before{
  content:"";
  position:absolute;
  inset-inline-start:14px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  border-radius:6px;
  background:rgba(22,163,74,.95);
  box-shadow:0 0 0 5px rgba(22,163,74,.14);
}
/* Hover */
.wd-home-v2 .home-hero__trust li:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(17,24,39,.10);
  border-color:rgba(11,58,100,.26);
}

/* حالت‌های متفاوت برای هر آیتم (برای زنده‌تر شدن) */
.wd-home-v2 .home-hero__trust li:nth-child(1)::before{ background:rgba(14,74,128,.95); box-shadow:0 0 0 5px rgba(14,74,128,.14); }
.wd-home-v2 .home-hero__trust li:nth-child(2)::before{ background:rgba(22,163,74,.95); box-shadow:0 0 0 5px rgba(22,163,74,.14); }
.wd-home-v2 .home-hero__trust li:nth-child(3)::before{ background:rgba(245,158,11,.95); box-shadow:0 0 0 5px rgba(245,158,11,.14); }



/* Scope فقط Home جدید */
.wd-home-v2{
  color:var(--mx-text);
}

/* تایپوگرافی پایه روی تگ‌ها */
.wd-home-v2 p{
  margin:0 0 14px;
  color:var(--mx-muted);
  line-height:2.05;
  font-size:15px;
}
.wd-home-v2 ul{ margin:0; padding-inline-start:18px; }
.wd-home-v2 li{ color:var(--mx-muted); line-height:2; }
.wd-home-v2 a{
  color:var(--mx-primary);
  text-decoration:none;
  transition:color .15s ease, transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.wd-home-v2 a:hover{ color:var(--mx-primary-2); }

/* عنوان‌ها */
.wd-home-v2 .home-section-title{
  font-size:24px;
  line-height:1.55;
  margin:0 0 16px;
  letter-spacing:-.3px;
  color:var(--mx-text);
}
.wd-home-v2 .home-section-head{ margin-bottom:18px; }
.wd-home-v2 .home-section-head--split{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.wd-home-v2 .home-section-link{ font-weight:800; }

/* دکمه‌ها */
.wd-home-v2 .btn{
  min-height:46px;
  padding:12px 18px;
  border-radius:14px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.wd-home-v2 .btn-primary{
  background:var(--mx-primary);
  color:#fff;
  box-shadow:0 12px 24px rgba(11,58,100,.18);
}
.wd-home-v2 .btn-primary:hover{
  background:var(--mx-primary-2);
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(11,58,100,.22);
    color: #fff;
}
.wd-home-v2 .btn-secondary{
  background:#fff;
  color:var(--mx-primary);
  border:1px solid rgba(11,58,100,.28);
}
.wd-home-v2 .btn-secondary:hover{
  background:rgba(11,58,100,.06);
  transform:translateY(-2px);
}

/* Focus (UX) */
.wd-home-v2 .btn:focus-visible,
.wd-home-v2 a:focus-visible{
  outline:3px solid rgba(22,163,74,.35);
  outline-offset:3px;
}

/* پس زمینه خلاقانه و زنده (سبک و سریع) */
.wd-home-v2 .wd-home-main{
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(11,58,100,.10), transparent 55%),
    radial-gradient(900px 500px at 10% 10%, rgba(22,163,74,.08), transparent 55%);
}

/* Hero */
.wd-home-v2 .home-hero{ padding:56px 0 22px; }
.wd-home-v2 .home-hero__inner{ display:flex; gap:30px; align-items:center; }
.wd-home-v2 .home-hero__content{ flex:1 1 55%; }
.wd-home-v2 .home-hero__media{ flex:1 1 45%; }
.wd-home-v2 .home-hero__title{
  font-size:36px;
  line-height:1.35;
  margin:0 0 12px;
  letter-spacing:-.4px;
}
.wd-home-v2 .home-hero__lead{ margin:0 0 18px; max-width:60ch; }
.wd-home-v2 .home-hero__actions{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:14px; }


/* Card styles + hover */
.wd-home-v2 .home-cat-card,
.wd-home-v2 .home-usecase,
.wd-home-v2 .home-product-card,
.wd-home-v2 .home-why__item{
  background:var(--mx-card);
  border:1px solid var(--mx-border);
  border-radius:var(--mx-radius);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.wd-home-v2 .home-cat-card:hover,
.wd-home-v2 .home-usecase:hover,
.wd-home-v2 .home-product-card:hover,
.wd-home-v2 .home-why__item:hover{
  transform:translateY(-4px);
  box-shadow:var(--mx-shadow);
  border-color:rgba(11,58,100,.22);
}

/* Placeholder images (فعلاً تا وقتی عکس واقعی ست شود) */
.wd-home-v2 .home-hero__image-placeholder,
.wd-home-v2 .home-cat-card__img-placeholder,
.wd-home-v2 .home-usecase__img-placeholder,
.wd-home-v2 .home-product-card__img-placeholder{
  height:320px;
  border-radius:18px;
  border:1px dashed rgba(17,24,39,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(17,24,39,.55);
  background:linear-gradient(180deg, rgba(11,58,100,.06), rgba(17,24,39,.02));
}

/* Categories */
.wd-home-v2 .home-cats{ padding:18px 0 10px; }
.wd-home-v2 .home-cats__grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; }
.wd-home-v2 .home-cat-card{ display:block; overflow:hidden; }
.wd-home-v2 .home-cat-card__body{ padding:14px 14px 16px; }
.wd-home-v2 .home-cat-card__title{ margin:0 0 6px; font-size:18px; color:var(--mx-text); }
.wd-home-v2 .home-cat-card__desc{ margin:0 0 10px; }
.wd-home-v2 .home-cat-card__cta{ font-weight:900; }

/* Usecases */
.wd-home-v2 .home-usecases{ padding:30px 0; }
.wd-home-v2 .home-usecases__grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; }
.wd-home-v2 .home-usecase{ padding:14px; }
.wd-home-v2 .home-usecase__title{ margin:12px 0 8px; font-size:18px; color:var(--mx-text); }
.wd-home-v2 .home-usecase__link{ font-weight:900; }

/* Products */
.wd-home-v2 .home-products{ padding:26px 0; }
.wd-home-v2 .home-products__grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
.wd-home-v2 .home-product-card{ padding:12px; }
.wd-home-v2 .home-product-card__media img{ width:100%; height:auto; display:block; border-radius:14px; }
.wd-home-v2 .home-product-card__title{ font-size:14px; line-height:1.85; margin:10px 0 6px; color:var(--mx-text); }
.wd-home-v2 .home-product-card__actions a{ width:100%; justify-content:center; border-radius:12px; }

/* Why/Story/SEO/FAQ */
.wd-home-v2 .home-why,
.wd-home-v2 .home-story,
.wd-home-v2 .home-seo,
.wd-home-v2 .home-faq{ padding:26px 0; }

.wd-home-v2 .home-why__grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
.wd-home-v2 .home-why__item{ padding:14px; }
.wd-home-v2 .home-why__item h3{ margin:0 0 8px; font-size:16px; color:var(--mx-text); }
.wd-home-v2 .home-why__item p{ margin:0; }

.wd-home-v2 .home-story__text{ text-align: right; }

.wd-home-v2 .home-faq__item{
  border:1px solid var(--mx-border);
  border-radius:16px;
  padding:10px 12px;
  margin-bottom:10px;
  background:#fff;
}
.wd-home-v2 .home-faq__item summary{ cursor:pointer; font-weight:900; color:var(--mx-text); }

@media (max-width: 992px){
  .wd-home-v2 .home-hero__inner{ flex-direction:column; }
  .wd-home-v2 .home-hero__image-placeholder{ height:260px; }
  .wd-home-v2 .home-cats__grid{ grid-template-columns:1fr; }
  .wd-home-v2 .home-usecases__grid{ grid-template-columns:1fr; }
  .wd-home-v2 .home-products__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .wd-home-v2 .home-why__grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

.wd-home-v2 .home-cats__grid--big{
  grid-template-columns:repeat(3, minmax(0,1fr));
}

.wd-home-v2 .home-cat-card--cover{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:18px;
  min-height:260px;
  border:1px solid rgba(11,58,100,.14);
}

.wd-home-v2 .home-cat-card__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  transition:transform .25s ease;
}

.wd-home-v2 .home-cat-card__overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
  padding:16px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(11,58,100,.72));
  color:#fff;
}

.wd-home-v2 .home-cat-card__overlay .home-cat-card__title{
  margin:0;
  color:#fff;
  font-size:18px;
  font-weight:900;
}

.wd-home-v2 .home-cat-card__overlay .home-cat-card__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  font-weight:800;
}

.wd-home-v2 .home-cat-card--cover:hover .home-cat-card__img{
  transform:scale(1.08);
}

.wd-home-v2 .home-cat-card--cover:hover{
  box-shadow:0 18px 40px rgba(17,24,39,.14);
  transform:translateY(-3px);
}
/* Hero spacing + alignment */
.wd-home-v2 .home-hero__inner{
  gap:36px;
}
.wd-home-v2 .home-hero__content{
  padding-top:6px;
}
.wd-home-v2 .home-hero__lead{
  max-width:64ch;
}

@media (max-width: 992px){
  .wd-home-v2 .home-cats__grid--big{ grid-template-columns:1fr; }
  .wd-home-v2 .home-cat-card--cover{ min-height:220px; }
}
.elementor-element-a571857{
	background-color: #5150ad !important;
}
.elementor-element-a62e955{
	background-color: #5150ad !important;
}

.mc4wp-form-fields input[type='submit']{
	color : #fff;
	border-radius: 8px;
}

/* ===== Links ===== */
.wd-home-v2 a{
  text-decoration:none;
  transition:color .15s ease, background-color .15s ease, transform .15s ease;
}

.wd-home-v2 a:hover{
  color:#0E4A80;
}

/* ===== Add to cart (Home products) ===== */

.wd-home-v2 .home-product-card__actions a,
.wd-home-v2 .home-product-card__actions .button,
.wd-home-v2 .home-product-card__actions a.button{
  width:100%;
  min-height:44px;
  border-radius:14px !important;
  background:#0B3A64 !important;
  border:1px solid rgba(11,58,100,.22) !important;
  color:#fff !important;
  font-weight:900 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  box-shadow:0 12px 24px rgba(11,58,100,.18);
  transition:transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

/* Hover */
.wd-home-v2 .home-product-card__actions a:hover,
.wd-home-v2 .home-product-card__actions .button:hover{
  background:#0E4A80 !important;
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(11,58,100,.22);
  border-color:rgba(11,58,100,.35) !important;
}

/* حالت loading / added */
.wd-home-v2 .home-product-card__actions a.loading{
  opacity:.85;
  pointer-events:none;
}
.wd-home-v2 .home-product-card__actions a.added{
  background:rgba(22,163,74,.95) !important;
  border-color:rgba(22,163,74,.30) !important;
  box-shadow:0 16px 30px rgba(22,163,74,.18);
}

/* ===== Make cards feel premium ===== */
.wd-home-v2 .home-product-card,
.wd-home-v2 .home-usecase,
.wd-home-v2 .home-why__item{
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(11,58,100,.02));
}
.wd-home-v2 .home-product-card__media img{
  transition:transform .25s ease, filter .25s ease;
}
.wd-home-v2 .home-product-card:hover .home-product-card__media img{
  transform:scale(1.04);
  filter:saturate(1.05);
}
.wd-home-v2 .home-usecase__media img{
  width:100%;
  height:auto;
  border-radius:16px;
  box-shadow:0 14px 32px rgba(17,24,39,.14);
  transition:transform .25s ease;
}

.wd-home-v2 .home-usecase:hover .home-usecase__media img{
  transform:scale(1.05);
}
/* =========================
   Fix Usecase Image Height
   ========================= */

.wd-home-v2 .home-usecase__media{
  position: relative;
  width: 100%;
  height: 400px;              /* ارتفاع ثابت – قابل تغییر */
  overflow: hidden;
  border-radius: 18px;
  background: #f5f7fa;
}

/* خود تصویر */
.wd-home-v2 .home-usecase__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* مهم‌ترین خط */
  object-position: center;
  display: block;
  transition: transform .35s ease;
}

/* افکت hover ظریف */
.wd-home-v2 .home-usecase:hover .home-usecase__media img{
  transform: scale(1.06);
}
@media (max-width: 768px){
  .wd-home-v2 .home-usecase__media{
    height: 220px;
  }
}
/* WoodMart RTL dropdown fix: force submenu to anchor to its parent item */
.whb-header .wd-nav-main > ul > li.menu-item-has-children {
  position: relative !important;
}

.whb-header .wd-nav-main > ul > li.menu-item-has-children > .sub-menu {
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  margin-top: 0 !important;
  z-index: 999999 !important;
}

/* prevent clipping */
.whb-header,
.whb-row,
.whb-main-header,
.whb-column,
.wd-header-nav {
  overflow: visible !important;
}

.whb-header .wd-header-nav,
.whb-header .wd-nav-main {
  position: relative !important;
}
.home-why__grid{
	text-align: center;
}

