/* ============================================
   سایت‌شاپ - استایل کامل با رنگ‌بندی جدید
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --primary: #c59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #8b5cf6;
    --accent-pink: #ec4899;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-lighter: #f1f5f9;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-secondary: linear-gradient(135deg, #0f172a, #1e293b);
    --gradient-accent: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 80%, #f59e0b20 100%);
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.16);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
    background: #f4f7fb;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1880px;
    margin: 0 auto;
    padding: 0 44px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--gray-lighter);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    color: var(--gray);
    margin-top: 12px;
    font-size: 1.05rem;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 74px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 30px rgba(245, 158, 11, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 20px;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 900;
    font-size: 1.3rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: inherit;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: var(--transition);
    transform: translateX(50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark);
    background: var(--gray-lighter);
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.btn-icon:hover {
    background: var(--gray-lighter);
    color: var(--primary);
}

.btn-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    line-height: 18px;
    animation: pulse-badge 2s infinite;
}

.btn-icon .badge.notif-badge {
    background: var(--primary);
}

@keyframes pulse-badge {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%) scale(0.8);
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(50%) scale(1);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    position: relative;
    max-width: 260px;
}

.search-bar input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition);
    background: var(--gray-lighter);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.search-bar button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.search-bar button:hover {
    color: var(--primary);
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    display: none;
    z-index: 100;
    padding: 8px 0;
    border: 1px solid var(--gray-light);
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown .dropdown-menu.show {
    display: block;
}

.user-dropdown .dropdown-menu .dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-light);
}

.user-dropdown .dropdown-menu .dropdown-header strong {
    display: block;
    color: var(--dark);
}

.user-dropdown .dropdown-menu .dropdown-header small {
    color: var(--gray);
    font-size: 0.8rem;
}

.user-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.user-dropdown .dropdown-menu a:hover {
    background: var(--gray-lighter);
}

.user-dropdown .dropdown-menu a i {
    width: 24px;
    color: var(--primary);
}

.user-dropdown .dropdown-menu a.danger {
    color: var(--danger);
}

.user-dropdown .dropdown-menu a.danger i {
    color: var(--danger);
}

.user-dropdown .dropdown-menu .divider {
    border-top: 1px solid var(--gray-light);
    margin: 4px 0;
}

.user-dropdown .dropdown-menu a .notif-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    margin-right: auto;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 1.05rem;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    color: white;
    margin-top: -74px;
    padding-top: 140px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    border-radius: 50%;
    animation: float-hero 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
    border-radius: 50%;
    animation: float-hero 25s ease-in-out infinite reverse;
}

@keyframes float-hero {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stats .stat-item .stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-stats .stat-item .stat-number .plus {
    font-size: 1.5rem;
}

.hero-stats .stat-item .stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-slider .slides {
    position: relative;
    height: 320px;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slider .slide .slide-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero-slider .slide h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-slider .slide p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.hero-slider .slide .slide-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 16px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    width: fit-content;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-controls .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls .dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.product-card:nth-child(1) {
    animation-delay: 0.05s;
}
.product-card:nth-child(2) {
    animation-delay: 0.1s;
}
.product-card:nth-child(3) {
    animation-delay: 0.15s;
}
.product-card:nth-child(4) {
    animation-delay: 0.2s;
}
.product-card:nth-child(5) {
    animation-delay: 0.25s;
}
.product-card:nth-child(6) {
    animation-delay: 0.3s;
}
.product-card:nth-child(7) {
    animation-delay: 0.35s;
}
.product-card:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    position: relative;
    padding: 24px;
    background: var(--gray-lighter);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-btn {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    border: none;
    background: white;
    color: var(--dark);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: translateY(20px) scale(0.8);
    opacity: 0;
}

.product-card:hover .product-overlay-btn {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.product-card:hover .product-overlay-btn:nth-child(1) {
    transition-delay: 0.05s;
}
.product-card:hover .product-overlay-btn:nth-child(2) {
    transition-delay: 0.1s;
}
.product-card:hover .product-overlay-btn:nth-child(3) {
    transition-delay: 0.15s;
}

.product-overlay-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1) !important;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    animation: slideBadge 0.5s ease;
}

@keyframes slideBadge {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.badge-sale {
    background: var(--gradient-accent);
    color: white;
}
.badge-featured {
    background: var(--gradient-primary);
    color: white;
}
.badge-new {
    background: var(--success);
    color: white;
}
.badge-hot {
    background: var(--danger);
    color: white;
}

.product-info {
    padding: 18px 20px 20px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.product-title {
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    transition: var(--transition);
}

.product-title:hover {
    color: var(--primary);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.product-rating i {
    color: var(--warning);
}

.product-rating .rating-empty {
    color: var(--gray-light);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price .price-current {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
}

.product-price .price-original {
    font-size: 0.8rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 8px;
}

.btn-add-cart {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--gray-lighter);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.btn-add-cart.added {
    background: var(--success);
    color: white;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(-10deg);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--gradient-secondary);
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stat-item .stat-number .counter {
    font-size: inherit;
}

.stat-item .stat-number .plus {
    font-size: 2rem;
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-top: 4px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--gray-lighter);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-select {
    appearance: auto;
}

/* ===== STATUS BADGES ===== */
.status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}
.status-paid {
    background: #d1fae5;
    color: #065f46;
}
.status-completed {
    background: #dbeafe;
    color: #1e40af;
}
.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}
.status-success {
    background: #d1fae5;
    color: #065f46;
}
.status-warning {
    background: #fef3c7;
    color: #d97706;
}
.status-info {
    background: #dbeafe;
    color: #1e40af;
}
.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    color: var(--dark);
    background: white;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.pagination span.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.pagination a:hover {
    background: var(--gray-lighter);
    border-color: var(--primary);
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    background: white;
    min-width: 150px;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===== CARD ===== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-light);
}

.card-body {
    padding: 24px;
}

/* ===== TABLE ===== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 12px 16px;
    text-align: right;
    font-weight: 700;
    color: var(--gray);
    font-size: 0.8rem;
    border-bottom: 2px solid var(--gray-light);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-lighter);
}

.data-table tr:hover td {
    background: var(--gray-lighter);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast i {
    font-size: 1.2rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-success {
    background: var(--success);
}
.toast-error {
    background: var(--danger);
}
.toast-warning {
    background: var(--warning);
}
.toast-info {
    background: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    color: white;
}

.footer-brand p {
    margin: 16px 0;
    line-height: 1.8;
    opacity: 0.7;
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-4px);
}

.footer-links a i {
    font-size: 0.6rem;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom .heart {
    color: var(--danger);
    animation: pulse-heart 1.5s infinite;
}

@keyframes pulse-heart {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
    padding: 12px 0;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb i {
    font-size: 0.6rem;
    color: var(--gray-light);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-lighter);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    max-width: 440px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    font-size: 1.8rem;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
}

.auth-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin: 0 auto 30px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .search-bar {
        max-width: 140px;
    }
    .search-bar input {
        font-size: 0.75rem;
        padding: 6px 12px 6px 32px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-slider .slides {
        height: 240px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-select {
        width: 100%;
        min-width: unset;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stat-item .stat-number {
        font-size: 2rem;
    }
    .header-actions .btn {
        display: none;
    }
    .btn-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .auth-card {
        padding: 24px;
    }
    .hero-stats {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-image img {
        height: 140px;
    }
    .product-info {
        padding: 12px 14px 14px;
    }
    .product-title {
        font-size: 0.9rem;
    }
    .product-price .price-current {
        font-size: 1rem;
    }
    .btn-add-cart {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card {
        padding: 20px 12px;
    }
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}
/* Reliability and accessibility additions */
.header-spacer{height:74px}.flash-container{position:relative;z-index:20}.flash{padding:13px 18px;margin:14px 0;border-radius:12px;font-weight:700}.flash-success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.flash-danger{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.flash-warning{background:#fffbeb;color:#92400e;border:1px solid #fde68a}.flash-info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}.menu-toggle{display:none;border:0;background:transparent;font-size:1.35rem;color:var(--dark);cursor:pointer}.avatar-button{padding:0;overflow:hidden;border:2px solid var(--primary)!important}.avatar-button img{width:40px;height:40px;display:block;object-fit:cover}.product-detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:30px}.product-panel{background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:28px}.prose{line-height:2;color:#334155}.prose ul{padding-right:20px}.ticket-message{padding:18px;border-radius:14px;background:#f8fafc;margin-bottom:14px}.ticket-message.admin{background:#eef2ff;border-right:4px solid var(--primary)}.ticket-message.user{border-right:4px solid var(--secondary)}.admin-form-actions{display:flex;gap:10px;flex-wrap:wrap}.status-processing{background:#dbeafe;color:#1d4ed8}.status-cancelled{background:#fee2e2;color:#991b1b}
@media(max-width:980px){.menu-toggle{display:inline-flex}.nav{display:none;position:absolute;top:72px;right:16px;left:16px;background:#fff;border-radius:15px;box-shadow:var(--shadow);padding:14px;flex-direction:column}.nav.open{display:flex}.search-bar{display:none}.product-detail-grid{grid-template-columns:1fr}}
@media(max-width:640px){.header-actions .btn-outline{display:none}.product-panel{padding:20px}.header-inner{gap:8px}}


/* Checkout */
.checkout-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:30px}
.checkout-summary{height:max-content;position:sticky;top:95px}
.payment-card-box{display:flex;flex-direction:column;gap:7px;padding:18px;border:1px dashed var(--primary);border-radius:14px;background:#f5f3ff;margin:15px 0}
.payment-card-box strong{font-size:1.35rem;letter-spacing:1px;color:var(--primary)}
@media(max-width:850px){.checkout-grid{grid-template-columns:1fr}.checkout-summary{position:static}}

/* =========================================================
   SiteShop Premium UI v3.1 - visual system override
   ========================================================= */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #06b6d4;
    --accent-pink: #a855f7;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --dark: #111827;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-lighter: #f1f5f9;
    --surface: #fffff;
    --surface-soft: #f4f7fb;
    --border: #e8edf5;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(145deg, #0b1120 0%, #172554 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4, #4f46e5);
    --gradient-hero: linear-gradient(135deg, #081126 0%, #111d43 55%, #20245e 100%);
    --shadow: 0 10px 35px rgba(15, 23, 42, .07);
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, .12);
    --shadow-xl: 0 32px 90px rgba(15, 23, 42, .17);
    --radius: 22px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --transition: all .25s cubic-bezier(.2,.8,.2,1);
}

html { background: var(--surface-soft); }
/* پس‌زمینه حرفه‌ای و گرم فروشگاه */
html,
body {
    background: #f7f5f2 !important;
    background-image: none !important;
}

/* بخش‌های متفاوت صفحه */
.section-alt {
    background: #f0ede8 !important;
}

/* کارت‌ها */
.product-card,
.card,
.product-panel,
.filter-bar,
.trust-grid,
.category-card {
    background: #ffffff !important;
}

/* هدر */
.header {
    background: rgba(255, 255, 255, 0.97) !important;
}

/* خطوط اطراف کارت‌ها */
.product-card,
.card,
.product-panel,
.category-card {
    border-color: #e7e2dc !important;
}
::selection { background: rgba(79,70,229,.18); color: var(--primary-dark); }
.container { width: min(100% - 40px, 1320px); max-width: 1320px; padding: 0; }
.section { padding: 78px 0; }
.section-alt { background: linear-gradient(180deg, rgba(238,242,255,.66), rgba(248,250,252,.72)); }
.section-header { margin-bottom: 34px; }
.section-header.split-header { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; text-align:right; }
.section-title { display:block; font-size:clamp(1.65rem,2.3vw,2.25rem); line-height:1.35; letter-spacing:-.04em; }
.section-title::after { display:none; }
.section-desc { max-width:620px; margin-top:8px; line-height:1.9; }
.section-eyebrow { display:inline-flex; align-items:center; gap:7px; color:var(--primary); font-size:.78rem; font-weight:900; margin-bottom:7px; letter-spacing:.02em; }
.section-eyebrow::before { content:''; width:24px; height:3px; border-radius:20px; background:var(--gradient-primary); }
.section-eyebrow.light { color:#c7d2fe; }
.section-eyebrow.light::before { background:#67e8f9; }
.section-link { display:inline-flex; align-items:center; gap:9px; flex:none; color:var(--primary); font-weight:800; font-size:.9rem; padding:10px 2px; }
.section-link i { transition:transform .2s ease; }
.section-link:hover i { transform:translateX(-5px); }

/* Header */
.header {
    height:82px;
    background:rgba(255,255,255,.88);
    border-bottom:1px solid rgba(226,232,240,.85);
    box-shadow:0 8px 35px rgba(15,23,42,.04);
}
.header.scrolled { border-bottom-color:rgba(79,70,229,.18); box-shadow:0 15px 45px rgba(15,23,42,.09); }
.header-inner { height:82px; gap:22px; }
.header-spacer { height:82px; }
.logo { gap:11px; min-width:max-content; }
.logo-icon {
    width:45px; height:45px; border-radius:15px;
    background:var(--gradient-primary);
    box-shadow:0 10px 25px rgba(79,70,229,.28);
}
.logo-copy { display:flex; flex-direction:column; line-height:1.25; background:none!important; -webkit-text-fill-color:initial!important; }
.logo-copy strong { font-size:1.1rem; color:#111827; font-weight:950; }
.logo-copy small { font-size:.62rem; color:#94a3b8; font-weight:700; margin-top:2px; }
.nav { background:#f8fafc; border:1px solid #edf1f7; padding:5px; border-radius:15px; gap:2px; }
.nav-link { padding:8px 13px; border-radius:10px; font-size:.82rem; font-weight:800; color:#64748b; }
.nav-link i { font-size:.82rem; }
.nav-link::after { display:none; }
.nav-link:hover,.nav-link.active { background:#fff; color:var(--primary); box-shadow:0 4px 15px rgba(15,23,42,.07); }
.header-actions { gap:7px; }
.search-bar { width:220px; max-width:220px; }
.search-bar input { height:43px; padding:8px 15px 8px 40px; border:1px solid #e4e9f1; background:#f8fafc; border-radius:13px; }
.search-bar input:focus { border-color:rgba(79,70,229,.5); box-shadow:0 0 0 4px rgba(79,70,229,.08); }
.btn-icon { width:42px; height:42px; border:1px solid #e8edf5; background:#fff; border-radius:13px; }
.btn-icon:hover { border-color:#c7d2fe; background:#eef2ff; transform:translateY(-2px); }
.avatar-button { border:2px solid #c7d2fe!important; box-shadow:0 4px 16px rgba(79,70,229,.12); }
.user-dropdown .dropdown-menu { border:1px solid #e8edf5; border-radius:18px; padding:8px; box-shadow:0 28px 70px rgba(15,23,42,.16); min-width:255px; }
.user-dropdown .dropdown-menu a { border-radius:10px; padding:10px 12px; }
.user-dropdown .dropdown-menu .dropdown-header { margin:-1px -1px 7px; padding:14px; background:#f8fafc; border-radius:12px; }
.btn-ghost { background:#fff; color:#334155; border:1px solid #e5eaf2; }
.btn-ghost:hover { color:var(--primary); border-color:#c7d2fe; background:#eef2ff; }

/* Buttons and fields */
.btn { min-height:42px; padding:10px 22px; border-radius:13px; justify-content:center; }
.btn-primary { background:var(--gradient-primary); box-shadow:0 10px 24px rgba(79,70,229,.24); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 15px 32px rgba(79,70,229,.34); }
.btn-light { background:#fff; color:var(--primary-dark); box-shadow:0 10px 25px rgba(15,23,42,.1); }
.btn-light:hover { transform:translateY(-2px); }
.btn-glass { color:#fff; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2); backdrop-filter:blur(12px); }
.btn-glass:hover { background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.32); transform:translateY(-2px); }
.btn-outline { background:#fff; border:1px solid #dfe5ee; color:#334155; }
.form-input,.form-textarea,.form-select,.filter-select { border:1px solid #dde4ee; border-radius:13px; background:#fff; min-height:47px; }
.form-input:focus,.form-textarea:focus,.form-select:focus,.filter-select:focus { border-color:#818cf8; box-shadow:0 0 0 4px rgba(79,70,229,.08); }
.form-label { color:#334155; font-weight:800; margin-bottom:7px; }

/* Home hero */
.home-hero {
    margin-top:0;
    padding:90px 0 86px;
    min-height:620px;
    display:flex;
    align-items:center;
    background:
        radial-gradient(circle at 12% 20%, rgba(6,182,212,.18), transparent 22rem),
        radial-gradient(circle at 86% 76%, rgba(124,58,237,.23), transparent 26rem),
        var(--gradient-hero);
}
.home-hero::before { width:520px; height:520px; top:-35%; right:-12%; background:radial-gradient(circle,rgba(99,102,241,.18),transparent 68%); }
.home-hero::after { width:460px; height:460px; bottom:-35%; left:-8%; background:radial-gradient(circle,rgba(6,182,212,.14),transparent 70%); }
.hero-content { grid-template-columns:minmax(0,1.03fr) minmax(420px,.97fr); gap:70px; }
.hero-text { position:relative; z-index:2; }
.hero-badge { display:inline-flex; align-items:center; gap:9px; color:#cbd5e1; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.055); padding:7px 13px; border-radius:999px; font-size:.78rem; font-weight:800; margin-bottom:22px; }
.hero-badge-dot { width:8px; height:8px; background:#22d3ee; border-radius:50%; box-shadow:0 0 0 6px rgba(34,211,238,.12); }
.hero-title { max-width:700px; font-size:clamp(2.55rem,4.6vw,4.35rem); letter-spacing:-.055em; line-height:1.22; margin-bottom:20px; }
.hero-title span { background:linear-gradient(90deg,#a5b4fc,#67e8f9); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-desc { max-width:650px; font-size:1.08rem; color:#b7c2d4; line-height:2; }
.hero-actions { margin-bottom:26px; }
.hero-actions .btn { min-height:54px; padding-inline:28px; }
.hero-trust-row { display:flex; align-items:center; flex-wrap:wrap; gap:20px; color:#a9b6ca; font-size:.79rem; font-weight:700; }
.hero-trust-row i { color:#34d399; margin-left:5px; }
.hero-visual { position:relative; min-height:420px; display:flex; align-items:center; justify-content:center; }
.hero-dashboard-card { position:relative; z-index:3; width:min(100%,520px); background:rgba(255,255,255,.97); border:1px solid rgba(255,255,255,.3); border-radius:25px; overflow:hidden; box-shadow:0 40px 100px rgba(2,6,23,.38); transform:perspective(1000px) rotateY(7deg) rotateX(2deg); }
.mock-window-head { height:54px; display:flex; align-items:center; gap:7px; padding:0 18px; background:#f8fafc; border-bottom:1px solid #e9eef5; direction:ltr; }
.mock-window-head span { width:9px; height:9px; border-radius:50%; background:#cbd5e1; }
.mock-window-head span:first-child { background:#fb7185; }.mock-window-head span:nth-child(2){background:#fbbf24}.mock-window-head span:nth-child(3){background:#34d399}
.mock-window-head small { margin-left:auto; margin-right:auto; color:#64748b; font-weight:800; font-size:.7rem; direction:rtl; }
.mock-body { min-height:310px; display:grid; grid-template-columns:65px 1fr; direction:ltr; }
.mock-sidebar { background:#111c3a; padding:22px 0; display:flex; flex-direction:column; align-items:center; gap:23px; color:#7783a4; }
.mock-sidebar i:first-child { color:#a5b4fc; background:rgba(99,102,241,.18); width:36px; height:36px; display:grid; place-items:center; border-radius:11px; }
.mock-content { padding:24px; display:flex; flex-direction:column; gap:20px; }
.mock-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.mock-kpis span { height:57px; border-radius:13px; background:linear-gradient(135deg,#eef2ff,#f8fafc); border:1px solid #e9edff; position:relative; }
.mock-kpis span::after { content:''; position:absolute; right:11px; bottom:11px; width:45%; height:6px; border-radius:10px; background:#c7d2fe; }
.mock-chart { height:118px; display:flex; align-items:flex-end; gap:11px; padding:14px 16px 0; background:#f8fafc; border:1px solid #eef2f7; border-radius:15px; }
.mock-chart b { flex:1; min-height:20%; border-radius:7px 7px 2px 2px; background:linear-gradient(180deg,#818cf8,#4f46e5); opacity:.9; }
.mock-chart b:nth-child(1){height:34%}.mock-chart b:nth-child(2){height:52%}.mock-chart b:nth-child(3){height:45%}.mock-chart b:nth-child(4){height:75%}.mock-chart b:nth-child(5){height:62%}.mock-chart b:nth-child(6){height:92%}
.mock-products { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; }
.mock-products span { height:46px; border-radius:11px; background:linear-gradient(90deg,#e2e8f0 30%,#f1f5f9 30%); }
.floating-card { position:absolute; z-index:5; display:flex; align-items:center; gap:11px; background:rgba(255,255,255,.96); border:1px solid rgba(255,255,255,.65); box-shadow:0 18px 42px rgba(2,6,23,.26); border-radius:16px; color:#0f172a; }
.floating-download { right:-24px; bottom:33px; padding:13px 16px; }
.floating-download>i { width:40px; height:40px; display:grid; place-items:center; color:#fff; background:var(--gradient-accent); border-radius:12px; }
.floating-download strong,.floating-download small { display:block; }.floating-download strong{font-size:.85rem}.floating-download small{font-size:.65rem;color:#64748b;margin-top:2px}
.floating-rating { left:-25px; top:45px; padding:12px 15px; }.floating-rating>span{font-size:1.55rem;font-weight:950}.floating-rating i{font-size:.62rem;color:#f59e0b}
.hero-orbit { position:absolute; border:1px solid rgba(165,180,252,.16); border-radius:50%; }.orbit-one{width:460px;height:460px}.orbit-two{width:330px;height:330px;border-style:dashed;animation:spinOrbit 22s linear infinite}@keyframes spinOrbit{to{transform:rotate(360deg)}}

/* Trust strip */
.trust-strip { margin-top:-28px; position:relative; z-index:7; }
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border:1px solid var(--border); border-radius:20px; box-shadow:0 20px 55px rgba(15,23,42,.1); overflow:hidden; }
.trust-item { display:flex; align-items:center; gap:13px; padding:20px 22px; border-left:1px solid var(--border); }
.trust-item:last-child { border-left:0; }
.trust-item>div { width:42px; height:42px; flex:none; display:grid; place-items:center; border-radius:13px; color:var(--primary); background:#eef2ff; font-size:1rem; }
.trust-item strong,.trust-item small { display:block; }.trust-item strong{font-size:.84rem}.trust-item small{color:#94a3b8;font-size:.67rem;margin-top:3px;line-height:1.5}

/* Categories */
.home-categories { grid-template-columns:repeat(5,1fr); gap:15px; }
.home-categories .category-card { min-height:112px; display:flex; align-items:center; text-align:right; gap:13px; padding:18px; border:1px solid var(--border); box-shadow:none; background:rgba(255,255,255,.9); }
.category-card { border:1px solid var(--border); box-shadow:0 8px 28px rgba(15,23,42,.05); }
.category-card:hover { transform:translateY(-5px); border-color:#c7d2fe; box-shadow:0 18px 40px rgba(79,70,229,.12); }
.home-categories .category-icon { width:49px; height:49px; min-width:49px; border-radius:15px; background:#eef2ff; color:var(--primary); box-shadow:none; }
.category-content { min-width:0; flex:1; }.category-content h3{font-size:.88rem;margin:0 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-content span{font-size:.69rem;color:#94a3b8}
.category-arrow { color:#cbd5e1; font-size:.75rem; transition:var(--transition); }.category-card:hover .category-arrow{color:var(--primary);transform:translateX(-4px)}

/* Product cards */
.products-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.product-card { border:1px solid var(--border); border-radius:20px; box-shadow:0 8px 30px rgba(15,23,42,.055); }
.product-card::before { height:0; }
.product-card:hover { transform:translateY(-7px); border-color:#d7dcff; box-shadow:0 24px 55px rgba(15,23,42,.13); }
.product-image { padding:0; aspect-ratio:16/10; background:linear-gradient(145deg,#f5f7fb,#eef2f7); border-bottom:1px solid #edf1f6; }
.product-image img { width:100%; height:100%; object-fit:cover; }
.product-overlay { background:linear-gradient(180deg,rgba(15,23,42,.08),rgba(15,23,42,.72)); backdrop-filter:blur(2px); align-items:flex-end; padding-bottom:18px; }
.product-overlay-btn { width:42px; height:42px; border-radius:13px; box-shadow:0 10px 25px rgba(2,6,23,.14); }
.product-badge { top:13px; right:13px; border-radius:9px; padding:6px 10px; font-size:.67rem; box-shadow:0 7px 20px rgba(2,6,23,.16); }
.badge-sale { background:linear-gradient(135deg,#ef4444,#f97316); }.badge-featured{background:linear-gradient(135deg,#4f46e5,#7c3aed)}
.product-info { padding:18px; }
.product-category { font-size:.68rem; color:#8b97a9; font-weight:750; margin-bottom:8px; }
.product-category i { color:#a5b4fc; margin-left:4px; }
.product-title { font-size:.96rem; line-height:1.8; min-height:3.45em; font-weight:900; color:#1e293b; }
.product-title:hover { color:var(--primary); }
.product-meta { margin:12px 0; padding-bottom:12px; border-bottom:1px dashed #e5eaf1; color:#8491a4; font-size:.7rem; }
.product-meta i.fa-star { color:#f59e0b; }
.product-footer { align-items:flex-end; }
.product-price .price-current { color:#172554; font-size:1.03rem; font-weight:950; }.price-original{font-size:.68rem;color:#94a3b8}
.product-footer>.btn-add-cart { width:39px; height:39px; border-radius:12px; background:#eef2ff; color:var(--primary); border:1px solid #dfe4ff; box-shadow:none; }
.product-footer>.btn-add-cart:hover { color:#fff; background:var(--gradient-primary); transform:translateY(-2px); }

/* Inner pages */
.page-products .section,.page-product .section,.page-categories .section,.page-contact .section,.page-profile .section,.page-cart .section { padding-top:52px!important; }
.filter-bar { background:#fff; border:1px solid var(--border); box-shadow:0 12px 35px rgba(15,23,42,.055); border-radius:18px; padding:14px; margin-bottom:30px; }
.card,.product-panel { border:1px solid var(--border); box-shadow:0 12px 40px rgba(15,23,42,.06); }
.card { border-radius:20px; overflow:hidden; }
.product-panel { border-radius:21px; }
.empty-state { border:1px solid var(--border); box-shadow:0 15px 45px rgba(15,23,42,.06); }
.empty-state i { color:#c7d2fe; }
.pagination a { border:1px solid var(--border); background:#fff; }.pagination a.active,.pagination a:hover{background:var(--gradient-primary);color:#fff;border-color:transparent}
.prose h2,.prose h3 { color:#18233a; margin:20px 0 8px; }.prose li::marker{color:var(--primary)}

/* Auth */
.auth-page { background:radial-gradient(circle at 20% 20%,rgba(79,70,229,.13),transparent 25rem),linear-gradient(140deg,#f8fafc,#eef2ff); }
.auth-card { border:1px solid rgba(255,255,255,.8); box-shadow:0 30px 80px rgba(15,23,42,.14); }
.auth-header .logo-icon { box-shadow:0 15px 35px rgba(79,70,229,.27); }

/* Numbers */
.numbers-section { padding-top:28px; }
.numbers-card { display:grid; grid-template-columns:1.15fr .85fr; gap:60px; align-items:center; padding:55px 60px; border-radius:28px; color:#fff; background:radial-gradient(circle at 80% 10%,rgba(6,182,212,.22),transparent 22rem),var(--gradient-secondary); box-shadow:0 30px 80px rgba(15,23,42,.18); }
.numbers-copy h2 { font-size:clamp(1.7rem,3vw,2.6rem); line-height:1.5; margin-bottom:12px; }.numbers-copy p{color:#aebbd0;max-width:600px;line-height:2}
.numbers-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }.number-item{text-align:center;padding:22px 10px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.055);border-radius:18px}.number-item strong{display:block;font-size:2rem;color:#fff}.number-item span{font-size:.72rem;color:#aab7cb}

/* Footer */
.pre-footer { margin:65px 0 -55px; position:relative; z-index:3; }
.pre-footer-card { display:flex; align-items:center; gap:18px; padding:25px 28px; background:var(--gradient-primary); color:#fff; border-radius:22px; box-shadow:0 25px 60px rgba(79,70,229,.28); }
.pre-footer-icon { width:52px; height:52px; flex:none; display:grid; place-items:center; border-radius:16px; background:rgba(255,255,255,.14); font-size:1.25rem; }.pre-footer-card>div:nth-child(2){flex:1}.pre-footer-card strong{display:block;font-size:1.05rem}.pre-footer-card p{font-size:.78rem;color:#e0e7ff;margin-top:4px}
.footer { margin-top:0; padding:115px 0 0; background:radial-gradient(circle at 10% 0,rgba(79,70,229,.18),transparent 24rem),#080f20; }
.footer-grid { gap:55px; }.footer-brand .logo-copy strong{color:#fff}.footer-brand .logo-copy small{color:#77859f}.footer-brand p{color:#8f9bb0}
.footer-trust { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }.footer-trust span{font-size:.67rem;color:#b6c2d3;border:1px solid rgba(255,255,255,.08);padding:6px 9px;border-radius:8px;background:rgba(255,255,255,.035)}.footer-trust i{color:#67e8f9;margin-left:4px}
.footer-title { font-size:.92rem; }.footer-title::after{width:34px;height:2px}.footer-links a{font-size:.78rem;color:#8d9ab0}.footer-links a:hover{color:#fff}
.footer-social a { border:1px solid rgba(255,255,255,.08); border-radius:12px; }.footer-social a:hover{background:var(--primary)}
.footer-bottom { display:flex; align-items:center; justify-content:space-between; color:#7e8aa0; opacity:1; }.footer-bottom span{font-size:.7rem}

/* Accessibility and motion */
:focus-visible { outline:3px solid rgba(79,70,229,.32); outline-offset:3px; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important} }

@media (max-width:1180px) {
    .search-bar { width:180px; }.nav-link{padding-inline:10px}.hero-content{gap:40px}.products-grid{grid-template-columns:repeat(3,1fr)}.home-categories{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:980px) {
    .container { width:min(100% - 30px,1320px); }
    .header-actions .search-bar { display:none; }
    .menu-toggle { order:2; display:grid; place-items:center; width:42px; height:42px; border:1px solid #e6ebf2; border-radius:13px; background:#fff; }
    .logo { order:1; }.header-actions{order:3;margin-right:auto}
    .nav { position:absolute; top:74px; right:15px; left:15px; display:none; flex-direction:column; padding:10px; border-radius:17px; box-shadow:0 22px 60px rgba(15,23,42,.16); background:#fff; }
    .nav.open{display:flex}.nav-link{padding:11px 13px}
    .hero-content { grid-template-columns:1fr; text-align:center; }.hero-text{display:flex;flex-direction:column;align-items:center}.hero-visual{min-height:390px;margin:0 auto;width:min(100%,600px)}.hero-title{max-width:800px}.hero-trust-row{justify-content:center}
    .trust-grid{grid-template-columns:1fr 1fr}.trust-item:nth-child(2){border-left:0}.trust-item:nth-child(-n+2){border-bottom:1px solid var(--border)}
    .numbers-card{grid-template-columns:1fr;text-align:center;gap:35px}.numbers-copy p{margin-inline:auto}
}
@media (max-width:760px) {
    .section { padding:55px 0; }.section-header.split-header{align-items:flex-start;flex-direction:column;gap:10px}.section-link{padding-top:0}
    .products-grid{grid-template-columns:1fr 1fr;gap:14px}.home-categories{grid-template-columns:1fr 1fr}
    .home-hero{padding:70px 0 62px;min-height:auto}.hero-title{font-size:2.35rem}.hero-desc{font-size:.95rem}.hero-visual{min-height:330px}.hero-dashboard-card{transform:none;width:88%}.floating-download{right:0}.floating-rating{left:0}.orbit-one{width:360px;height:360px}.orbit-two{width:260px;height:260px}
    .pre-footer{margin-top:45px}.pre-footer-card{align-items:flex-start;flex-wrap:wrap}.pre-footer-card .btn{width:100%}
    .footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.footer-bottom{align-items:flex-start;flex-direction:column;gap:7px;text-align:right}
    .numbers-card{padding:38px 25px}.numbers-grid{gap:8px}.number-item strong{font-size:1.6rem}
}
@media (max-width:520px) {
    .container { width:min(100% - 22px,1320px); }
    .header,.header-inner{height:72px}.header-spacer{height:72px}.logo-icon{width:41px;height:41px}.logo-copy small{display:none}.logo-copy strong{font-size:1rem}
    .header-actions{gap:5px}.header-actions .header-wishlist,.header-actions .login-link{display:none}.header-actions .signup-link{padding:8px 12px;min-height:39px}.header-actions .signup-link i{display:none}.btn-icon{width:39px;height:39px}
    .nav{top:66px}
    .hero-badge{font-size:.67rem}.hero-title{font-size:1.95rem}.hero-desc{font-size:.87rem}.hero-actions{width:100%;flex-direction:column}.hero-actions .btn{width:100%}.hero-trust-row{gap:9px 14px;font-size:.68rem}
    .hero-visual{min-height:265px}.hero-dashboard-card{width:94%;border-radius:18px}.mock-window-head{height:42px}.mock-body{min-height:215px;grid-template-columns:47px 1fr}.mock-sidebar{gap:15px;padding-top:15px}.mock-content{padding:14px;gap:11px}.mock-kpis span{height:38px}.mock-chart{height:75px;padding:8px}.mock-products span{height:30px}.floating-download{bottom:0;padding:9px}.floating-download>i{width:32px;height:32px}.floating-rating{top:25px;padding:8px 10px}.floating-rating>span{font-size:1.1rem}
    .trust-grid{grid-template-columns:1fr}.trust-item{border-left:0!important;border-bottom:1px solid var(--border)!important}.trust-item:last-child{border-bottom:0!important}.trust-item small{font-size:.64rem}
    .products-grid{grid-template-columns:1fr}.product-image{aspect-ratio:16/9}.product-title{min-height:auto}.home-categories{grid-template-columns:1fr}.home-categories .category-card{min-height:90px}
    .numbers-grid{grid-template-columns:1fr}.numbers-card{text-align:right}.number-item{text-align:right;display:flex;align-items:center;justify-content:space-between;padding:15px 18px}.number-item strong{font-size:1.45rem}
    .footer-grid{grid-template-columns:1fr}.footer-brand{grid-column:auto}.footer{padding-top:105px}
    .toast-container{left:12px;right:12px;bottom:12px}.toast{min-width:0;width:100%}
}

/* =========================================================
   SiteShop Premium UI v4.0 - balanced ecommerce palette override
   ========================================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #93c5fd;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #0ea5a4;
    --accent-pink: #0891b2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0284c7;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #dbe4ef;
    --gray-lighter: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --border: #e5ebf3;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5a4 100%);
    --gradient-secondary: linear-gradient(145deg, #0f172a 0%, #1e3a5f 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5a4 0%, #0284c7 100%);
    --gradient-hero: linear-gradient(135deg, #0b1730 0%, #173255 58%, #1f6aa5 100%);
    --shadow: 0 10px 30px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .11);
    --shadow-xl: 0 34px 90px rgba(15, 23, 42, .15);
}

html { background: var(--surface-soft); }
body {
    background:
        radial-gradient(circle at 90% 8%, rgba(37,99,235,.05), transparent 23rem),
        radial-gradient(circle at 12% 16%, rgba(14,165,164,.04), transparent 20rem),
        var(--surface-soft);
}
::selection { background: rgba(37,99,235,.16); color: var(--primary-dark); }
.section-alt { background: linear-gradient(180deg, rgba(239,246,255,.86), rgba(247,250,252,.96)); }
.header { background: rgba(255,255,255,.94); }
.header.scrolled { border-bottom-color: rgba(37,99,235,.16); }
.logo-icon { box-shadow: 0 10px 25px rgba(37,99,235,.22); }
.nav-link:hover,.nav-link.active { color: var(--primary); }
.search-bar input:focus { border-color: rgba(37,99,235,.42); box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
.btn-primary { box-shadow: 0 10px 24px rgba(37,99,235,.22); }
.btn-primary:hover { box-shadow: 0 15px 32px rgba(14,165,164,.22); }
.btn-ghost:hover,.btn-icon:hover { background: #eff6ff; }
.form-input:focus,.form-textarea:focus,.form-select:focus,.filter-select:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(37,99,235,.08); }

.home-hero {
    background:
        radial-gradient(circle at 14% 20%, rgba(14,165,164,.18), transparent 22rem),
        radial-gradient(circle at 86% 76%, rgba(59,130,246,.18), transparent 26rem),
        var(--gradient-hero);
}
.home-hero::before { background: radial-gradient(circle, rgba(37,99,235,.14), transparent 68%); }
.home-hero::after { background: radial-gradient(circle, rgba(14,165,164,.12), transparent 70%); }
.hero-badge { color: #dbeafe; }
.hero-badge-dot { background: #2dd4bf; box-shadow: 0 0 0 6px rgba(45,212,191,.12); }
.hero-title span { background: linear-gradient(90deg, #bfdbfe, #99f6e4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc, .hero-trust-row { color: #c8d6e8; }
.mock-sidebar { background: #10223f; }
.mock-sidebar i:first-child { color: #bfdbfe; background: rgba(37,99,235,.18); }
.mock-kpis span { background: linear-gradient(135deg,#eff6ff,#f8fafc); border-color: #dbeafe; }
.mock-kpis span::after { background: #93c5fd; }
.mock-chart b { background: linear-gradient(180deg,#38bdf8,#2563eb); }
.floating-download > i { background: var(--gradient-accent); }
.floating-rating i, .product-meta i.fa-star { color: #fbbf24; }
.hero-orbit { border-color: rgba(147,197,253,.18); }
.section-eyebrow.light { color: #dbeafe; }
.section-eyebrow.light::before, .footer-trust i { background: none; color: #67e8f9; }

.trust-item > div,
.home-categories .category-icon,
.product-footer > .btn-add-cart,
.card-chip,
.order-code { background: #eff6ff; color: var(--primary); }
.category-card:hover,
.product-card:hover { border-color: #bfdbfe; }
.product-category i { color: #60a5fa; }
.product-price .price-current { color: #12356b; }
.pagination a.active,.pagination a:hover { background: var(--gradient-primary); }
.auth-page { background: radial-gradient(circle at 20% 20%, rgba(37,99,235,.11), transparent 25rem), linear-gradient(140deg,#f8fafc,#eff6ff); }

/* ===== قابل‌تنظیم از پنل مدیریت: تم‌های فروشگاه ===== */
body.theme-ocean{--primary:#2563eb;--primary-dark:#1d4ed8;--primary-light:#93c5fd;--accent:#0ea5a4;--accent-pink:#0891b2;--gradient-primary:linear-gradient(135deg,#2563eb 0%,#0ea5a4 100%);--gradient-secondary:linear-gradient(145deg,#0f172a 0%,#1e3a5f 100%);--gradient-accent:linear-gradient(135deg,#0ea5a4 0%,#0284c7 100%);--gradient-hero:linear-gradient(135deg,#0b1730 0%,#173255 58%,#1f6aa5 100%);--surface-soft:#f7f9fc;--border:#e5ebf3}
body.theme-forest{--primary:#087f5b;--primary-dark:#056142;--primary-light:#6ee7b7;--accent:#84cc16;--accent-pink:#14b8a6;--gradient-primary:linear-gradient(135deg,#087f5b 0%,#65a30d 100%);--gradient-secondary:linear-gradient(145deg,#102a25 0%,#164e43 100%);--gradient-accent:linear-gradient(135deg,#84cc16 0%,#14b8a6 100%);--gradient-hero:linear-gradient(135deg,#102a25 0%,#165a50 58%,#2f6b45 100%);--surface-soft:#f6f8f3;--border:#dce8dd}body.theme-forest{background:radial-gradient(circle at 90% 8%,rgba(8,127,91,.06),transparent 23rem),radial-gradient(circle at 12% 16%,rgba(132,204,22,.05),transparent 20rem),var(--surface-soft)}body.theme-forest .home-hero{background:radial-gradient(circle at 14% 20%,rgba(132,204,22,.17),transparent 22rem),radial-gradient(circle at 86% 76%,rgba(20,184,166,.16),transparent 26rem),var(--gradient-hero)}body.theme-forest .hero-title span{background:linear-gradient(90deg,#bbf7d0,#d9f99d);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}body.theme-forest .section-alt{background:linear-gradient(180deg,rgba(236,253,245,.9),rgba(247,250,248,.98))}
body.theme-ember{--primary:#b45309;--primary-dark:#92400e;--primary-light:#fdba74;--accent:#ea580c;--accent-pink:#e11d48;--gradient-primary:linear-gradient(135deg,#b45309 0%,#ea580c 100%);--gradient-secondary:linear-gradient(145deg,#2f1b16 0%,#5b2d1c 100%);--gradient-accent:linear-gradient(135deg,#ea580c 0%,#e11d48 100%);--gradient-hero:linear-gradient(135deg,#301d18 0%,#69321f 58%,#9a4c25 100%);--surface-soft:#fcf8f4;--border:#efe1d5}body.theme-ember{background:radial-gradient(circle at 90% 8%,rgba(234,88,12,.06),transparent 23rem),radial-gradient(circle at 12% 16%,rgba(180,83,9,.05),transparent 20rem),var(--surface-soft)}body.theme-ember .home-hero{background:radial-gradient(circle at 14% 20%,rgba(251,146,60,.18),transparent 22rem),radial-gradient(circle at 86% 76%,rgba(244,63,94,.13),transparent 26rem),var(--gradient-hero)}body.theme-ember .hero-title span{background:linear-gradient(90deg,#fed7aa,#fda4af);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}body.theme-ember .section-alt{background:linear-gradient(180deg,rgba(255,247,237,.9),rgba(255,250,245,.98))}
body.theme-orchid{--primary:#7e22ce;--primary-dark:#5b1695;--primary-light:#d8b4fe;--accent:#db2777;--accent-pink:#ec4899;--gradient-primary:linear-gradient(135deg,#7e22ce 0%,#db2777 100%);--gradient-secondary:linear-gradient(145deg,#251534 0%,#54265c 100%);--gradient-accent:linear-gradient(135deg,#db2777 0%,#8b5cf6 100%);--gradient-hero:linear-gradient(135deg,#251534 0%,#492858 58%,#7a2c67 100%);--surface-soft:#fcf8ff;--border:#eee1f5}body.theme-orchid{background:radial-gradient(circle at 90% 8%,rgba(126,34,206,.06),transparent 23rem),radial-gradient(circle at 12% 16%,rgba(219,39,119,.05),transparent 20rem),var(--surface-soft)}body.theme-orchid .home-hero{background:radial-gradient(circle at 14% 20%,rgba(216,180,254,.18),transparent 22rem),radial-gradient(circle at 86% 76%,rgba(236,72,153,.14),transparent 26rem),var(--gradient-hero)}body.theme-orchid .hero-title span{background:linear-gradient(90deg,#e9d5ff,#fbcfe8);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}body.theme-orchid .section-alt{background:linear-gradient(180deg,rgba(250,245,255,.9),rgba(253,247,252,.98))}
body.theme-forest .numbers-card,body.theme-ember .numbers-card,body.theme-orchid .numbers-card{background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.15),transparent 22rem),var(--gradient-secondary)}
body.theme-forest .mock-sidebar{background:#123b34}body.theme-forest .mock-sidebar i:first-child{color:#d9f99d;background:rgba(132,204,22,.18)}body.theme-forest .mock-kpis span{background:linear-gradient(135deg,#ecfdf5,#f7fee7);border-color:#d1fae5}body.theme-forest .mock-kpis span::after{background:#86efac}body.theme-forest .mock-chart b{background:linear-gradient(180deg,#a3e635,#087f5b)}body.theme-forest .home-categories .category-icon,body.theme-forest .product-footer>.btn-add-cart{background:#ecfdf5;color:#087f5b}body.theme-forest .product-price .price-current{color:#065f46}body.theme-forest .btn-icon:hover{background:#ecfdf5;border-color:#a7f3d0}
body.theme-ember .mock-sidebar{background:#4a281d}body.theme-ember .mock-sidebar i:first-child{color:#fed7aa;background:rgba(251,146,60,.18)}body.theme-ember .mock-kpis span{background:linear-gradient(135deg,#fff7ed,#fffbeb);border-color:#fed7aa}body.theme-ember .mock-kpis span::after{background:#fdba74}body.theme-ember .mock-chart b{background:linear-gradient(180deg,#fb923c,#b45309)}body.theme-ember .home-categories .category-icon,body.theme-ember .product-footer>.btn-add-cart{background:#fff7ed;color:#b45309}body.theme-ember .product-price .price-current{color:#7c2d12}body.theme-ember .btn-icon:hover{background:#fff7ed;border-color:#fed7aa}
body.theme-orchid .mock-sidebar{background:#3c214d}body.theme-orchid .mock-sidebar i:first-child{color:#f5d0fe;background:rgba(216,180,254,.18)}body.theme-orchid .mock-kpis span{background:linear-gradient(135deg,#faf5ff,#fdf2f8);border-color:#f3e8ff}body.theme-orchid .mock-kpis span::after{background:#d8b4fe}body.theme-orchid .mock-chart b{background:linear-gradient(180deg,#f472b6,#7e22ce)}body.theme-orchid .home-categories .category-icon,body.theme-orchid .product-footer>.btn-add-cart{background:#faf5ff;color:#7e22ce}body.theme-orchid .product-price .price-current{color:#581c87}body.theme-orchid .btn-icon:hover{background:#faf5ff;border-color:#e9d5ff}

.numbers-card {
    background:
        radial-gradient(circle at 80% 10%, rgba(14,165,164,.2), transparent 22rem),
        var(--gradient-secondary);
}
.numbers-copy p, .number-item span { color: #c3d3e6; }

.pre-footer-card { box-shadow: 0 25px 60px rgba(37,99,235,.22); }
.pre-footer-card p { color: #dbeafe; }
.footer {
    background:
        radial-gradient(circle at 10% 0, rgba(14,165,164,.14), transparent 24rem),
        #081223;
}
.footer-brand .logo-copy small { color: #8ea5c0; }
.footer-brand p, .footer-links a, .footer-bottom { color: #9fb0c4; }
.footer-links a:hover, .footer-social a:hover { color: #fff; }
.footer-social a:hover { background: var(--primary); }

/* Theme refresh: public chrome must follow the active store theme, not cached legacy colors. */
body.theme-ocean { --theme-primary-rgb:37,99,235; --theme-accent-rgb:14,165,164; }
body.theme-forest { --theme-primary-rgb:8,127,91; --theme-accent-rgb:101,163,13; }
body.theme-ember { --theme-primary-rgb:180,83,9; --theme-accent-rgb:234,88,12; }
body.theme-orchid { --theme-primary-rgb:126,34,206; --theme-accent-rgb:219,39,119; }

body.theme-forest .header,
body.theme-ember .header,
body.theme-orchid .header {
    background: color-mix(in srgb, #fff 93%, var(--primary));
    border-bottom-color: rgba(var(--theme-primary-rgb), .18);
}
body[class*="theme-"] .header.scrolled { border-bottom-color: rgba(var(--theme-primary-rgb), .24); }
body[class*="theme-"] .logo-icon { background: var(--gradient-primary); box-shadow: 0 10px 25px rgba(var(--theme-primary-rgb), .25); }
body[class*="theme-"] .nav-link:hover,
body[class*="theme-"] .nav-link.active { color: var(--primary); background: rgba(var(--theme-primary-rgb), .08); }
body[class*="theme-"] .search-bar:focus-within { border-color: rgba(var(--theme-primary-rgb), .42); box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), .10); }
body[class*="theme-"] .btn-primary { background: var(--gradient-primary); box-shadow: 0 10px 24px rgba(var(--theme-primary-rgb), .24); }
body[class*="theme-"] .btn-primary:hover { box-shadow: 0 15px 32px rgba(var(--theme-accent-rgb), .28); }
body[class*="theme-"] .section-kicker,
body[class*="theme-"] .section-link,
body[class*="theme-"] .category-card:hover h3 { color: var(--primary); }
body[class*="theme-"] .category-card:hover,
body[class*="theme-"] .product-card:hover { border-color: rgba(var(--theme-primary-rgb), .26); }
body[class*="theme-"] .footer-social a:hover { background: var(--primary); }

/* نمایش زندهٔ سایت در کارت و صفحهٔ محصول */
.btn-demo-live{width:100%;justify-content:center;margin-top:10px;padding:13px 15px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;box-shadow:0 9px 22px rgba(var(--theme-primary-rgb,37,99,235),.24)}
.btn-demo-live:hover{color:#fff;transform:translateY(-2px);box-shadow:0 14px 28px rgba(var(--theme-primary-rgb,37,99,235),.3)}
.demo-direct-link{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:8px;color:var(--primary);font-size:.82rem;font-weight:800}.demo-direct-link:hover{color:var(--primary-dark);text-decoration:underline}
.card-demo-link{display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;padding:5px 9px;border:1px solid rgba(var(--theme-primary-rgb,37,99,235),.22);border-radius:8px;background:rgba(var(--theme-primary-rgb,37,99,235),.06);color:var(--primary);font-size:.72rem;font-weight:800}.card-demo-link:hover{background:var(--primary);color:#fff}.demo-overlay-btn{background:var(--primary);color:#fff}.demo-overlay-btn:hover{background:var(--primary-dark)!important}
