/* single-product.css - جزئیات محصول */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

:root {
    --bg-cream: #FFF9F0;
    --honey-light: #FDE2B5;
    --honey: #F5B841;
    --saffron: #E8A317;
    --brown-warm: #8B5E3C;
    --brown-dark: #5D3A1A;
    --gold-glow: #FFD700;
    --shadow-sm: 0 4px 12px rgba(139, 94, 60, 0.08);
    --shadow-md: 0 8px 24px rgba(139, 94, 60, 0.12);
    --shadow-lg: 0 16px 40px rgba(139, 94, 60, 0.15);
    --shadow-gold: 0 0 20px rgba(245, 184, 65, 0.3);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-cream);
    color: var(--brown-dark);
    line-height: 1.6;
}

/* هدر */
.navbar {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-cream) 100%);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    border-bottom: 2px solid var(--honey-light);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brown-warm) 0%, var(--honey) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-brand i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--honey);
    font-size: 1.8rem;
}

.nav-link {
    color: var(--brown-warm);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--saffron);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--honey);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 80%;
    right: 10%;
}

.nav-link.active {
    color: var(--saffron);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--saffron);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    min-width: 18px;
    text-align: center;
}

/* جزئیات محصول */
.product-detail-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(245, 184, 65, 0.2);
}

.product-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.product-detail-info {
    padding: 2rem;
}

.product-detail-name {
    color: var(--brown-warm);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-detail-price {
    color: var(--saffron);
    font-size: 1.5rem;
    font-weight: bold;
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-stock-true {
    background: #d4edda;
    color: #155724;
}

.badge-stock-false {
    background: #f8d7da;
    color: #721c24;
}

.btn-buy {
    background: linear-gradient(135deg, var(--brown-warm) 0%, var(--saffron) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-buy:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* نظرات */
.comments-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(245, 184, 65, 0.2);
}

.comments-section h4 {
    color: var(--brown-warm);
    margin-bottom: 1.5rem;
}

.comment-item {
    border-bottom: 1px solid var(--honey-light);
    padding: 1rem 0;
    transition: var(--transition);
}

.comment-item:hover {
    background: rgba(245, 184, 65, 0.05);
    padding-right: 0.5rem;
}

.comment-user {
    font-weight: bold;
    color: var(--brown-warm);
}

.comment-date {
    font-size: 0.8rem;
    color: #999;
}

.comment-text {
    margin-top: 0.5rem;
    color: #555;
}

.btn-comment {
    background: linear-gradient(135deg, var(--brown-warm) 0%, var(--saffron) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    transition: var(--transition);
}

.btn-comment:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--saffron) 0%, var(--brown-warm) 100%);
}

/* فوتر */
.footer {
    background: linear-gradient(135deg, var(--brown-dark) 0%, #3E2723 100%);
    color: #FDE2B5;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--honey), var(--saffron), var(--gold-glow));
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--honey);
}

.footer h5 {
    margin-bottom: 1rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .product-detail-image {
        height: 250px;
    }

    .product-detail-name {
        font-size: 1.3rem;
    }

    .product-detail-info {
        padding: 1rem;
    }

    .comments-section {
        padding: 1rem;
    }
}

/* انیمیشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail-card,
.comments-section {
    animation: fadeInUp 0.5s ease;
}