/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    background: #f8f5f0;
    color: #1a0f0a;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: linear-gradient(135deg, #0a0604, #1a0f0a, #2d1b12);
    padding: 15px 0;
    border-bottom: 2px solid #d4af37;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-logo a {
    color: #d4af37;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
}

.site-logo a:hover {
    color: #f5e6b8;
}

.logo-icon {
    font-size: 32px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    color: #f5f0eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #d4af37, #f5e6b8);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: #d4af37;
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 5px 5px 5px 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.search-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    outline: none;
    width: 150px;
    font-family: inherit;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-form button {
    background: #d4af37;
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    color: #1a0f0a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    transform: scale(1.05);
}

.cart-icon {
    color: #d4af37;
    font-size: 24px;
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-login,
.btn-register {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    border: 1px solid #d4af37;
}

.btn-login:hover {
    background: #d4af37;
    color: #1a0f0a;
}

.btn-register {
    background: #d4af37;
    color: #1a0f0a;
}

.btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.user-dropdown {
    position: relative;
}

.user-menu-toggle {
    color: #d4af37;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #1a0f0a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: #f8f5f0;
    color: #d4af37;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #1a0f0a, #2d1b12);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '\1F9F4';
    font-size: 200px;
    position: absolute;
    right: -50px;
    bottom: -80px;
    opacity: 0.05;
}

.hero-content h1 {
    color: #d4af37;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f5e6b8);
    color: #1a0f0a;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    font-size: 34px;
    font-weight: 900;
    margin: 50px 0 25px;
    padding-right: 20px;
    border-right: 5px solid #d4af37;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   CAMPAIGN BANNER
   ============================================ */
.campaign-banner {
    background: linear-gradient(135deg, #d4af37, #f5e6b8);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(212, 175, 55, 0.3);
}

.campaign-banner::before {
    content: '\2728';
    font-size: 150px;
    position: absolute;
    right: -30px;
    bottom: -50px;
    opacity: 0.1;
}

.campaign-banner h2 {
    font-size: 36px;
    color: #1a0f0a;
    font-weight: 900;
}

.campaign-banner p {
    font-size: 18px;
    color: #2d1b12;
    margin: 15px 0;
}

.discount-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    margin: 15px 0;
}

.btn-campaign {
    display: inline-block;
    background: #1a0f0a;
    color: #d4af37;
    padding: 15px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-campaign:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

/* ============================================
   PRODUCT GRID - نسخه اصلاح شده
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ============================================
   PRODUCT ITEM
   ============================================ */
.product-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.05);
}

.product-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border-color: #d4af37;
}

.product-thumb {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f8f5f0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-item:hover .product-thumb img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-sale {
    background: #e74c3c;
    color: white;
    animation: pulse 2s infinite;
}

.product-info {
    padding: 20px 22px 25px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-title a {
    color: #1a0f0a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-title a:hover {
    color: #d4af37;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #d4af37;
    margin: 10px 0;
}

.product-price .sale-price {
    color: #e74c3c;
}

.product-price .regular-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 400;
}

.sales-count {
    display: inline-block;
    background: #2d1b12;
    color: #d4af37;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, #d4af37, #f5e6b8);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    color: #1a0f0a;
    font-family: inherit;
}

.btn-add-to-cart:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
}

/* ============================================
   SEASON SECTION
   ============================================ */
.season-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    border-right: 4px solid #d4af37;
}

.season-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 25px;
    background: #f8f5f0;
    border-radius: 30px;
}

.season-tag {
    display: inline-block;
    padding: 3px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    margin-top: 5px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #0a0604, #1a0f0a, #2d1b12);
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 3px solid #d4af37;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.footer-widgets h4 {
    color: #d4af37;
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.footer-widgets ul {
    list-style: none;
}

.footer-widgets ul li {
    margin-bottom: 8px;
}

.footer-widgets ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-widgets ul li a:hover {
    color: #d4af37;
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #d4af37;
    color: #1a0f0a;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    color: #888;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-form input {
        width: 120px;
    }
    
    .product-thumb {
        height: 220px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .campaign-banner {
        padding: 30px 20px;
    }
    
    .campaign-banner h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product-thumb {
        height: 180px;
    }
    
    .product-info {
        padding: 12px 14px 16px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
}