/*
Theme Name: Aradbranding-shop-wp
Theme URI: https://aradbranding.com/fa
Author: Aradbranding Developers
Author URI: https://aradbranding.com/fa
Description: قالب اختصاصی فروشگاهی توسعه داده شده توسط  آرادبرندینگ
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: aradbranding-shop-wp
Tags: custom-theme, shop, blog
*/

/* ریست پایه margin و padding برای همه عناصر اصلی */
html,
body {
  margin: 0;
  padding: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select,
button,
nav,
.main-menu,
.site-header,
.header-search,
.header-inner,
#adminmenu,
.nav-tab,
.wrap,
.form-table {
  font-family: Vazir, Tahoma, Arial, sans-serif !important;
}

body.home {
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 45%, #fdf4ff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.home::before,
body.home::after {
  content: '';
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}

body.home::before {
  background: radial-gradient(circle, rgba(102, 126, 234, 0.45) 0%, transparent 70%);
  top: -160px;
  right: -120px;
}

body.home::after {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
  bottom: -200px;
  left: -140px;
}

.home section {
  position: relative;
  z-index: 1;
}

.site-header {
  background: #2b2b2b;
  color: #fff;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  box-sizing: border-box;
}
.branding {
  display: flex;
  align-items: center;
}
.site-logo-placeholder {
  font-size: 2rem;
  font-weight: bold;
  color: #faaf40;
}
.main-nav {
  flex: 1;
  text-align: center;
  margin: 0 30px;
}
.header-search {
  min-width: 180px;
  text-align: left;
}
.header-search form,
.mobile-menu-search form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.header-search input[type="search"],
.mobile-menu-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 7px 10px;
  background: transparent;
  color: #333;
  font-family: Vazir, Tahoma, Arial, sans-serif;
  direction: rtl;
}
.header-search button,
.mobile-menu-search button {
  background: #faaf40;
  color: #fff;
  padding: 7px 14px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 0;
  font-family: Vazir, Tahoma, Arial, sans-serif;
}
body.menu-open {
  overflow: hidden;
  touch-action: none;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 900;
}
.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-search {
  display: none;
  width: 100%;
}
.mobile-menu-search form {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-inline-start: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.menu-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 3px;
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}
.menu-toggle .menu-line {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-menu,
.main-nav .main-menu {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  list-style: none !important;
  gap: 1rem;
  background: none;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.main-menu > li {
  display: inline-block;
  margin: 0;
  padding: 0;
  position: relative;
}
.main-menu > li > a {
  color: #f7f7f7;
  text-decoration: none;
  font-size: 1.08em;
  padding: 10px 6px;
  border-radius: 8px;
  transition: background 0.18s;
  display: block;
  font-weight: 600;
}
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
  background: #383838;
  color: #ffd062;
}

/* منوهای آبشاری (اگر اضافه شد) */
.main-menu li ul {
  display: none;
  position: absolute;
  background: #292929;
  right: 0;
  left: auto;
  min-width: 180px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 20px #10101425;
  z-index: 32;
  padding: 0;
  margin: 0;
}
.main-menu li:hover > ul {
  display: block;
}
.main-menu li ul li {
  display: block;
  border-bottom: 1px solid #363636;
}
.main-menu li ul li a {
  color: #fafafa;
  padding: 9px 16px;
  border-radius: 0;
  text-align: right;
  font-size: 0.98em;
}

/* مقدار رنگ وقفی برای اکتیو منو را پاک می‌کنیم و اجازه می‌دهیم مقدار از html (style اینلاین header.php) ترجیح داده شود */
.main-menu > li.current-menu-item > a,
.main-menu > li > a.active {
  color: var(--ar-menu-active) !important;
  /* پس‌زمینه می‌تواند رنگ هاور بگیرد یا مقدار سفارشی یا هیچ‌کدام */
}

/* ریسپانسیو */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 1rem;
    position: relative;
    z-index: 1002;
  }
  .branding {
    order: 1;
  }
  .menu-toggle {
    display: inline-flex;
    order: 2;
    margin-inline-start: auto;
    z-index: 1003;
  }
  .header-search {
    display: none;
  }
  .header-search form {
    width: 100%;
  }
  .main-nav {
    order: 4;
    position: fixed;
    inset: 0;
    padding: clamp(5rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 3.5rem)
      clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(
      135deg,
      rgba(30, 30, 30, 0.94) 0%,
      rgba(19, 19, 19, 0.92) 55%,
      rgba(20, 20, 20, 0.94) 100%
    );
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
      opacity 0.28s ease-out, visibility 0s linear 0.4s;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    z-index: 1001;
    pointer-events: none;
  }
  .main-nav.is-open {
    margin: 0;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
      opacity 0.28s ease-out;
  }
  .main-nav .main-menu {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .mobile-menu-search {
    display: block;
  }
  .mobile-menu-search form {
    width: 100%;
  }
  .main-nav .main-menu > li {
    width: 100%;
    display: block;
  }
  .main-nav .main-menu > li > a {
    display: block;
    width: 100%;
    padding: 8px 0;
    border-radius: 14px;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, background 0.22s ease,
      box-shadow 0.22s ease;
  }
  .main-nav .main-menu > li > a:hover,
  .main-nav .main-menu > li > a:focus {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
  }
  .menu-overlay {
    z-index: 1000;
  }
}
@media (max-width: 600px) {
  .menu-toggle {
    margin-inline-start: 0;
  }
  .header-inner {
    gap: 10px;
    padding: 0.55rem 0.75rem;
  }
  .main-nav {
    padding: clamp(4.4rem, 13vw, 5rem) 1.4rem 3.2rem;
  }
  .main-nav .main-menu > li > a {
    font-size: 1.05rem;
  }
}

@keyframes heroFloat {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.01);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

@keyframes heroGlow {
  0% {
    opacity: 0.4;
    transform: translate(-18px, -12px) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(0px, 0px) scale(1.03);
  }
  100% {
    opacity: 0.4;
    transform: translate(-18px, -12px) scale(1);
  }
}

@keyframes cardShimmer {
  0% {
    opacity: 0;
    transform: translateX(-60%);
  }
  50% {
    opacity: 0.35;
    transform: translateX(60%);
  }
  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes softPulse {
  0% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.35;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================== */
/* بخش هیرو - Hero Section */
/* ================================================== */

.abad-hero-section {
  position: relative;
  background: radial-gradient(circle at top left, rgba(102, 126, 234, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 193, 7, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.92) 100%);
  padding: 72px 16px 86px;
  direction: rtl;
  overflow: hidden;
  border-radius: 0 0 48px 48px;
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.15);
}

.abad-hero-section::before,
.abad-hero-section::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.abad-hero-section::before {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, transparent 70%);
  top: -160px;
  left: -80px;
}

.abad-hero-section::after {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.28) 0%, transparent 70%);
  bottom: -220px;
  right: -60px;
}

.abad-hero-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.abad-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.abad-hero-media::before {
  content: '';
  position: absolute;
  inset: -32px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

.abad-hero-dots-grid {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 96px;
  height: 96px;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.15) 2px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.7;
  z-index: 0;
  animation: softPulse 4.5s ease-in-out infinite;
}

.abad-hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.18);
  z-index: 1;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.42), rgba(59, 130, 246, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: fadeUp 0.9s ease both, heroFloat 12s ease-in-out infinite;
}

.abad-hero-image-frame::after {
  content: '';
  position: absolute;
  inset: -60% 45% 55% -50%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transform: rotate(12deg);
  animation: cardShimmer 8s ease-in-out infinite;
}

.abad-hero-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.abad-hero-content {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.85s ease both;
}

.abad-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.abad-hero-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.18);
}

.abad-hero-title {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.6px;
}

.abad-hero-description {
  font-size: 1.08rem;
  color: #475569;
  line-height: 1.85;
  margin: 0;
  max-width: 520px;
}

.abad-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.abad-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 18px 40px -12px rgba(99, 102, 241, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-direction: row-reverse;
}

.abad-hero-btn-primary::after {
  content: '←';
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.abad-hero-btn-primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 22px 48px -10px rgba(99, 102, 241, 0.6);
}

.abad-hero-btn-primary:hover::after {
  transform: translateX(-4px);
}

.abad-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.25s ease;
  flex-direction: row-reverse;
}

.abad-hero-btn-secondary::after {
  content: '←';
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.abad-hero-btn-secondary:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
}

.abad-hero-btn-secondary:hover::after {
  transform: translateX(-4px);
}

@media (max-width: 900px) {
  .abad-hero-container {
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: center;
  }
  .abad-hero-content {
    text-align: center;
    align-items: center;
  }
  .abad-hero-actions {
    justify-content: center;
  }
  .abad-hero-label {
    margin: 0 auto;
  }
  .abad-hero-dots-grid {
    top: -24px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {
  .abad-hero-section {
    padding: 32px 12px 44px;
  }
  .abad-hero-title {
    font-size: 1.65rem;
  }
  .abad-hero-description {
    font-size: 0.95rem;
  }
  .abad-hero-actions {
    flex-direction: column;
  }
  .abad-hero-btn-primary,
  .abad-hero-btn-secondary {
    width: 100%;
    text-align: center;
  }
  .abad-hero-image-frame {
    max-width: 100%;
    height: 320px;
  }
  .abad-hero-label {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  .abad-hero-content {
    text-align: center;
  }
  .abad-hero-dots-grid {
    width: 60px;
    height: 60px;
  }
}

/* ================================================== */
/* بخش مقالات بلاگ - Blog Posts Section */
/* ================================================== */

.abad-blog-section {
  position: relative;
  background: linear-gradient(180deg, rgba(241, 245, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 65%, #ffffff 100%);
  padding: 90px 20px 100px;
  direction: rtl;
  overflow: hidden;
}

.abad-blog-section::before,
.abad-blog-section::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.abad-blog-section::before {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.32) 0%, transparent 70%);
  top: -220px;
  right: -160px;
}

.abad-blog-section::after {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.24) 0%, transparent 70%);
  bottom: -260px;
  left: -120px;
}

.abad-blog-container {
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- هدر بخش --- */
.abad-blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
  padding: 22px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 55px rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(203, 213, 225, 0.42);
  flex-wrap: wrap;
  animation: fadeUp 0.85s ease both;
}

.abad-blog-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.6px;
  position: relative;
  padding-bottom: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.abad-blog-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 92px;
  height: 5px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 4px;
}

.abad-blog-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4338ca;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.24);
  box-shadow: 0 12px 25px rgba(99, 102, 241, 0.18);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-direction: row-reverse;
}

.abad-blog-view-all svg {
  transition: transform 0.2s ease;
}

.abad-blog-view-all:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: transparent;
  box-shadow: 0 18px 35px rgba(99, 102, 241, 0.28);
}

.abad-blog-view-all:hover svg {
  transform: translateX(-4px);
}

/* --- Grid ساده --- */
.abad-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* --- کارت مقاله --- */
.abad-blog-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(14px);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.abad-blog-card:nth-child(2n) {
  animation-delay: 0.1s;
}

.abad-blog-card:nth-child(3n) {
  animation-delay: 0.18s;
}

.abad-blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(244, 114, 182, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.abad-blog-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 35px 60px rgba(15, 23, 42, 0.16);
  border-color: rgba(129, 140, 248, 0.45);
}

.abad-blog-card:hover::before {
  opacity: 1;
}

/* --- تصویر مقاله --- */
.abad-blog-thumbnail {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f5f5f5;
}

.abad-blog-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.abad-blog-card:hover .abad-blog-thumbnail::after {
  opacity: 1;
}

.abad-blog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.abad-blog-card:hover .abad-blog-thumbnail img {
  transform: scale(1.08);
}

/* --- دسته‌بندی‌ها --- */
.abad-blog-categories {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.abad-blog-cat-tag {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: #4c1d95;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(129, 140, 248, 0.2);
  box-shadow: 0 6px 12px rgba(79, 70, 229, 0.1);
}

.abad-blog-cat-tag:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  transform: translateY(-2px);
}

/* --- محتوای کارت --- */
.abad-blog-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.abad-blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.abad-blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.abad-blog-card-title a:hover {
  color: #4f46e5;
}

.abad-blog-excerpt {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.75;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* --- متا (تاریخ، نویسنده، لینک) --- */
.abad-blog-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: auto;
}

.abad-blog-date,
.abad-blog-author,
.abad-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
  flex-direction: row-reverse;
}

.abad-blog-date svg,
.abad-blog-author svg,
.abad-blog-read-more svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.abad-blog-read-more {
  margin-right: auto;
  color: #4f46e5;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 700;
  flex-direction: row-reverse;
}

.abad-blog-read-more svg {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.abad-blog-read-more:hover {
  color: #4338ca;
  gap: 9px;
}

.abad-blog-read-more:hover svg {
  transform: rotate(180deg) translateX(4px);
}

/* ================================================== */
/* بخش محصولات - Products Section */
/* ================================================== */

.main-products-list {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 90px 20px 100px;
  direction: rtl;
  z-index: 1;
}

.main-products-list::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(241, 245, 249, 0.7) 65%, rgba(241, 245, 249, 0.95) 100%);
  border-radius: 42px;
  filter: blur(0px);
  z-index: -1;
}

/* --- هدر بخش محصولات --- */
.products-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.products-header::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0) 0%, rgba(148, 163, 184, 0.6) 50%, rgba(148, 163, 184, 0) 100%);
}

.products-header-content {
  padding: 22px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 55px rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(203, 213, 225, 0.42);
  backdrop-filter: blur(18px);
  animation: fadeUp 0.85s ease both;
}

.products-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 14px 0;
  letter-spacing: -0.6px;
  position: relative;
}

.products-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
}

.products-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin: 28px auto 0;
  line-height: 1.9;
  max-width: 560px;
}

/* --- Grid محصولات --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

/* --- کارت محصول --- */
.product-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--abad-product-card-bg, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: fadeUp 0.75s ease forwards;
}

.product-card:nth-child(2n) {
  animation-delay: 0.08s;
}

.product-card:nth-child(3n) {
  animation-delay: 0.16s;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(244, 114, 182, 0.12));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 36px 65px rgba(15, 23, 42, 0.16);
  border-color: rgba(99, 102, 241, 0.4);
}

.product-card:hover::before {
  opacity: 1;
}

.product-thumb {
  display: block;
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.product-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-thumb::after {
  opacity: 1;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.product-content {
  padding: 22px;
  width: 100%;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f172a;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* min-height: 3.4em; */
}

.product-price {
  color: var(--abad-product-price-color, #0ea5e9);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: 0.3px;
  min-height: 1.8em;
  background: rgba(236, 254, 255, 0.65);
  border-radius: 999px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  border: 1px solid rgba(14, 165, 233, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.product-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-top: auto;
  box-shadow: 0 18px 35px rgba(59, 130, 246, 0.22);
  background: var(--abad-product-btn-bg, linear-gradient(135deg, #f97316, #f59e0b));
  color: var(--abad-product-btn-text, #111827);
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex-direction: row-reverse;
}


.product-detail-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 45px rgba(59, 130, 246, 0.28);
  filter: brightness(1.05);
}

.product-detail-btn:hover::after {
  transform: translateX(-4px);
}

/* ================================================== */
/* Responsive - بخش محصولات */
/* ================================================== */

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .main-products-list {
    padding: 60px 16px;
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .products-title {
    font-size: 1.8rem;
  }
  
  .products-subtitle {
    font-size: 0.95rem;
  }
  
  .main-products-list {
    padding: 50px 16px;
  }
  
  .products-header {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .products-header::after {
    width: 120px;
    bottom: -16px;
  }
  
  .products-header-content {
    padding: 18px 20px;
  }
  
  .products-title {
    font-size: 1.6rem;
  }
  
  .products-subtitle {
    font-size: 0.9rem;
    margin-top: 18px;
  }
  
  .product-card {
    border-radius: 20px;
  }
  
  .product-title {
    font-size: 0.95rem !important;
    /* min-height: 2em; */
  }
  
  .product-detail-btn {
    font-size: 0.82rem !important;
    padding: 11px 18px;
  }
  
  .product-thumb {
    position: relative;
    width: 100%;
    height: auto !important;
    padding-top: 100%;
    max-height: none;
  }
  
  .product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .product-content {
    padding: 14px;
    gap: 10px;
  }
  
  .product-price {
    font-size: 0.9rem;
    min-height: auto;
    padding: 7px 16px;
  }
  
  .main-products-list {
    padding: 20px 12px 60px;
  }
}

@media (max-width: 520px) {
  .products-title {
    font-size: 1.35rem;
  }
  
  .products-header-content {
    padding: 16px;
  }
  
  .product-title {
    font-size: 0.88rem !important;
  }
}

/* ================================================== */
/* Responsive - بخش مقالات */
/* ================================================== */

@media (max-width: 1200px) {
  .abad-blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .abad-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .abad-blog-section {
    padding: 50px 16px 60px;
  }
  
  .abad-blog-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .abad-blog-grid {
    grid-template-columns: 1fr;
  }
  
  .abad-blog-header {
    margin-bottom: 32px;
    gap: 12px;
    padding: 18px 20px;
    flex-wrap: nowrap;
  }
  
  .abad-blog-title {
    font-size: 1.6rem;
  }
  
  .abad-blog-view-all {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .abad-blog-content {
    padding: 18px;
  }
  
  .abad-blog-card-title {
    font-size: 0.95rem;
  }
  
  .abad-blog-excerpt {
    font-size: 0.88rem;
  }
  
  .abad-blog-thumbnail {
    height: 200px;
  }
  
  .abad-blog-section {
    padding: 60px 12px 20px;
  }
  
  .abad-blog-meta {
    gap: 12px;
    font-size: 0.75rem;
  }
  
  .abad-blog-date,
  .abad-blog-author,
  .abad-blog-read-more {
    font-size: 0.75rem;
  }
}

@media (max-width: 520px) {
  .abad-blog-header {
    padding: 16px;
  }
  .abad-blog-title {
    font-size: 1.35rem;
  }
  .abad-blog-view-all {
    font-size: 0.78rem;
    padding: 10px 16px;
    gap: 6px;
  }
  .abad-blog-view-all svg {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abad-hero-image-frame,
  .abad-hero-content,
  .abad-blog-header,
  .abad-blog-card,
  .products-header-content,
  .product-card {
    animation: none !important;
  }
}

/* ================================================== */
/* Footer - فوتر مدرن و حرفه‌ای */
/* ================================================== */

.abad-footer {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #e2e8f0;
  margin-top: auto;
  overflow: hidden;
}

.abad-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.abad-footer-wave {
  position: relative;
  width: 100%;
  transform: translateY(1px);
  line-height: 0;
}

.abad-footer-wave svg {
  width: 100%;
  height: auto;
  display: block;
}

.abad-footer-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px 0;
  z-index: 1;
}

.abad-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.abad-footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- ستون لوگو و درباره --- */
.abad-footer-about {
  gap: 16px;
}

.abad-footer-logo {
  width: 180px;
  height: 60px;
  object-fit: contain;
  object-position: right center;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.abad-footer-logo:hover {
  transform: scale(1.05);
}

.abad-footer-logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.abad-footer-desc {
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0;
  font-size: 0.95rem;
}

/* --- شبکه‌های اجتماعی --- */
.abad-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.abad-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.abad-social-link svg {
  width: 20px;
  height: 20px;
}

.abad-social-link:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* --- تایتل‌ها --- */
.abad-footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 4px 0;
  position: relative;
  padding-bottom: 12px;
}

.abad-footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 2px;
}

/* --- لینک‌ها --- */
.abad-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.abad-footer-links li {
  position: relative;
  padding-right: 0;
}

.abad-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.abad-footer-links a::before {
  content: '←';
  opacity: 0;
  transform: translateX(5px);
  transition: all 0.25s ease;
  color: #6366f1;
}

.abad-footer-links a:hover {
  color: #f8fafc;
  padding-right: 16px;
}

.abad-footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* --- اطلاعات تماس --- */
.abad-footer-contact {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.9;
}

.abad-footer-contact p {
  margin: 0 0 8px 0;
}

.abad-footer-contact a {
  color: #818cf8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.abad-footer-contact a:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

/* --- فوتر پایین --- */
.abad-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-top: 0;
  gap: 20px;
  flex-wrap: wrap;
}

.abad-footer-copyright {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.abad-footer-badges {
  display: flex;
  gap: 12px;
}

.abad-footer-badge {
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* ================================================== */
/* Responsive - فوتر */
/* ================================================== */

@media (max-width: 1024px) {
  .abad-footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }
  
  .abad-footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .abad-footer-container {
    padding: 40px 16px 0;
  }
  
  .abad-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  
  .abad-footer-col:last-child {
    grid-column: auto;
  }
  
  .abad-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  
  .abad-footer-title::after {
    right: 50%;
    transform: translateX(50%);
  }
  
  .abad-footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .abad-footer-container {
    padding: 32px 12px 0;
  }
  
  .abad-footer-logo {
    width: 140px;
    height: 50px;
  }
  
  .abad-footer-logo-text {
    font-size: 1.5rem;
  }
  
  .abad-social-link {
    width: 40px;
    height: 40px;
  }
  
  .abad-social-link svg {
    width: 18px;
    height: 18px;
  }
  
  .abad-footer-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
  }
}

