/* فونت‌ها و تنظیمات پایه */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #121212;
    --secondary-color: #1e1e1e;
    --accent-color: #d4af37;
    --text-light: #e0e0e0;
    --text-dark: #121212;
    --raven-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    background-image: url('../images/raven-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.9);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر شیک */
.elegant-header {
    background-color: rgba(30, 30, 30, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.elegant-header:hover {
    background-color: rgba(30, 30, 30, 1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 16px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-light);
    transition: all 0.3s;
}

.cart-icon:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* سبد خرید فعال */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.cart-modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.cart-content {
    background: var(--secondary-color);
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-cart {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.close-cart:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.cart-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 15px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
    padding: 0 20px;
}

.cart-item-info h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.cart-item-info p {
    font-size: 14px;
    color: var(--accent-color);
}

.cart-item-controls {
    display: flex;
    align-items: center;
}

.cart-item-controls input {
    width: 50px;
    padding: 5px;
    text-align: center;
    background: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    border-radius: 5px;
    margin: 0 10px;
}

.remove-item {
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.remove-item:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.cart-total p {
    font-size: 18px;
    color: var(--text-light);
    font-weight: bold;
}

.cart-total p span {
    color: var(--accent-color);
}

/* دکمه شیک */
.elegant-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--text-dark);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Playfair Display', serif;
    position: relative;
    overflow: hidden;
}

.elegant-btn:hover {
    background: #e6c04d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.elegant-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.elegant-btn:hover::before {
    left: 100%;
}

/* بخش اصلی */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
}

.hero-content {
    text-align: center;
    width: 100%;
    z-index: 1;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* بخش محصولات */
.products-section {
    padding: 80px 0;
    background: rgba(30, 30, 30, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-family: 'Playfair Display', serif;
}

.product-info p {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 60px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
}

.add-to-cart {
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: #e6c04d;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(212, 175, 55, 0.2);
}

/* بخش درباره ما */
.about-section {
    padding: 80px 0;
    background: rgba(18, 18, 18, 0.8);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* بخش تماس */
.contact-section {
    padding: 80px 0;
    background: rgba(30, 30, 30, 0.8);
}

.elegant-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    color: var(--text-light);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* فوتر */
.elegant-footer {
    background: rgba(18, 18, 18, 0.9);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-logo h3 span {
    color: var(--accent-color);
}

.footer-logo p {
    color: #aaaaaa;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-light);
    font-size: 20px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaaaaa;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-contact p {
    color: #aaaaaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: #aaaaaa;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    nav ul {
        margin: 20px 0;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .about-content {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin-left: 15px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}