/* Coding By : Ramin Maddah --- 09152344362 --- ramin.mad4362@gmail.com */

/* Reset و فونت‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Vazir, 'Tanha', 'Samim', sans-serif;
}

:root {
    --primary: #2c5aa0;
    --primary-dark: #1e3d6f;
    --secondary: #e74c3c;
    --accent: #f39c12;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --success: #27ae60;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}
/* Coding By : Ramin Maddah --- 09152344362 --- ramin.mad4362@gmail.com */

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.8;
    color: var(--dark);
    overflow-x: hidden;
}
/* Coding By : Ramin Maddah --- 09152344362 --- ramin.mad4362@gmail.com */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Coding By : Ramin Maddah --- 09152344362 --- ramin.mad4362@gmail.com */

/* هدر حرفه‌ای */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}
/* Coding By : Ramin Maddah --- 09152344362 --- ramin.mad4362@gmail.com */

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    transition: var(--transition);
}
/* Coding By : Ramin Maddah --- 09152344362 --- ramin.mad4362@gmail.com */

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Coding By : Ramin Maddah --- 09152344362 --- ramin.mad4362@gmail.com */

.logo h1 {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.logo span {
    color: var(--secondary);
}

/* منوی ناوبری */
.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.nav ul li a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* منوی آبشاری */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 15px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    border-radius: 0;
    display: block;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li a:hover {
    background: var(--light);
    color: var(--primary);
    transform: none;
}
/* Coding By : Ramin Maddah --- 09152344362 --- ramin.mad4362@gmail.com */

/* جست‌وجوی حرفه‌ای */
.search-box {
    position: relative;
    flex: 0 1 400px;
}

.search-box form {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-box form:focus-within {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
}

.search-box button {
    background: var(--primary);
    border: none;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* منوی کاربر */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.user-menu a:first-child {
    background: var(--secondary);
    color: white;
}

.user-menu a:last-child {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.user-menu a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* محتوای اصلی */
.main {
    margin-top: 100px;
    padding: 2rem 0;
}

/* اسلایدر حرفه‌ای */
.hero-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 25px;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.6);
}

/* بخش محصولات */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* گرید محصولات */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.product-image {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.old-price {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 1rem;
}

.sale-price {
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 700;
}

.discount-badge {
    background: var(--success);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.4);
}

/* بخش دسته‌بندی‌ها */
.categories {
    margin: 4rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    color: var(--primary);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* فوتر */
.footer {
    background: linear-gradient(135deg, var(--dark), #34495e);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav {
        order: 3;
        width: 100%;
    }
    
    .nav ul {
        justify-content: center;
    }
    
    .search-box {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .user-menu a {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        padding: 2rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}




/* استایل‌های سیستم اطلاعیه */
#global-notifications-container {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
}

.global-notification {
    position: fixed;
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
    margin: 15px;
    pointer-events: all;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* موقعیت‌های مختلف */
.global-notification[data-position="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
}

.global-notification[data-position="top"] {
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
}

.global-notification[data-position="bottom"] {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}

.global-notification[data-position="top-left"] {
    top: 20px;
    left: 20px;
    transform: translateX(-100px);
    opacity: 0;
}

.global-notification[data-position="top-right"] {
    top: 20px;
    right: 20px;
    transform: translateX(100px);
    opacity: 0;
}

.global-notification[data-position="bottom-left"] {
    bottom: 20px;
    left: 20px;
    transform: translateX(-100px);
    opacity: 0;
}

.global-notification[data-position="bottom-right"] {
    bottom: 20px;
    right: 20px;
    transform: translateX(100px);
    opacity: 0;
}

/* انیمیشن‌های ورود */
.global-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) !important;
}

.global-notification[data-position="top"].show {
    transform: translateX(-50%) translateY(0) !important;
}

.global-notification[data-position="bottom"].show {
    transform: translateX(-50%) translateY(0) !important;
}

.global-notification[data-position="top-left"].show,
.global-notification[data-position="bottom-left"].show {
    transform: translateX(0) !important;
}

.global-notification[data-position="top-right"].show,
.global-notification[data-position="bottom-right"].show {
    transform: translateX(0) !important;
}

/* محتوای اطلاعیه */
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification-icon {
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-body {
    flex: 1;
}

.notification-title {
    margin: 0 0 8px 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.notification-message {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* دکمه بستن */
.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

/* انیمیشن‌های سفارشی */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideOutUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100px); opacity: 0; }
}

@keyframes slideOutDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100px); opacity: 0; }
}

@keyframes zoomOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

@keyframes bounceOut {
    20% { transform: scale(1.1); }
    50%, 55% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.3); opacity: 0; }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .global-notification {
        max-width: 90%;
        padding: 15px;
        margin: 10px;
    }
    
    .notification-content {
        gap: 10px;
    }
    
    .notification-icon {
        font-size: 1.3rem;
    }
    
    .notification-title {
        font-size: 1rem;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
}