/* ============================================================
   استار موبایل - استایل اصلی
   تم: روز (سفید و نارنجی) / شب (سیاه و نارنجی)
   ============================================================ */

/* ---------- متغیرهای تم ---------- */
:root {
    /* حالت روز */
    --bg: #e2e2e2;
    --card-bg: #ffffff;
    --text: #000000;
    --text-muted: #636363;
    --accent: #d78000;
    --accent-hover: #ffa116;
    --accent-light: rgba(215, 128, 0, 0.1);
    --border: #e0e0e0;
    --border-strong: #c0c0c0;
    --header-bg: #ffffff;
    --header-text: #000000;
    --footer-bg: #1a1a1a;
    --footer-text: #d0d0d0;
    --footer-wave: #1a1a1a;
    --sidebar-bg: #ffffff;
    --sidebar-text: #000000;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --hero-bg: #d78000;
    --hero-text: #ffffff;
    --input-bg: #ffffff;
    --input-border: #d0d0d0;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
}

/* حالت شب */
[data-theme="dark"] {
    --bg: #1f1f1f;
    --card-bg: #3d3d3d;
    --text: #ffffff;
    --text-muted: #d0d0d0;
    --accent: #ff9e02;
    --accent-hover: #bc7501;
    --accent-light: rgba(255, 158, 2, 0.15);
    --border: #4a4a4a;
    --border-strong: #5a5a5a;
    --header-bg: #1f1f1f;
    --header-text: #ffffff;
    --footer-bg: #141414;
    --footer-text: #d0d0d0;
    --footer-wave: #141414;
    --sidebar-bg: #1f1f1f;
    --sidebar-text: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --hero-bg: #ff9e02;
    --hero-text: #000000;
    --input-bg: #3d3d3d;
    --input-border: #5a5a5a;
}

/* ---------- اعداد لاتین/فارسی در متن RTL ---------- */
.ltr-num {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* ---------- ریست و پایه ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition), background var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ---------- اسکرول بار ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ============================================================
   هدر
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    box-shadow: var(--shadow);
    transition: background var(--transition), box-shadow var(--transition);
}

/* نوار بالای هدر */
.header-topbar {
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 0;
}

.header-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.topbar-msg svg {
    width: 14px;
    height: 14px;
}

.topbar-phone a {
    color: #fff;
    font-weight: 600;
}

.topbar-phone a:hover {
    opacity: 0.85;
}

/* هدر اصلی */
.header-main {
    padding: 12px 0;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* لوگو */
.header-logo {
    flex-shrink: 0;
    order: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(215, 128, 0, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-3deg); }
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--header-text);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* منوی دسکتاپ */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    order: 2;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    color: var(--header-text);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-arrow {
    width: 12px;
    height: 12px;
    transition: transform var(--transition);
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* منوی کشویی */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid var(--border);
}

.nav-item:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-btn {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
    padding-right: 16px;
}

.dropdown-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.dropdown-item-icon svg {
    width: 14px;
    height: 14px;
}

.dropdown-all {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
    color: var(--accent);
    font-weight: 700;
    justify-content: space-between;
}

.dropdown-all svg {
    width: 14px;
    height: 14px;
}

/* دکمه همبرگری */
.hamburger-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 0;
    transition: all var(--transition);
}

.hamburger-btn:hover {
    background: var(--accent);
}

.hamburger-btn:hover svg {
    stroke: #fff;
}

.hamburger-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    transition: stroke var(--transition);
}

/* اکشن‌های هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 3;
    flex-shrink: 0;
}

.header-action {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--accent);
}

.header-action:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 128, 0, 0.3);
}

.header-action svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* بج سبد خرید */
.cart-badge {
    position: absolute;
    top: -3px;
    left: -3px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* دکمه تم */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.4s ease;
}

.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* دکمه ورود */
.login-btn {
    width: auto;
    padding: 0 16px;
    border-radius: 50px;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* منوی کاربر */
.user-menu {
    position: relative;
    width: auto;
    border-radius: 50px;
    padding: 0 12px;
    gap: 8px;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.user-menu-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.user-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 180px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid var(--border);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}

.user-dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.user-dropdown-item svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   محتوای اصلی
   ============================================================ */
.site-main {
    flex: 1;
    min-height: 50vh;
}

/* ============================================================
   فوتر
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    margin-top: 60px;
    transition: background var(--transition);
    border-top: none;
    outline: none;
}

.footer-waves {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    line-height: 0;
}

.footer-waves svg {
    width: 100%;
    height: 60px;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 50px 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(215, 128, 0, 0.4);
}

.sidebar-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(215, 128, 0, 0.4);
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
}

.footer-slogan {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 2;
    color: var(--footer-text);
    opacity: 0.85;
    margin-bottom: 20px;
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    font-size: 0.88rem;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.footer-links a::before {
    content: '←';
    color: var(--accent);
    opacity: 0;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
    padding-right: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact li {
    margin-bottom: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-text);
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.contact-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateX(-5px);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* نماد اعتماد */
.footer-trust {
    margin-top: 15px;
}

.enamad-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #333;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.enamad-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.enamad-badge svg {
    width: 24px;
    height: 24px;
    color: #4ade80;
}

/* پایین فوتر */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    opacity: 0.7;
}

.footer-made .heart {
    color: var(--danger);
    animation: heartBeat 1.5s ease infinite;
    display: inline-block;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

/* ============================================================
   سایدبار موبایل
   ============================================================ */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sidebar-text);
}

.sidebar-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s;
}

.sidebar-close:hover {
    background: var(--danger);
    color: #fff;
    transform: rotate(90deg);
}

.sidebar-close svg {
    width: 18px;
    height: 18px;
}

.sidebar-nav {
    padding: 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s;
    margin-bottom: 4px;
}

.sidebar-link:hover {
    background: var(--accent-light);
    color: var(--accent);
    padding-right: 18px;
}

.sidebar-link.active {
    background: var(--accent);
    color: #fff;
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-link-icon svg {
    width: 18px;
    height: 18px;
}

.sidebar-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.sidebar-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   بخش قهرمان (Hero) با گوشی متحرک
   ============================================================ */
.hero-section {
    background: var(--hero-bg);
    color: var(--hero-text);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    transition: background var(--transition);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 520px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--hero-text);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.6s ease;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 8px;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* صحنه سه‌بعدی گوشی */
.hero-phone-scene {
    position: relative;
    width: 380px;
    height: 480px;
    z-index: 2;
    perspective: 1000px;
    animation: fadeIn 1s ease;
}

.phone-3d {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotateY(-10deg); }
    50% { transform: translateY(-20px) rotateY(10deg); }
}

.phone-body {
    position: relative;
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.phone-screen {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--phone-screen-1, #1a237e), var(--phone-screen-2, #4a148c));
    border-radius: 20px;
    overflow: hidden;
    transition: background 0.5s ease;
}

.phone-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: screenShine 3s ease-in-out infinite;
}

@keyframes screenShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 2;
}

.phone-camera {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #0a0a0a;
    border-radius: 50%;
    border: 2px solid #333;
    z-index: 3;
}

.phone-camera::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #1a3a6a;
    border-radius: 50%;
    animation: cameraPulse 2s ease-in-out infinite;
}

@keyframes cameraPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.phone-screen-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #fff;
    padding-top: 30px;
}

.phone-clock {
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.phone-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

.phone-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.phone-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: iconFloat 3s ease-in-out infinite;
}

.phone-icon:nth-child(2) { animation-delay: 0.5s; }
.phone-icon:nth-child(3) { animation-delay: 1s; }
.phone-icon:nth-child(4) { animation-delay: 1.5s; }

.phone-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.phone-home-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* انتخاب رنگ گوشی */
.phone-color-picker {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-dot:hover {
    transform: scale(1.2);
}

.color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.color-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #fff;
    animation: colorSpin 3s linear infinite;
    opacity: 0;
}

.color-dot.active::after {
    opacity: 1;
}

@keyframes colorSpin {
    to { transform: rotate(360deg); }
}

/* دکمه‌های قهرمان */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.hero-btn:hover::before {
    transform: translateX(0);
}

.hero-btn-primary {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.hero-btn-outline {
    background: transparent;
    color: var(--hero-text);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-btn svg {
    width: 18px;
    height: 18px;
}

/* دکوراسیون پس‌زمینه hero */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    border: 2px solid #fff;
    animation: heroDeco 8s ease-in-out infinite;
}

.hero-deco-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
}

.hero-deco-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    left: 10%;
    animation-delay: 2s;
}

.hero-deco-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes heroDeco {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* ============================================================
   بخش دسته‌بندی‌ها
   ============================================================ */
.categories-section {
    padding: 60px 0 30px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    position: relative;
    padding-right: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    border-radius: 5px;
}

.section-title small {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.3s;
}

.section-link:hover {
    gap: 10px;
}

.section-link svg {
    width: 16px;
    height: 16px;
}

/* گرید دسته‌بندی */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: right;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1) rotate(10deg);
}

.category-icon svg {
    width: 28px;
    height: 28px;
}

.category-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    transition: color 0.3s;
}

.category-card:hover .category-name {
    color: var(--accent);
}

.category-count {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ============================================================
   بخش محصولات
   ============================================================ */
.products-section {
    padding: 40px 0;
}

.products-scroll {
    position: relative;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

.products-scroll::-webkit-scrollbar {
    height: 6px;
}

.products-scroll::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 3px;
}

.products-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.products-row {
    display: flex;
    gap: 20px;
    min-width: max-content;
    padding: 5px;
}

/* کارت محصول */
.product-card {
    width: 220px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-new {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.badge-used {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* باکس تصویر محصول - تصویر کاملا باکس را پر می‌کند */
.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    background: linear-gradient(145deg, var(--bg), var(--card-bg));
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.product-image-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.product-image-wrap .product-image {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    min-width: 100% !important;
    min-height: 220px !important;
    max-width: 100% !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center;
    transition: transform 0.5s ease;
    z-index: 2;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.product-card:hover .product-image-wrap .product-image {
    transform: scale(1.08);
}

/* جایگاه placeholder تصویر */
.product-image-placeholder {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.product-image-placeholder svg {
    width: 45px;
    height: 45px;
}

.product-info {
    padding: 15px;
}

.product-brand {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.product-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent);
}

.product-price small {
    font-size: 0.7rem;
    font-weight: 500;
}

.product-old-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-stock {
    font-size: 0.7rem;
    margin-top: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-in {
    color: var(--success);
}

.stock-out {
    color: var(--danger);
}

.product-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-add-cart:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(215, 128, 0, 0.3);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

.btn-add-cart svg {
    width: 16px;
    height: 16px;
}

.btn-add-cart.added {
    background: var(--success);
}

.btn-add-cart.disabled {
    background: var(--border-strong);
    cursor: not-allowed;
}

.btn-view {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-view svg {
    width: 18px;
    height: 18px;
}

/* باکس «مشاهده همه» */
.view-all-card {
    width: 220px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.view-all-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.view-all-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.view-all-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: viewAllPulse 2s ease-in-out infinite;
}

.view-all-icon svg {
    width: 32px;
    height: 32px;
}

@keyframes viewAllPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.view-all-text {
    font-size: 1rem;
    font-weight: 800;
}

.view-all-sub {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ============================================================
   گرید محصولات
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.products-grid .product-card {
    width: 100%;
}

/* ============================================================
   صفحه دسته‌بندی
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.page-breadcrumb a {
    color: #fff;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

.page-breadcrumb svg {
    width: 14px;
    height: 14px;
}

.category-page {
    padding: 40px 0;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-sort select {
    padding: 10px 40px 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d78000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 14px;
}

.filter-sort select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

[data-theme="dark"] .filter-sort select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff9e02' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* باتوم شیت */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sheet-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    z-index: 3001;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border-strong);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.sheet-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 15px;
    text-align: center;
}

.sheet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid transparent;
    margin-bottom: 8px;
}

.sheet-option:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.sheet-option.selected {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.sheet-option svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================================
   صفحه محصول
   ============================================================ */
.product-page {
    padding: 40px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-gallery {
    position: relative;
}

.product-main-image {
    background: linear-gradient(145deg, var(--bg), var(--card-bg));
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-main-image .product-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.product-gallery-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-buy-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.5;
}

.product-detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--accent-light);
    padding: 6px 12px;
    border-radius: 50px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.product-detail-price-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.price-box-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
}

.product-detail-price small {
    font-size: 0.9rem;
}

.product-detail-old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.price-save {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 700;
}

.product-detail-stock {
    font-size: 0.9rem;
    font-weight: 700;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--accent);
    color: #fff;
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    outline: none;
}

.qty-input:focus {
    border-color: var(--accent);
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-buy {
    flex: 1;
    min-width: 180px;
    padding: 15px 30px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(215, 128, 0, 0.4);
}

.btn-buy svg {
    width: 20px;
    height: 20px;
}

.btn-book {
    padding: 15px 25px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-book:hover {
    background: var(--accent);
    color: #fff;
}

.btn-book svg {
    width: 18px;
    height: 18px;
}

.product-detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: all 0.3s;
}

.feature-item:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 18px;
    height: 18px;
}

.feature-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-description {
    margin-top: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
}

.product-description h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    padding-right: 15px;
}

.product-description h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 4px;
}

.product-description p {
    color: var(--text-muted);
    line-height: 2;
    font-size: 0.95rem;
}

/* ============================================================
   سبد خرید
   ============================================================ */
.cart-page {
    padding: 40px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    animation: fadeInUp 0.4s ease;
}

.cart-item:hover {
    box-shadow: var(--shadow);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.cart-item-image .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    background: var(--danger);
    color: #fff;
    transform: rotate(90deg);
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.cart-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    animation: cartEmptyFloat 3s ease-in-out infinite;
}

.cart-empty-icon svg {
    width: 50px;
    height: 50px;
}

@keyframes cartEmptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cart-empty h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* خلاصه سبد خرید */
.cart-summary {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.summary-row.total .amount {
    color: var(--accent);
    font-size: 1.3rem;
}

.btn-checkout {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(215, 128, 0, 0.4);
}

.btn-checkout svg {
    width: 20px;
    height: 20px;
}

.btn-continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-continue-shopping:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   فرم‌ها
   ============================================================ */
.checkout-page {
    padding: 40px 0;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.checkout-form {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
}

.checkout-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-title svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

.form-label .required {
    color: var(--danger);
}

.form-input, .form-select, .form-textarea {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
}

.form-success {
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---------- صفحات ورود و ثبت نام ---------- */
.auth-page {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(215, 128, 0, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

.auth-logo svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-tabs {
    display: flex;
    background: var(--bg);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: all 0.3s;
    text-align: center;
}

.auth-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(215, 128, 0, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(215, 128, 0, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============================================================
   Toast Notification
   ============================================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    color: var(--text);
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 90%;
    border: 1px solid var(--border);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.toast-success {
    border-right: 4px solid var(--success);
}

.toast-success svg {
    color: var(--success);
}

.toast-error {
    border-right: 4px solid var(--danger);
}

.toast-error svg {
    color: var(--danger);
}

.toast-info {
    border-right: 4px solid var(--accent);
}

.toast-info svg {
    color: var(--accent);
}

/* ============================================================
   واکشی (Loading)
   ============================================================ */
.page-loading {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-phone {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loadingBounce 1s ease-in-out infinite;
}

.loading-phone svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

@keyframes loadingBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.loading-text {
    font-weight: 700;
    color: var(--accent);
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loading-bar {
    width: 150px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    animation: loadingBar 1s ease-in-out infinite;
}

@keyframes loadingBar {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-250%); }
}

/* ============================================================
   انیمیشن‌های عمومی
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease both;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease both;
}

.fade-in-down {
    animation: fadeInDown 0.5s ease both;
}

/* اسکرول ریویل */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-about {
        grid-column: 1 / -1;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-phone-scene {
        width: 320px;
        height: 420px;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .header-main-inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .header-logo {
        order: 1;
        margin-right: 0;
        margin-left: auto;
    }
    .hamburger-btn {
        order: 0;
        margin-left: 12px;
    }
    .header-actions {
        order: 2;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-phone-scene {
        margin: 0 auto;
    }
    .hero-title {
        font-size: 2rem;
    }
    .product-detail {
        grid-template-columns: 1fr;
    }
    .cart-container, .checkout-container {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-main-inner {
        gap: 10px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .logo-icon {
        width: 38px;
        height: 38px;
    }
    .login-btn span {
        display: none;
    }
    .login-btn {
        width: 42px;
        padding: 0;
        border-radius: 50%;
    }
    .user-name {
        display: none;
    }
    .user-menu {
        width: 42px;
        padding: 0;
        border-radius: 50%;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-phone-scene {
        width: 280px;
        height: 380px;
    }
    .phone-body {
        width: 170px;
        height: 340px;
    }
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .product-detail {
        padding: 20px;
    }
    .cart-item {
        flex-wrap: wrap;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .hero-phone-scene {
        width: 240px;
        height: 340px;
    }
    .phone-body {
        width: 150px;
        height: 300px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .products-grid .product-card {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 10px;
    }
    .products-grid .product-image-wrap {
        width: 120px;
        height: 120px;
        min-height: 120px;
        max-height: 120px;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
        margin: 45px 12px 12px !important;
        padding: 0 !important;
    }
    .products-grid .product-image-wrap .product-image {
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    .products-grid .product-info {
        flex: 1;
        min-width: 0;
    }
    .products-grid .product-actions {
        width: 100%;
        padding: 0 15px 15px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .auth-card {
        padding: 25px;
    }
    .header-actions {
        gap: 5px;
    }
    .header-main-inner {
        gap: 8px;
    }
    .hamburger-btn {
        margin-left: 8px;
    }
    .logo-img {
        width: 38px;
        height: 38px;
    }
    .logo-text {
        font-size: 1rem;
    }
    .header-action,
    .hamburger-btn {
        width: 38px;
        height: 38px;
    }
}
