/* استایل‌های محصول */
.product-detail {
    padding: 60px 0;
}

.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.03);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.gallery-thumbnails img.active {
    border-color: var(--primary-color);
}

.gallery-thumbnails img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-category {
    background-color: var(--light-bg-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--secondary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating i {
    color: #FFD700;
}

.product-rating span {
    font-size: 14px;
    color: var(--text-light);
}

.product-price-wrapper {
    margin: 25px 0;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 18px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-description {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.product-features h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--dark-color);
}

.product-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.product-features li i {
    color: var(--success-color);
}

.product-actions {
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    background: none;
    border: none;
    height: 45px;
    width: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: var(--light-bg-color);
}

.quantity input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    border: none;
    height: 45px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-dark);
}

.add-to-wishlist-btn {
    background-color: white;
    height: 45px;
    width: 45px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
}

.add-to-wishlist-btn:hover {
    color: #ff5252;
    border-color: #ff5252;
}

.add-to-wishlist-btn i.fas {
    color: #ff5252;
}

.product-meta-info {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.product-meta-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-meta-info i {
    color: var(--primary-color);
}

.stock-info {
    color: var(--success-color) !important;
}

/* استایل‌های تب‌ها */
.product-tabs {
    margin: 60px 0;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-item {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-pane h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.tab-pane p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* مشخصات فنی */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.specs-row:last-child {
    border-bottom: none;
}

.specs-label {
    flex: 1;
    padding: 12px 15px;
    background-color: var(--light-bg-color);
    font-weight: 600;
}

.specs-value {
    flex: 2;
    padding: 12px 15px;
}

/* نظرات کاربران */
.reviews-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.average-rating {
    text-align: center;
    padding: 20px;
    background-color: var(--light-bg-color);
    border-radius: 8px;
    min-width: 200px;
}

.rating-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
    font-size: 18px;
}

.rating-count {
    color: var(--text-light);
}

.rating-breakdown {
    flex: 1;
    min-width: 300px;
}

.rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-label {
    width: 80px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--light-bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 15px;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
}

.rating-percent {
    width: 50px;
    text-align: right;
}

.user-reviews {
    margin-bottom: 40px;
}

.review {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.review:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
}

.reviewer-rating {
    font-size: 14px;
}

.review-content p {
    line-height: 1.7;
}

/* فرم ثبت نظر */
.add-review {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 8px;
}

.add-review h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.rating-select {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
}

.rating-select i {
    margin-right: 5px;
    transition: all 0.2s;
}

.rating-select i.fas,
.rating-select i.star-hover {
    color: #FFD700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.submit-review {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-review:hover {
    background-color: var(--primary-dark);
}

/* محصولات مرتبط */
.related-products {
    margin: 60px 0;
}

.related-products h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
    }
    
    .tab-header {
        flex-wrap: wrap;
    }
    
    .tab-item {
        padding: 10px 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ریسپانسیو برای دستگاه‌های موبایل */
@media (max-width: 576px) {
    .product-detail {
        padding: 40px 0;
    }
    
    .product-info h1 {
        font-size: 22px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quantity {
        width: 100%;
    }
    
    #add-to-cart-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-to-cart-btn {
        margin-top: 10px;
    }
    
    .add-to-wishlist-btn {
        margin-top: 10px;
        width: 100%;
    }
    
    /* تنظیم فاصله از منوی پایین */
    body {
        padding-bottom: 60px;
    }
} 