.product-details {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.product-details.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.product-details-content {
    background: white;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

.product-header {
    display: grid;
     grid-template-columns: 1fr 1fr; 
     gap: 2rem; 
     padding: 2rem; 
}

.product-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1.5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
} 

.product-image:hover img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #ebf4ff;
    color: #4299e1;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
} 

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #ecc94b;
}

.rating-count {
    color: #718096;
    font-size: 0.875rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.add-to-cart, .add-to-wishlist {
    flex: 1;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart {
    background: #4299e1;
    color: white;
    border: none;
}

.add-to-cart:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.add-to-wishlist {
    background: white;
    color: #4299e1;
    border: 2px solid #4299e1;
}

.add-to-wishlist:hover {
    background: #ebf8ff;
    transform: translateY(-2px);
}

.product-tabs {
    border-top: 1px solid #e2e8f0;
    padding: 2rem;
}

.tabs-header {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.tab {
    padding: 0.75rem 0;
    color: #718096;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #2d3748;
    font-weight: 500;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4299e1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.description {
    color: #4a5568;
    line-height: 1.7;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: #ebf8ff;
    color: #4299e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    color: #4a5568;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.reviewer {
    font-weight: 500;
    color: #2d3748;
}

.review-date {
    color: #718096;
    font-size: 0.875rem;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.review-text {
    color: #4a5568;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .product-header {
        grid-template-columns: 1fr;
    }
    
    .product-details-content {
        margin: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .tabs-header {
        gap: 1rem;
    }
}