        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;

        }
               
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* Header Styles */
        header {
            background: linear-gradient(to left, #4a90e2, #6a5acd);
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 24px;
            font-weight: bold;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 20px;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        nav ul li a:hover {
            color: #ffd700;
        }
        
        /* Main Content Layout */
        .product-page {
            display: flex;
            margin: 30px 0;
            gap: 30px;
        }
        
        /* Product Info Sidebar (Right Side) */
        .product-info-sidebar {
            flex: 0 0 300px;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
            height: fit-content;
        }
        
        .product-info-sidebar h3 {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4a90e2;
            color: #444;
        }
        
        .product-meta {
            margin-bottom: 20px;
        }
        
        .meta-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #eee;
        }
        
        .meta-item:last-child {
            border-bottom: none;
        }
        
        .meta-label {
            color: #666;
            font-weight: 500;
        }
        
        .meta-value {
            color: #333;
            font-weight: 600;
        }
        
        .price-highlight {
            font-size: 20px;
            color: #e53935;
            font-weight: bold;
            text-align: center;
            margin: 15px 0;
            padding: 10px;
            background: #fff5f5;
            border-radius: 6px;
        }
        
        .quick-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }
        
        .action-btn {
            padding: 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .buy-now-btn {
            background: #4caf50;
            color: white;
        }
        
        .buy-now-btn:hover {
            background: #388e3c;
        }
        
        .add-wishlist-btn {
            background: #f1f1f1;
            color: #333;
        }
        
        .add-wishlist-btn:hover {
            background: #e0e0e0;
        }
        
        /* Product Gallery Section */
        .product-gallery-sidebar {
            flex: 0 0 100px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .gallery-thumbnail {
            width: 80px;
            height: 80px;
            border: 2px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            overflow: hidden;
            transition: border-color 0.3s ease;
        }
        
        .gallery-thumbnail:hover {
            border-color: #4a90e2;
        }
        
        .gallery-thumbnail.active {
            border-color: #4a90e2;
        }
        
        .gallery-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .gallery-thumbnail:hover img {
            transform: scale(1.05);
        }
        
        /* Product Section */
        .product-section {
            flex: 1;
        }
        
        /* Main Product Gallery */
        .product-gallery {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .main-image {
            flex: 1;
            border: 2px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            height: 450px;
        }
        
        .main-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        /* Product Details */
        .product-details {
            background: white;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .product-title {
            font-size: 24px;
            color: #333;
            margin-bottom: 10px;
        }
        
        .product-price {
            font-size: 22px;
            color: #e53935;
            font-weight: bold;
            margin-bottom: 15px;
        }
        
        .product-description {
            color: #666;
            margin-bottom: 20px;
            line-height: 1.8;
        }
        
        .add-to-cart {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .quantity-selector {
            display: flex;
            align-items: center;
            border: 1px solid #ddd;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .quantity-btn {
            background: #f1f1f1;
            border: none;
            width: 36px;
            height: 36px;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.2s ease;
        }
        
        .quantity-btn:hover {
            background: #e0e0e0;
        }
        
        .quantity-input {
            width: 50px;
            height: 36px;
            text-align: center;
            border: none;
            border-left: 1px solid #ddd;
            border-right: 1px solid #ddd;
        }
        
        .add-to-cart-btn {
            background: #4caf50;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .add-to-cart-btn:hover {
            background: #388e3c;
        }
        
        /* Product Features */
        .product-features {
            background: white;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .section-title {
            font-size: 20px;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4a90e2;
        }
        
        .features-list {
            list-style: none;
            columns: 2;
            column-gap: 20px;
        }
        
        .features-list li {
            margin-bottom: 10px;
            padding-right: 15px;
            position: relative;
            break-inside: avoid;
        }
        
        .features-list li:before {
            content: "•";
            color: #4a90e2;
            font-weight: bold;
            position: absolute;
            right: 0;
        }
        
        /* Related Products */
        .related-products {
            margin-bottom: 30px;
        }
        
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
        }
        
        .product-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .product-card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .product-card-content {
            padding: 15px;
        }
        
        .product-card-title {
            font-size: 16px;
            margin-bottom: 8px;
            color: #333;
        }
        
        .product-card-price {
            color: #e53935;
            font-weight: bold;
        }
        
        /* Reviews Section - Improved */
        .reviews {
            background: white;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .review-item {
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }
        
        .review-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            align-items: center;
        }
        
        .review-author {
            font-weight: bold;
            color: #333;
        }
        
        .review-date {
            color: #888;
            font-size: 14px;
        }
        
        .review-rating {
            color: #ff9800;
            margin-bottom: 5px;
        }
        
        .review-content {
            color: #666;
            line-height: 1.6;
        }
        
        /* Add Review Form */
        .add-review-form {
            margin-top: 30px;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 8px;
        }
        
        .add-review-form h3 {
            margin-bottom: 15px;
            color: #333;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #555;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
        }
        
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .rating-stars {
            display: flex;
            gap: 5px;
            margin-bottom: 10px;
        }
        
        .rating-stars i {
            color: #ddd;
            cursor: pointer;
            font-size: 20px;
            transition: color 0.2s;
        }
        
        .rating-stars i:hover,
        .rating-stars i.active {
            color: #ff9800;
        }
        
        .submit-review-btn {
            background: #4a90e2;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s ease;
        }
        
        .submit-review-btn:hover {
            background: #357abD;
        }
        
        .no-reviews {
            text-align: center;
            padding: 20px;
            color: #888;
        }
        
 
/*  ============ comment style ======================= */
.reviews {
    margin: 2rem 0;
    font-family: sans-serif;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.review-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 10px;
    object-fit: cover;
    border: 1px solid #ddd;
}
.review-avatar.small {
    width: 40px;
    height: 40px;
}

.review-author {
    font-weight: bold;
    margin-right: 0.5rem;
}

.review-date {
    font-size: 0.85rem;
    color: #777;
    display: block;
}

.review-rating {
    color: #f5a623; /* طلایی */
    margin: 0.5rem 0;
}

.review-content {
    line-height: 1.6;
}

.reply-btn {
    background: #007bff;
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.reply-btn:hover {
    background: #0056b3;
}

.review-replies {
    list-style: none;
    padding-left: 1rem;
    margin-top: 1rem;
    border-left: 2px solid #eee;
}

.review-reply {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-reply .review-author {
    font-weight: 600;
}

.review-text {
    margin-top: 0.3rem;
}

.add-review-form {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
}


.login-hint a {
    color: #007bff;
    text-decoration: none;
}
.login-hint a:hover {
    text-decoration: underline;
}

.comment-form {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
}

.form-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.send-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}
.send-btn:hover {
    background: #218838;
}

.cancel-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}
.cancel-btn:hover {
    background: #c82333;
}


.checked{
    color: rgb(255, 234, 0);
}