/*
Theme Name:  DinaKala Child
Description: DinaKala Child Theme
Author:      Meysam Hosseinkhani
Author URI:  https://i-design.ir
Template:    dinakala
Version:     1.0.0
Text Domain: dina-kala
*/

/* ==========================================================================
   ۱. متغیرهای هویت بصری و پالت رنگی (Apple Plus / Liquid Glass)
   ========================================================================== */
:root {
  /* پالت رنگی اصلی */
  --brand-primary: #E30613;
  --brand-primary-hover: #C40510;
  --brand-primary-glow: rgba(227, 6, 19, 0.35);

  --text-main: #1D1D1F;
  --text-muted: #86868B;
  --text-sub: #6E6E73;

  /* سطح شیشه‌ای (Glass Surface) */
  --glass-bg: rgba(255, 255, 255, 0.70);
  --glass-border: rgba(255, 255, 255, 0.40);
  --glass-blur: 25px;
  --glass-saturate: 180%;
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);

  /* حالت هاور شیشه */
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border-hover: rgba(255, 255, 255, 0.70);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.10);

  /* گرادینت پس‌زمینه اصلی (Canvas) */
  --canvas-bg: linear-gradient(135deg, #FFFFFF 0%, #F5F5F7 100%);
}

/* ==========================================================================
   ۲. اعمال پس‌زمینه اصلی به کل سایت
   ========================================================================== */
body {
  background: var(--canvas-bg) !important;
  color: var(--text-main);
  background-attachment: fixed;
}

/* ==========================================================================
   ۳. کلاس‌های کاربردی لیکویید گلس (Liquid Glass Classes)
   ========================================================================== */
.glass-card,
.glass-panel {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, backdrop-filter;
  transform: translateZ(0);
}

/* افکت هاور روی کارت‌ها و پنل‌های شیشه‌ای */
.glass-card:hover,
.glass-panel:hover {
  background: var(--glass-bg-hover) !important;
  border-color: var(--glass-border-hover) !important;
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
}

/* ==========================================================================
   ۴. استایل دکمه اصلی برند (Call to Action Button)
   ========================================================================== */
.btn-primary-glass,
.single_add_to_cart_button {
  background-color: var(--brand-primary) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px var(--brand-primary-glow) !important;
}

/* هاور دکمه اصلی */
.btn-primary-glass:hover,
.single_add_to_cart_button:hover {
  background-color: var(--brand-primary-hover) !important;
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.5) !important;
  transform: scale(1.02);
}

/* ==========================================================================
   ۵. بهینه‌سازی و Fallback برای سیستم‌های قدیمی‌تر
   ========================================================================== */
@supports not (backdrop-filter: blur(25px)) {
  .glass-card,
  .glass-panel {
    background: rgba(245, 245, 247, 0.95) !important;
  }
}
/* تنظیم ساختار اصلی هدر */
.site-header-wrapper {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* محدود کردن سایز لوگو */
.site-branding img,
.site-branding .custom-logo {
    max-height: 45px; /* ارتفاع دلخواه لوگو */
    width: auto;
    display: block;
    object-fit: contain;
}

/* استایل منوی اصلی */
.main-navigation .desktop-nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .desktop-nav-list a {
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation .desktop-nav-list a:hover {
    color: #0071e3;
}

/* استایل دکمه‌های اکشن (حساب کاربری و سبد خرید) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-account-btn,
.glass-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f5f5f7;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.cart-count {
    background: #0071e3;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}
/* کنترل دقیق ابعاد لوگو */
.site-branding .header-logo-img {
    max-height: 40px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
    display: block;
}

.site-branding .site-title-text {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
}

/* ساختار کلی هدر */
.site-header-wrapper {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* نوار جستجو */
.header-search-form {
    flex: 1;
    max-width: 380px;
}

.search-form-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: #ffffff;
    border-color: #0071e3;
}

.search-submit-btn {
    position: absolute;
    left: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
}

/* منوی اصلی و مگامنو (زیر منوها) */
.main-navigation .desktop-nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .desktop-nav-list > li {
    position: relative;
}

.main-navigation .desktop-nav-list a {
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

/* استایل زیرمنو (Submenu / Mega Menu) */
.main-navigation .desktop-nav-list ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.main-navigation .desktop-nav-list li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .desktop-nav-list ul a {
    padding: 8px 16px;
    font-size: 13px;
}

.main-navigation .desktop-nav-list ul a:hover {
    background: #f5f5f7;
    color: #0071e3;
}

/* دکمه‌های اکشن */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-account-btn,
.glass-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f5f5f7;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.cart-count {
    background: #0071e3;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}
/* ============ پایه ============ */
.apple-plus-header-wrapper {
  position: sticky;
  top: 10px;
  z-index: 9999;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  direction: rtl;
}

/* ============ هدر اصلی ============ */
.main-glass-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px 20px 6px 6px;
  padding: 10px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}
.header-container { display: flex; align-items: center; justify-content: space-between; gap: 15px; }

/* لوگو — بدون هاور (عمدی) */
.brand-logo { font-size: 20px; font-weight: 900; color: #1D1D1F; text-decoration: none; white-space: nowrap; }
.brand-logo .red-txt { color: #E30613; }

/* جستجو */
.header-search-form {
  flex: 1; max-width: 450px; display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px; padding: 4px 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search-form:focus-within {
  border-color: rgba(227, 6, 19, 0.4);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}
.header-search-form input { flex: 1; border: none; outline: none; background: transparent; font-size: 12.5px; }
.header-search-form button {
  background: none; border: none; cursor: pointer; color: #86868B;
  display: grid; place-items: center; padding: 4px; border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.header-search-form button:hover { color: #E30613; background: rgba(227, 6, 19, 0.06); }

/* ============ زبان یکدست هاور ============
   الگوی مشترک همه دکمه‌ها: translateY(-1px) + قرمز برند
   فقط شدت سایه بر اساس سلسله‌مراتب دکمه متفاوت است */

.header-actions { display: flex; align-items: center; gap: 10px; }
.user-account-btn, .glass-cart-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 12px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease,
              background .2s ease, color .2s ease, border-color .2s ease;
}

/* دکمه ثانویه (ورود) */
.user-account-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1D1D1F;
}
.user-account-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 6, 19, 0.35);
  color: #E30613;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.10);
}

/* دکمه اصلی (سبد) — همان الگو، شدت بیشتر */
.glass-cart-btn {
  background: #E30613; color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25);
}
.glass-cart-btn:hover {
  transform: translateY(-1px);
  background: #c00510;
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.35);
}
.cart-count {
  background: #fff; color: #E30613; padding: 1px 7px;
  border-radius: 10px; font-size: 11px; min-width: 18px; text-align: center;
  transition: transform .2s ease;
}
.glass-cart-btn:hover .cart-count { transform: scale(1.1); }
/* مخفی کردن شمارنده وقتی صفر است */
.glass-cart-btn.empty .cart-count { display: none; }

/* ============ نوار دسته‌بندی ============ */
.sub-category-bar {
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 8px 20px;
}
.bar-container { display: flex; align-items: center; gap: 20px; }

.cat-item { position: relative; padding: 4px 0; }
.cat-title {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 700; color: #1D1D1F;
  display: inline-flex; align-items: center; gap: 4px;
  transition: transform .2s ease, color .2s ease; padding: 0;
}
.cat-title .chev { font-size: 10px; transition: transform .2s ease; }
.cat-item:hover .cat-title, .cat-item.open .cat-title { color: #E30613; transform: translateY(-1px); }
.cat-item:hover .chev, .cat-item.open .chev { transform: rotate(180deg); }
.cat-link { text-decoration: none; }

/* ============ مگامنوی چندستونه با آیکون ============ */
.mega-glass-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mega-glass-dropdown::before {
  content: ""; position: absolute; top: -6px; right: 30px;
  width: 12px; height: 12px; background: rgba(255,255,255,0.95);
  transform: rotate(45deg);
  border-left: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mega-models { width: 480px; }
.mega-parts { width: 460px; }
.mega-accessories { width: 560px; }

.cat-item:hover .mega-glass-dropdown,
.cat-item.open .mega-glass-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-heading {
  font-size: 11px; font-weight: 800; color: #86868B;
  margin: 0 0 6px; padding: 0 10px; letter-spacing: .2px;
}
.mega-link {
  padding: 8px 10px; font-size: 12.5px; font-weight: 600;
  color: #1D1D1F; text-decoration: none; border-radius: 10px;
  transition: all .15s ease;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mega-link:hover { background: rgba(227, 6, 19, 0.07); color: #E30613; transform: translateX(-2px); }
.mega-link.hot { font-weight: 800; }
.badge-new {
  background: rgba(227, 6, 19, 0.1); color: #E30613;
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 20px;
}

/* بنر تبلیغاتی داخل مگامنو */
.mega-promo {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(227,6,19,0.06), rgba(227,6,19,0.02));
  border: 1px solid rgba(227, 6, 19, 0.15);
  border-radius: 12px; padding: 12px 14px;
  text-decoration: none; display: flex; flex-direction: column; gap: 3px;
  transition: all .2s ease;
}
.mega-promo strong { font-size: 12.5px; color: #1D1D1F; }
.mega-promo span { font-size: 11.5px; color: #E30613; font-weight: 700; }
.mega-promo:hover { background: rgba(227, 6, 19, 0.1); border-color: rgba(227, 6, 19, 0.3); }
.mega-promo.red { background: linear-gradient(135deg, #E30613, #b3050f); }
.mega-promo.red strong, .mega-promo.red span { color: #fff; }
.mega-promo.red:hover { filter: brightness(1.08); }

/* لینک تعمیرات — همان زبان هاور */
.repair-cta-link {
  margin-right: auto; font-size: 12.5px; font-weight: 800;
  color: #E30613; text-decoration: none;
  padding: 6px 14px; border-radius: 10px;
  border: 1px solid transparent;
  transition: all .2s ease; white-space: nowrap;
}
.repair-cta-link:hover {
  transform: translateY(-1px);
  background: rgba(227, 6, 19, 0.07);
  border-color: rgba(227, 6, 19, 0.25);
}

/* ============ همبرگری و دراور موبایل ============ */
.hamburger-btn {
  display: none;
  position: absolute; top: 14px; left: 14px; z-index: 10001;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.hamburger-btn span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: #1D1D1F; transition: all .25s ease;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(29, 29, 31, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.mobile-drawer-overlay.show { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 10002;
  width: min(320px, 85vw);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(25px) saturate(180%);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  display: flex; flex-direction: column;
  padding: 16px; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 10px; border: none;
  background: rgba(0, 0, 0, 0.05); cursor: pointer; font-size: 14px; color: #1D1D1F;
}
.drawer-search {
  display: flex; background: rgba(245,245,247,0.9);
  border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
  padding: 4px 10px; margin-bottom: 14px;
}
.drawer-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 13px; }
.drawer-search button { background: none; border: none; cursor: pointer; }

.drawer-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.drawer-group summary {
  list-style: none; cursor: pointer; padding: 11px 12px;
  font-size: 13px; font-weight: 700; color: #1D1D1F;
  border-radius: 12px; transition: background .2s ease, color .2s ease;
}
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary:hover { background: rgba(227, 6, 19, 0.06); color: #E30613; }
.drawer-group[open] summary { color: #E30613; }
.drawer-group a {
  display: block; padding: 9px 24px 9px 12px; font-size: 12.5px;
  color: #6E6E73; text-decoration: none; border-radius: 10px; font-weight: 600;
}
.drawer-group a:hover { color: #E30613; background: rgba(227, 6, 19, 0.05); }

.drawer-link {
  padding: 11px 12px; font-size: 13px; font-weight: 700;
  color: #1D1D1F; text-decoration: none; border-radius: 12px;
}
.drawer-link:hover { background: rgba(227, 6, 19, 0.06); color: #E30613; }

.drawer-repair-cta {
  margin-top: 8px; padding: 13px; text-align: center;
  background: linear-gradient(135deg, #E30613, #b3050f);
  color: #fff; font-size: 13px; font-weight: 800;
  text-decoration: none; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(227, 6, 19, 0.3);
}

.drawer-footer { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06); }
.drawer-account, .drawer-cart {
  flex: 1; text-align: center; padding: 11px; font-size: 12.5px; font-weight: 700;
  border-radius: 12px; text-decoration: none;
}
.drawer-account { background: rgba(245,245,247,0.9); color: #1D1D1F; }
.drawer-cart { background: #E30613; color: #fff; }

/* ============ ریسپانسیو ============ */
@media (max-width: 768px) {
  .hamburger-btn { display: flex; }
  .sub-category-bar, .header-search-form { display: none; }
  .apple-plus-header-wrapper { width: 98%; }
  .header-container { justify-content: flex-start; padding-left: 50px; }
  .cart-title { display: none; }
  .user-account-btn span { display: none; }
  .user-account-btn, .glass-cart-btn { padding: 8px 10px; }
}

/* فوکوس کیبورد */
:focus-visible { outline: 2px solid rgba(227, 6, 19, 0.5); outline-offset: 2px; border-radius: 8px; }

/* ==================================================
   استایل سکشن سوالات متداول (Liquid Glass Accordion)
   ================================================== */

.apple-faq-section {
  padding: 30px 15px 60px;
  direction: rtl;
}

.faq-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: var(--faq-border-accent, rgba(227, 6, 19, 0.2)) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.faq-question {
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  text-align: right;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #1d1d1f;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.faq-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item[open] .faq-icon::before {
  background-color: var(--faq-accent, #e30613);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 12.5px;
  color: #515154;
  line-height: 1.7;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  padding-top: 12px;
  text-align: right;
}

.faq-answer p {
  margin: 0 !important;
}

/* ==========================================================================
   ۱. استایل‌های پایه و شبکه (Grid) سکشن وبلاگ
   ========================================================================== */
.apple-blog-section {
  padding: 60px 15px;
  direction: rtl;
  font-family: inherit;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.header-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #e30613;
  background: rgba(227, 6, 19, 0.08);
  border: 1px solid rgba(227, 6, 19, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #1d1d1f;
  margin: 0;
  line-height: 1.3;
}

.view-all-link {
  font-size: 13px;
  font-weight: 700;
  color: #e30613;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(227, 6, 19, 0.05);
  border: 1px solid rgba(227, 6, 19, 0.15);
}

.view-all-link:hover {
  background: #e30613;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25);
  transform: translateY(-2px);
}

/* شبکه کارت‌ها (۳ ستونه) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   ۲. طراحی کارت مقاله (Glassmorphism)
   ========================================================================== */
.blog-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(227, 6, 19, 0.3);
  background: rgba(255, 255, 255, 0.85);
}

.blog-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f7;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

.blog-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #86868b;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 10px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.6;
  margin: 0 0 18px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.read-more-link {
  font-size: 13px;
  font-weight: 700;
  color: #e30613;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.blog-card:hover .read-more-link {
  gap: 8px;
}

/* ==========================================================================
   ۳. استایل شماره صفحات (Pagination) در صفحه آرشیو (home.php)
   ========================================================================== */
.blog-pagination ul {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-pagination ul li a,
.blog-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.blog-pagination ul li a:hover {
  background: rgba(227, 6, 19, 0.1);
  color: #e30613;
  border-color: rgba(227, 6, 19, 0.3);
}

.blog-pagination ul li span.current {
  background: #e30613;
  color: #ffffff;
  border-color: #e30613;
}

/* ==========================================================================
   ۴. واکنش‌گرایی (Responsive Design)
   ========================================================================== */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .view-all-link {
    align-self: flex-start;
  }
}
/* ==========================================================================
   استایل اختصاصی کامنت‌ها (مطابق با فایل comments.php)
   ========================================================================== */
.apple-comments-wrapper {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 24px !important;
  padding: 30px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

/* لیست کامنت‌ها */
ol.apple-comment-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 30px 0 !important;
}

ol.apple-comment-list li.comment {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 18px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  backdrop-filter: blur(10px);
}

/* تصویر آواتار کاربران */
ol.apple-comment-list .avatar {
  border-radius: 50% !important;
  margin-left: 12px !important;
}

/* فیلد متن دیدگاه هنگام فوکوس */
.comment-form textarea#comment:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus {
  border-color: #e30613 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1) !important;
}

/* دکمه ثبت دیدگاه */
.apple-submit-btn {
  background: #e30613 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25) !important;
}

.apple-submit-btn:hover {
  background: #c20510 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.35) !important;
}

/* دکمه بارگذاری بیشتر */
.apple-btn-loadmore {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.apple-btn-loadmore:hover {
  background: #ffffff !important;
  border-color: #e30613 !important;
  color: #e30613 !important;
}

/* ==========================================================================
   استایل شیشه‌ای و مدرن صفحه حساب کاربری (Apple My Account)
   ========================================================================== */

/* باکس اصلی حساب کاربری */
.apple-myaccount-wrapper {
  display: flex !important;
  gap: 30px !important;
  align-items: flex-start !important;
}

@media (max-width: 991px) {
  .apple-myaccount-wrapper {
    flex-direction: column !important;
  }
}

/* منوی سمت راست (Navigation) */
.woocommerce-MyAccount-navigation {
  width: 280px !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 24px !important;
  padding: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

@media (max-width: 991px) {
  .woocommerce-MyAccount-navigation {
    width: 100% !important;
  }
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.woocommerce-MyAccount-navigation ul li a {
  display: flex !important;
  align-items: center !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;
  color: #1d1d1f !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #e30613 !important;
  transform: translateX(-4px) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background: #e30613 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25) !important;
}

/* بخش محتوای تب‌ها */
.apple-myaccount-content {
  flex-grow: 1 !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 24px !important;
  padding: 35px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

/* جدول‌های سفارشات و اطلاعات */
.apple-myaccount-content table.shop_table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  margin-bottom: 25px !important;
}

.apple-myaccount-content table.shop_table th {
  background: rgba(0, 0, 0, 0.03) !important;
  color: #1d1d1f !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.apple-myaccount-content table.shop_table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  color: #333336 !important;
  font-size: 14px !important;
}

/* فیلدهای ورودی فرم‌های پروفایل و آدرس */
.apple-myaccount-content input[type="text"],
.apple-myaccount-content input[type="email"],
.apple-myaccount-content input[type="password"],
.apple-myaccount-content select,
.apple-myaccount-content textarea {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: all 0.25s ease !important;
}

.apple-myaccount-content input:focus,
.apple-myaccount-content select:focus,
.apple-myaccount-content textarea:focus {
  border-color: #e30613 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1) !important;
}

/* دکمه‌های ذخیره تغییرات و دکمه‌های اقدام */
.apple-myaccount-content button.button,
.apple-myaccount-content input[type="submit"],
.apple-myaccount-content a.button {
  background: #e30613 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 26px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25) !important;
}

.apple-myaccount-content button.button:hover,
.apple-myaccount-content input[type="submit"]:hover,
.apple-myaccount-content a.button:hover {
  background: #c20510 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.35) !important;
}
/* استایل کارت‌های شیشه‌ای صفحه تسویه‌حساب */
.apple-custom-checkout .checkout-glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

/* استایل اینپوت‌های فرم */
.woocommerce-checkout input.input-text, 
.woocommerce-checkout select {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease;
}

.woocommerce-checkout input.input-text:focus {
    border-color: #e30613 !important; /* یا رنگ سازمانی دلخواه */
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1) !important;
}
/* ==========================================================================
   ۴. نوار مسیریاب شیشه‌ای و مدرن (Breadcrumbs)
   ========================================================================== */
.dina-breadcrumbs {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    padding: 12px 20px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
}

/* لینک‌های مسیریاب */
.dina-breadcrumbs a.breadcrumb-link {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dina-breadcrumbs a.breadcrumb-link:hover {
    color: #e30613 !important;
}

/* جداکننده بین مسیرها */
.dina-breadcrumbs a.breadcrumb-link::after {
    content: "‹" !important;
    margin: 0 8px !important;
    color: #a0aec0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* آخرین لینک و عنوان محصول فعلی */
.dina-breadcrumbs .breadcrumb-last,
.dina-breadcrumbs a.breadcrumb-link-last {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
}

.dina-breadcrumbs span.breadcrumb-last {
    color: #e30613 !important;
    opacity: 0.9;
}
/* ==========================================================================
   ۵. باکس اصلی صفحه محصول (Glassmorphic Product Card)
   ========================================================================== */
.dina-product-con {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
}

/* ==========================================================================
   ۶. آیکون‌های اکشن شناور (اشتراک‌گذاری، علاقه‌مندی، بزرگ‌نمایی)
   ========================================================================== */
.dina-prod-opts {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 10 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dina-prod-opts li {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(229, 231, 235, 0.8) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.dina-prod-opts li:hover {
    background: #e30613 !important;
    border-color: #e30613 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(227, 6, 19, 0.3) !important;
}

/* استایل آیکون‌های فونت‌آسام و SVG داخل دکمه‌ها */
.dina-prod-opts li i,
.dina-prod-opts li svg {
    color: #1d1d1f !important;
    stroke: #1d1d1f !important;
    font-size: 16px !important;
    width: 18px !important;
    height: 18px !important;
    transition: all 0.2s ease !important;
}

.dina-prod-opts li:hover i,
.dina-prod-opts li:hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* مخفی کردن متن اضافی افزودن به علاقه‌مندی برای حفظ ظاهر دایره‌ای */
.dina-prod-opts .yith-wcwl-add-button span {
    display: none !important;
}
/* استایل کلی کارت محصول */
.dina-mini-product.product-6650 {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 12px;
  text-align: center;
}

.dina-mini-product.product-6650:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* تصویر محصول */
.dina-mini-product.product-6650 .dina-img-con {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
}

.dina-mini-product.product-6650 .dina-img-con img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dina-mini-product.product-6650:hover .dina-img-con img {
  transform: scale(1.04);
}

/* جزئیات و عنوان */
.dina-mini-product.product-6650 .product-title {
  margin-bottom: 8px;
}

.dina-mini-product.product-6650 .product-title a {
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.dina-mini-product.product-6650 .product-title a:hover {
  color: #007bff;
}

/* قیمت */
.dina-mini-product.product-6650 .dina-product-price {
  margin-bottom: 12px;
}

.dina-mini-product.product-6650 .woocommerce-Price-amount {
  font-size: 15px;
  font-weight: 700;
  color: #2e7d32;
}

.dina-mini-product.product-6650 .woocommerce-Price-currencySymbol {
  font-size: 11px;
  font-weight: 400;
  margin-right: 2px;
}

/* دکمه افزودن به سبد خرید ثابت */
.dina-mini-product.product-6650 .dina-btn-buy {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* دکمه‌های شناور/هاور (مشاهده سریع و علاقه‌مندی) */
.dina-mini-product.product-6650 .dina-prod-hover-btns {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2;
}

.dina-mini-product.product-6650:hover .dina-prod-hover-btns {
  opacity: 1;
  visibility: visible;
}

.dina-mini-product.product-6650 .dina-prod-hover-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: none;
}

.dina-mini-product.product-6650 .yith-wcwl-icon-svg {
  width: 18px;
  height: 18px;
}
/* ==========================================================================
   ۱. تب‌های محصول (Woocommerce Tabs)
   ========================================================================== */
.woocommerce-tabs {
    margin-top: 40px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 10px !important;
    border-bottom: 2px solid #f0f0f2 !important;
    padding-bottom: 14px !important;
    margin-bottom: 24px !important;
    list-style: none !important;
}

.woocommerce-tabs ul.tabs li a {
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

/* تب فعال با رنگ قرمز برند */
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: #ffffff !important;
    background: #e30613 !important;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3) !important;
}

/* ==========================================================================
   ۲. بخش توضیحات (رفع محدودیت ارتفاع و نمایش کامل متن)
   ========================================================================== */
.dina-post-sh.dina-more-less {
    max-height: none !important; /* برداشتن محدودیت ارتفاع ۱۴۰ پیکسلی */
    min-height: auto !important;
    overflow: visible !important;
}

.dina-more-less-content {
    font-size: 14px !important;
    line-height: 2 !important;
    color: #1d1d1f !important;
}

.dina-more-less-content div {
    margin-bottom: 8px !important;
}

/* مخفی کردن افکت محوکننده و دکمه نمایش بیشتر در صورت عدم نیاز */
.dina-post-sh.dina-more-less::after {
    display: none !important;
}

.dina-showmore-button {
    margin-top: 20px !important;
}

.dina-showmore-button span {
    display: inline-block !important;
    padding: 8px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #e30613 !important;
    background: rgba(227, 6, 19, 0.08) !important;
    border: 1px solid rgba(227, 6, 19, 0.2) !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.dina-showmore-button span:hover {
    background: #e30613 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25) !important;
}

/* ==========================================================================
   ۳. فرم ثبت دیدگاه و امتیازدهی
   ========================================================================== */
#reviews .woocommerce-Reviews-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin-bottom: 18px !important;
}

.comment-form-rating .stars a {
    color: #e30613 !important;
}

.comment-form-comment textarea {
    width: 100% !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    padding: 14px !important;
    font-size: 14px !important;
    background: #fbfbfd !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.comment-form-comment textarea:focus {
    border-color: #e30613 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1) !important;
}

/* دکمه ارسال دیدگاه */
.dina-submit-review {
    background: #e30613 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25) !important;
    transition: all 0.25s ease !important;
}

.dina-submit-review:hover {
    background: #c20410 !important;
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.35) !important;
}
/* ==========================================================================
   ۱. عنوان و زیرعنوان محصول
   ========================================================================== */
.summary.entry-summary .product_title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1d1d1f !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
}

.dina-psub-title {
    font-size: 13px !important;
    color: #86868b !important;
    margin-bottom: 16px !important;
}

/* ==========================================================================
   ۲. پیام اطلاع‌رسانی و لیست ویژگی‌های محصول
   ========================================================================== */
.dina-product-message-before-product-features {
    background: rgba(227, 6, 19, 0.06) !important;
    border: 1px solid rgba(227, 6, 19, 0.15) !important;
    color: #e30613 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dina-features-title {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin: 18px 0 10px 0 !important;
}

.dina-features-ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
}

.dina-features-ul li {
    position: relative !important;
    padding-right: 18px !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    color: #424245 !important;
}

.dina-features-ul li::before {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 6px !important;
    background-color: #e30613 !important;
    border-radius: 50% !important;
}

/* دکمه واتساپ / مشاوره */
.dina-add-prod-btn {
    background: #25d366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2) !important;
    transition: all 0.25s ease !important;
}

.dina-add-prod-btn:hover {
    background: #1eb956 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   ۳. باکس قیمت، تاریخ و فرم خرید
   ========================================================================== */
.dina-price-con {
    background: rgba(245, 245, 247, 0.7) !important;
    border: 1px solid rgba(229, 231, 235, 0.8) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    margin: 20px 0 !important;
}

.update_date_wrapper {
    font-size: 12px !important;
    color: #86868b !important;
}

.p.price, .price .woocommerce-Price-amount {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #e30613 !important;
    margin: 10px 0 16px 0 !important;
}

.price .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6e6e73 !important;
}

/* فرم افزودن به سبد و کنترل تعداد */
form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.dina-quantity-con {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 12px !important;
    padding: 4px !important;
}

.dina-item-quantity-btn {
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: transparent !important;
    color: #1d1d1f !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.dina-item-quantity-btn:hover {
    background: #f2f2f7 !important;
}

.dina-quantity-con input.qty {
    width: 40px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #1d1d1f !important;
    outline: none !important;
}

.single_add_to_cart_button {
    flex: 1 !important;
    background: #e30613 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3) !important;
    transition: all 0.25s ease !important;
}

.single_add_to_cart_button:hover {
    background: #c20410 !important;
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.4) !important;
}

/* ==========================================================================
   ۴. اطلاعات تکمیلی و مزایای محصول
   ========================================================================== */
.dina-add-prod-info {
    background: rgba(227, 6, 19, 0.04) !important;
    border-right: 3px solid #e30613 !important;
    padding: 10px 14px !important;
    border-radius: 0 10px 10px 0 !important;
    font-size: 12px !important;
    color: #515154 !important;
    margin-bottom: 20px !important;
}

.dina-product-extra ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.dina-product-extra li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 12px !important;
    color: #6e6e73 !important;
}

.dina-product-extra li i {
    font-size: 16px !important;
    color: #e30613 !important;
}
/* ==========================================================================
   ۱. باکس اصلی مراحل خرید (Checkout Steps Container)
   ========================================================================== */
.dina-checkout-steps {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    padding: 24px 20px 18px 20px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 30px !important;
}

/* ==========================================================================
   ۲. نوار پیشرفت و دایره مراحل (ProgressBar)
   ========================================================================== */
#progressbar {
    display: flex !important;
    justify-content: space-around !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    list-style: none !important;
}

/* خط اتصال بین مراحل */
#progressbar::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 15% !important;
    right: 15% !important;
    height: 3px !important;
    background: #e5e7eb !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
}

#progressbar li.step {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* استایل مرحله فعال (Active) */
#progressbar li.step.active {
    background: #e30613 !important;
    border-color: #e30613 !important;
    box-shadow: 0 0 0 5px rgba(227, 6, 19, 0.2) !important;
}

#progressbar li.step.active::after {
    content: "" !important;
    width: 10px !important;
    height: 10px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
}

/* ==========================================================================
   ۳. عناوین و لینک‌های مراحل خرید
   ========================================================================== */
.dina-checkout-steps .col {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #86868b !important;
    transition: color 0.2s ease !important;
}

.dina-checkout-steps .col a {
    color: #424245 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.dina-checkout-steps .col a:hover {
    color: #e30613 !important;
}

/* هایلایت عنوان مرحله فعال */
.dina-checkout-steps .row:last-child .col:has(.active),
.dina-checkout-steps .col:first-child a {
    color: #e30613 !important;
    font-weight: 700 !important;
}
/* ==================================================
   استایل عمومی کارت‌ها (مشترک در تمام صفحات)
   ================================================== */
.blog-card {
  position: relative;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 6, 19, 0.25) !important;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.85) !important;
}

.blog-thumb { position: relative; width: 100%; height: 170px; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }

.blog-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(29, 29, 31, 0.85); backdrop-filter: blur(8px);
  color: #fff; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 10px; z-index: 2;
}

.blog-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-meta { display: flex; gap: 12px; font-size: 11px; color: #707075; margin-bottom: 10px; font-weight: 600; }
.blog-title { font-size: 14.5px !important; font-weight: 800 !important; color: #1d1d1f !important; line-height: 1.45 !important; margin-bottom: 8px !important; min-height: 42px; }
.blog-excerpt { font-size: 12px !important; color: #6e6e73 !important; line-height: 1.6 !important; margin-bottom: 15px !important; flex-grow: 1; }
.read-more-link { font-size: 12px; font-weight: 700; color: #e30613; text-decoration: none !important; }

/* ==================================================
   ۱. استایل مخصوص اسکرول افقی (فقط در صفحه اصلی)
   ================================================== */
.apple-home-slider .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.apple-home-slider .header-controls { display: flex; align-items: center; gap: 15px; }
.apple-home-slider .slider-nav-btns { display: flex; gap: 8px; }
.apple-home-slider .slider-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); color: #1d1d1f; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.apple-home-slider .blog-grid {
  display: flex !important;
  gap: 20px;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 15px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.apple-home-slider .blog-grid::-webkit-scrollbar { display: none; }

.apple-home-slider .blog-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  scroll-snap-align: start;
}

@media (max-width: 992px) { .apple-home-slider .blog-card { flex: 0 0 calc(45% - 10px); } }
@media (max-width: 576px) { 
  .apple-home-slider .blog-card { flex: 0 0 calc(80% - 10px); } 
  .apple-home-slider .slider-nav-btns { display: none; }
}

/* ==================================================
   ۲. استایل شبکه‌ای / Grid (فقط برای صفحه home.php)
   ================================================== */
.apple-blog-archive-page .blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  overflow-x: visible !important;
}

@media (max-width: 992px) { .apple-blog-archive-page .blog-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 576px) { .apple-blog-archive-page .blog-grid { grid-template-columns: repeat(1, 1fr) !important; } }
.feature-icon {
  font-size: 20px;
  color: #e30613; /* رنگ آیکون هماهنگ با تم */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ==================================================
   استایل سکشن مزایای رقابتی (Liquid Glass Features)
   ================================================== */

.apple-features-section {
  padding: 20px 15px 45px;
  direction: rtl;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 20px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(227, 6, 19, 0.25) !important;
  box-shadow: 0 15px 35px rgba(227, 6, 19, 0.06);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(227, 6, 19, 0.06);
  border: 1px solid rgba(227, 6, 19, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon {
  font-size: 24px;
}

.feature-info h3 {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #1d1d1f !important;
  margin-bottom: 6px !important;
}

.feature-info p {
  font-size: 11.5px !important;
  color: #707075 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* ریسپانسو */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }
  .feature-card {
    flex-direction: row;
    text-align: right;
    padding: 16px;
    align-items: center;
    gap: 14px;
  }
  .feature-icon-wrapper {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}