/* gallery/static/css/kohan.css */
/* ============================================
   گالری طلای کهن - استایل اصلی
   تم روشن / تاریک + انیمیشن‌ها
   ============================================ */

/* --- متغیرهای CSS --- */
:root {
    /* رنگ‌های تم روشن */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-new:#799ba11a;
    --bg-sidebar: #fdf8f0;
    --bg-header: rgba(255, 255, 255, 0.95);
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e8e0d4;
    --gold-primary: #d4af37;
    --gold-secondary: #c5a028;
    --gold-light: #f5e6b8;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --gold-gradient: linear-gradient(135deg, #d4af37, #f5e6b8, #d4af37);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
    --price-up: #22c55e;
    --price-down: #ef4444;
    --sidebar-width: 280px;
    --header-height: 72px;
    --transition-speed: 0.3s;
}

/* --- تم تاریک --- */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1e2a45;
    --bg-sidebar: #1a1a2e;
    --bg-header: rgba(26, 26, 46, 0.95);
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #777777;
    --border-color: #2a3a5e;
    --gold-light: #3a3520;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
}

/* --- ریست و عمومی --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'B Nazanin', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--gold-primary);
}

/* --- فونت فارسی --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* --- انیمیشن‌ها --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes priceChange {
    0% { background-color: var(--gold-light); }
    100% { background-color: transparent; }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-fade-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

.price-updated {
    animation: priceChange 1s ease-out;
}

/* ============================================
   هدر
   ============================================ */
.kohan-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

.kohan-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.kohan-header .logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kohan-header .logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1a1a2e;
    box-shadow: var(--shadow-gold);
}

.kohan-header .logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.kohan-header .logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: -2px;
}

.kohan-header .nav-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kohan-header .nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
    position: relative;
}

.kohan-header .nav-link:hover,
.kohan-header .nav-link.active {
    color: var(--gold-primary);
    background: var(--gold-glow);
}

.kohan-header .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 3px;
    background: var(--gold-primary);
    border-radius: 3px;
}

/* دکمه‌های هدر */
.header-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 18px;
}

.header-btn:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* دکمه تغییر تم */
.theme-toggle {
    position: relative;
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: inline;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

/* دکمه سایدبار */
.sidebar-toggle {
    position: relative;
}

/* ============================================
   سایدبار راست
   ============================================ */
.kohan-sidebar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease;
    z-index: 999;
    overflow-y: auto;
    padding: 24px 16px;
    box-shadow: var(--shadow-lg);
}

.kohan-sidebar.open {
    transform: translateX(0);
}

.kohan-sidebar .sidebar-section {
    margin-bottom: 24px;
}

.kohan-sidebar .sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kohan-sidebar .sidebar-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* آیتم‌های سایدبار */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.sidebar-item:hover {
    background: var(--gold-glow);
    color: var(--gold-primary);
    transform: translateX(-4px);
}

.sidebar-item .sidebar-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gold-primary);
    transition: all var(--transition-speed);
}

.sidebar-item:hover .sidebar-icon {
    background: var(--gold-primary);
    color: #1a1a2e;
}

/* اوورلی سایدبار */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 899;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   محتوای اصلی
   ============================================ */
.kohan-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    transition: margin var(--transition-speed);
}

.kohan-main .container {
    max-width: 1400px;
    margin: -70px auto;
    padding: 32px 24px;
}

/* ============================================
   هیرو / بنر اصلی
   ============================================ */
.hero-section {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 50%, #1a1a2e 100%);
    padding: 60px 48px;
    min-height: 340px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    font-size: 13px;
    color: #d4af37;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 10px;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 28px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gold-gradient);
    color: #1a1a2e;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-gold);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    color: #1a1a2e;
}

.hero-decor {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.15;
    font-size: 220px;
    color: #d4af37;
}

/* ============================================
   کارت قیمت‌ها
   ============================================ */
.prices-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .title-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 18px;
}

.section-link {
    font-size: 14px;
    color: var(--gold-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-speed);
}

.section-link:hover {
    gap: 10px;
    color: var(--gold-primary);
}

/* گرید کارت قیمت */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.price-card {
    
    background: var(--bg-card-new);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px 20px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.price-card:hover::before {
    opacity: 1;
}

.price-card .card-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-glow);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold-primary);
    margin-bottom: 16px;
    transition: all var(--transition-speed);
}

.price-card:hover .card-icon {
    background: var(--gold-primary);
    color: #1a1a2e;
    transform: scale(1.1);
}

.price-card .card-name {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.price-card .card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    direction: ltr;
    text-align: right;
}

.price-card .card-price .price-unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-right: 4px;
}

.price-card .card-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.price-card .card-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--price-up);
}

.price-card .card-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--price-down);
}

.price-card .card-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   کارت محصولات
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-speed);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card .card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold-light), var(--bg-secondary));
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.product-card .card-image .badge-type {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    background: rgba(212, 175, 55, 0.9);
    color: #1a1a2e;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.product-card .card-image .badge-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 10px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.product-card .card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--gold-primary);
    opacity: 0.3;
}

.product-card .card-body {
    padding: 20px;
}

.product-card .card-category {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.product-card .card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-card .card-weight {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.product-card .card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold-primary);
    direction: ltr;
    text-align: right;
}

.product-card .card-price .price-unit {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.product-card .card-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gold-glow);
    border: none;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 16px;
}

.product-card .card-btn:hover {
    background: var(--gold-primary);
    color: #1a1a2e;
    transform: scale(1.1);
}

/* ============================================
   فوتر
   ============================================ */
.kohan-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.kohan-footer .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a1a2e;
}

.footer-brand .logo-text {
    font-size: 20px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}

.footer-social a:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   پیام‌ها (Messages)
   ============================================ */
.messages-container {
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.alert-kohan {
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.4s ease-out;
}

.alert-kohan.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-kohan.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-kohan.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.alert-kohan.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* ============================================
   صفحه لیست محصولات
   ============================================ */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-secondary);
}

.page-breadcrumb a:hover {
    color: var(--gold-primary);
}

.page-breadcrumb .separator {
    color: var(--border-color);
}

/* فیلترها */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-glow);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* جستجو */
.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-speed);
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

/* پیجینیشن */
.pagination-kohan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-kohan .page-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.pagination-kohan .page-btn:hover,
.pagination-kohan .page-btn.active {
    background: var(--gold-primary);
    color: #1a1a2e;
    border-color: var(--gold-primary);
}

/* ============================================
   صفحه جزئیات محصول
   ============================================ */
.product-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery .main-image .no-image {
    font-size: 120px;
    color: var(--gold-primary);
    opacity: 0.2;
}

.product-info {
    padding: 20px 0;
}

.product-info .product-category {
    font-size: 14px;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info .product-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-info .product-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.spec-item {
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.spec-item .spec-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-item .spec-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price-section {
    padding: 24px;
    background: var(--gold-glow);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    margin-bottom: 24px;
}

.product-price-section .price-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.product-price-section .price-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold-primary);
    direction: ltr;
    text-align: right;
}

.product-price-section .price-value .price-unit {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-right: 8px;
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 992px) {
    .hero-section {
        padding: 40px 28px;
        min-height: 280px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-decor {
        display: none;
    }
    .product-detail-section {
        grid-template-columns: 1fr;
    }
    .nav-section {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    .hero-section {
        padding: 30px 20px;
        min-height: 220px;
        border-radius: 16px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-description {
        font-size: 14px;
    }
    .prices-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .price-card {
        padding: 18px 14px;
    }
    .price-card .card-price {
        font-size: 17px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    .kohan-main .container {
        padding: 20px 16px;
    }
    .section-title {
        font-size: 18px;
    }
    .product-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .prices-grid {
        grid-template-columns: 1fr 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 24px 16px;
    }
    .hero-title {
        font-size: 22px;
    }
}

/* ============================================
   تیکر قیمت (نوار متحرک)
   ============================================ */
.price-ticker {
    margin-top: 70px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.price-ticker::before,
.price-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}

.price-ticker::before {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.price-ticker::after {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.ticker-inner {
    display: flex;
    gap: 40px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ticker-item .ticker-name {
    color: var(--text-primary);
}

.ticker-item .ticker-price {
    font-weight: 700;
}

.ticker-item .ticker-change.positive {
    color: var(--price-up);
}

.ticker-item .ticker-change.negative {
    color: var(--price-down);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   اسکلتون لودینگ
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-card {
    height: 200px;
    border-radius: 18px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* ============================================
   اسکرول‌بار سفارشی
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ============================================
   پیج لیست قیمت‌ها
   ============================================ */
.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.price-table thead th {
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
    background: var(--bg-secondary);
    border: none;
}

.price-table thead th:first-child {
    border-radius: 0 12px 12px 0;
}

.price-table thead th:last-child {
    border-radius: 12px 0 0 12px;
}

.price-table tbody tr {
    background: var(--bg-card);
    transition: all var(--transition-speed);
}

.price-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.price-table tbody td {
    padding: 16px 18px;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-table tbody td:first-child {
    border-right: 1px solid var(--border-color);
    border-radius: 0 12px 12px 0;
}

.price-table tbody td:last-child {
    border-left: 1px solid var(--border-color);
    border-radius: 12px 0 0 12px;
}

/* لاگوی آبشده */
.gold-shimmer-text {
    background: linear-gradient(90deg, #d4af37, #f5e6b8, #d4af37, #f5e6b8, #d4af37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* =========================
   LUXURY BACKGROUND
========================= */

body{

    position:relative;
    overflow-x:hidden;
}

/* لایه بک‌گراند */
body::before{

    content:'';

    position:fixed;

    inset:0;

    z-index:-2;

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    transition:
    background-image .5s ease,
    opacity .5s ease;

    opacity:.14;

    pointer-events:none;
}


/* تم روشن */
html[data-theme="light"]
body::before{

    background-image:
    url("/static/img/backgrounds/bg-light.b55477b58a13.jpg");
}


/* تم تاریک */
html[data-theme="dark"]
body::before{

    background-image:
    url("/static/img/backgrounds/bg-dark.74c181154a11.jpg");

    opacity:.10;
}


/* افکت blur و luxury layer */
body::after{

    content:'';

    position:fixed;

    inset:0;

    z-index:-1;

    pointer-events:none;

    backdrop-filter:
    blur(1.5px);
}


/* لایه طلایی subtle */
html[data-theme="light"]
body::after{

    background:
    radial-gradient(
        circle at top right,
        rgba(212,175,55,.06),
        transparent 30%
    ),
    radial-gradient(
        circle at bottom left,
        rgba(212,175,55,.04),
        transparent 35%
    );
}


/* dark luxury glow */
html[data-theme="dark"]
body::after{

    background:
    radial-gradient(
        circle at top right,
        rgba(212,175,55,.08),
        transparent 25%
    ),
    radial-gradient(
        circle at bottom left,
        rgba(212,175,55,.05),
        transparent 30%
    );
}

/* footer new */
.footer-title{
    font-weight:700;
    margin-bottom:18px;
    color:var(--text-primary);
}

.footer-title i{
    color:var(--gold-primary);
    margin-left:8px;
}

.footer-links{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-links a{
    color:var(--text-secondary);
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:var(--gold-primary);
    transform:translateX(-4px);
}

.footer-contact{
    display:flex;
    flex-direction:column;
    gap:12px;
    color:var(--text-secondary);
    line-height:2;
}

.footer-contact i{
    color:var(--gold-primary);
    width:22px;
}
.footer-social{
    display:flex;
    gap:14px;
    margin-top:20px;
}

.footer-social a{
    width:54px;
    height:54px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    font-size:22px;

    background:rgba(212,175,55,.08);

    border:1px solid rgba(212,175,55,.15);

    transition:.35s;
}

.footer-social a:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 30px rgba(212,175,55,.25);
}
/* about me */
.about-section{
    max-width:1200px;
    margin:auto;
    padding:40px 0;
}

.about-hero{
    text-align:center;
    margin-bottom:40px;
}

.about-hero h1{
    font-size:3rem;
    margin-bottom:15px;
}

.about-hero p{
    color:var(--text-secondary);
}

.about-card{
    background:var(--card-bg);
    border:1px solid var(--border-color);
    border-radius:24px;
    padding:35px;
    margin-bottom:35px;
    box-shadow:var(--shadow-soft);
}

.about-content{
    line-height:2.3;
    font-size:16px;
    color:var(--text-primary);
}

.about-info-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.about-info-item{
    background:var(--card-bg);
    border:1px solid var(--border-color);
    border-radius:20px;
    padding:20px;
    display:flex;
    align-items:center;
    gap:12px;
}

.about-info-item i{
    color:var(--gold-primary);
    font-size:20px;
}
.about-logo{
    margin-bottom:24px;
}

/* .about-logo img{
    margin-top:20px;
    border-radius: 6px;
    width:120px;
    height:80px;
    object-fit:contain;
    filter:drop-shadow(0 0 25px rgba(212,175,55,.35));
} */
.about-logo img{
     border-radius: 50px;
    margin-top: 20px;
    /* border-radius: 6px; */
    /* width: 120px; */
    height: 75px;
    padding:1px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, .35));
}
.about-logo img:hover{
    border: 1px solid white;
    filter: drop-shadow(0 0 25px rgba(248, 250, 229, 0.397));
}
.map-wrapper{
    overflow:hidden;
    border-radius:24px;
    margin-top:40px;
    box-shadow:var(--shadow-soft);
}

.map-wrapper iframe{
    width:100%;
    height:450px;
    border:none;
}
.map-wrapper{
    width: 1200px !important;
    height: 400px !important;
}
.consult-fab{

    position:fixed;

    left:25px;
    bottom:25px;

    z-index:9999;

    display:flex;
    align-items:center;
    gap:12px;

    padding:14px 20px;

    border-radius:999px;

    text-decoration:none;

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #f4d03f
        );

    color:#111;

    font-weight:800;

    box-shadow:
        0 10px 30px rgba(
            212,
            175,
            55,
            .35
        );

    transition:.3s;
}

.consult-fab:hover{

    transform:
        translateY(-4px)
        scale(1.03);
}

.consult-fab i{

    font-size:1.2rem;
}
/* مشاوره */
.consult-fab{

    position:fixed;

    left:25px;
    bottom:25px;

    z-index:9999;

    display:flex;
    align-items:center;
    gap:10px;

    padding:15px 22px;

    border-radius:999px;

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #f4d03f
        );

    color:#111;

    text-decoration:none;

    font-weight:800;

    box-shadow:
        0 10px 30px rgba(
            212,
            175,
            55,
            .35
        );

    transition:.3s;
}

.consult-fab:hover{

    transform:
        translateY(-4px);
}

.consult-popup{

    position:fixed;

    left:25px;

    bottom:95px;

    width:340px;

    z-index:9998;

    background:
        var(--card-bg);

    border:
        1px solid
        var(--border-color);

    border-radius:24px;

    padding:24px;

    box-shadow:
        var(--shadow-soft);

    display:none;
}

.consult-popup.show{

    display:block;

    animation:
        popupIn .4s ease;
}

.popup-header{

    display:flex;

    gap:10px;

    align-items:center;

    margin-bottom:12px;

    color:
        var(--gold-primary);
}

.popup-close{

    position:absolute;

    top:10px;
    left:10px;

    border:none;

    background:none;

    cursor:pointer;

    font-size:22px;
}

.popup-btn{

    display:block;

    margin-top:15px;

    text-align:center;

    padding:12px;

    border-radius:14px;

    text-decoration:none;

    background:
        var(--gold-primary);

    color:#111;

    font-weight:800;
}

@keyframes popupIn{

    from{

        opacity:0;

        transform:
            translateY(15px);
    }

    to{

        opacity:1;

        transform:
            translateY(0);
    }
}