/* Product Detail Page Styles */

/* Product Gallery */
.product-gallery .main-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.product-gallery .main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* Rental Options */
.rental-options .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.rental-options .btn-outline-primary:hover,
.rental-options .btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Accessories */
.accessories .form-check {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.accessories .form-check:hover {
    background-color: var(--light-blue);
}

.accessories .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
}

.accessories .form-check-label {
    margin-left: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* Lead Form */
.lead-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.lead-form h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.lead-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.lead-form .form-control,
.lead-form .form-select {
    border: 2px solid #e0e6ed;
    padding: 0.75rem;
}

.lead-form .form-control:focus,
.lead-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

/* Quantity Input */
.input-group .btn-outline-secondary {
    border: 2px solid #e0e6ed;
    color: var(--text-dark);
    font-weight: bold;
}

.input-group .btn-outline-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.input-group .form-control {
    border-left: none;
    border-right: none;
}

/* Description Table */
.description-content .table {
    font-size: 1rem;
}

.description-content .table th {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    font-weight: 600;
    width: 30%;
}

.description-content .table td {
    color: var(--text-dark);
}

/* Alert Boxes */
.alert-info {
    background-color: var(--light-blue);
    border-color: var(--primary-color);
    color: var(--dark-blue);
}

.alert-info .alert-heading {
    color: var(--primary-color);
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-warning .alert-heading {
    color: #856404;
}

/* Related Products */
.related-products .card {
    transition: var(--transition);
}

.related-products .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .thumbnail-list {
        justify-content: center;
    }
    
    .rental-options .btn-group-toggle {
        flex-direction: column;
    }
    
    .rental-options .btn {
        width: 100%;
    }
    
    .lead-form {
        padding: 1.5rem;
    }
    
    .description-content .table {
        font-size: 0.9rem;
    }
    
    .description-content .table th {
        width: 40%;
    }
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Success Animation */
.form-success {
    animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}