/* Product Detail Section */
.product-detail-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 20px;
}

.main-image {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.main-image img {
    max-height: 400px;
    width: auto;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.05);
}

.image-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Product Info */
.product-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Countdown Timer */
.countdown-timer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.timer-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.timer-display span {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    margin: 0 0.1rem;
}

/* Product Title */
.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.rating .stars {
    color: #ffc107;
}

.review-count, .sold-count, .vendor-name {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.original-price {
    font-size: 1.5rem;
    color: #6c757d;
    text-decoration: line-through;
}

/* Product Description */
.product-description {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Features List */
.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Availability */
.availability {
    font-size: 1.1rem;
}

.stock-status {
    color: #28a745;
    font-weight: 600;
}

.stock-status.low-stock {
    color: #ffc107;
}

.stock-status.out-of-stock {
    color: #dc3545;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-to-cart {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    flex: 1;
}

.btn-add-to-cart:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.btn-buy-now {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    flex: 1;
}

.btn-buy-now:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

/* Additional Info */
.additional-info {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.info-item i {
    color: #007bff;
    width: 20px;
}

/* Loading State */
#loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .original-price {
        font-size: 1.2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timer-display {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .product-info {
        padding: 1.5rem;
    }
    
    .main-image {
        padding: 1rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-images, .product-info {
    animation: fadeInUp 0.6s ease forwards;
}

.product-info {
    animation-delay: 0.2s;
}