/* ۱. تعریف فونت حرفه‌ای */
@font-face {
    font-family: 'Peyda';
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.eot');
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff2') format('woff2'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff') format('woff'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ۲. تنظیم متغیرهای روت */
:root {
    --main-font: 'Peyda', Tahoma, Arial, sans-serif;
    --accent-blue: #00f2fe;
    --accent-glow: rgba(0, 242, 254, 0.4);
    --text-light: #e2e8f0;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --aquatic-deep-abyss: #071324;
    --brand-glass-main: linear-gradient(135deg, rgba(16, 43, 81, 0.45) 0%, rgba(14, 40, 79, 0.5) 100%);
    --glass-hull-bg: linear-gradient(135deg, rgba(13, 35, 67, 0.55) 0%, rgba(6, 19, 38, 0.75) 100%);
    --neon-aqua-cyan: linear-gradient(135deg, #00f2fe 0%, #3a7bd5 100%);
    --sf-grad-meta: linear-gradient(90deg, rgba(17, 55, 93, 0.6) 0%, rgba(8, 114, 143, 0.6) 100%);
    --card-liquid-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 🌟 اعمال قطعی فونت به تمام المان‌ها (حل مشکل فونت سایدبار) 🌟 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
}

input, button, textarea, select {
    font-family: var(--main-font);
}

body {
    background: linear-gradient(135deg, #051836, #051b32, #03183a);
}

/* ادامه استایل‌های صفحه */
.product-detail-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    font-family: var(--main-font); /* استفاده از متغیر فونت */
    color: var(--text-light);
    direction: rtl;
    overflow-x: hidden;
    padding-bottom: 50px;
    box-sizing: border-box;
}

/* Canvas پس‌زمینه */
#aquatic-wave-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 2;
}

.orb-1 {
    width: 350px;
    height: 350px;
    background: rgba(0, 242, 254, 0.1);
    top: -80px;
    right: -80px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(58, 123, 213, 0.08);
    bottom: -40px;
    left: -40px;
}

/* کانتینر اصلی جمع‌وجورتر */
.detail-container {
    position: relative;
    z-index: 5;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
}

/* ------------------------------------
   ۱. بنر بالای صفحه با افکت Before/After
------------------------------------ */
.page-top-banner {
    position: relative;
    margin-bottom: 24px;
}

/* هاله نوری پس‌زمینه برای جلوه سه بعدی لوکس */
.banner-ambient-glow {
    position: absolute;
    top: -30%;
    right: 5%;
    width: 250px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.banner-glass-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px;
    padding: 18px 30px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s ease,
    border-color 0.4s ease,
    box-shadow 0.45s ease;
}

/* خط نوری زیر بنر با ::after */
.banner-glass-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue, #00f2fe), transparent);
    opacity: 0.5;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

.banner-glass-content:hover {
    background: linear-gradient(135deg, rgba(20, 38, 62, 0.7) 0%, rgba(15, 28, 48, 0.75) 100%);
    border-color: rgba(0, 242, 254, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 242, 254, 0.08);
}

.banner-glass-content:hover::after {
    width: 100%;
    right: 0%;
    opacity: 1;
}

/* عناوین */
.page-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue, #00f2fe);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.page-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue, #00f2fe);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-blue, #00f2fe);
    animation: pulseMini 1.8s infinite;
}

@keyframes pulseMini {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(0, 242, 254, 0);
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

.page-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-white, #f8fafc);
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.page-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
}

/* چیدمان عمودی اکشن‌ها */
.banner-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* استایل مشترک متن دکمه‌ها */
.btn-text {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

/* دکمه بازگشت */
.back-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white, #f8fafc);
    transition: all 0.3s ease;
}

.back-icon-box {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-icon-box svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-blue, #00f2fe);
    transition: transform 0.3s ease;
}

.back-nav-btn:hover {
    color: var(--accent-blue, #00f2fe);
}

.back-nav-btn:hover .back-icon-box {
    background: var(--accent-blue, #00f2fe);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.back-nav-btn:hover .back-icon-box svg {
    stroke: #030a16;
    transform: translateX(3px);
}

/* دکمه سبد خرید */
.cart-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white, hsl(210, 40%, 98%));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart-icon-box {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-icon-box svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-blue, #00f2fe);
    transition: transform 0.3s ease;
}

.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.cart-nav-btn:hover {
    background: var(--accent-blue, #00f2fe);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.cart-nav-btn:hover .cart-icon-box {
    background: var(--accent-blue, #00f2fe);
}

.cart-nav-btn:hover .cart-icon-box svg {
    stroke: #030a16;
    transform: scale(1.05);
}

/* ریسپانسو برای موبایل */
@media (max-width: 768px) {
    .banner-glass-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .banner-actions {
        width: 100%;
        align-items: flex-end;
    }
}

/* ------------------------------------
   ۲. بدنه اصلی محصول با افکت‌های نوری پیشرفته
------------------------------------ */
.product-glass-hull {
    position: relative;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s ease,
    border-color 0.4s ease,
    box-shadow 0.45s ease;
}

.product-glass-hull::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue, #00f2fe), transparent);
    opacity: 0.5;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

/* افکت نور Sweeping روی کل کارت با ::before */
.product-glass-hull::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            45deg,
            transparent 45%,
            rgba(0, 89, 113, 0.03) 50%,
            transparent 55%
    );
    pointer-events: none;
    transform: rotate(25deg);
    /* انیمیشن انتقال نور قطری */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0.5;
}

.product-glass-hull:hover {
    background: linear-gradient(135deg, rgba(17, 36, 58, 0.45) 0%, rgba(19, 35, 58, 0.5) 100%);
    border-color: rgba(15, 164, 214, 0.792);
    /* لیفت نرم کارت */
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 35px 75px rgba(0, 0, 0, 0.5);
}

/* حرکت رقص نور روی کارت موقع هاور */
.product-glass-hull:hover::before {
    transform: rotate(25deg) translate(-30%, 30%);
    opacity: 1;
}

.product-single-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: center;
}

/* ------------------------------------
   ۳. تصویر محصول و گالری
------------------------------------ */
.image-stage-box {
    position: relative;
    background: rgba(4, 13, 26, 0.55);
    border: var(--card-liquid-border);
    border-radius: 18px;
    padding: 20px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
}

/* هاله رفلکس شیشه‌ای پشت عکس با ::before */
.image-stage-box::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.meta-badges-floating {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.meta-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.tag-category {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 242, 254, 0.25);
}

.tag-discount {
    background: rgba(255, 75, 75, 0.12);
    color: #ff5252;
    border: 1px solid rgba(255, 75, 75, 0.25);
}

.img-wrapper-large img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.55));
    transition: transform 0.2s ease-out;
}

/* ------------------------------------
   ۴. جزئیات متنی و قیمت
------------------------------------ */
.brand-date-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.brand-pill {
    background: var(--sf-grad-meta);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pill-label {
    color: var(--text-muted);
}

.pill-value {
    color: var(--accent-blue);
    font-weight: 700;
    margin-right: 4px;
}

.date-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

.date-pill svg {
    width: 15px;
    height: 15px;
    stroke: var(--accent-blue);
}

.product-detail-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.product-description-text {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0 0 18px 0;
}

.glass-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
    opacity: 0.2;
    margin-bottom: 18px;
}

/* قیمت */
.price-section-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.old-price-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.current-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-number {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--accent-blue);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.price-unit {
    font-size: 0.85rem;
    color: var(--text-light);
}

.stock-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #00ffa3;
    background: rgba(0, 255, 163, 0.06);
    border: 1px solid rgba(0, 255, 163, 0.2);
    padding: 4px 10px;
    border-radius: 14px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #00ffa3;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffa3;
    animation: pulseGlow 2s infinite;
}

/* ------------------------------------
   ۵. دکمه افزودن و اکشن‌ها (با افکت‌های پیشرفته ::before/::after)
------------------------------------ */
.purchase-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

/* انیمیشن تعداد */
.quantity-control {
    display: flex;
    align-items: center;
    background: rgba(4, 13, 26, 0.6);
    border: var(--card-liquid-border);
    border-radius: 12px;
    padding: 3px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-blue);
}

.qty-val {
    width: 38px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 800;
}

/* دکمه اصلی نئونی خرید - (تنظیمات پایه و رنگ اصلی شما) */
.add-to-cart-neon-btn {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--neon-aqua-cyan);
    border: none;
    border-radius: 12px;
    color: #030a16;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    isolation: isolate;
}

/* ۱. لایه درخشش سیال زیرین (Glow Pulse) */
.add-to-cart-neon-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #00f2fe, #4facfe, #00ffa3);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

/* ۲. لایه موج نوری متحرک شیشه‌ای (Liquid Reflection) */
.add-to-cart-neon-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(30deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.add-to-cart-neon-btn svg {
    width: 18px;
    height: 18px;
    stroke: #030a16;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   حالت Hover (انیمیشن جدید و شیک)
   ============================================ */

.add-to-cart-neon-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.6),
    0 0 50px rgba(0, 242, 254, 0.3);
}

/* حرکت دادن آیکون سبد خرید */
.add-to-cart-neon-btn:hover svg {
    transform: translateX(-4px) scale(1.15) rotate(-8deg);
}

/* فعال شدن درخشش زیرین */
.add-to-cart-neon-btn:hover::after {
    opacity: 1;
}

/* گذر انیمیشنی موج نوری شفاف از روی دکمه */
.add-to-cart-neon-btn:hover::before {
    opacity: 1;
    transform: translate(120%, 30%) rotate(30deg);
}

.add-to-cart-neon-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.specs-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: rgba(4, 13, 26, 0.45);
    border: var(--card-liquid-border);
    border-radius: 14px;
    padding: 12px;

    /* انیمیشن نرم کانتینر */
    transition: background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.specs-mini-grid:hover {
    background: rgba(6, 20, 40, 0.65);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0, 242, 254, 0.05);
}

.spec-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 8px;
    cursor: default;

    /* انیمیشن تعاملی تک‌تک کارت‌ها */
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* هاور روی هر مشخصه به‌صورت جداگانه */
.spec-card:hover {
    transform: translateY(-2px);
}

/* خط تزیینی عمودی بین کارت‌ها با ::before */
.spec-card:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);

    /* انیمیشن خط جداکننده */
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
}

/* درخشش خط عمودی موقع هاور روی کارت مجاور */
.spec-card:hover:not(:last-child)::before {
    height: 80%;
    top: 10%;
    background: rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

.spec-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.spec-data {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* تغییر رنگ و درخشش متون هنگام هاور روی کارت */
.spec-card:hover .spec-label {
    color: #94a3b8;
}

.spec-card:hover .spec-data {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* ------------------------------------
   ۷. سیستم Toast و انیمیشن‌ها
------------------------------------ */
.glass-toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 19, 36, 0.92);
    border: 1px solid var(--accent-blue);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
    border-radius: 14px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.glass-toast.show {
    bottom: 30px;
    opacity: 1;
}

.toast-icon {
    width: 22px;
    height: 22px;
    background: var(--accent-blue);
    color: #030a16;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.reveal-3d {
    animation: reveal3DAnimation 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-3d-delay {
    animation: reveal3DAnimation 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

@keyframes reveal3DAnimation {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
}

@keyframes pulseMini {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* ------------------------------------
   ۸. ریسپانسیو کامل (Media Queries)
------------------------------------ */
@media (max-width: 992px) {
    .detail-container {
        padding-top: 20px;
    }

    .product-single-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .image-stage-box {
        height: 320px;
    }

    .product-glass-hull {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .banner-glass-content {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 18px;
    }

    .back-nav-btn {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 10px;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .product-detail-name {
        font-size: 1.2rem;
    }

    .price-number {
        font-size: 1.55rem;
    }

    .purchase-actions-row {
        flex-direction: column;
    }

    .quantity-control {
        justify-content: center;
    }

    .add-to-cart-neon-btn {
        padding: 12px;
    }

    .specs-mini-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .spec-card:not(:last-child)::before {
        display: none;
    }
}


/* ==========================================
   Formatted Article Body Styling
   ========================================== */

/* کانتینر اصلی بدنه متن */
.formatted-article-body {
    position: relative;
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.88);
    margin: 2.5rem 0;
    padding: 0 0.5rem;
}

/* نوار دکوراتیو جانبی با gradient برای حس لوکس و مهندسی */
.formatted-article-body::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00f2fe 0%, #4facfe 50%, transparent 100%);
    border-radius: 4px;
    opacity: 0.6;
}

/* استایل عمومی پاراگراف‌های تولید شده توسط linebreaks */
.formatted-article-body p {
    position: relative;
    margin-bottom: 1.8rem;
    text-align: justify;
    text-justify: inter-word;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

/* هایلایت ملایم روی پاراگراف با هوور */
.formatted-article-body p:hover {
    color: #ffffff;
}

/* افکت دکوراتیو برای پاراگراف اول (Drop Cap / Lead Paragraph Look) */
.formatted-article-body p:first-of-type {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 2.1;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border-right: 3px solid #00f2fe;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ایجاد جلوه انیمیشنی ملایم و شناور (::after) برای انتهای مقاله */
.formatted-article-body::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    margin: 3rem auto 1rem auto;
    background: linear-gradient(90deg, transparent, #00f2fe, transparent);
    border-radius: 2px;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

/* تبلت و موبایل */
@media (max-width: 768px) {
    .formatted-article-body {
        font-size: 0.98rem;
        line-height: 1.9;
        margin: 1.8rem 0;
        padding: 0;
    }

    .formatted-article-body::before {
        right: -8px;
        width: 2px;
    }

    .formatted-article-body p:first-of-type {
        font-size: 1.05rem;
        padding: 1rem 1.2rem;
        border-right-width: 2px;
    }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
    .formatted-article-body p {
        margin-bottom: 1.4rem;
        text-align: right; /* جلوگیری از فاصله زیاد بین کلمات در صفحه‌های خیلی کوچک */
    }
}

/* ==========================================================================
   🌟 استایل‌های سایدبار احراز هویت (Auth Drawer & Overlay) - کپی دقیق از صفحه اصلی 🌟
   ========================================================================== */

.auth-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 22, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px; /* تنظیم عرض دقیق مطابق هوم‌پیج */
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 2000;
    background: linear-gradient(165deg, rgba(7, 24, 53, 0.94) 0%, rgba(5, 19, 43, 0.97) 100%); /* گرادینت اصلی */
    backdrop-filter: blur(30px) saturate(220%);
    -webkit-backdrop-filter: blur(30px) saturate(220%);
    border-left: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: -25px 0 60px rgba(0, 0, 0, 0.7), inset 2px 0 20px rgba(0, 242, 254, 0.12);
    perspective: 1000px;
    transform: translateX(105%) rotateY(-5deg); /* افکت چرخش 3D موقع ورود */
    transform-origin: right center;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    direction: rtl;
}

.auth-drawer.active {
    transform: translateX(0) rotateY(0deg);
}

/* افکت زنده بازتاب نور آب */
.auth-drawer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.08) 0%, rgba(0, 119, 255, 0.03) 45%, transparent 70%);
    animation: poolWaterFlow 14s infinite linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes poolWaterFlow {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.15);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.drawer-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.drawer-brand .logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drawer-brand .logo-sub {
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.03); /* رنگ بکگراند ظریف */
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 44px; /* سایز بزرگتر */
    height: 44px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drawer-close-btn:hover {
    background: rgba(255, 0, 85, 0.2);
    border-color: #ff0055;
    color: #ff0055;
    transform: rotate(180deg) scale(1.12); /* چرخش کامل */
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.5), inset 0 0 10px rgba(255, 0, 85, 0.3);
}

.drawer-close-btn svg {
    width: 20px;
    height: 20px;
}

.drawer-body {
    position: relative;
    z-index: 2;
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* انیمیشن سوییچ ویوها */
.auth-view {
    display: none;
    opacity: 0;
    filter: blur(10px);
    transform: translateX(40px) scale(0.96);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-view.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0) scale(1);
}

.auth-view.exiting {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-40px) scale(0.96);
}

/* استگر انیمیشن‌های المان‌های داخل فرم */
.auth-view .auth-heading,
.auth-view .input-group,
.auth-view .form-row,
.auth-view .btn-auth-submit,
.auth-view .auth-switch-text,
.auth-view .profile-card-header,
.auth-view .profile-details-panel,
.auth-view .profile-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-view.active .auth-heading {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .form-row {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(1) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(2) {
    transition-delay: 0.22s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(3) {
    transition-delay: 0.29s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(4) {
    transition-delay: 0.36s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .btn-auth-submit {
    transition-delay: 0.48s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .auth-switch-text {
    transition-delay: 0.55s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .profile-card-header {
    transition-delay: 0.12s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .profile-details-panel {
    transition-delay: 0.22s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .profile-actions {
    transition-delay: 0.35s;
    opacity: 1;
    transform: translateY(0);
}

/* تایپوگرافی فرم */
.auth-heading {
    margin-bottom: 30px;
}

.auth-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(0, 242, 254, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.auth-badge:hover {
    background: rgba(0, 242, 254, 0.18);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.auth-heading h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.auth-heading p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* اینپوت‌ها */
.elite-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    position: relative;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.input-group:hover {
    background: rgba(0, 242, 254, 0.02);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.4s ease;
}

.input-group label {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -12px;
    right: 0;
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4facfe, #00f2fe);
    box-shadow: 0 0 15px #00f2fe;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
}

.input-group input:focus ~ .input-glow,
.input-group:hover .input-glow {
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: flex-end;
}

.forgot-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
    transform: translateX(-3px);
}

/* دکمه ثبت انیمیشنی فوق‌آکواتیک */
.btn-auth-submit {
    position: relative;
    margin-top: 10px;
    padding: 16px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #00f2fe 0%, #0077ff 50%, #00d2ff 100%);
    background-size: 200% 200%;
    color: #030a16;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 4px 4px #00171847, 0 0 4px #0010223b;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-auth-submit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(25deg);
    transition: left 0.75s ease;
}

.btn-auth-submit::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.btn-auth-submit:hover {
    transform: translateY(-4px) scale(1.025);
    background-position: 100% 0%;
    box-shadow: 0 7px 7px rgba(0, 242, 254, 0.5), 0 0 7px rgba(0, 119, 255, 0.4);
    background: linear-gradient(135deg, #b0f3f7 0%, #5db2f7 50%, #82d7e7 100%);
}

.btn-auth-submit:hover::before {
    left: 140%;
}

.btn-auth-submit:hover::after {
    width: 320px;
    height: 320px;
    opacity: 1;
}

.btn-auth-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-auth-submit:hover svg {
    transform: translateX(-8px) scale(1.15);
}

.btn-auth-submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 18px rgba(0, 242, 254, 0.3);
}

/* لینک‌های پایین فرم */
.auth-switch-text {
    margin-top: auto;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-weight: 700;
    cursor: pointer;
    margin-right: 5px;
    position: relative;
    font-size: 13px;
    transition: all 0.3s ease;
}

.link-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #0077ff);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
    box-shadow: 0 0 8px #00f2fe;
}

.link-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

.link-btn:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

/* ================== پروفایل کاربر ================== */
.profile-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.user-avatar-glow {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00f2fe, #0077ff);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
    margin-bottom: 12px;
    animation: avatarPulse 4s infinite alternate;
    transition: transform 0.4s ease;
}

.user-avatar-glow:hover {
    transform: scale(1.06) rotate(4deg);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background: #061226;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.avatar-inner svg {
    width: 36px;
    height: 36px;
}

.profile-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.user-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
}

.user-badge-vip {
    font-size: 10.5px;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
}

.user-badge-vip:hover {
    background: rgba(255, 215, 0, 0.22);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.profile-details-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 20px;
    padding: 10px 22px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 0 25px rgba(0, 242, 254, 0.03), 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 25px;
}

.details-row {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.details-row:last-child {
    border-bottom: none;
}

.details-row.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bullet-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-blue);
    display: inline-block;
}

.field-value {
    font-size: 14.5px;
    color: #f1f5f9;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.field-value.highlight {
    color: var(--accent-blue);
    font-family: inherit;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.field-value.address-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 500;
}

/* ================== دکمه‌های پروفایل ================== */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.btn-profile-action {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-profile-action span {
    position: relative;
    z-index: 2;
    letter-spacing: -0.2px;
}

.btn-profile-action svg {
    position: relative;
    z-index: 2;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.btn-profile-action.primary {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(0, 119, 255, 0.12));
    color: var(--accent-blue);
    border: 1px solid rgba(0, 242, 254, 0.35);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}

.btn-profile-action.primary:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(0, 119, 255, 0.25));
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
    transform: translateY(-3px);
    color: #ffffff;
}

.btn-profile-action.primary:hover svg {
    transform: translateX(-4px);
}

.btn-profile-action.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 242, 254, 0.03) 100%);
    color: #e2e8f0;
    border: 1px solid rgba(0, 242, 254, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(0, 242, 254, 0.03);
}

.btn-profile-action.secondary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 242, 254, 0.25) 50%, transparent 100%);
    transform: rotate(25deg);
    transition: left 0.75s ease;
    z-index: 1;
    pointer-events: none;
}

.btn-profile-action.secondary:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(0, 119, 255, 0.15) 100%);
    color: var(--accent-blue);
    border-color: rgba(0, 242, 254, 0.55);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.22), inset 0 0 15px rgba(0, 242, 254, 0.1);
}

.btn-profile-action.secondary:hover::before {
    left: 140%;
}

.btn-profile-action.secondary:hover svg {
    transform: rotate(-10deg) scale(1.18);
    color: var(--accent-blue);
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.8));
}

.btn-profile-action.logout {
    background: rgba(255, 51, 102, 0.06);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.22);
}

.btn-profile-action.logout:hover {
    background: rgba(255, 51, 102, 0.18);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
    transform: translateY(-2px);
}

/* ریسپانسیو دکمه‌های پروفایل */
@media (max-width: 768px) {
    .btn-profile-action {
        padding: 14px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .profile-actions {
        gap: 10px;
    }

    .btn-profile-action {
        padding: 13px 16px;
        font-size: 12.5px;
        border-radius: 25px;
    }

    .btn-profile-action svg {
        width: 15px;
        height: 15px;
    }

    .auth-drawer {
        width: 100vw;
        border-left: none;
    }

    .drawer-body {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* تاریخچه سفارشات */
.orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 10px;
}

.orders-list-container::-webkit-scrollbar {
    width: 4px;
}

.orders-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 4px;
}

.order-history-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.order-history-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.order-track {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.order-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-processing {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-shipped {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-delivered {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-canceled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-info {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
}

.info-label {
    color: #94a3b8;
}

.info-val {
    color: #e2e8f0;
    font-weight: 600;
}

.empty-orders {
    text-align: center;
    padding: 50px 0;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}

.empty-orders svg {
    width: 54px;
    height: 54px;
    opacity: 0.3;
}


/* 🌟 مخفی کردن دایره قرمز در صورتی که سبد خرید خالی باشد */
.cart-pill[data-count="0"]::after,
.cart-badge-count:empty,
.cart-badge-count:contains("0") {
    display: none !important;
}

/* 🌟 حل مشکل سفیدی پس‌زمینه اتوفیل مرورگرها (مخصوصا کروم) 🌟 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 50px #08162b inset !important; /* همرنگ بک‌گراند سایدبار */
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: white;
}