/* ===========================================================================
   ۱) فونت فارسی Vazirmatn
   =========================================================================== */
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Black.woff2') format('woff2');font-weight:900;font-style:normal;font-display:swap}

/* ===========================================================================
   ۲) Bootstrap 5.3.3 (نسخه RTL) — بخش‌های استفاده شده
   =========================================================================== */
:root {
  --bs-blue: #3b82f6; --bs-indigo: #6610f2; --bs-purple: #81968F; --bs-pink: #d63384;
  --bs-red: #dc3545; --bs-orange: #fd7e14; --bs-yellow: #ffc107; --bs-green: #198754;
  --bs-teal: #20c997; --bs-cyan: #0dcaf0; --bs-black: #000; --bs-white: #fff;
  --bs-gray: #6c757d; --bs-gray-dark: #343a40; --bs-gray-100: #f8f9fa; --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6; --bs-gray-400: #ced4da; --bs-gray-500: #adb5bd; --bs-gray-600: #6c757d;
  --bs-gray-700: #495057; --bs-gray-800: #343a40; --bs-gray-900: #212529;
  --bs-primary: #3b82f6; --bs-secondary: #6c757d; --bs-success: #198754; --bs-info: #0dcaf0;
  --bs-warning: #ffc107; --bs-danger: #dc3545; --bs-light: #f8f9fa; --bs-dark: #212529;
  --bs-primary-rgb: 59, 130, 246; --bs-secondary-rgb: 108, 117, 125; --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240; --bs-warning-rgb: 255, 193, 7; --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250; --bs-dark-rgb: 33, 37, 41;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Vazirmatn", Arial, sans-serif;
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-body-font-family: var(--bs-font-sans-serif); --bs-body-font-size: 1rem; --bs-body-font-weight: 400;
  --bs-body-line-height: 1.6; --bs-body-color: #1f2937; --bs-body-color-rgb: 31, 41, 55;
  --bs-body-bg: #f8fafc; --bs-body-bg-rgb: 248, 250, 252; --bs-emphasis-color: #000;
  --bs-secondary-color: rgba(33, 37, 41, 0.75); --bs-secondary-bg: #e9ecef; --bs-tertiary-bg: #f8f9fa;
  --bs-heading-color: inherit; --bs-link-color: #3b82f6; --bs-link-color-rgb: 59, 130, 246;
  --bs-link-decoration: none; --bs-link-hover-color: #2563eb; --bs-link-hover-color-rgb: 37, 99, 235;
  --bs-border-width: 1px; --bs-border-style: solid; --bs-border-color: #bfdbfe;
  --bs-border-radius: 0.375rem; --bs-border-radius-sm: 0.25rem; --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem; --bs-border-radius-xxl: 2rem; --bs-border-radius-pill: 50rem;
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { :root { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--bs-body-font-family); font-size: var(--bs-body-font-size); font-weight: var(--bs-body-font-weight); line-height: var(--bs-body-line-height); color: var(--bs-body-color); background-color: #f8fafc; -webkit-text-size-adjust: 100%; }
hr { margin: 1rem 0; color: inherit; border: 0; border-top: var(--bs-border-width) solid; opacity: 0.25; }
h6, .h6, h5, .h5, h3, .h3, h2, .h2, h1, .h1 { margin-top: 0; margin-bottom: 0.5rem; font-weight: 700; line-height: 1.2; color: var(--bs-heading-color); }
h1, .h1 { font-size: calc(1.375rem + 1.5vw); } h2, .h2 { font-size: calc(1.325rem + 0.9vw); }
h3, .h3 { font-size: calc(1.3rem + 0.6vw); } h5, .h5 { font-size: 1.25rem; } h6, .h6 { font-size: 1rem; }
p { margin-top: 0; margin-bottom: 1rem; }
ol, ul { padding-right: 2rem; margin-top: 0; margin-bottom: 1rem; }
ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; }
strong { font-weight: bolder; } small, .small { font-size: 0.875em; }
a { color: var(--bs-link-color); text-decoration: var(--bs-link-decoration); }
a:hover { color: var(--bs-link-hover-color); }
a:not([href]):not([class]), a:not([href]):not([class]):hover { color: inherit; text-decoration: none; }
img { vertical-align: middle; }
table { caption-side: bottom; border-collapse: collapse; }
th { text-align: inherit; }
label { display: inline-block; }
button { border-radius: 0; }
button:focus:not(:focus-visible) { outline: 0; }
input, button, select, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, select { text-transform: none; }
[role=button] { cursor: pointer; }
button, [type=button], [type=reset], [type=submit] { -webkit-appearance: button; }
::-moz-focus-inner { padding: 0; border-style: none; }
textarea { resize: vertical; }
[type=search] { -webkit-appearance: textfield; outline-offset: -2px; }
.list-unstyled { padding-right: 0; list-style: none; }
.container { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; width: 100%; padding-left: calc(var(--bs-gutter-x) * 0.5); padding-right: calc(var(--bs-gutter-x) * 0.5); margin-left: auto; margin-right: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
.row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--bs-gutter-y)); margin-left: calc(-0.5 * var(--bs-gutter-x)); margin-right: calc(-0.5 * var(--bs-gutter-x)); }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-left: calc(var(--bs-gutter-x) * 0.5); padding-right: calc(var(--bs-gutter-x) * 0.5); margin-top: var(--bs-gutter-y); }
.col-6 { flex: 0 0 auto; width: 50%; }
.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
@media (min-width: 768px) { .col-md-3 { flex: 0 0 auto; width: 25%; } .col-md-4 { flex: 0 0 auto; width: 33.33333333%; } .col-md-8 { flex: 0 0 auto; width: 66.66666667%; } }
@media (min-width: 992px) { .col-lg-3 { flex: 0 0 auto; width: 25%; } .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; } .col-lg-6 { flex: 0 0 auto; width: 50%; } .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; } .col-lg-9 { flex: 0 0 auto; width: 75%; } }

.form-control { display: block; width: 100%; padding: 0.5rem 1rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: var(--bs-body-color); background-color: var(--bs-body-bg); background-clip: padding-box; border: 1px solid var(--bs-border-color); border-radius: 10px; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
.form-control:focus { color: var(--bs-body-color); background-color: var(--bs-body-bg); border-color: #3b82f6; outline: 0; box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25); }
.form-control::placeholder { color: var(--bs-secondary-color); opacity: 1; }

.btn { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: 0.5rem; --bs-btn-font-family: inherit; --bs-btn-font-size: 1rem; --bs-btn-font-weight: 600; --bs-btn-line-height: 1.5; --bs-btn-color: var(--bs-body-color); --bs-btn-bg: transparent; --bs-btn-border-width: 1px; --bs-btn-border-color: transparent; --bs-btn-border-radius: 10px; --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); display: inline-block; padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x); font-family: var(--bs-btn-font-family); font-size: var(--bs-btn-font-size); font-weight: var(--bs-btn-font-weight); line-height: var(--bs-btn-line-height); color: var(--bs-btn-color); text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; border: var(--bs-btn-border-width) solid var(--bs-btn-border-color); border-radius: var(--bs-btn-border-radius); background-color: var(--bs-btn-bg); transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
.btn:hover { color: var(--bs-btn-hover-color); background-color: var(--bs-btn-hover-bg); border-color: var(--bs-btn-hover-border-color); }
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: #3b82f6; --bs-btn-border-color: #3b82f6; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #2563eb; --bs-btn-hover-border-color: #2563eb; }
.btn-light { --bs-btn-color: #000; --bs-btn-bg: #f8f9fa; --bs-btn-border-color: #f8f9fa; --bs-btn-hover-color: #000; --bs-btn-hover-bg: #e9ecef; --bs-btn-hover-border-color: #e9ecef; }
.btn-outline-primary { --bs-btn-color: #3b82f6; --bs-btn-border-color: #3b82f6; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #3b82f6; --bs-btn-hover-border-color: #3b82f6; }
.btn-login { background-image: linear-gradient(to right, #3b82f6 0%, #60a5fa 51%, #3b82f6 100%); text-align: center; transition: 0.5s; background-size: 200% auto; color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; outline: none; border: none; padding: 10px 20px; text-decoration: none; font-weight: 600; }
.btn-login:hover { background-position: left center; color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); }

.dropdown { position: relative; }
.dropdown-toggle::after { display: inline-block; margin-right: 0.255em; vertical-align: 0.255em; content: ""; border-top: 0.3em solid; border-left: 0.3em solid transparent; border-bottom: 0; border-right: 0.3em solid transparent; }
.dropdown-menu { position: absolute; z-index: 1000; display: none; min-width: 10rem; padding: 0.5rem 0; margin: 0; font-size: 1rem; color: var(--bs-body-color); text-align: right; list-style: none; background-color: var(--bs-body-bg); background-clip: padding-box; border: 1px solid var(--bs-border-color); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; width: 100%; padding: 0.5rem 1rem; clear: both; font-weight: 400; color: var(--bs-body-color); text-align: inherit; text-decoration: none; white-space: nowrap; background-color: transparent; border: 0; }
.dropdown-item:hover, .dropdown-item:focus { color: #2563eb; background-color: #eff6ff; }

.nav { display: flex; flex-wrap: wrap; padding-right: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: 0.5rem 1rem; color: var(--bs-link-color); text-decoration: none; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
.nav-link:hover, .nav-link:focus { color: #2563eb; }
.navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 1rem 0; }
.navbar > .container { display: flex; flex-wrap: inherit; align-items: center; justify-content: space-between; }
.navbar-brand { padding-top: 0.3125rem; padding-bottom: 0.3125rem; margin-left: 1rem; font-size: 1.25rem; color: var(--bs-body-color); text-decoration: none; white-space: nowrap; font-weight: 800; }
.navbar-nav { display: flex; flex-direction: column; padding-right: 0; margin-bottom: 0; list-style: none; }
.navbar-nav .nav-link { padding: 10px 18px; color: #1f2937; font-weight: 600; position: relative; }
.navbar-nav .nav-link::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 0; height: 2px; background: #3b82f6; transform: translateX(-50%); transition: width .3s ease; }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: 50%; }
.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }
.navbar-toggler { padding: 0.25rem 0.75rem; font-size: 1.25rem; line-height: 1; color: var(--bs-body-color); background-color: transparent; border: 1px solid var(--bs-border-color); border-radius: 10px; transition: box-shadow 0.15s ease-in-out; }
.navbar-toggler-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831, 41, 55, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: center; background-size: 100%; }
@media (min-width: 992px) { .navbar-expand-lg { flex-wrap: nowrap; justify-content: flex-start; } .navbar-expand-lg .navbar-nav { flex-direction: row; } .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; } .navbar-expand-lg .navbar-toggler { display: none; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; background-clip: border-box; border: 1px solid var(--bs-border-color); border-radius: 16px; }
.card-body { flex: 1 1 auto; padding: 1rem 1rem; }
.badge { display: inline-block; padding: 0.35em 0.65em; font-size: 0.75em; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: var(--bs-border-radius); }
.fade { transition: opacity 0.15s linear; }
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height 0.35s ease; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.d-sm-none { display: none !important; }
.d-sm-inline { display: inline !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.start-0 { right: 0 !important; }
.translate-middle { transform: translate(50%, -50%) !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important; }
.ms-auto { margin-right: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-2 { margin-right: 0.5rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }
.fw-bold { font-weight: 700 !important; }
.text-center { text-align: center !important; }
.text-decoration-none { text-decoration: none !important; }
.text-secondary { color: #6c757d !important; }
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }
.text-white { color: #fff !important; }
.text-dark { color: #1a1a1a !important; }
.bg-white { background-color: #fff !important; }
.bg-danger { background-color: #dc3545 !important; }
.rounded-pill { border-radius: 50rem !important; }
.rounded-3 { border-radius: 1rem !important; }

/* ===========================================================================
   ۳) استایل‌های اختصاصی سایت (تم تکنولوژی آبی)
   =========================================================================== */
body { font-family: 'Vazirmatn', Tahoma, sans-serif; background:#f8fafc; color: #1f2937; }
a { text-decoration: none; }

/* هدر و آیکون‌ها */
.site-header { background-color: #fff; border-bottom: 1px solid #bfdbfe; }
.navbar-brand img { border-radius: 8px; }
.btn-icon-header {
  width: 44px; height: 44px; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #1f2937; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-icon-header:hover { background: #dbeafe; color: #3b82f6; border-color: #3b82f6; }

/* کادر جستجو گرد در هدر */
.search-form-header { gap: 0 !important; }
.search-input-header {
  border-radius: 50px !important;
  
  padding-left: 20px; padding-right: 20px; height: 44px;
}
.search-input-header:focus { box-shadow: none !important; border-color: #3b82f6 !important; }
.search-btn-header {
  border-radius:50px !important;
  display: flex; align-items: center; justify-content: center;
  height: 44px; border: 1px solid #3b82f6; background-color: #3b82f6; color: #fff;
  margin: 0 10px;
}

@media (max-width: 991px) {
  .navbar-collapse { margin-top: 15px; padding-bottom: 15px; border-top: 1px solid #bfdbfe; }
  .navbar-nav .nav-link { padding: 14px 0; border-bottom: 1px solid #eff6ff; }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-collapse form { margin-top: 15px; margin-bottom: 10px; }
}
@media (max-width: 440px) {
  .site-header .container { padding-left: 10px; padding-right: 10px; }
  .navbar { padding-top: 10px; padding-bottom: 10px; }
  .navbar-brand { font-size: 1rem; }
  .navbar-brand img { height: 30px !important; }
  .btn-login { padding: 0 12px !important; font-size: 13px; height: 40px !important; }
  .btn-icon-header { width: 40px; height: 40px; }
  .d-flex.align-items-center.gap-2 { gap: 6px !important; }
}

/* تیتر بخش‌ها (دایره آبی) */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title-box { display: flex; align-items: center; gap: 14px; }
.section-icon-circle { width: 48px; height: 48px; background: #3b82f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25); flex-shrink: 0; }
.section-text { display: flex; flex-direction: column; gap: 2px; }
.section-main-title { font-size: 22px; font-weight: 800; color: #1f2937; line-height: 1.2; margin: 0; }
.section-sub-title { font-size: 13px; color: #6c757d; margin: 0; }
.section-link { color: #3b82f6; text-decoration: none; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; background: #eff6ff; padding: 8px 16px; border-radius: 30px; }
.section-link:hover { gap: 10px; background: #dbeafe; }
@media (max-width: 768px) { .section-main-title { font-size: 18px; } .section-sub-title { font-size: 11px; } .section-icon-circle { width: 40px; height: 40px; font-size: 16px; } .section-link { font-size: 12px; padding: 6px 12px; } }

/* استایل کلی برای اسکرول افقی بخش‌ها */
.category-scroll, .circle-scroll, .brand-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 5px 20px 5px;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 transparent;
}
.category-scroll::-webkit-scrollbar, .circle-scroll::-webkit-scrollbar, .brand-scroll::-webkit-scrollbar { height: 6px; }
.category-scroll::-webkit-scrollbar-track, .circle-scroll::-webkit-scrollbar-track, .brand-scroll::-webkit-scrollbar-track { background: transparent; }
.category-scroll::-webkit-scrollbar-thumb, .circle-scroll::-webkit-scrollbar-thumb, .brand-scroll::-webkit-scrollbar-thumb { background: #bfdbfe; border-radius: 10px; }
.category-scroll::-webkit-scrollbar-thumb:hover, .circle-scroll::-webkit-scrollbar-thumb:hover, .brand-scroll::-webkit-scrollbar-thumb:hover { background: #3b82f6; }
.category-scroll .category-pill, .circle-scroll .circle-cat-item, .brand-scroll .brand-card { flex-shrink: 0; margin-bottom: 0; }

/* دسته‌بندی محصولات (Pills) */
.category-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  background: #fff; border: 1px solid #bfdbfe; border-radius: 50px;
  color: #1f2937 !important; font-weight: 600; font-size: 14px; transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03); text-decoration: none;
}
.category-pill:hover, .category-pill.active { background: #3b82f6; border-color: #3b82f6; color: #fff !important; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }

/* کارت محصول */
.product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; transition: all 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 16px 40px rgba(59, 130, 246, 0.1); }
.product-image { aspect-ratio: 1; background: #f8fafc; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 72px; color: #3b82f6; margin-bottom: 16px; position: relative; overflow: hidden; border: 1px solid #e2e8f0; }
.product-img-tag { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; padding: 10px; }
.product-card:hover .product-img-tag { transform: scale(1.08); }
.product-badge { position: absolute; top: 12px; right: 12px; background: #f97316; color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; z-index: 2; }
.product-badge.new { background: #3b82f6; }
.product-brand { font-size: 12px; color: #6c757d; margin-bottom: 4px; font-weight: 500; }
.product-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; min-height: 42px; }
.product-title a { color: #1f2937; text-decoration: none; transition: color 0.2s; }
.product-title a:hover { color: #3b82f6; }
.product-price { display: flex; flex-direction: column; margin-bottom: 12px; }
.price-old { font-size: 12px; color: #6c757d; text-decoration: line-through; }
.price-current { font-size: 18px; font-weight: 800; color: #1f2937; }
.price-current .currency { font-size: 12px; color: #6c757d; font-weight: 500; margin-right: 4px; }
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.btn-add-cart { flex: 1; background: #3b82f6; color: #fff; border: none; padding: 10px; border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn-add-cart:hover { background: #2563eb; color: #fff !important; }
.btn-quick-view { width: 42px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1f2937; border-radius: 10px; cursor: pointer; transition: all 0.2s; font-size: 14px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-quick-view:hover { border-color: #3b82f6; color: #3b82f6; }

/* اسکرول افقی پیشنهادات */
.suggestions-section { padding: 24px 0; }
.suggestions-scroll { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 16px; scrollbar-width: thin; scrollbar-color: #bfdbfe transparent; }
.suggestions-scroll::-webkit-scrollbar { height: 6px; }
.suggestions-scroll::-webkit-scrollbar-thumb { background: #bfdbfe; border-radius: 3px; }
.suggestion-card { flex: 0 0 280px; scroll-snap-align: start; }

/* بنرهای تبلیغاتی */
.promo-banners-section { padding: 24px 0; }
.promo-banners-grid { display: flex; gap: 24px; margin-bottom: 24px; }
.promo-banner-card { flex: 1; height: 240px; border-radius: 20px; overflow: hidden; position: relative; background-size: cover; background-position: center; display: flex; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.promo-banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); }
.promo-banner-content { position: relative; z-index: 2; padding: 30px; color: #fff; max-width: 60%; }
.promo-banner-content h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.promo-banner-content p { font-size: 15px; margin-bottom: 20px; opacity: 0.9; }
.promo-banner-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; transition: transform 0.2s, box-shadow 0.2s; }
.promo-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
@media (max-width: 768px) { .promo-banners-grid { flex-direction: column; } .promo-banner-card { height: 200px; } .promo-banner-content { padding: 20px; max-width: 80%; } .promo-banner-content h3 { font-size: 20px; } }

/* اعتماد سیگنال (Features) */
.features { background:#fff; border-radius:22px; padding:40px 30px; box-shadow:0 10px 30px rgba(0,0,0,.05); border:1px solid #e2e8f0; }
.features-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:25px; }
.feature-box { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:22px 10px; border-radius:18px; transition:.35s; cursor:pointer; overflow:hidden; }
.feature-box::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg,#3b82f6,#60a5fa); opacity:0; transition:.35s; z-index:0; }
.feature-icon { position:relative; z-index:2; width:72px; height:72px; display:flex; align-items:center; justify-content:center; border-radius:20px; background:#eff6ff; color:#3b82f6; transition:.35s; }
.feature-icon svg { width:36px; height:36px; }
.feature-box h6 { position:relative; z-index:2; margin-top:14px; font-size:15px; font-weight:700; color:#1f2937; transition:.35s; }
.feature-box:hover { transform:translateY(-8px); box-shadow:0 15px 35px rgba(59,130,246,.15); }
.feature-box:hover::before { opacity:.05; }
.feature-box:hover .feature-icon { background:#3b82f6; color:#fff; transform:rotate(-8deg) scale(1.08); box-shadow:0 10px 25px rgba(59,130,246,.35); }
.feature-box:hover h6 { color:#3b82f6; }
@media(max-width:992px) { .features-grid { grid-template-columns:repeat(3,1fr); } .feature-box:nth-child(4) { grid-column:1/2; } .feature-box:nth-child(5) { grid-column:3/4; } }
@media(max-width:576px) { .features { padding:25px 12px; } .features-grid { grid-template-columns:repeat(3,1fr); gap:12px; } .feature-box { padding:12px 5px; } .feature-icon { width:52px; height:52px; border-radius:15px; } .feature-icon svg { width:24px; height:24px; } .feature-box h6 { font-size:12px; line-height:18px; } .feature-box:nth-child(4) { grid-column:1/2; justify-self:end; } .feature-box:nth-child(5) { grid-column:3/4; justify-self:start; } }

/* صفحه فروشگاه و فرم فیلتر */
.shop-header { background: linear-gradient(135deg, #eff6ff 0%, #fff 100%); padding: 30px 0; margin-bottom: 20px; border-bottom: 1px solid #bfdbfe; }
.shop-header h1 { font-size: 24px; font-weight: 800; margin-top: 10px; color: #1f2937; }
.breadcrumb-link { color: #3b82f6; text-decoration: none; font-size: 13px; font-weight: 600; }
.shop-layout { display: flex; gap: 30px; padding-bottom: 50px; }
.shop-sidebar { flex: 0 0 280px; width: 280px; }
.filter-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); position: sticky; top: 90px; }
.filter-title { font-size: 16px; font-weight: 800; margin-bottom: 20px; color: #1f2937; display: flex; align-items: center; gap: 8px; padding-bottom: 15px; border-bottom: 2px solid #eff6ff; }
.filter-title i { color: #3b82f6; }
.filter-group { background: #f8fafc; padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 1px solid #e2e8f0; }
.filter-group h6 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: #3b82f6; }

/* استایل کشویی‌ها (Select) */
.filter-form select {
  width: 100%; padding: 10px 2.5rem 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1;
  font-family: inherit; font-size: 14px; color: #1f2937; background-color: #fff; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: left 0.75rem center; background-size: 16px 12px;
}

/* استایل کادرهای تایپ (Input) */
.filter-form input[type="number"], .filter-form input[type="text"] {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1;
  font-family: inherit; font-size: 14px; color: #1f2937; background-color: #fff; appearance: none;
}

.filter-form select:focus, .filter-form input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* مخفی کردن لیبل‌های تکست و سلکت */
.filter-form > div > label,
.filter-form select + label,
.filter-form input[type="number"] + label,
.filter-form input[type="text"] + label {
  display: none;
}

/* چیدمان ستونی برای کادرهای قیمت */
.price-inputs { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  margin-bottom: 10px; 
}
.price-inputs span { 
  display: none; 
}

.filter-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; background: #fff; padding: 8px 10px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 5px; }
.filter-checkbox input { width: 16px; height: 16px; accent-color: #3b82f6; cursor: pointer; }
.filter-checkbox label { display: block !important; font-size: 13px; color: #1f2937; cursor: pointer; margin: 0; }
.btn-filter { width: 100%; background: #3b82f6; color: #fff; border: none; padding: 12px; border-radius: 10px; font-family: inherit; font-weight: 600; cursor: pointer; font-size: 14px; transition: 0.2s; margin-top: 10px; }
.btn-filter:hover { background: #2563eb; }

/* چک‌باکس‌های جنگو فیلتر */
.filter-form ul {
  display: block !important;
  list-style: none !important;
  padding: 8px !important;
  margin: 0 !important;
  max-height: 250px;
  overflow-y: auto;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.filter-form ul::-webkit-scrollbar { width: 4px; }
.filter-form ul::-webkit-scrollbar-track { background: transparent; }
.filter-form ul::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.filter-form ul li {
  display: block !important;
  list-style: none !important;
  margin-bottom: 8px;
  width: 100%;
}

.filter-form ul li label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 100%;
  margin: 0;
  background: #f8fafc;
  border: 1px solid transparent;
}

.filter-form ul li label:hover {
  background: #eff6ff;
  color: #3b82f6;
  border-color: #3b82f6;
}

.filter-form ul li input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 !important;
}

.shop-main { flex: 1; min-width: 0; }
.shop-toolbar { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); flex-wrap: wrap; }
.toolbar-result { font-size: 14px; color: #6c757d; }
.toolbar-result strong { color: #1f2937; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; }
.sort-wrapper select { padding: 8px 2.5rem 8px 12px; border-radius: 8px; border: 1px solid #cbd5e1; font-family: inherit; font-size: 13px; cursor: pointer; color: #1f2937; background-color: #fff; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233b82f6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: left 0.75rem center; background-size: 16px 12px; }
.sort-wrapper select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.mobile-filter-btn { display: none; background: #3b82f6; color: #fff; border: none; padding: 8px 15px; border-radius: 8px; font-family: inherit; font-weight: 600; cursor: pointer; align-items: center; gap: 6px; font-size: 13px; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shop-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.shop-pagination a { min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid #cbd5e1; color: #1f2937; text-decoration: none; font-weight: 600; font-size: 14px; padding: 0 10px; transition: 0.2s; }
.shop-pagination a:hover { border-color: #3b82f6; color: #3b82f6; }
.shop-pagination a.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: #6c757d; }
.empty-state i { font-size: 50px; color: #cbd5e1; margin-bottom: 15px; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.overlay.active { display: block; }
.close-sidebar { display: none; font-size: 24px; text-align: left; cursor: pointer; margin-bottom: 15px; color: #1f2937; }

/* ریسپانسیو صفحه محصولات */
@media (max-width: 991px) { 
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } 
  .mobile-filter-btn { display: flex; } 
  .shop-sidebar { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: #fff; z-index: 100; padding: 20px; overflow-y: auto; transition: right 0.3s; } 
  .shop-sidebar.active { right: 0; } 
  .filter-box { position: static; box-shadow: none; border: none; padding: 0; } 
  .close-sidebar { display: block; } 
}
@media (max-width: 576px) { 
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } 
  .shop-toolbar { flex-direction: column; align-items: stretch; } 
  .toolbar-actions { justify-content: space-between; } 
  
  /* کوچیک کردن کارت محصولات در موبایل */
  .product-card { padding: 8px; border-radius: 12px; }
  .product-image { border-radius: 8px; margin-bottom: 8px; }
  .product-img-tag { padding: 5px; }
  .product-badge { font-size: 9px; padding: 2px 6px; top: 6px; right: 6px; }
  .product-brand { font-size: 10px; margin-bottom: 2px; }
  .product-title { font-size: 12px; min-height: 34px; margin-bottom: 8px; line-height: 1.4; }
  .product-price { margin-bottom: 8px; }
  .price-old { font-size: 10px; }
  .price-current { font-size: 14px; }
  .price-current .currency { font-size: 10px; }
  .btn-add-cart { font-size: 11px; padding: 7px; border-radius: 8px; }
  .btn-quick-view { width: 32px; border-radius: 8px; font-size: 12px; }
}

/* صفحه جزئیات محصول */
.breadcrumb-nav { padding: 20px 0; font-size: 13px; }
.breadcrumb-nav a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.breadcrumb-nav span { color: #ccc; margin: 0 8px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.gallery-main { width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
.gallery-main:hover img { transform: scale(1.05); }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 75px; height: 75px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 5px; transition: 0.2s; }
.thumb.active { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.thumb img { max-width: 100%; max-height: 100%; }
.product-info h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; line-height: 1.4; color: #1f2937; }
.product-info .short-desc { color: #6c757d; margin-bottom: 20px; font-size: 15px; }
.product-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.brand-pill { background: #eff6ff; color: #3b82f6; padding: 5px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.stock-status { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.stock-status.in { color: #198754; }
.stock-status.out { color: #dc3545; }
.price-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 25px; display: flex; flex-direction: column; gap: 5px; }
.price-box .old { font-size: 16px; color: #adb5bd; text-decoration: line-through; }
.price-box .current { font-size: 30px; font-weight: 800; color: #1f2937; }
.price-box .current .currency { font-size: 14px; color: #6c757d; font-weight: 500; margin-right: 5px; }
.discount-badge { background: #f97316; color: #fff; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.cart-form { display: flex; gap: 15px; margin-bottom: 25px; }
.quantity-selector { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; }
.quantity-selector button { width: 45px; height: 50px; background: #f8fafc; border: none; font-size: 20px; cursor: pointer; color: #1f2937; transition: 0.2s; }
.quantity-selector button:hover { background: #eff6ff; }
.quantity-selector input { width: 50px; height: 50px; text-align: center; border: none; border-left: 1px solid #cbd5e1; border-right: 1px solid #cbd5e1; font-family: inherit; font-size: 16px; font-weight: 700; color: #1f2937; }
.btn-add-cart-detail { flex: 1; background: #3b82f6; color: #fff; border: none; border-radius: 10px; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-add-cart-detail:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2); }
.feature-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e2e8f0; padding-top: 20px; }
.feature-list li { padding: 10px 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #495057; }
.feature-list li i { color: #3b82f6; }
.tabs { margin: 40px 0; }
.tabs-header { display: flex; gap: 10px; border-bottom: 2px solid #e2e8f0; margin-bottom: 25px; }
.tab-btn { background: none; border: none; padding: 12px 20px; font-family: inherit; font-size: 16px; font-weight: 700; color: #6c757d; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: 0.2s; }
.tab-btn.active { color: #3b82f6; border-bottom-color: #3b82f6; }
.tab-content { display: none; line-height: 1.8; color: #495057; font-size: 15px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; }
.tab-content.active { display: block; }
.reviews-section { margin: 40px 0; }
.review-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 15px; }
.review-card .head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.review-card .user { font-weight: 700; color: #1f2937; }
.review-card .rating { color: #ffc107; font-size: 14px; }
.review-form-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-top: 20px; }
.form-control-custom { width: 100%; padding: 10px 15px; border-radius: 8px; border: 1px solid #cbd5e1; font-family: inherit; margin-bottom: 10px; }
.form-control-custom:focus { outline: none; border-color: #3b82f6; }
@media (max-width: 768px) { .detail-layout { grid-template-columns: 1fr; gap: 20px; } .product-info h1 { font-size: 22px; } .price-box .current { font-size: 24px; } }

/* ===========================================================================
   صفحه سبد خرید (Cart Detail)
   =========================================================================== */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.cart-items-list { display: flex; flex-direction: column; gap: 15px; }
.cart-item-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 20px; transition: all 0.2s ease; }
.cart-item-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.05); border-color: #3b82f6; }
.cart-item-image { width: 90px; height: 90px; background: #f8fafc; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; border: 1px solid #e2e8f0; }
.cart-item-image img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 5px; }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-weight: 700; color: #1f2937; text-decoration: none; display: block; margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.cart-item-title:hover { color: #3b82f6; }
.cart-item-price .price-old { font-size: 12px; color: #94a3b8; text-decoration: line-through; margin-left: 8px; }
.cart-item-price .price-current { font-size: 14px; font-weight: 700; color: #1f2937; }
.cart-item-quantity { display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; flex-shrink: 0; }

/* اصلاح چیدمان دکمه‌های تعداد در سبد خرید */
.cart-qty-form {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
}
.cart-qty-form .qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #1f2937;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-qty-form .qty-btn:hover {
  background: #eff6ff;
  color: #3b82f6;
}
.cart-qty-form .cart-qty-input {
  width: 45px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  -moz-appearance: textfield;
}
.cart-qty-form .cart-qty-input::-webkit-outer-spin-button,
.cart-qty-form .cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-total { font-weight: 800; color: #1f2937; min-width: 140px; text-align: center; font-size: 16px; }

/* استایل دکمه حذف از سبد */
form[action*="remove"] .cart-item-remove,
.cart-item-remove {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cart-item-remove:hover {
  background: #fef2f2;
  color: #dc3545;
  border-color: #fecaca;
  transform: scale(1.05);
}

.cart-summary-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 25px; position: sticky; top: 90px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.cart-summary-box h5 { font-size: 18px; font-weight: 800; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #eff6ff; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.cart-summary-box h5 i { color: #3b82f6; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; color: #495057; }
.summary-row.total { font-size: 18px; font-weight: 800; color: #1f2937; }
.summary-divider { height: 1px; background: #e2e8f0; margin: 15px 0; }
.btn-proceed-checkout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #3b82f6; color: #fff; border: none; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; transition: all 0.2s; margin-top: 15px; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); }
.btn-proceed-checkout:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); color: #fff; }
.btn-continue-shopping { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; color: #6c757d; font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px; border-radius: 12px; transition: all 0.2s; }
.btn-continue-shopping:hover { background: #eff6ff; color: #3b82f6; }
@media (max-width: 992px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary-box { position: static; } }
@media (max-width: 768px) { .cart-item-card { flex-wrap: wrap; gap: 15px; padding: 15px; } .cart-item-info { width: calc(100% - 110px); order: 2; } .cart-item-quantity { order: 4; margin-right: auto; } .cart-item-total { order: 3; min-width: auto; text-align: left; flex-grow: 1; } .cart-item-remove { order: 1; margin-right: auto; } }

/* ===========================================================================
   صفحه تسویه حساب (Checkout)
   =========================================================================== */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.checkout-form-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.checkout-form-box h5 { font-size: 18px; font-weight: 800; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #eff6ff; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.checkout-form-box h5 i { color: #3b82f6; }
.form-label-custom { display: block; font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
.checkout-form-box input[type="text"], .checkout-form-box input[type="tel"], .checkout-form-box input[type="number"], .checkout-form-box textarea, .checkout-form-box select { width: 100%; padding: 12px 15px; border-radius: 10px; border: 1px solid #cbd5e1; font-family: inherit; font-size: 14px; color: #1f2937; background-color: #f8fafc; transition: all 0.2s; }
.checkout-form-box input:focus, .checkout-form-box textarea:focus { outline: none; border-color: #3b82f6; background-color: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.checkout-summary-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 25px; position: sticky; top: 90px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.checkout-summary-box h5 { font-size: 18px; font-weight: 800; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #eff6ff; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.checkout-summary-box h5 i { color: #3b82f6; }
.checkout-items-list { display: flex; flex-direction: column; gap: 15px; max-height: 300px; overflow-y: auto; padding-left: 5px; margin-bottom: 15px; }
.checkout-items-list::-webkit-scrollbar { width: 4px; }
.checkout-items-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #eff6ff; }
.checkout-item:last-child { border-bottom: none; padding-bottom: 0; }
.checkout-item-img { width: 50px; height: 50px; border-radius: 8px; border: 1px solid #e2e8f0; background: #f8fafc; padding: 2px; flex-shrink: 0; }
.checkout-item-img img { width: 100%; height: 100%; object-fit: contain; }
.checkout-item-info { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.checkout-item-title { font-size: 13px; font-weight: 600; color: #1f2937; line-height: 1.4; }
.checkout-item-qty { font-size: 12px; color: #6c757d; }
.checkout-item-price { font-size: 14px; font-weight: 700; color: #1f2937; white-space: nowrap; }
@media (max-width: 992px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary-box { position: static; order: -1; margin-bottom: 20px; } }
@media (max-width: 576px) { .checkout-form-box { padding: 20px; } }

/* ===========================================================================
   صفحه فیش پرداخت / رسید سفارش (Invoice)
   =========================================================================== */
.invoice-success-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 5px solid #198754;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.success-icon {
  width: 90px;
  height: 90px;
  background: #d1fae5;
  color: #198754;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.invoice-success-box h2 { font-size: 22px; font-weight: 800; color: #1f2937; margin-bottom: 10px; }

.invoice-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }

.invoice-main-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.invoice-header { display: flex; flex-wrap: wrap; gap: 20px; padding: 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.invoice-meta { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.meta-label { font-size: 12px; color: #6c757d; font-weight: 600; }
.meta-value { font-size: 15px; color: #1f2937; font-weight: 700; }

.invoice-items-header, .invoice-item-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: center; gap: 15px; padding: 15px 20px; }
.invoice-items-header { background: #eff6ff; font-size: 13px; font-weight: 700; color: #3b82f6; border-bottom: 1px solid #bfdbfe; }
.invoice-item-row { border-bottom: 1px solid #f1f5f9; }
.invoice-item-row:last-child { border-bottom: none; }

.col-product { display: flex; align-items: center; gap: 12px; }
.invoice-item-img { width: 50px; height: 50px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; padding: 2px; }
.invoice-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.invoice-item-img i { color: #cbd5e1; font-size: 20px; }
.item-name { font-size: 13px; font-weight: 600; color: #1f2937; line-height: 1.5; }
.col-qty { font-size: 13px; color: #495057; text-align: center; font-weight: 600; }
.col-price, .col-total { font-size: 13px; color: #1f2937; text-align: center; font-weight: 600; }
.col-total { font-weight: 800; color: #1f2937; }
.currency { font-size: 10px; color: #94a3b8; }

.invoice-shipping-info { padding: 20px; background: #fff; border-top: 1px solid #e2e8f0; }
.invoice-shipping-info h6 { font-size: 14px; font-weight: 700; color: #3b82f6; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.invoice-shipping-info p { font-size: 13px; color: #495057; line-height: 1.8; margin: 0; }

.invoice-summary-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 25px; position: sticky; top: 90px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.invoice-summary-box h5 { font-size: 18px; font-weight: 800; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #eff6ff; color: #1f2937; display: flex; align-items: center; gap: 8px; }
.invoice-summary-box h5 i { color: #3b82f6; }

.btn-print-invoice {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: #3b82f6; color: #fff; border: none; padding: 14px; border-radius: 12px;
  font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.2s; margin-top: 15px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
.btn-print-invoice:hover { background: #2563eb; transform: translateY(-2px); }

.btn-back-panel {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 10px; color: #6c757d; font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 10px; border-radius: 12px; transition: all 0.2s;
}
.btn-back-panel:hover { background: #eff6ff; color: #3b82f6; }

/* ریسپانسیو فاکتور */
@media (max-width: 992px) {
  .invoice-layout { grid-template-columns: 1fr; }
  .invoice-summary-box { position: static; }
}
@media (max-width: 768px) {
  .invoice-items-header { display: none; }
  .invoice-item-row { grid-template-columns: 1fr; gap: 8px; padding: 15px; border-bottom: 1px solid #e2e8f0; }
  .col-product { border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
  .col-qty, .col-price, .col-total { text-align: right; display: flex; justify-content: space-between; }
  .col-qty::before { content: "تعداد: "; font-weight: 600; color: #6c757d; }
  .col-price::before { content: "قیمت واحد: "; font-weight: 600; color: #6c757d; }
  .col-total::before { content: "جمع کل: "; font-weight: 600; color: #6c757d; }
}

/* تنظیمات چاپ فاکتور */
@media print {
  header, .main-footer, .invoice-summary-box, .btn-print-invoice, .btn-back-panel { display: none !important; }
  body { background: #fff !important; }
  .invoice-success-box { border: 1px solid #000; box-shadow: none; }
  .invoice-main-box { border: 1px solid #000; box-shadow: none; }
  .invoice-layout { grid-template-columns: 1fr; }
}

/* ===========================================================================
   صفحه نتیجه پرداخت (Success / Failed)
   =========================================================================== */
.payment-result-box {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.payment-result-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}
.payment-result-box.success .payment-result-icon {
  background: #d1fae5;
  color: #198754;
  box-shadow: 0 0 0 8px rgba(25, 135, 84, 0.1);
}
.payment-result-box.failed .payment-result-icon {
  background: #fee2e2;
  color: #dc3545;
  box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.1);
}
.payment-result-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1f2937;
}
.payment-result-msg {
  color: #6c757d;
  font-size: 15px;
  margin-bottom: 25px;
  line-height: 1.7;
}
.payment-result-code {
  display: inline-block;
  background: #f8fafc;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 30px;
  border: 1px dashed #cbd5e1;
}
.payment-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-payment-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-payment-result.primary { background: #3b82f6; color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,0.2); }
.btn-payment-result.primary:hover { background: #2563eb; transform: translateY(-2px); }
.btn-payment-result.secondary { background: #f8fafc; color: #1f2937; }
.btn-payment-result.secondary:hover { background: #eff6ff; }

/* اسلایدر اصلی */
.slider-section { padding: 32px 0 16px; }
.slider {
  position: relative; height: 480px; border-radius: 24px; overflow: hidden;
  background: #fff; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  border: 1px solid #e2e8f0; box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.slider-track { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.slider-track.dragging { transition: none; }
.slider:not(.dragging) .slider-track { cursor: grab; }
.slider.dragging .slider-track { cursor: grabbing; }
.slide { flex: 0 0 100%; height: 100%; position: relative; overflow: hidden; }
.slide-bg {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  transition: transform 7s ease;
}
.slide.active .slide-bg { transform: scale(1.1); }
.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.1) 100%);
}
.slide-content {
  position: absolute; top: 50%; right: 48px; transform: translateY(-50%);
  max-width: 50%; z-index: 3;
}
.slide-title { font-size: 56px; font-weight: 900; line-height: 1.1; margin-bottom: 16px; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.slide-subtitle { font-size: 18px; margin-bottom: 32px; color: rgba(255,255,255,0.9); max-width: 480px; line-height: 1.7; }
.slide-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  background: #3b82f6; color: #fff !important; border-radius: 12px; text-decoration: none;
  font-weight: 700; font-size: 15px; transition: all 0.2s; box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}
.slide-cta:hover { background: #2563eb; transform: translateY(-2px); color: #fff !important; }
.slide-cta i { color: #fff !important; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid #bfdbfe; color: #1f2937;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 10; transition: all 0.2s;
}
.slider-arrow:hover { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.slider-arrow.prev { right: 20px; }
.slider-arrow.next { left: 20px; }
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.15); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.dot.active { width: 32px; border-radius: 5px; background: #3b82f6; }
.slider-counter {
  position: absolute; top: 20px; left: 24px; background: rgba(255,255,255,0.9);
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; color: #1f2937;
  z-index: 10; border: 1px solid #bfdbfe;
}
.slider-counter .current { color: #3b82f6; }
.slider-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(0,0,0,0.05); z-index: 10; }
.slider-progress-bar { height: 100%; background: #3b82f6; width: 0; transition: width 0.1s linear; }
@media (max-width: 768px) {
  .slider { height: 320px; }
  .slide-content { right: 20px; max-width: 90%; }
  .slide-title { font-size: 26px; }
  .slide-subtitle { font-size: 14px; margin-bottom: 20px; }
  .slider-arrow { width: 40px; height: 40px; font-size: 14px; }
}

/* فوتر */
.main-footer { background: #1f2937; color: #dcdde1; padding: 50px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.2rem; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 3px; background: #3b82f6; border-radius: 2px; }
.footer-col p, .footer-col ul { font-size: 0.9rem; line-height: 2; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li a { color: #bdc3c7; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; padding-right: 5px; }
.contact-info li { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.contact-info i { width: 20px; color: #60a5fa; }
.social-icons { display: flex; gap: 12px; margin-top: 15px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #374151; color: #fff; border-radius: 50%; text-decoration: none; transition: all 0.2s; font-size: 1rem; }
.social-icons a:hover { background: #3b82f6; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid #374151; padding: 20px 0; text-align: center; font-size: 0.85rem; color: #95a5a6; }

/* ===========================================================================
   سیستم پیام‌رسانی انیمیشنی (Toast Notifications)
   =========================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #1f2937;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-weight: 600;
  font-size: 14px;
  min-width: 280px;
  max-width: 350px;
  border-right: 4px solid #3b82f6; 
  transform: translateX(-150%); 
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast-notification.show {
  transform: translateX(0); 
  opacity: 1;
}
.toast-notification.success { border-right-color: #198754; }
.toast-notification.success i { color: #198754; }
.toast-notification.error { border-right-color: #dc3545; }
.toast-notification.error i { color: #dc3545; }
.toast-notification.warning { border-right-color: #ffc107; }
.toast-notification.warning i { color: #ffc107; }
.toast-notification.info { border-right-color: #3b82f6; }
.toast-notification.info i { color: #3b82f6; }
.toast-notification i {
  font-size: 20px;
  flex-shrink: 0;
}
.toast-notification span {
  flex-grow: 1;
  line-height: 1.5;
}
.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-right: -5px;
  transition: color 0.2s;
}
.toast-close:hover { color: #1f2937; }

/* ===========================================================================
   دکمه پشتیبانی واتساپ
   =========================================================================== */
.support-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;   
  display: flex;
  align-items: center;
  gap: 10px;
}
.support-text {
  background: #fff;
  color: #222;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: 0.3s ease;
}
.whatsapp-btn {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: 0.3s ease;
}
.support-widget:hover .support-text {
  opacity: 1;
  transform: translateX(0);
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}
@media (max-width: 600px) {
  .support-widget {
    right: 15px;
    bottom: 15px;
  }
  .whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 27px;
  }
  .support-text {
    display: none;
  }
}

/* ===========================================================================
   بخش دسته‌بندی‌های دایره‌ای (صفحه اصلی)
   =========================================================================== */
.circle-cats-section { padding: 20px 0 10px; }
.circle-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: 110px; /* عرض ثابت برای جلوگیری از فشرده شدن */
  transition: transform 0.3s ease;
}
.circle-cat-item:hover { transform: translateY(-5px); }

.circle-cat-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
  transition: all 0.3s ease;
}
.circle-cat-item:hover .circle-cat-img {
  border-color: #3b82f6;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}
.circle-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  padding: 8px; 
}
.circle-cat-img i {
  font-size: 40px;
  color: #3b82f6;
}
.circle-cat-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  white-space: nowrap;
}
.circle-cat-item:hover .circle-cat-name { color: #3b82f6; }

@media (max-width: 768px) {
  .circle-cat-item { width: 80px; }
  .circle-cat-img { width: 80px; height: 80px; }
  .circle-cat-img img { padding: 5px; }
  .circle-cat-name { font-size: 12px; }
}

/* ===========================================================================
   بخش بنرهای دسته‌بندی (صفحه اصلی - ۴ ستونه و بلندتر)
   =========================================================================== */
.cat-banners-section { 
  padding: 40px 0; 
  margin-top: 20px;
}

.cat-banners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ۴ ستون در دسکتاپ */
  gap: 20px;
}

.cat-banner-card {
  height: 320px; /* ارتفاع بیشتر شد */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #bfdbfe;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-banner-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.cat-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.cat-banner-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff;
  width: 100%;
}

.cat-banner-content h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.cat-banner-content span {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .cat-banners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .cat-banners-grid { grid-template-columns: 1fr; }
  .cat-banner-card { height: 220px; }
}

/* ===========================================================================
   بخش برندهای محبوب (Brands)
   =========================================================================== */
.brands-section { 
  padding: 40px 0; 
  background: #fff; 
  border-radius: 20px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
  margin-bottom: 40px; 
  border: 1px solid #e2e8f0;
}

.brand-card { 
  background: #f8fafc; 
  border: 1px solid #e2e8f0; 
  border-radius: 16px; 
  padding: 20px; 
  width: 200px; /* عرض ثابت برای اسکرول افقی */
  height: 100px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: all 0.3s ease; 
}

.brand-card:hover { 
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15); 
  border-color: #3b82f6; 
  transform: translateY(-5px); 
}

.brand-card img { 
  max-width: 100%; 
  max-height: 60px; 
  object-fit: contain; 
  filter: grayscale(100%); 
  opacity: 0.7; 
  transition: all 0.3s ease; 
}

.brand-card:hover img { 
  filter: grayscale(0%); 
  opacity: 1; 
}

.brand-name-fallback { 
  font-size: 18px; 
  font-weight: 800; 
  color: #3b82f6; 
  opacity: 0.7; 
  transition: 0.3s; 
}
.brand-card:hover .brand-name-fallback { 
  opacity: 1; 
}

@media (max-width: 768px) {
  .brand-card { width: 150px; height: 80px; padding: 10px; }
  .brand-card img { max-height: 40px; }
  .brand-name-fallback { font-size: 14px; }
}