/* === GLOBAL STYLES & VARIABLES === */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Colors */
    --white: #ffffff;
    --cream: #fefdf8;
    --light-gray: #f8f9fa;
    
    /* Yellow Palette */
    --primary-yellow: #ffb703;
    --golden-yellow: #ffd60a;
    --dark-yellow: #d49c02;
    
    /* Purple Palette */
    --light-purple: #e8e5ff;
    --medium-purple: #c8b5ff;
    --purple-accent: #9b72ff;
    
    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6c757d;
    --text-white: #ffffff;
    
    /* System Colors */
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    --info: #17a2b8;
    
    /* Border & Shadow */
    --border-light: #e9ecef;
    --border-medium: #dee2e6;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.16);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-xl: 24px;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container, .admin-main-content {
    flex-grow: 1;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--dark-yellow);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border: 2px solid var(--primary-yellow);
    border-radius: var(--radius-medium);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background-color: var(--golden-yellow);
    border-color: var(--golden-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-primary {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    background-color: var(--light-purple);
    border-color: var(--medium-purple);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-product {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary-yellow), var(--golden-yellow));
    border: none;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-cta-secondary {
    background-color: var(--white);
    color: var(--primary-yellow);
    border-color: var(--white);
}

/* === HEADER === */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-medium);
    padding: 8px 16px;
    border-radius: var(--radius-small);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    background-color: var(--light-purple);
    color: var(--text-dark);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--medium-purple) 100%);
    color: var(--text-dark);
    padding: 100px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-medium);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* === STATS SECTION === */
.stats-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background-color: var(--cream);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--golden-yellow));
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === SECTIONS === */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* === FEATURES SECTION === */
.features-section {
    padding: 80px 20px;
    background-color: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-purple), var(--medium-purple));
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* === PRODUCTS SECTION === */
.featured-products {
    padding: 80px 20px;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--cream);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--golden-yellow));
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-price-section {
    margin: 15px 0 20px 0;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-yellow);
}

.product-unit {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === CATEGORIES SECTION === */
.categories-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--cream) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.category-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--golden-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    color: var(--text-dark);
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.category-link {
    color: var(--purple-accent);
    font-weight: 500;
    text-decoration: underline;
}

.category-link:hover {
    color: var(--primary-yellow);
}

/* === TESTIMONIALS === */
.testimonials-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    background-color: var(--cream);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    position: relative;
    margin-bottom: 25px;
}

.quote-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--light-purple), var(--medium-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-dark);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--golden-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.author-info h4 {
    margin-bottom: 2px;
    color: var(--text-dark);
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === CTA SECTION === */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--golden-yellow) 100%);
    color: var(--text-dark);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === FOOTER === */
.main-footer {
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 60px 20px 30px 20px;
    text-align: center;
    margin-top: 0; /* Removed margin-top to connect with body */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: right;
}

.footer-section h3 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.6);
}

/* === FORMS === */
.user-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--cream);
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    border-radius: var(--radius-small);
    font-family: 'Vazirmatn', sans-serif;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.1);
}

/* === TABLES === */
.cart-table,
.orders-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.cart-table th,
.cart-table td,
.orders-table th,
.orders-table td,
.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: right;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.cart-table thead,
.orders-table thead,
.admin-table thead {
    background: linear-gradient(135deg, var(--light-purple), var(--cream));
}

.admin-table tbody tr:nth-child(even) {
    background-color: var(--cream);
}

/* === DASHBOARD === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    color: var(--text-dark);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    color: var(--text-dark);
}

.dashboard-card i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    flex-grow: 1;
}

/* === ADMIN LAYOUT === */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    margin-top: 2rem;
    align-items: flex-start;
}

.admin-sidebar {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 20px;
}

.admin-nav h3 {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.admin-nav ul {
    list-style: none;
}

.admin-nav ul li a {
    display: block;
    padding: 12px 15px;
    border-radius: var(--radius-small);
    margin-bottom: 5px;
    transition: var(--transition-fast);
    color: var(--text-medium);
}

.admin-nav ul li a:hover {
    background-color: var(--light-purple);
    color: var(--text-dark);
}

.admin-nav ul li a i {
    margin-left: 10px;
    color: var(--text-light);
}

/* === STATUS BADGES === */
.status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.status-در-حال-پردازش, .status-badge.status-آماده-ارسال {
    background-color: var(--light-purple);
    color: var(--text-dark);
}

.status-badge.status-ارسال-شده,
.status-badge.status-تحویل-داده-شده {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

/* === MOBILE MENU === */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
}

.sidebar {
    height: 100%;
    width: 280px;
    position: fixed;
    top: 0;
    right: -280px;
    background-color: var(--white);
    padding: 20px;
    z-index: 1000;
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-heavy);
}

.sidebar.active {
    right: 0;
}

.sidebar .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sidebar .nav-links a {
    display: block;
    padding: 15px;
    border-radius: var(--radius-small);
    transition: var(--transition-fast);
}

.sidebar .nav-links a:hover {
    background-color: var(--light-purple);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 2.5rem;
    position: absolute;
    top: 10px;
    left: 20px;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* === CART & UTILITIES === */
.cart-badge {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    position: absolute;
    top: -8px;
    right: -12px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.delete-link {
    color: var(--error) !important;
}

/* === ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav,
    .desktop-nav-logout {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 60px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats-section,
    .features-section,
    .featured-products,
    .categories-section,
    .testimonials-section,
    .cta-section {
        padding: 60px 15px;
    }
}

/* === ADMIN LAYOUT STYLES (NEW) === */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr; /* سایدبار با عرض ثابت، محتوا با عرض متغیر */
    gap: 40px;
    margin-top: 2rem;
    align-items: flex-start;
}

.admin-sidebar {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    position: sticky; /* سایدبار با اسکرول صفحه حرکت نمی‌کند */
    top: 110px; /* فاصله از بالای صفحه */
}

.admin-nav h3 {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.admin-nav ul {
    list-style: none;
}

.admin-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: var(--radius-small);
    margin-bottom: 5px;
    transition: var(--transition-fast);
    color: var(--text-medium);
}

.admin-nav ul li a:hover, .admin-nav ul li a.active {
    background-color: var(--light-purple);
    color: var(--text-dark);
}

.admin-nav ul li a i {
    margin-left: 10px;
    width: 20px; /* برای تراز بودن آیکون‌ها */
    color: var(--text-light);
}

/* ریسپانسیو برای پنل ادمین */
@media (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: static; /* در موبایل نچسبد */
        margin-bottom: 2rem;
    }
}

/* === PRODUCT DETAILS PAGE REDESIGN === */

.product-detail-page {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.product-gallery img {
    width: 100%;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
}

.product-summary {
    display: flex;
    flex-direction: column;
}

.product-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-meta .seller-info,
.product-meta .quality-tag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-box {
    background-color: var(--cream);
    padding: 20px;
    border-radius: var(--radius-medium);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-yellow);
}

.price-unit {
    font-size: 1rem;
    color: var(--text-light);
    margin-right: 8px;
}

.availability {
    font-size: 0.9rem;
    color: var(--success);
    margin-bottom: 2rem;
    font-weight: 500;
}

.cart-form-box {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius-medium);
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-selector input {
    width: 80px;
    padding: 10px;
    text-align: center;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-small);
}

.btn-add-to-cart {
    flex-grow: 1;
    padding: 15px;
    font-size: 1.1rem;
}

.login-prompt {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius-medium);
    text-align: center;
}

.product-description {
    margin-top: 1rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.product-description h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.product-description p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* Responsive adjustments for product details page */
@media (max-width: 992px) {
    .product-detail-page {
        grid-template-columns: 1fr;
    }
}
