/* =========================================================
   FARS TEC - CYBER-NEON TACTICAL HUD SYSTEM (V.2.8 - ULTRA NEON FRAME)
   ========================================================= */

/* --- 0. FONTS --- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال سراسری فونت */
body, h1, h2, h3, h4, .product-miniature, .product-title, .product-price, .page-list {
    font-family: 'Vazirmatn', sans-serif !important;
}

/* =========================================================
   1. PRODUCT CARD (HUD TACTICAL) — ULTRA NEON FRAME
   ========================================================= */
.product-miniature {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    
    /* پس‌زمینه با هاله داخلی گرادیان — لبه‌ها از داخل نور می‌گیرن */
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(0, 240, 255, 0.07) 0%, transparent 55%),
        radial-gradient(120% 90% at 50% 100%, rgba(176, 38, 255, 0.06) 0%, transparent 55%),
        linear-gradient(160deg, rgba(13, 18, 30, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%) !important;
    
    /* ✨ حاشیه دوبل نئونی: سایان پررنگ + خط داخلی بنفش درخشان */
    border: 2px solid rgba(0, 240, 255, 0.7) !important;
    box-shadow:
        0 0 14px rgba(0, 240, 255, 0.22),
        0 0 4px rgba(0, 240, 255, 0.35),
        inset 0 0 0 1px rgba(176, 38, 255, 0.45),
        inset 0 0 18px rgba(0, 240, 255, 0.08) !important;
    
    /* برش تاکتیکال گوشه‌ها */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease !important;
}

/* ⚡ خط نئون متحرک بالای کارت — سازگار با clip-path */
.product-miniature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff, rgba(121, 40, 202, 0.9), transparent);
    filter: drop-shadow(0 0 6px #00f0ff);
    opacity: 0.85;
    pointer-events: none;
    z-index: 3;
    animation: hudNeonFlow 3.2s linear infinite;
}

/* 🎯 کادر دابل‌لاین نئونی در حالت هاور */
.product-miniature::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .product-miniature:hover {
        transform: translateY(-5px) !important;
        border-color: #00f0ff !important;
        box-shadow:
            0 0 22px rgba(0, 240, 255, 0.45),
            0 0 6px rgba(0, 240, 255, 0.6),
            inset 0 0 0 1px rgba(176, 38, 255, 0.7),
            inset 0 0 22px rgba(0, 240, 255, 0.12) !important;
        filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 30px rgba(176, 38, 255, 0.25)) !important;
        animation: hudNeonPulse 1.8s ease-in-out infinite;
    }
    .product-miniature:hover::after {
        opacity: 1;
    }
}

@keyframes hudNeonFlow {
    0%   { left: -60%; }
    100% { left: 110%; }
}

@keyframes hudNeonPulse {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 30px rgba(0, 240, 255, 0.2)); }
    50%      { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 40px rgba(176, 38, 255, 0.3)); }
}

/* 2. کانتینر تصویر — FULL BLEED (عکس کامل بیفته) */
.product-miniature .thumbnail-container {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    background: rgba(0, 240, 255, 0.04) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.product-miniature img {
    width: 100% !important;
    height: 220px !important;          /* بلندتر برای پر شدن کادر */
    object-fit: cover !important;      /* ✅ عکس کل کادر رو پر می‌کنه */
    object-position: center !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.product-miniature:hover img {
    transform: scale(1.05) !important;
}

.product-miniature .thumbnail-container::after {
    content: '';
    position: absolute;
    top: -100%; 
    left: 0;
    width: 100%; 
    height: 25%;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.45), transparent);
    pointer-events: none;
    opacity: 0;
}

.product-miniature:hover .thumbnail-container::after {
    animation: hudScanSweep 1.6s ease-in-out infinite;
}

/* 3. عنوان محصول */
.product-miniature .product-title a {
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.6 !important;
    transition: color 0.2s ease !important;
}

.product-miniature .product-title a:hover {
    color: #00f0ff !important;
}

/* 4. باکس قیمت یکپارچه و بهینه‌سازی‌شده */
#js-product-list .product-miniature .product-price-and-shipping,
.product-miniature .product-price-and-shipping {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    
    width: auto !important;
    min-width: 135px !important;
    max-width: 90% !important;
    margin: 12px auto !important;
    padding: 8px 14px !important;
    
    background: rgba(0, 240, 255, 0.08) !important;
    border: 1.5px dashed rgba(0, 240, 255, 0.5) !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

/* عدد قیمت */
#js-product-list .product-miniature .product-price-and-shipping .price,
.product-miniature .price,
.product-miniature span[itemprop="price"] {
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #00f2fe !important;
    direction: ltr !important;
    display: inline-block !important;
    letter-spacing: 0.2px !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4) !important;
}

/* واحد پولی (تومان / ریال) */
#js-product-list .product-miniature .currency,
.product-miniature .currency {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(0, 242, 254, 0.85) !important;
}

/* 5. نقطه وضعیت موجودی */
.product-availability::before {
    content: '';
    display: inline-block;
    width: 8px; 
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-left: 6px;
    box-shadow: 0 0 8px #00ff88;
    animation: hudPulse 1.5s infinite;
}

/* =========================================================
   2. FARS TEC: CYBER-BLUE HUD PAGINATION (صفحه‌بندی اختصاصی)
   ========================================================= */
.page-list {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 25px auto !important;
    list-style: none !important;
}

.page-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

/* دکمه‌های معمولی و دکمه فعال */
.page-list li a, 
.page-list li.current,
.page-list li.current a,
.page-list li.current span {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    
    /* استایل آبی سایبرپانکی */
    color: #00f0ff !important;
    background: rgba(8, 18, 30, 0.85) !important;
    border: 1px solid rgba(0, 240, 255, 0.4) !important;
    
    /* لبه‌های تاکتیکال هندسی */
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important;
    
    /* حل باگ سایه با drop-shadow بدون از بین رفتن کادر */
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.15)) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* هاور دکمه‌ها */
.page-list li a:hover {
    color: #ffffff !important;
    background: rgba(0, 240, 255, 0.2) !important;
    border-color: #00f0ff !important;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6)) !important;
    transform: translateY(-2px) !important;
}

/* صفحه فعال (Active / Current) */
.page-list li.current,
.page-list li.current a,
.page-list li.current span {
    color: #0b111a !important; /* کنتراست فوق‌العاده روی پس‌زمینه نئونی */
    background: #00f0ff !important;
    border-color: #00f0ff !important;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.75)) !important;
    cursor: default !important;
}

/* دکمه‌های بعدی و قبلی (جهت‌نماها) */
.page-list .previous a, 
.page-list .next a {
    padding: 0 18px !important;
    font-weight: 700 !important;
}

/* =========================================================
   3. CUSTOM SERVICE & CATEGORY CARDS
   ========================================================= */
.ft-service-card, .ft-cat-card {
    background: rgba(13, 18, 30, 0.9) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    border-radius: 4px 16px 4px 16px !important;
    padding: 15px !important;
    color: #e2e8f0 !important;
    transition: border-color 0.3s ease !important;
}

.ft-service-card:hover, .ft-cat-card:hover {
    border-color: rgba(0, 240, 255, 0.6) !important;
}

.ft-service-card h3, .ft-cat-card h3 {
    font-weight: 800 !important;
    color: #ffffff !important;
}

/* =========================================================
   4. ANIMATIONS & RESPONSIVE
   ========================================================= */
@keyframes hudScanSweep {
    0% { top: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes hudPulse {
    0% { transform: scale(0.85); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.85); opacity: 0.6; }
}

/* ریسپانسیو اختصاصی موبایل و تبلت */
@media (max-width: 768px) {
    .product-miniature { 
        padding: 8px !important; 
    }
    .product-miniature img { 
        height: 170px !important;   /* موبایل: عکس پرتر و کامل */
    }
    .product-miniature .product-title a { 
        font-size: 12px !important; 
    }
    #js-product-list .product-miniature .product-price-and-shipping,
    .product-miniature .product-price-and-shipping {
        padding: 6px 10px !important;
        min-width: 115px !important;
        margin: 8px auto !important;
    }
    #js-product-list .product-miniature .product-price-and-shipping .price,
    .product-miniature .price {
        font-size: 11.5px !important;
    }
    .page-list {
        gap: 6px !important;
    }
    .page-list li a, 
    .page-list li.current,
    .page-list li.current a,
    .page-list li.current span {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }
    /* کاهش شدت انیمیشن در موبایل برای پرفورمنس */
    .product-miniature::before {
        animation-duration: 4.5s;
    }
}
/* ---- Hide 'Home' & 'Brands' boxes on mobile (Cyber-Neon V.2.5) ---- */
@media (max-width: 767px) {
  #left-column #search_filters_brands,
  #left-column .block-categories {
    display: none !important;
  }
}
/* ==========================================================
   FARS TEC - Category Header Mobile Center Alignment
   ========================================================== */
@media (max-width: 767px) {
  /* ۱. سنتر کردن کادر والد (کانتینر تیتر) */
  #category #js-product-list-header,
  .block-category,
  #category-description-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;     /* تراز وسط افقی */
    justify-content: center !important; /* تراز وسط عمودی */
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 12px !important;       /* بالانس پدینگ بالا و پایین */
    padding-bottom: 12px !important;
    min-height: auto !important;
  }

  /* ۲. سنتر دقیق خود متن تیتر (H1) */
  #category #js-product-list-header h1,
  .block-category h1,
  #category h1.h1 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 1.4 !important;         /* حذف کشیدگی نامتقارن خطوط */
    font-size: 1.25rem !important;      /* سایز متناسب برای موبایل */
    width: 100% !important;
  }
}
/* ==========================================================
   FARS TEC - Quantity Input & Add-to-Cart Vertical Centering
   ========================================================== */
@media (max-width: 767px) {

  /* ۱. ردیف کل اکشن‌ها: هم‌ارتفاع کردن همه المان‌ها */
  #product-actions .product-quantity,
  #product-actions .add-to-cart,
  #product .product-actions {
    display: flex !important;
    align-items: center !important;
  }

  /* ۲. باکس تعداد (qty) — تک‌خطی و وسط‌چین */
  #product .product-quantity .qty,
  #product .product-quantity input[type="number"],
  #product .product-quantity input[type="text"] {
    height: 48px !important;          /* ارتفاع یکسان با دکمه خرید */
    line-height: 48px !important;     /* عدد دقیقاً وسط عمودی */
    text-align: center !important;
    font-size: 1.1rem !important;
    padding: 0 !important;            /* حذف پدینگ نامتقارن */
    margin: 0 !important;
    box-sizing: border-box !important;
    -moz-appearance: textfield !important; /* حذف spinner های فایرفاکس */
  }

  /* حذف فلش‌های بالا/پایین پیش‌فرض کروم (همون دکمه‌های دو خطی) */
  #product .product-quantity input::-webkit-outer-spin-button,
  #product .product-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }

  /* ۳. دکمه افزودن به سبد خرید — متن وسط عمودی دکمه */
  #product .btn.btn-primary.add-to-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  /* ۴. دکمه دلخواه (قلب) هم هم‌تراز با بقیه */
  #product .wishlist-button-product {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
  }
}
/* ===================================================
   FARS TEC - Game Requirements Box Style
   =================================================== */
.ft-req-card {
  background: radial-gradient(120% 120% at 50% 10%, #0c1424 0%, #060911 100%) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.08) !important;
  margin: 25px 0 !important;
}

.ft-req-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15) !important;
  padding-bottom: 16px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.ft-req-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ft-req-title h3 {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.ft-dot {
  width: 10px !important;
  height: 10px !important;
  background-color: #00e5ff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 10px #00e5ff !important;
}

.ft-req-badge-top span {
  background: rgba(0, 229, 255, 0.15) !important;
  color: #00e5ff !important;
  border: 1px solid rgba(0, 229, 255, 0.4) !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

.ft-req-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.ft-req-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px !important;
  background: rgba(10, 20, 36, 0.45) !important;
  border: 1px solid rgba(0, 229, 255, 0.08) !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
}

.ft-req-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 200px !important;
  gap: 3px !important;
}

.ft-part-title {
  color: #00e5ff !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
}

.ft-part-spec {
  color: #c4d7ed !important;
  font-size: 0.8rem !important;
}

.ft-req-progress {
  flex: 1 !important;
  margin: 0 15px !important;
}

.ft-bar-track {
  height: 8px !important;
  background: #0e1c30 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
}

.ft-bar-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #0088ff 0%, #00e5ff 100%) !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8) !important;
}

.ft-fps-tag {
  background: rgba(0, 229, 255, 0.1) !important;
  border: 1px solid rgba(0, 229, 255, 0.4) !important;
  color: #00e5ff !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.ft-req-footer {
  margin-top: 20px !important;
  padding-top: 15px !important;
  border-top: 1px solid rgba(0, 229, 255, 0.12) !important;
  display: flex !important;
  justify-content: center !important;
}

.ft-status-pill.ready {
  background: rgba(0, 230, 118, 0.1) !important;
  border: 1px solid #ff7a00 !important;
  color: #ff7a00 !important;
  padding: 8px 22px !important;
  border-radius: 30px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

@media (max-width: 768px) {
  .ft-req-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .ft-req-progress {
    width: 100% !important;
    margin: 10px 0 !important;
  }
}
/* کانتینر اصلی هولوگرافیک HUD */
.ft-hud-hero {
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(0, 210, 255, 0.08) 0%, rgba(10, 14, 23, 0.95) 75%);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 16px;
  padding: 40px 25px;
  margin: 20px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.05), inset 0 0 20px rgba(0, 210, 255, 0.03);
}

/* گوشه‌های تاکتیکال شبیه رادار سایبرپانک */
.hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #00d2ff;
  pointer-events: none;
}
.hud-corner.top-left { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.hud-corner.top-right { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.hud-corner.bottom-left { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.hud-corner.bottom-right { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* هاله نور پشت کیس */
.rig-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.35) 0%, rgba(155, 81, 224, 0.2) 50%, transparent 70%);
  filter: blur(35px);
  z-index: 1;
}

/* تصویر کیس شناور با انیمیشن ملایم */
.rig-image {
  position: relative;
  z-index: 2;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  animation: rigFloat 4s ease-in-out infinite;
}

@keyframes rigFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* دکمه نئونی براق CYBER */
.btn-cyber-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #00d2ff, #7928ca);
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}
.btn-cyber-primary:hover {
  box-shadow: 0 0 30px rgba(121, 40, 202, 0.7);
  transform: translateY(-2px);
}
/* گرید ۳ ستونه کارت‌های دسته‌بندی */
.ft-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px 0;
  direction: rtl;
}

/* استایل پایه کارت‌های شیشه‌ای */
.ft-cat-card {
  position: relative;
  background: radial-gradient(100% 100% at 50% 0%, rgba(13, 27, 42, 0.9) 0%, rgba(5, 10, 20, 0.95) 100%);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* تفکیک رنگ حاشیه‌ها و هاله‌ها */
.ft-card-cyan {
  border: 1px solid rgba(0, 210, 255, 0.35);
}
.ft-card-cyan:hover {
  border-color: #00d2ff;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.25), inset 0 0 20px rgba(0, 210, 255, 0.1);
}

.ft-card-purple {
  border: 1px solid rgba(176, 38, 255, 0.35);
}
.ft-card-purple:hover {
  border-color: #b026ff;
  box-shadow: 0 10px 30px rgba(176, 38, 255, 0.25), inset 0 0 20px rgba(176, 38, 255, 0.1);
}

/* هاور و جابجایی نرم کارت‌ها به سمت بالا */
.ft-cat-card:hover {
  transform: translateY(-8px);
}

/* هاله نوری پس‌زمینه کارت */
.ft-cat-glow {
  position: absolute;
  top: 0; left: 0; right: 0; height: 120px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ft-card-purple .ft-cat-glow {
  background: radial-gradient(circle, rgba(176, 38, 255, 0.15) 0%, transparent 70%);
}

/* هدر کارت (شماره و برچسب) */
.ft-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.ft-cat-num {
  font-size: 14px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 1px;
}
.ft-cat-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 255, 0.3);
}
.ft-card-purple .ft-cat-tag {
  color: #b026ff;
  background: rgba(176, 38, 255, 0.1);
  border-color: rgba(176, 38, 255, 0.3);
}

/* باکس تصویر داخل کارت */
.ft-cat-image-box {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.ft-cat-img {
  max-height: 160px;
  width: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
  transition: transform 0.4s ease;
}
.ft-cat-card:hover .ft-cat-img {
  transform: scale(1.06);
}

/* متون کارت */
.ft-cat-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px 0;
  position: relative;
  z-index: 2;
}
.ft-cat-desc {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  min-height: 50px;
}

/* دکمه داخل کارت */
.ft-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00d2ff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  position: relative;
  z-index: 2;
  transition: gap 0.3s ease;
}
.ft-card-purple .ft-cat-btn {
  color: #b026ff !important;
}
.ft-cat-btn:hover {
  gap: 12px;
}

/* واکنش‌گرایی برای موبایل و تبلت */
@media (max-width: 991px) {
  .ft-categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* اصلاح سایز و جلوگیری از بیرون زدن قیمت محصول */
body .product-price-and-shipping, 
body .product-price-and-shipping .price, 
body .product-miniature .price {
  font-size: 13px !important; /* سایز رو از ۱۵ آوردیم روی ۱۳ تا قشنگ داخل کادر جا بشه */
  line-height: 1.4 !important;
  letter-spacing: -0.5px !important;
  white-space: nowrap !important;
  display: inline-block !important;
  max-width: 100% !important;
}
.product-price-and-shipping {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 6px !important;
}
body .product-price-and-shipping .price,
body .product-miniature .price {
  margin-right: 8px !important;
}
/* =========================================================
   FARS TEC - CYAN & ELECTRIC BLUE HUD PRODUCT BORDER
   ========================================================= */
.product-miniature {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    
    /* پس‌زمینه دارک شیشه‌ای با انعکاس ملایم سایان */
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 60%),
        linear-gradient(160deg, rgba(8, 14, 24, 0.98) 0%, rgba(4, 7, 12, 1) 100%) !important;
    
    /* کادر اصلی تماماً سایان و اوت‌لاین آبی متالیک عمیق */
    border: 2.5px solid #00f0ff !important;
    outline: 1px solid rgba(0, 162, 255, 0.75) !important;
    outline-offset: -3px !important;
    
    box-shadow:
        0 0 25px rgba(0, 240, 255, 0.45),
        0 0 8px rgba(0, 240, 255, 0.7),
        inset 0 0 22px rgba(0, 240, 255, 0.15) !important;
    
    /* گوشه‌های تاکتیکال برش‌خورده */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* خط نور متحرک بالای کارت - تماماً از خانواده آبی و سایان */
.product-miniature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f0ff, #0077ff, transparent);
    filter: drop-shadow(0 0 8px #00f0ff);
    opacity: 1;
    pointer-events: none;
    z-index: 3;
    animation: hudNeonFlow 3s linear infinite;
}

/* افکت هاور با درخشش سوپرشارژ آبی */
@media (hover: hover) {
    .product-miniature:hover {
        transform: translateY(-6px) !important;
        border-color: #ffffff !important;
        outline-color: #00f0ff !important;
        box-shadow:
            0 0 35px rgba(0, 240, 255, 0.85),
            0 0 15px rgba(0, 119, 255, 0.8),
            inset 0 0 30px rgba(0, 240, 255, 0.35) !important;
        filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.7)) !important;
    }
}

@keyframes hudNeonFlow {
    0%   { left: -60%; }
    100% { left: 110%; }
}
/* ========================================================
   FARS TEC - SHOPPING CART MODAL DARK THEME OVERRIDE
   ======================================================== */

/* پس‌زمینه اصلی پنجره پاپ‌آپ و حذف سفیدی */
#blockcart-modal .modal-content {
    background-color: #0b0e14 !important;
    background: linear-gradient(145deg, #0e121a 0%, #06080c 100%) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.12) !important;
    color: #e0e6ed !important;
}

/* هدر پنجره پاپ‌آپ (پیام اضافه شد) */
#blockcart-modal .modal-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 18px 24px !important;
}

#blockcart-modal .modal-title {
    color: #00f0ff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}

#blockcart-modal .modal-header .close {
    color: #94a3b8 !important;
    opacity: 0.8 !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
}

#blockcart-modal .modal-header .close:hover {
    color: #ff3366 !important;
    opacity: 1 !important;
    transform: rotate(90deg);
}

/* بدنه پاپ‌آپ و متن‌ها */
#blockcart-modal .modal-body {
    background: transparent !important;
    color: #cbd5e1 !important;
    padding: 24px !important;
}

/* خط جداکننده وسط دو ستون */
#blockcart-modal .divide-right {
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* برچسب‌ها و مبالغ */
#blockcart-modal .modal-body p,
#blockcart-modal .cart-products-count {
    color: #94a3b8 !important;
}

/* ردیف خاکستری/سفید پشت مجموع پایینی */
#blockcart-modal .cart-content p:last-of-type,
#blockcart-modal .cart-content .cart-total-row {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

/* مقادیر قیمت و ریال */
#blockcart-modal .value {
    color: #00f0ff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3) !important;
}

/* دکمه بازگشت به فروشگاه */
#blockcart-modal .btn-secondary,
#blockcart-modal button[data-dismiss="modal"] {
    background: #151b26 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

#blockcart-modal .btn-secondary:hover,
#blockcart-modal button[data-dismiss="modal"]:hover {
    background: #1e2638 !important;
    border-color: #00f0ff !important;
    color: #00f0ff !important;
}

/* دکمه پرداخت نهایی */
#blockcart-modal .btn-primary {
    background: linear-gradient(135deg, #00c8ff 0%, #0077ff 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.35) !important;
    color: #000 !important;
    font-weight: 800 !important;
    transition: all 0.25s ease !important;
}

#blockcart-modal .btn-primary:hover {
    box-shadow: 0 6px 22px rgba(0, 200, 255, 0.6) !important;
    transform: translateY(-2px) !important;
}
/* ========================================================
   FARS TEC - SHOPPING CART PAGE (cart?action=show) HUD FIX
   ======================================================== */

/* کانتینر اصلی صفحه سبد خرید */
#cart, .cart-grid {
    margin-top: 2rem !important;
    margin-bottom: 3rem !important;
}

/* کارت هر آیتم در لیست سبد خرید */
.cart-item {
    background: rgba(14, 18, 27, 0.75) !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    backdrop-filter: blur(8px) !important;
    align-items: center !important;
    display: flex !important;
    transition: all 0.25s ease !important;
}

.cart-item:hover {
    border-color: rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* تصویر محصول در سبد */
.cart-item .product-line-image img {
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #080b11 !important;
}

/* عنوان کالا */
.cart-item .product-line-info a {
    color: #00f0ff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* حل باگ تداخل سطل زباله با قیمت (مهم‌ترین بخش) */
.cart-item .cart-line-product-actions,
.cart-item .product-line-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    position: static !important; /* خنثی کردن absolute های تم کلاسیک */
}

/* دکمه حذف / سطل زباله */
.cart-item .remove-from-cart {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 51, 102, 0.1) !important;
    border: 1px solid rgba(255, 51, 102, 0.3) !important;
    border-radius: 8px !important;
    color: #ff3366 !important;
    line-height: 1 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}

.cart-item .remove-from-cart:hover {
    background: #ff3366 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.5) !important;
}

/* باکس کنترل تعداد (اینپوت و استپر) */
.cart-item .bootstrap-touchspin {
    background: #090c12 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    max-width: 90px !important;
}

.cart-item .bootstrap-touchspin input.js-cart-line-product-quantity {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-weight: bold !important;
    text-align: center !important;
    height: 36px !important;
}

.cart-item .bootstrap-touchspin .btn-touchspin {
    background: #151b26 !important;
    border: none !important;
    color: #94a3b8 !important;
}

.cart-item .bootstrap-touchspin .btn-touchspin:hover {
    background: #00f0ff !important;
    color: #000 !important;
}

/* قیمت‌ها در سبد خرید */
.cart-item .product-price,
.cart-item .price {
    color: #00f0ff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3) !important;
    margin: 0 !important;
}

/* کارت فاکتور نهایی و پرداخت (ستون سمت چپ) */
.cart-grid-right .card.cart-summary {
    background: linear-gradient(160deg, #101522 0%, #080b12 100%) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

/* ردیف‌های محاسبه قیمت در خلاصه فاکتور */
.cart-summary .cart-summary-line {
    padding: 10px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

.cart-summary .cart-summary-line .value {
    color: #fff !important;
    font-weight: 600 !important;
}

.cart-summary .cart-total {
    background: rgba(0, 240, 255, 0.05) !important;
    border-radius: 8px !important;
    padding: 14px !important;
    margin: 16px 0 !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
}

.cart-summary .cart-total .value {
    color: #00f0ff !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4) !important;
}

/* دکمه پرداخت نهایی ستون چپ */
.cart-detailed-actions .btn-primary {
    background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%) !important;
    color: #040810 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px !important;
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.35) !important;
    transition: all 0.3s ease !important;
}

.cart-detailed-actions .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6) !important;
    transform: translateY(-2px) !important;
}

/* لینک بازگشت به فروشگاه */
a.label[href*="controller=index"], 
.cart-grid-body a.label {
    color: #ff9900 !important;
    transition: 0.2s ease !important;
}
a.label:hover {
    color: #ffaa33 !important;
    text-decoration: underline !important;
}
/* ========================================================
   FARS TEC - ULTIMATE CART LINE LAYOUT & TRASH BUTTON FIX
   ======================================================== */

/* حذف پوزیشن ابسولوت از کل اجزای سطر کالا */
.cart-grid-body .product-line-grid,
.cart-items .cart-item,
.cart-item .row {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* ستون‌های گرید محصول در سبد خرید */
.cart-item .product-line-grid-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    max-width: 50% !important;
}

/* تصویر و نام کالا */
.cart-item .product-line-grid-left .product-line-image {
    margin-left: 15px !important;
    margin-right: 0 !important;
}

/* ستون مشخصات و قیمت تکی */
.cart-item .product-line-info {
    text-align: right !important;
}

/* بخش سمت چپ: کنترل تعداد + قیمت کل + سطل زباله */
.cart-item .product-line-grid-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    flex: 1 1 auto !important;
    max-width: 50% !important;
    position: relative !important;
}

/* لغو شناوری و ریست تمام ستون‌های داخلی پرستاشاپ */
.cart-item .product-line-grid-right > div,
.cart-item .product-line-grid-right .col-xs-4,
.cart-item .product-line-grid-right .col-md-2,
.cart-item .product-line-grid-right .col-md-4,
.cart-item .product-line-grid-right .col-md-6 {
    position: static !important;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* اصلاح قطعی سطل زباله و محفظه‌اش */
.cart-item .cart-line-product-actions,
.cart-item .product-line-actions {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 3 !important; /* میفته آخرین عنصر در سمت چپ */
}

.cart-item a.remove-from-cart {
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    margin: 0 0 0 10px !important;
    inset: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* کادر قیمت کل کالا */
.cart-item .product-price,
.cart-item .product-line-grid-right .price,
.cart-item .product-line-grid-right strong {
    position: static !important;
    float: none !important;
    display: inline-block !important;
    margin: 0 12px !important;
    order: 2 !important;
    white-space: nowrap !important;
}

/* کادر تعداد */
.cart-item .qty,
.cart-item .bootstrap-touchspin {
    position: static !important;
    float: none !important;
    order: 1 !important;
    margin: 0 !important;
}
