/* ===== طراحی مدرن سادست ===== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --accent: #2563EB;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --beige: #F1F5F9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== هدر مدرن با blur ===== */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 60px;
    border-radius: 12px;
}

.main-nav {
    display: flex;
    gap: 8px;
    flex: 1;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 100px;
    transition: all 0.2s;
    font-weight: 500;
}

.main-nav a:hover {
    background: var(--primary);
    color: white;
}

.search-box {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-box input {
    padding: 10px 16px;
    border: none;
    background: transparent;
    outline: none;
    width: 200px;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ===== Hero مدرن ===== */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: white;
    margin: 30px -20px;
    border-radius: 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* ===== نوار hero باریک ===== */
.hero-strip {
    padding: 30px 0 10px;
}

.hero-strip .container {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-radius: 24px;
    padding: 30px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.25);
}

.hero-strip h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

/* ===== کارت‌های دسته‌بندی ===== */
.categories-section h2,
.featured-products h2 {
    margin: 50px 0 25px;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 600;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-card {
    background: var(--surface);
    color: var(--text);
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.category-card:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ===== کارت‌های محصول ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

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

/* ===== صفحه محصول ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.product-gallery img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb {
    width: 90px;
    height: 90px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.thumb:hover,
.thumb.active {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item {
    display: none;
}

.media-item.active {
    display: block;
}

.order-box {
    margin-top: 40px;
    padding: 30px;
    background: var(--beige);
    border-radius: 20px;
    border: 2px solid var(--border);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    margin: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-telegram {
    background: #229ED9;
    color: white;
}

.btn-telegram:hover {
    background: #1a7fb3;
    transform: translateY(-2px);
}

/* ===== صفحه تماس ===== */
.contact-page {
    padding: 60px 0;
}

.contact-page h1 {
    color: var(--text);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.contact-cards .card {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.contact-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.contact-cards .card h3 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-cards .card a {
    display: block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

/* ===== فوتر مدرن ===== */
.site-footer {
    background: #0F172A;
    color: #E2E8F0;
    padding: 50px 0 30px;
    margin-top: 80px;
    border-radius: 24px 24px 0 0;
}

.site-footer .container {
    text-align: center;
}

.site-footer p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.8;
}

.contact-short {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-short a {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    transition: all 0.3s;
    font-weight: 500;
}

.contact-short a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ===== Admin ===== */
.admin-login {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: white;
    padding: 50px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.login-box h1 {
    color: var(--text);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.login-box input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: right;
}

.admin-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.admin-table tr {
    border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--beige);
}

.period-tabs {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.period-tabs a {
    padding: 12px 24px;
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    border-radius: 100px;
    border: 2px solid var(--border);
    transition: all 0.2s;
    font-weight: 500;
}

.period-tabs a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.period-tabs a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 12px;
    font-weight: 500;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ===== Lightbox ===== */
.lightbox-img {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: all 0.2s;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 10000;
    transition: all 0.2s;
    background: rgba(255,255,255,0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

/* ===== Dropdown منوی محصولات ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dd-arrow {
    font-size: 0.7em;
    transition: transform 0.25s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s;
    z-index: 300;
}

.dropdown-menu-inner {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    padding: 10px 0;
    position: relative;
    border: 1px solid var(--border);
}

.dropdown-menu-inner::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-radius: 2px;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.dropdown-menu-inner a {
    display: block;
    padding: 12px 24px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.dropdown-menu-inner a:hover {
    background: var(--beige);
    color: var(--primary);
}

@media (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-dropdown:hover .dd-arrow {
        transform: rotate(180deg);
    }
}

/* ===== Layout صفحه محصولات با Sidebar ===== */
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin: 40px 0;
    align-items: start;
}

.category-sidebar {
    background: var(--surface);
    border-radius: 20px;
    padding: 28px;
    position: sticky;
    top: 110px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.category-sidebar h3 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 6px;
}

.category-list a {
    display: block;
    padding: 12px 18px;
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.15s;
    font-size: 0.95rem;
    font-weight: 500;
}

.category-list a:hover {
    background: var(--beige);
    color: var(--primary);
}

.category-list a.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.page-title {
    color: var(--text);
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
}

.no-products {
    color: var(--text-muted);
    padding: 60px;
    text-align: center;
    grid-column: 1 / -1;
}

/* ===== صفحه‌بندی ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 12px 22px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    border-radius: 100px;
    border: 2px solid var(--border);
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

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

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.2s;
    font-weight: 500;
}

.page-num:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 6px;
}

/* ===== مدیریت رسانه در پنل ادمین ===== */
.current-media-section {
    background: var(--surface);
    padding: 35px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.current-media-section h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 600;
}

.media-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.current-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 170px));
    gap: 18px;
}

.media-card {
    background: var(--beige);
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.media-preview {
    position: relative;
    width: 100%;
    height: 130px;
    background: #ddd;
    overflow: hidden;
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.media-type-badge.video {
    background: rgba(220, 38, 38, 0.9);
}

.media-actions {
    padding: 12px;
}

.media-filename {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: right;
}

.btn-small {
    padding: 8px 14px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-delete {
    background: #EF4444;
    color: white;
}

.btn-delete:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

.main-image-preview {
    display: inline-block;
    margin-bottom: 12px;
}

.main-image-preview img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin-bottom: 10px;
    border: 3px solid var(--border);
}

.media-actions .btn-delete {
    width: 100%;
}

.admin-table td form {
    display: inline-block;
    margin: 0;
}

.admin-table .btn-small {
    display: inline-block;
    width: auto;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    display: inline-block;
    font-weight: 600;
}

.status-badge.active {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.inactive {
    background: #FEE2E2;
    color: #991B1B;
}

.btn-toggle-off {
    background: #FBBF24;
    color: #333;
}

.btn-toggle-off:hover {
    background: #F59E0B;
}

.btn-toggle-on {
    background: #10B981;
    color: white;
}

.btn-toggle-on:hover {
    background: #059669;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    display: inline-block;
    margin: 0 3px;
}

.site-header .container {
    align-items: center;
}

/* ===== کارت آدرس ===== */
.address-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-right: 6px solid var(--primary);
    border-radius: 20px;
    padding: 30px 35px;
    margin-top: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.address-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    color: var(--text);
}

.address-header h3 {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

.address-text {
    color: var(--text);
    line-height: 2;
    font-size: 1rem;
    margin: 0 0 25px;
    padding: 16px 20px;
    background: var(--beige);
    border-radius: 14px;
    white-space: pre-line;
    border: 1px solid var(--border);
}

.address-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-address {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-address:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.description {
    line-height: 2;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .site-header {
        padding: 10px 0;
    }

    .site-header .container {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo img {
        height: 70px;
    }

    .mobile-menu {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        display: block;
        background: var(--primary);
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px 14px;
        z-index: 101;
        border-radius: 12px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 10px;
        width: 200px;
        background: white;
        flex-direction: column;
        padding: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        z-index: 99;
        border-radius: 16px;
        flex: none;
        gap: 5px;
        border: 1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 18px;
        width: 100%;
        text-align: right;
        color: var(--text);
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .main-nav a:hover {
        background: var(--primary);
        color: white;
    }

    .search-box {
        display: none;
    }

    .hero-strip {
        padding: 20px 0 0;
    }

    .hero-strip .container {
        padding: 24px 25px;
        border-radius: 18px;
    }

    .hero-strip h1 {
        font-size: 1.4rem;
    }

    .products-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .category-sidebar {
        position: static;
        padding: 20px;
    }

    .category-sidebar h3 {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-list li {
        margin-bottom: 0;
    }

    .category-list a {
        padding: 10px 16px;
        font-size: 0.88rem;
        background: var(--surface);
        border: 1px solid var(--border);
    }

    .category-list a.active {
        background: var(--primary);
        border-color: var(--primary);
    }

    .pagination {
        gap: 6px;
    }

    .page-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .page-num {
        min-width: 40px;
        height: 40px;
    }

    .current-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .media-preview {
        height: 110px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 35px;
        width: 55px;
        height: 55px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        font-size: 40px;
        top: 20px;
        right: 25px;
        width: 50px;
        height: 50px;
    }

    .address-card {
        padding: 25px;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

/* Dropdown در موبایل */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        padding-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .nav-dropdown.open .dd-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu-inner {
        background: var(--beige);
        box-shadow: none;
        border-radius: 12px;
        min-width: 100%;
        padding: 8px 0;
        margin-top: 10px;
        border: 1px solid var(--border);
    }

    .dropdown-menu-inner::before {
        display: none;
    }

    .dropdown-menu-inner a {
        color: var(--text);
        padding-right: 30px;
        white-space: normal;
    }

    .dropdown-menu-inner a:hover {
        background: var(--primary);
        color: white;
    }
}

/* ===== دکمه تماس در یک خط ===== */
.order-box .btn { white-space: nowrap; }
@media (max-width: 480px) {
    .order-box .btn { font-size: 0.88rem; padding: 12px 16px; }
}

/* ===== موبایل: یک کارت در هر خط + قیمت یک‌خطی ===== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.price { white-space: nowrap; }

/* ===== کادر اطلاعات کارت: مرز مشخص + ته‌رنگ ملایم تم ===== */
.product-card .product-info {
    background: linear-gradient(180deg, #F8FAFC, #EFF6FF);
    border-top: 2px solid var(--border);
}

/* ===== قاب گرد و برجسته دور کل کارت ===== */
.product-card {
    border: 2px solid #CBD5E1;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* ===== رنگ قوی‌تر بخش اطلاعات ===== */
.product-card .product-info {
    background: linear-gradient(180deg, #EFF6FF, #DBEAFE);
    border-top: 2px solid #BFDBFE;
}

/* ===== حذف نوار سفید زیر عکس کارت ===== */
.product-card img { display: block; }

/* ===== قرص‌های دسته‌بندی: یکدست، یک‌خطی، متن سفید ===== */
.category-card {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff;
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.25s;
}

.category-card:hover {
    transform: translateY(-3px);
    color: #fff;
    background: linear-gradient(135deg, #1D4ED8, #2563EB);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
}

/* ===== لوگو در فوتر ===== */
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { height: 70px; }

/* ===== فوتر یک‌ردیفه و جمع‌وجور ===== */
.site-footer { padding: 25px 0; margin-top: 60px; }
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-logo { margin: 0; }
.footer-logo img { height: 80px; }
.site-footer p { margin: 0; }
.contact-short { margin: 0; }
@media (max-width: 768px) {
    .site-footer .container { flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
    .footer-logo img { height: 60px; }
}

/* ===== نوار افقی دسته‌بندی‌ها (بدون شکست خط) ===== */
.categories-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px 4px 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.categories-grid::-webkit-scrollbar { display: none; }
.categories-grid::before,
.categories-grid::after { content: ''; margin: auto; }
.category-card { flex: 0 0 auto; scroll-snap-align: center; }

/* ===== عنوان بخش‌ها: نشان قرص‌شکل وسط‌چین ===== */
.featured-products h2,
.categories-section h2 {
    width: fit-content;
    margin: 50px auto 30px;
    padding: 12px 36px;
    background: linear-gradient(180deg, #EFF6FF, #DBEAFE);
    border: 2px solid #BFDBFE;
    border-radius: 100px;
    color: #1D4ED8;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}
.featured-products h2::before { content: '🔥 '; }

/* ===== ۱. کاهش فاصله هدر تا hero ===== */
.hero-strip { padding: 16px 0 0; }

/* ===== ۲. hero مدرن: گرادیان عمیق + هاله نور + سایه شناور ===== */
.hero-strip .container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1D4ED8, #2563EB 50%, #4F46E5);
    padding: 42px 30px;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
}
.hero-strip .container::before,
.hero-strip .container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(12px);
}
.hero-strip .container::before { width: 180px; height: 180px; top: -60px; right: -40px; }
.hero-strip .container::after { width: 220px; height: 220px; bottom: -90px; left: -50px; background: rgba(255,255,255,0.10); }
.hero-strip h1 { position: relative; z-index: 1; }
.hero-subtitle { position: relative; z-index: 1; margin: 10px 0 0; opacity: .85; font-size: 1rem; font-weight: 400; }

/* ===== ۳. فاصله مساوی بالا و پایین نشان ===== */
.featured-products h2,
.categories-section h2 { margin: 32px auto 32px; }

/* ===== hero زنده و purposeful ===== */
.hero-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: right;
    padding: 34px 40px;
    background: linear-gradient(120deg, #1D4ED8, #4F46E5, #2563EB);
    background-size: 200% 200%;
    animation: heroShift 9s ease infinite;
}
@keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-content { flex: 1; position: relative; z-index: 1; }
.hero-strip h1 { font-size: 1.7rem; }
.hero-subtitle { margin: 8px 0 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { margin: 0; padding: 10px 24px; font-size: .95rem; }
.hero-actions .btn-primary { background: #fff; color: #1D4ED8; }
.hero-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.hero-actions .btn-telegram { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.4); }
.hero-visual {
    font-size: 5rem;
    position: relative;
    z-index: 1;
    animation: heroFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.3));
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}
@media (max-width: 768px) {
    .hero-strip .container { flex-direction: column; text-align: center; padding: 28px 20px; }
    .hero-actions { justify-content: center; }
    .hero-visual { font-size: 3.5rem; }
}

/* ===== صندلی و میز: شناور با ریتم جدا ===== */
.hero-visual { display: flex; align-items: center; gap: 22px; animation: none; }
.hero-visual .hv { display: inline-block; animation: heroFloat 4s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.hero-visual .hv-chair { font-size: 5rem; }
.hero-visual .hv-table { animation-delay: 1.3s; }
@media (max-width: 768px) {
    .hero-visual .hv-chair { font-size: 3.5rem; }
    .hero-visual .hv-table svg { width: 56px; height: 48px; }
}

/* ===== ویترین چهارتایی hero ===== */
.hero-visual { gap: 18px; flex-wrap: wrap; justify-content: center; }
.hero-visual .hv-ladder { font-size: 4.3rem; animation-delay: .7s; }
.hero-visual .hv-stool { animation-delay: 2s; }
@media (max-width: 768px) {
    .hero-visual { gap: 14px; }
    .hero-visual .hv-ladder { font-size: 3rem; }
    .hero-visual .hv-stool svg { width: 42px; height: 48px; }
}

/* ===== نردبان SVG: یکسان در همه دستگاه‌ها ===== */
.hero-visual .hv-ladder svg { width: 54px; height: 68px; transform: rotate(6deg); }
@media (max-width: 768px) {
    .hero-visual .hv-ladder svg { width: 42px; height: 54px; }
}

/* ===== صندلی SVG: هم‌خانواده بقیه ===== */
.hero-visual .hv-chair svg { width: 58px; height: 72px; }
@media (max-width: 768px) {
    .hero-visual .hv-chair svg { width: 44px; height: 56px; }
}

/* ===== بخش نظرات مدرن ===== */
.reviews-section { margin: 50px 0 40px; }
.reviews-section h2 { color: var(--text); font-size: 1.6rem; margin-bottom: 20px; font-weight: 600; }

.reviews-summary {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(180deg, #EFF6FF, #DBEAFE);
    padding: 20px 25px; border-radius: 20px; border: 2px solid #BFDBFE;
    margin-bottom: 25px;
}
.big-stars { font-size: 1.8rem; color: #F59E0B; letter-spacing: 2px; }
.avg-num { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-right: 10px; }
.review-count { color: var(--text-muted); font-size: .95rem; }

.reviews-list { display: grid; gap: 14px; margin-bottom: 30px; }
.review-card {
    background: #fff; border: 2px solid var(--border); border-radius: 16px;
    padding: 18px 22px; transition: all .2s;
}
.review-card:hover { border-color: #BFDBFE; box-shadow: 0 4px 14px rgba(37,99,235,.08); }
.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.review-stars { color: #F59E0B; font-size: 1rem; letter-spacing: 1px; }
.review-head small { color: var(--text-muted); font-size: .85rem; margin-right: auto; }
.review-body { color: var(--text); line-height: 1.8; margin: 0; }

.review-form-wrap {
    background: #fff; padding: 25px; border-radius: 20px;
    border: 2px solid var(--border); box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.review-form-wrap h3 { margin: 0 0 15px; color: var(--text); font-size: 1.2rem; }
.star-picker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.star-label { color: var(--text); font-weight: 500; }
.stars span { font-size: 1.8rem; color: #E2E8F0; cursor: pointer; transition: color .15s, transform .15s; display: inline-block; }
.stars span.active, .stars span:hover { color: #F59E0B; transform: scale(1.15); }
.review-form input, .review-form textarea {
    width: 100%; padding: 12px 16px; margin-bottom: 10px;
    border: 2px solid var(--border); border-radius: 12px; font-family: inherit;
    font-size: .95rem; transition: border-color .2s; background: #fff;
}
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--primary); }
.review-form .btn { margin-top: 5px; }
.review-hint { color: var(--text-muted); font-size: .85rem; margin-top: 10px; }
.review-success { background: #D1FAE5; color: #065F46; padding: 14px; border-radius: 12px; text-align: center; margin: 0; }
.review-notice { background: #EFF6FF; color: #1D4ED8; padding: 14px; border-radius: 12px; margin: 0; }

@media (max-width: 768px) {
    .reviews-summary { padding: 16px; }
    .review-card { padding: 14px 18px; }
    .review-form-wrap { padding: 20px; }
    .stars span { font-size: 1.5rem; }
}

/* ===== پاسخ ادمین با رنگ متفاوت ===== */
.review-reply { margin-top: 10px; background: #EFF6FF; border-right: 4px solid #2563EB; padding: 10px 14px; border-radius: 10px; }
.review-reply strong { color: #1D4ED8; display: block; margin-bottom: 4px; font-size: .9rem; }
.review-reply p { margin: 0; color: var(--text); }

/* ===== کپچای نظرات ===== */
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.captcha-q { font-weight: 700; color: var(--text); background: #F1F5F9; border: 2px dashed #CBD5E1; padding: 8px 16px; border-radius: 10px; letter-spacing: 1px; }
.hp-field { display: none; }

/* ===== دکمه کد جدید کپچا ===== */
.captcha-refresh { background: #fff; border: 2px solid #CBD5E1; border-radius: 10px; padding: 6px 10px; cursor: pointer; font-size: 1rem; transition: transform .3s, border-color .2s; }
.captcha-refresh:hover { transform: rotate(180deg); border-color: var(--primary); }

/* ===== قیمت پررنگ ===== */
.price-box, .price-box span { font-weight: 800; }

/* ===== منوی موبایل: راست‌چین ===== */
@media (max-width: 768px) {
    .site-header .container { justify-content: flex-start; }
    .main-nav { justify-content: flex-start; text-align: right; }
    .dropdown-menu a { text-align: right; }
}

/* ===== منوی موبایل: راست ===== */
@media (max-width: 768px) {
    .mobile-menu { left: auto; right: 15px; }
    .main-nav { left: auto; right: 10px; }
}

/* ===== لوگو سمت چپ در موبایل ===== */
@media (max-width: 768px) {
    .site-header .container { justify-content: flex-end; }
}

/* ===== کادر قیمت برجسته ===== */
.price-box { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #EFF6FF, #DBEAFE); border: 2px solid #BFDBFE; border-radius: 14px; padding: 10px 22px; margin: 14px 0; }
.price-box::before { content: '💰'; font-size: 1.1rem; }
.price-box span { font-weight: 800; color: #1D4ED8; font-size: 1.15rem; }

/* ===== کادر بخش‌های توضیح ===== */
.desc-box { background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 14px 20px; margin: 14px 0; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.desc-box strong { color: #1D4ED8; display: block; margin-bottom: 6px; }

/* ===== توضیح کوتاه ===== */
.short-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.9; margin: 4px 0 12px; padding: 10px 16px; border-right: 4px solid var(--primary); background: #F8FAFC; border-radius: 10px; }

/* ===== باکس اختصاصی مشخصات فنی ===== */
.spec-box { background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 16px 22px; margin: 14px 0; }
.spec-box h3 { color: #1D4ED8; margin: 0 0 10px; font-size: 1.05rem; }
.spec-box ul { margin: 0; padding: 0 18px; }
.spec-box li { margin: 7px 0; color: var(--text); line-height: 1.8; }
