/* Product Details Page Styles */

/* Breadcrumb Section */
.breadcrumb-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image-container {
    position: relative;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.05);
}

.badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

.thumbnail-container {
    margin-top: 15px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.thumbnail:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* Product Info Section */
.product-info {
    background: #fff;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

/* Price Section */
.price-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.best-price-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
}

.original-price {
    font-size: 1.25rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tax-info {
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Rating Section */
.rating-section .stars i {
    font-size: 1.1rem;
    margin-right: 2px;
}

.rating-count {
    font-size: 0.95rem;
}

/* Brand Section */
.brand-section {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.brand-logo-text {
    font-size: 1.05rem;
    color: #333;
}

/* Compatibility Section */
.compatibility-section {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.compatible-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compatible-badge {
    display: inline-block;
    background: #e8f4ff;
    color: #0066cc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #b3d9ff;
}

/* Features Section */
.features-section {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.features-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px dashed #e0e0e0;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li strong {
    color: #333;
    min-width: 140px;
    display: inline-block;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.btn-qty {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.btn-qty:hover {
    background: #007bff;
    color: white;
}

.qty-input {
    border: none;
    text-align: center;
    width: 60px;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 5px;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
}

/* Action Buttons */
.action-section .btn {
    font-weight: 600;
    padding: 12px 24px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.additional-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Delivery Info */
.delivery-info {
    margin-top: 20px;
}

.delivery-info h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.delivery-info small {
    font-size: 0.8rem;
}

/* Product Tabs */
.product-tabs {
    border-bottom: 3px solid #e0e0e0;
}

.product-tabs .nav-link {
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 25px;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: all 0.3s ease;
}

.product-tabs .nav-link:hover {
    color: #007bff;
    background: #f8f9fa;
}

.product-tabs .nav-link.active {
    color: #007bff;
    background: white;
    border-bottom-color: #007bff;
}

.product-tab-content {
    background: white;
    border-radius: 0 0 8px 8px;
}

/* Description Tab */
.description-list {
    padding-left: 20px;
}

.description-list li {
    padding: 8px 0;
    line-height: 1.6;
    color: #555;
}

/* Specifications Table */
.specifications-table {
    margin-bottom: 0;
}

.specifications-table td {
    padding: 12px 15px;
}

.spec-label {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 40%;
}

.spec-value {
    color: #555;
}

/* Reviews Section */
.rating-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.rating-bars .progress {
    height: 8px;
    background: #e9ecef;
}

.rating-bars span {
    min-width: 30px;
}

.review-item {
    background: #fafafa;
    transition: all 0.3s ease;
}

.review-item:hover {
    background: #f5f5f5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.review-item h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.review-item .stars i {
    font-size: 0.9rem;
}

/* Rating Input in Modal */
.rating-input i {
    font-size: 2rem;
    color: #ffc107;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.rating-input i:hover {
    transform: scale(1.2);
}

.rating-input i.fas {
    color: #ffc107;
}

.rating-input i.far {
    color: #dee2e6;
}

/* Related Products Section */
.related-products-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-images {
        position: relative;
        top: 0;
    }

    .main-product-image {
        max-height: 400px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.25rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .original-price {
        font-size: 1rem;
    }

    .product-tabs .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .action-section .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .main-product-image {
        max-height: 300px;
    }

    .thumbnail {
        height: 60px;
    }

    .spec-label {
        width: 50%;
        font-size: 0.9rem;
    }

    .spec-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.1rem;
    }

    .current-price {
        font-size: 1.3rem;
    }

    .compatible-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .product-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .action-section .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .additional-actions .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
        margin-bottom: 10px;
    }

    .delivery-info .col-md-4 {
        margin-bottom: 20px;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-info,
.product-images {
    animation: fadeIn 0.6s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    .action-section,
    .contact-section,
    .footer-bottom,
    .product-tabs,
    .related-products-section {
        display: none !important;
    }

    .product-info {
        page-break-inside: avoid;
    }
}

/* Enhanced Hover Effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

/* Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Boxes */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-info {
    background: #e7f3ff;
    border-left-color: #0066cc;
    color: #004080;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

