
        
.product-detail-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-content.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-detail-content.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Image Carousel */
.product-image-carousel {
    position: relative;
    margin-bottom: 20px;
}

.carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Product Variants */
.product-variants {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.variant-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-option:hover {
    border-color: #007bff;
}

.variant-option.selected {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.variant-option.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.variant-option input[type="radio"] {
    margin-right: 8px;
}

.variant-option label {
    cursor: pointer;
    margin: 0;
}

.stock-badge {
    font-size: 11px;
    color: #dc3545;
    margin-left: 8px;
}

.variant-selection-required {
    font-size: 14px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #007bff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: #007bff;
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
}

/* Product Actions */
.product-detail-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn-add-to-cart,
.btn-buy-now {
    flex: 1;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-add-to-cart {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-add-to-cart:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-buy-now {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-buy-now:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Responsive Design */
@media (min-width: 768px) {
    .product-detail-content {
        flex-direction: row;
        gap: 40px;
        padding: 40px;
    }
    
    .product-detail-image {
        flex: 1;
        max-width: 500px;
    }
    
    .product-detail-info {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .product-detail-actions {
        flex-direction: column;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .variant-options {
        flex-direction: column;
    }
}

/* Order Placement Styles */
.order-title {
    color: #333;
    margin-bottom: 20px;
}

.order-product-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-product-name {
    font-weight: 600;
    font-size: 16px;
}

.order-product-price {
    font-weight: 700;
    color: #dc3545;
    font-size: 18px;
}

.order-variant-info {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.order-summary {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-summary-row.total {
    border-top: 2px solid #eee;
    padding-top: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #dc3545;
    margin-bottom: 0;
}

.order-address {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.address-display {
    font-weight: 500;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.swipe-confirm-container {
    margin: 30px 0;
    text-align: center;
}

.swipe-confirm-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.swipe-confirm-track {
    width: 100%;
    height: 50px;
    background: #f8f9fa;
    border-radius: 25px;
    position: relative;
    border: 2px solid #dee2e6;
}

.swipe-confirm-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 42px;
    height: 42px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.swipe-confirm-thumb.active {
    background: #0056b3;
}

.order-actions {
    text-align: center;
    margin-top: 20px;
}

.order-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Feedback Styles */
.feedback-toggle-section {
    margin: 20px 0;
    text-align: center;
}

.feedback-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.feedback-title {
    margin-bottom: 20px;
    color: #333;
}

.feedback-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feedback-user-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.feedback-content {
    flex: 1;
}

.feedback-user-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feedback-user-name {
    font-weight: 600;
}

.feedback-stars {
    color: #ffc107;
}

.feedback-comment {
    color: #333;
    line-height: 1.5;
}

.no-feedback {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Variant Options Styling */
.variant-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.variant-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.variant-option.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.variant-option.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}

.variant-option input[type="radio"] {
    margin-right: 10px;
}

.variant-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.stock-badge {
    font-size: 12px;
    color: #dc3545;
    margin-left: 8px;
    padding: 2px 6px;
    background-color: #f8d7da;
    border-radius: 4px;
}

/* Order Variant Info */
.order-variant-info {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

/* Image Carousel Improvements */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .variant-options {
        flex-direction: column;
    }
    
    .carousel-item img {
        height: 250px;
    }
}
.order-loading-container {
    text-align: center;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.order-success-container {
    text-align: center;
    width: 100%;
    padding: 20px;
}

.order-success-container .success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.order-success-container .order-details {
    margin: 20px 0;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.order-success-container .success-actions {
    margin-top: 30px;
}

.order-success-container .success-actions .btn {
    margin: 0 10px;
}
.product-date-info,
.variant-date-info,
.order-date-info {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.variant-date-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.payment-method-info {
    margin: 15px 0;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.payment-method-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.payment-method-value {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #28a745;
}

.payment-method-value i {
    margin-right: 8px;
    font-size: 16px;
}

 .warranty-badge {
    display: inline-block;
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.stock-info {
    color: #28a745;
    font-weight: 500;
    margin-bottom: 10px;
}

.stock-info.out-of-stock {
    color: #dc3545;
}

.variant-option .stock-badge {
    font-size: 0.8rem;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 3px;
}

.variant-option:not(.out-of-stock) .stock-badge {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.variant-option.out-of-stock .stock-badge {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.order-warranty-info {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #555;
}

/* Success message styling for desktop */
.order-success-container {
    text-align: center;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.order-success-container .success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.order-success-container h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.order-success-container p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #666;
    max-width: 400px;
}

.order-success-container .success-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.order-success-container .success-actions .btn {
    margin: 0 10px;
    min-width: 160px;
}

/* Loading animation */
.order-loading-container {
    text-align: center;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.order-loading-container .fa-spinner {
    color: #007bff;
    margin-bottom: 20px;
}

/* Make sure the overlay container is positioned correctly */
.product-detail-content {
    position: relative;
    min-height: 400px;
}