/* استایل‌های عمومی */
:root {
    --primary-color: #c9a96e;
    --secondary-color: #333;
    --light-color: #f8f8f8;
    --dark-color: #222;
    --gray-color: #777;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: #fff;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #b08d5a;
    transform: translateY(-2px);
}

section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    position: relative;
    padding-right: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
}

.view-all:hover {
    color: #b08d5a;
}

/* نوار اعلان بالای صفحه */
.top-notification {
    background-color: var(--dark-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-notification .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gold-price {
    color: var(--primary-color);
    font-weight: bold;
}

.top-features {
    display: flex;
    gap: 20px;
}

.top-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-features i {
    color: var(--primary-color);
}

/* هدر سایت */
.site-header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    outline: none;
    width: 200px;
}

.search-box button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn, .cart-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* منوی اصلی */
.main-nav {
    border-top: 1px solid var(--border-color);
}

.main-nav ul {
    display: flex;
    justify-content: space-between;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.has-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    border-radius: 4px;
    width: 500px;
    padding: 20px;
    z-index: 100;
}

.menu-column {
    flex: 1;
}

.menu-column h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.menu-column ul li {
    margin-bottom: 10px;
}

.menu-column ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.menu-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-image img {
    border-radius: 4px;
    margin-bottom: 10px;
}

/* اسلایدر اصلی */
.main-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    max-width: 500px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.prev {
    right: 20px;
}

.slider-btn.next {
    left: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* دسته‌بندی‌های محصولات */
.product-categories {
    background-color: var(--light-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item h3 {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
}

.category-link {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: #b08d5a;
}

/* محصولات */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-actions button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
}

/* بنر تبلیغاتی */
.promo-banner {
    background: url('../images/promo-banner.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    color: #fff;
    max-width: 500px;
    z-index: 1;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.banner-content p {
    margin-bottom: 20px;
}

/* بخش ویژه */
.special-section {
    background-color: var(--light-color);
}

.special-section .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.special-content {
    flex: 1;
}

.special-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.special-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.special-image {
    flex: 1;
}

.special-image img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* مزایای خرید */
.features {
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* فوتر */
.site-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-color);
}

.newsletter p {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-methods img {
    height: 40px;
}

/* دکمه بازگشت به بالا */
#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .category-grid, .product-grid, .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dropdown-menu {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .top-notification .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .category-grid, .product-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .special-section .container {
        flex-direction: column;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dropdown-menu {
        width: 300px;
    }
}

@media (max-width: 576px) {
    .category-grid, .product-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .slide-content {
        right: 5%;
        max-width: 90%;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
} 