/* ===== سیکیور ویژن پرو - تم روشن ===== */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --secondary: #0891b2;
    --bg: #f8fafc;
    --bg-2: #ffffff;
    --bg-3: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

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

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

/* ===== Header ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

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

.logo { display: flex; align-items: center; }
.logo img { height: 40px; }
.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-text i { color: var(--primary); }

.nav { display: flex; gap: 8px; }
.nav-link {
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(2, 132, 199, 0.08);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.search-form {
    display: flex;
    background: var(--bg-3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.search-form input {
    background: transparent;
    border: none;
    padding: 8px 14px;
    color: var(--text);
    width: 180px;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
}
.search-form button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 14px;
    cursor: pointer;
}
.search-form button:hover { background: var(--primary-dark); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #e0f2fe 100%);
    background-size: cover;
    background-position: center;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content { text-align: center; padding: 80px 0; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
    color: white;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section.bg-dark { background: var(--bg-3); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}
.section-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.section-header p { color: var(--text-muted); }
.section-header .view-all {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--primary);
}

.page-header {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2.1rem; color: var(--text); margin-bottom: 8px; }
.page-header p { color: var(--text-muted); }

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.3);
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-3);
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}
.no-image.large { min-height: 400px; }

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge.discount { background: var(--danger); color: white; }
.badge.out-of-stock { background: #94a3b8; color: white; top: auto; bottom: 12px; }

.product-info { padding: 18px; }
.product-category {
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.5px;
    font-weight: 600;
}
.product-name {
    font-size: 1.05rem;
    margin: 6px 0 10px;
}
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--primary); }

.product-price { margin-bottom: 8px; }
.price-current, .price-new {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}
.price-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}
.price-new { color: var(--success); }

.product-stock { margin-bottom: 12px; font-size: 0.85rem; }
.in-stock { color: var(--success); }
.out-stock { color: var(--danger); }

/* ===== Categories ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    color: var(--text);
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: rgba(2, 132, 199, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    overflow: hidden;
}
.category-icon img { width: 100%; height: 100%; object-fit: cover; }
.category-card h3 { font-size: 0.95rem; }

/* ===== Advantages ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.advantage-card {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.advantage-card:hover { border-color: rgba(2, 132, 199, 0.3); box-shadow: var(--shadow); }
.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(2,132,199,0.12), rgba(8,145,178,0.12));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
}
.advantage-card h3 { margin-bottom: 8px; color: var(--text); }
.advantage-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Banner ===== */
.banner-card {
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    padding: 60px 40px;
    text-align: center;
}
.banner-content h2 { font-size: 1.9rem; color: white; margin-bottom: 12px; }
.banner-content p { color: rgba(255,255,255,0.85); margin-bottom: 20px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== Slider ===== */
.slider-section { padding: 40px 0; }
.slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--border);
}
.slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
}
.slide.active { display: grid; }
.slide-image img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.slide-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.slide-content h2 { font-size: 1.7rem; color: var(--text); margin-bottom: 12px; }
.slide-content p { color: var(--text-muted); margin-bottom: 20px; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 132, 199, 0.85);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: var(--transition);
}
.slider-btn:hover { background: var(--primary); }
.slider-btn.prev { right: 16px; left: auto; }
.slider-btn.next { left: 16px; right: auto; }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: var(--primary); }

/* ===== Product List Layout ===== */
.products-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
}
.filters-sidebar {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: 90px;
}
.filters-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text);
}
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 4px; }
.filter-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.filter-list a:hover, .filter-list a.active {
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* ===== Product Detail ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}
.product-gallery .main-image {
    background: var(--bg-2);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.product-gallery .main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.thumbnails { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--transition);
}
.thumb:hover, .thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-details-info h1 {
    font-size: 1.7rem;
    color: var(--text);
    margin: 8px 0 12px;
}
.short-desc { color: var(--text-muted); margin-bottom: 20px; }
.product-price.large { margin-bottom: 16px; }
.product-price.large .price-current,
.product-price.large .price-new { font-size: 1.6rem; }
.discount-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}
.stock-status { margin-bottom: 24px; }
.product-description, .product-specs {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.product-description h3, .product-specs h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.specs-content { color: var(--text-muted); white-space: pre-line; }

.related-products { margin-top: 40px; }
.related-products h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 24px;
}

/* ===== About ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}
.about-image img {
    border-radius: var(--radius);
    width: 100%;
}
.about-text { color: var(--text-muted); line-height: 2; }

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.mv-card {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}
.mv-card h3 {
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mv-card h3 i { color: var(--primary); }
.mv-card p { color: var(--text-muted); }

/* ===== Contact ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}
.info-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-2);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.info-card i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 4px;
}
.info-card h4 { color: var(--text); margin-bottom: 4px; }
.info-card p { color: var(--text-muted); font-size: 0.9rem; }

.contact-form-panel {
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}
.contact-form-panel h3 { color: var(--text); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 50px 0 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3, .footer-col h4 {
    color: var(--text);
    margin-bottom: 16px;
}
.footer-col p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--primary); }
.contact-info li {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.contact-info i { color: var(--primary); margin-top: 3px; }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Messages ===== */
.messages-container {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 2000;
    max-width: 360px;
}
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 12px;
}

/* ===== Popup ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}
.popup-box {
    background: var(--bg-2);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 32px;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: right;
}
.popup-overlay.show .popup-box { transform: scale(1); }
.popup-close {
    position: absolute;
    top: 12px;
    left: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.popup-close:hover { color: var(--text); }
.popup-box h3 { color: var(--text); margin-bottom: 12px; font-size: 1.4rem; }
.popup-box p { color: var(--text-muted); margin-bottom: 16px; }
.popup-image { margin-bottom: 16px; border-radius: 8px; overflow: hidden; }
.popup-image img { width: 100%; }
.popup-prices { margin-bottom: 16px; }
.popup-prices .old { text-decoration: line-through; color: var(--text-muted); margin-left: 10px; }
.popup-prices .new { font-size: 1.5rem; font-weight: 700; color: var(--success); }
.popup-discount-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===== Animations ===== */
@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .products-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }
    .product-detail { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .slide { grid-template-columns: 1fr; }
    .slide-image img { min-height: 220px; }
    .section-header .view-all { position: static; transform: none; display: inline-block; margin-top: 12px; }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-2);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .mobile-toggle { display: block; }
    .search-form input { width: 120px; }
    .form-row { grid-template-columns: 1fr; }
    .mission-vision { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { min-height: 400px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}