:root {
    --primary: #000000;
    --accent: #F3722C;
    --accent-hover: #E05F1A;
    --cream: #F5EBDD;
    --surface: #FFF8F0;
    --white: #FFFFFF;
    --gray: #6B7280;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--cream);
    color: var(--primary);
    line-height: 1.7;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* هدر */
.site-header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 26px;
    align-items: center;
}

.desktop-nav a,
.dropbtn {
    color: var(--cream);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.desktop-nav a:hover,
.dropbtn:hover {
    color: var(--accent);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #111111;
    min-width: 210px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 11px 18px;
    color: var(--cream);
    font-size: 14px;
}

.dropdown-content a:hover {
    background: var(--accent);
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-icon a,
.cart a,
.hamburger {
    color: var(--cream);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-icon a {
    font-size: 20px;
}

.cart a {
    font-size: 22px;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.search-icon a:hover,
.cart a:hover,
.hamburger:hover {
    color: var(--accent);
}

.login-signup a {
    color: var(--cream);
    border: 1.5px solid var(--cream);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.login-signup a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* منوی موبایل */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--primary);
    z-index: 1100;
    padding: 70px 25px 30px;
    transition: right 0.35s ease;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
}

.mobile-menu.open {
    display: block;
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a,
.mobile-dropbtn {
    color: var(--cream);
    font-size: 16px;
    display: block;
    cursor: pointer;
}

.mobile-menu ul li a:hover {
    color: var(--accent);
}

.mobile-dropdown-content {
    display: none;
    padding-right: 15px;
    margin-top: 10px;
}

.mobile-dropdown-content.open {
    display: block;
}

.mobile-dropdown-content a {
    font-size: 14px;
    padding: 7px 0;
    color: rgba(245, 235, 221, 0.75);
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .header-inner {
        padding: 12px 18px;
    }
}

/* فوتر */
footer {
    background: var(--primary);
    color: var(--cream);
    padding: 30px 40px;
    margin-top: 60px;
}

.footer-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text p {
    font-size: 13px;
    color: var(--cream);
    opacity: 0.9;
}

.footer-text a {
    color: var(--cream);
}

.footer-text a:hover {
    color: var(--accent);
}

.enamad img {
    height: 55px;
}

/* سبد خرید */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: var(--surface);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: var(--primary);
    color: var(--cream);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--cream);
}

#close-cart {
    background: none;
    border: none;
    color: var(--cream);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

#close-cart:hover {
    color: var(--accent);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--surface);
    color: var(--primary);
}

.checkout-btn {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #fff !important;
    text-align: center;
    padding: 14px 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    transition: background 0.25s ease;
    text-decoration: none;
}

.checkout-btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

.cart-total {
    margin-top: 12px;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    text-align: center;
}

.empty-cart {
    text-align: center;
    color: var(--gray);
    padding: 30px 0;
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 900px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 600px) {
    .footer-text {
        flex-direction: column;
        text-align: center;
    }
}