/* فایل: style.css (نسخه نهایی و کامل) */
@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Vazirmatn:wght@400;700&display=swap');

:root {
    --primary-color: #ad3bff;
    --secondary-color: #FFD700;
    --background-color: #1a1a2e;
    --card-bg: rgba(15, 23, 42, 0.7);
    --text-color: #e0e0e0;
    --text-muted: #aaa;
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-icon {
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    bottom: -150px;
    animation: fall linear infinite;
}

@keyframes fall {
    from { transform: translateY(0vh) rotate(0deg); }
    to   { transform: translateY(-120vh) rotate(360deg); }
}

.bg-icon:nth-child(1) { left: 10%; font-size: 40px; animation-duration: 25s; animation-delay: -5s; }
.bg-icon:nth-child(2) { left: 20%; font-size: 50px; animation-duration: 20s; animation-delay: -2s; }
.bg-icon:nth-child(3) { left: 30%; font-size: 30px; animation-duration: 30s; animation-delay: -10s; }
.bg-icon:nth-child(4) { left: 40%; font-size: 60px; animation-duration: 18s; animation-delay: -7s; }
.bg-icon:nth-child(5) { left: 50%; font-size: 35px; animation-duration: 28s; animation-delay: -12s; }
.bg-icon:nth-child(6) { left: 60%; font-size: 45px; animation-duration: 22s; animation-delay: -3s; }
.bg-icon:nth-child(7) { left: 70%; font-size: 55px; animation-duration: 19s; animation-delay: -8s; }
.bg-icon:nth-child(8) { left: 80%; font-size: 30px; animation-duration: 32s; animation-delay: -15s; }
.bg-icon:nth-child(9) { left: 90%; font-size: 50px; animation-duration: 24s; animation-delay: -6s; }
.bg-icon:nth-child(10){ left: 75%; font-size: 40px; animation-duration: 29s; animation-delay: -1s; }
.bg-icon:nth-child(11){ left: 15%; font-size: 65px; animation-duration: 17s; animation-delay: -11s; }
.bg-icon:nth-child(12){ left: 55%; font-size: 30px; animation-duration: 35s; animation-delay: -4s; }


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

/* --- هدر و لوگو (ویرایش شده) --- */
.main-header { padding: 15px 0; background: rgba(16, 17, 34, 0.8); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(173, 59, 255, 0.2); }
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.site-logo .logo-text {
    font-family: 'Lalezar', cursive; /* اعمال فونت جدید */
    font-size: 1.8rem; /* کمی بزرگتر کردن فونت */
    font-weight: 400; /* فونت لاله‌زار فقط وزن ۴۰۰ دارد */
    letter-spacing: 1px; /* ایجاد فاصله جزئی بین حروف */
    color: #fff;
}

.diamond-icon {
    font-size: 1.4rem;
    color: var(--secondary-color);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(255, 215, 0, 1);
    }
}

/* --- محتوای اصلی --- */
.main-content {
    padding: 20px 0;
}

/* --- نوار اطلاعیه --- */
.announcement-bar { padding: 12px; text-align: center; color: #fff; font-weight: bold; margin-bottom: 20px; }
.site-title {
    color: var(--secondary-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    text-align: center;
    font-size: 2.8rem;
    margin: 20px 0 40px 0;
}

/* --- Hero Banner (Revised for Robustness) --- */
.hero-banner {
    /* Centering and width constraint */
    max-width: 1200px;
    margin: 20px auto 40px auto; /* Combines vertical margin with horizontal centering */

    /* On smaller screens, this prevents it from touching the edges */
    padding: 0 15px; 
    box-sizing: border-box;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    /* Styling moved here */
    border-radius: 15px;
    border: 1px solid rgba(173, 59, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/* --- گرید محصولات --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.product-card { background: var(--card-bg); border: 1px solid rgba(173, 59, 255, 0.4); border-radius: 12px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; backdrop-filter: blur(10px); }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); }
.product-image { position: relative; }
.product-image img { width: 100%; height: auto; display: block; }
.product-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.product-category { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }
.product-price { margin-bottom: 20px; border-top: 1px solid rgba(173, 59, 255, 0.2); padding-top: 15px; display: flex; justify-content: space-between; align-items: center; }
.product-badge { position: absolute; top: 15px; left: 15px; background-color: #e74c3c; color: white; padding: 5px 10px; border-radius: 5px; font-size: 14px; font-weight: bold; }
.btn { display: inline-block; background-color: var(--primary-color); color: #fff; text-align: center; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; border: none; cursor: pointer; }
.btn:hover { background-color: #8e2de2; }

/* --- فوتر --- */
.main-footer { padding: 40px 0 20px; background: rgba(0,0,0,0.2); margin-top: 50px; }
.main-footer .container { border-top: 1px solid rgba(173, 59, 255, 0.2); padding-top: 30px; }
.footer-columns { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; text-align: right; margin-bottom: 30px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: var(--secondary-color); margin-bottom: 15px; }
.footer-col p { color: var(--text-muted); line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--primary-color); }

/* --- کپی رایت --- */
.copyright { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(173, 59, 255, 0.1); font-size: 0.9rem; color: var(--text-muted); }

/* --- نوارهای محصولات (بزرگ) --- */
.product-carousel-section { 
    padding: 30px 20px; 
    margin: 40px 0; 
    border-radius: 15px; 
    background-color: #2c1e4a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(173, 59, 255, 0.4);
}

.carousel-title { text-align: center; font-size: 24px; margin-bottom: 25px; color: #fff; }
.main-grid-title { text-align: center; font-size: 26px; margin-top: 50px; margin-bottom: 25px; }
.product-carousel { 
    display: flex; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    gap: 25px; 
    padding: 10px 5px 20px 5px; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel .product-card { 
    flex: 0 0 280px; 
    transform: none; 
    transition: transform 0.2s ease-in-out; 
    backdrop-filter: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.product-carousel .product-card:hover { transform: translateY(-5px); }

/* ======================= NEW: SMALL SLIDESHOW STYLES ======================= */
.small-slideshow-wrapper {
    margin: 50px auto;
    max-width: 90%; /* Control the max width on large screens */
}

.small-slideshow-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 0;
}

.slideshow-track {
    display: flex;
    cursor: grab;
    user-select: none;
}
.slideshow-track:active {
    cursor: grabbing;
}

.slideshow-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 10px; /* Provides spacing if multiple slides are shown */
    box-sizing: border-box;
}

/* On larger screens, show more than one item */
@media (min-width: 768px) {
    .small-slideshow-wrapper {
        max-width: 1200px;
    }
    .slideshow-slide {
        flex: 0 0 33.33%; /* Show 3 slides */
    }
}
@media (min-width: 1024px) {
    .slideshow-slide {
        flex: 0 0 25%; /* Show 4 slides */
    }
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slideshow-nav:hover {
    background-color: var(--primary-color);
}
.slideshow-nav.prev { right: 10px; }
.slideshow-nav.next { left: 10px; }
/* Note: Using right for prev and left for next because of RTL layout */


/* --- داشبورد و منوی همبرگری --- */
#hamburger-menu { width: 30px; height: 25px; cursor: pointer; z-index: 1002; display: flex; flex-direction: column; justify-content: space-around; }
#hamburger-menu span { display: block; width: 100%; height: 3px; background-color: #fff; border-radius: 3px; transition: all 0.3s ease-in-out; }
#hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
#hamburger-menu.active span:nth-child(2) { opacity: 0; }
#hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

#cart-icon-header { color: #fff; text-decoration: none; font-size: 1.3rem; position: relative; }
.cart-count { position: absolute; top: -8px; right: -10px; background: red; color: white; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.hidden { display: none !important; }

#side-dashboard { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background-color: #1a1a2e; box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5); z-index: 1001; transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); padding-top: 80px; border-left: 1px solid var(--primary-color); }
#side-dashboard.active { right: 0; }
#side-dashboard ul { list-style: none; }
#side-dashboard ul li a { display: flex; align-items: center; padding: 15px 25px; color: var(--text-color); text-decoration: none; font-size: 1.1rem; transition: background-color 0.3s, padding-right 0.3s; border-bottom: 1px solid #2c1e4a; }
#side-dashboard ul li a:hover { background-color: var(--primary-color); padding-right: 30px; }
#side-dashboard ul li a i { margin-left: 15px; width: 20px; text-align: center; }

#overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1000; opacity: 0; transition: opacity 0.4s; }
#overlay.active { display: block; opacity: 1; }

/* --- استایل صفحات داخلی (هدر بزرگ حذف شد) --- */
.page-header { text-align: center; padding: 40px 0; background: #2c1e4a; margin-bottom: 40px; }
.page-header h1 { font-size: 2.5rem; color: var(--secondary-color); }
.page-content { max-width: 800px; margin: 0 auto 40px auto; background: var(--card-bg); padding: 30px; border-radius: 10px; line-height: 1.8; }
.page-content p { margin-bottom: 15px; }
.page-content h2, .page-content h3 { color: var(--primary-color); margin-top: 20px; margin-bottom: 10px; }

/* --- استایل صفحه پیگیری سفارش --- */
.track-order-container { max-width: 650px; margin: 0 auto 40px auto; background: var(--card-bg); padding: 30px 40px; border-radius: 15px; text-align: center; }
.track-order-container p { margin-bottom: 25px; line-height: 1.7; color: var(--text-muted); }
#track-order-form .form-group { display: flex; gap: 10px; }
#track-order-form input { flex-grow: 1; background-color: #3e3e5a; border: 1px solid #555; border-radius: 8px; padding: 12px 15px; color: #ffffff; font-size: 16px; transition: all 0.3s ease; box-sizing: border-box; }
#track-order-form input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(173, 59, 255, 0.3); }
#track-btn { background: var(--primary-color); color: #fff; border: none; padding: 0 25px; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: bold; transition: all 0.3s ease; min-width: 120px; }
#track-btn:hover { background-color: #8e2de2; }
.order-status-result-wrapper { margin-top: 30px; text-align: right; display: none; }
.order-status-card { background: #2a2a3e; padding: 25px; border-radius: 10px; border-left: 5px solid var(--primary-color); }
.order-status-card p { margin-bottom: 12px; font-size: 1rem; color: var(--text-color); }
.order-status-card p strong { display: inline-block; min-width: 100px; color: var(--text-muted); }
.order-status-value { font-weight: bold; padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; }
.status-completed { background-color: #27ae60; color: #fff; }
.status-pending { background-color: #f39c12; color: #fff; }
.status-cancelled { background-color: #e74c3c; color: #fff; }
.status-processing { background-color: #3498db; color: #fff; }
.error-message { color: #e74c3c; font-weight: bold; }


/* ======================= بخش ویژگی‌ها (کد شما) ======================= */
.features-section {
    padding: 60px 0;
    margin-top: 40px;
    max-width: 600px; /* محدود کردن عرض برای ظاهر بهتر */
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 50px; /* فاصله عمودی بین آیتم‌ها */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: right;
    direction: rtl; /* تضمین می‌کند آیکون در سمت راست قرار گیرد */
}

.feature-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 215, 0, 0.5); /* حاشیه نقطه‌چین با رنگ ثانویه */
    border-radius: 20px; /* گوشه‌های گرد */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.feature-icon i {
    font-size: 32px;
    color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px) scale(1.05);
    border-style: solid;
    border-color: var(--secondary-color);
    background-color: rgba(173, 59, 255, 0.2);
}

.feature-item:hover .feature-icon i {
    transform: rotate(10deg);
}

.feature-text h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.feature-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .features-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .feature-item {
        gap: 20px;
    }
    .feature-icon {
        width: 65px;
        height: 65px;
    }
    .feature-icon i {
        font-size: 26px;
    }
    .feature-text h4 {
        font-size: 1.2rem;
    }
    .feature-text p {
        font-size: 0.9rem;
    }
}


/* ======================= NEW: PRIVACY & SECURITY SECTION STYLES ======================= */
.privacy-features-section {
    padding: 60px 0;
    margin-top: 60px;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.privacy-item {
    background: var(--card-bg);
    border: 1px solid rgba(173, 59, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.privacy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.privacy-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(173, 59, 255, 0.1), rgba(173, 59, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.privacy-icon i {
    font-size: 30px;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.privacy-item:hover .privacy-icon {
    transform: rotateY(360deg);
}

.privacy-text h4 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.privacy-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ======================= REVISED: SUPPORT TICKET PAGE STYLES ======================= */
.ticket-form-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(173, 59, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* عنوان جدید و شیک داخل فرم */
.ticket-form-container .form-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.ticket-form-container .form-description {
    text-align: center;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 1rem;
}

#support-ticket-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

#support-ticket-form .form-group {
    margin-bottom: 25px;
}

#support-ticket-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.95rem;
}

#support-ticket-form label .required {
    color: #e74c3c;
    margin-right: 5px;
}

/* استایل جدید و زیبای فیلدهای ورودی */
#support-ticket-form input,
#support-ticket-form textarea {
    width: 100%;
    background-color: #2a213f; /* رنگ بنفش تیره و متمایز */
    border: 1px solid rgba(173, 59, 255, 0.4); /* حاشیه بنفش با شفافیت */
    border-radius: 8px;
    padding: 15px 18px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* افکت زیبا هنگام انتخاب فیلد */
#support-ticket-form input:focus,
#support-ticket-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #31264a; /* کمی روشن‌تر شدن هنگام انتخاب */
    box-shadow: 0 0 0 4px rgba(173, 59, 255, 0.25);
}

#support-ticket-form textarea {
    resize: vertical;
    min-height: 150px;
}

#support-ticket-form .btn-submit {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.form-message {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid;
    font-weight: bold;
}

.form-message.success {
    background-color: rgba(39, 174, 96, 0.2);
    border-color: #27ae60;
    color: #27ae60;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #e74c3c;
}

@media (max-width: 600px) {
    #support-ticket-form .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ticket-form-container {
        padding: 25px;
    }
    .ticket-form-container .form-title {
        font-size: 1.8rem;
    }
}
