/* Car Interface Module Styles - Optimized */
/* Sử dụng CSS variables từ custom.css để tránh trùng lặp */

/* Header Search Box Styles */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-box {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    /* border-bottom: 1px solid var(--color-border); */
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 18px;
    padding: 15px 50px 15px 20px;
    border-radius: var(--border-radius);
    background: var(--color-bg-light);
    color: var(--color-text-primary);
    font-family: var(--wb-font-text);
}

.search-input:focus {
    background: var(--white);
}

.search-close-btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: var(--border-radius-pill);
    transition: var(--transition-normal);
}

.search-close-btn:hover {
    background: var(--color-bg-light);
    color: var(--color-text-primary);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.search-result-title i {
    margin-right: 8px;
    font-size: 14px;
}

.search-result-info {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-result-info span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.search-result-info i {
    margin-right: 4px;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.search-result-price {
    font-weight: 600;
    color: #28a745;
}

.search-result-year {
    color: #17a2b8;
}

.search-result-fuel {
    color: #ffc107;
}

.search-result-seats {
    color: #6c757d;
}

.search-result-arrow {
    margin-left: auto;
    color: #ccc;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-result-item:hover .search-result-arrow {
    color: #007bff;
    transform: translateX(3px);
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.search-no-results i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: #ccc;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.search-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Animation spin đã được định nghĩa trong custom.css - loại bỏ trùng lặp */

/* Prevent body scroll when search is active */
body.search-active {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        /* padding-top: 80px; */
        /* padding-left: 15px; */
        /* padding-right: 15px; */
    }

    .search-container .container {
        padding-left: 0;
    }

    .search-input {
        font-size: 16px;
    }

    .search-result-item {
        padding: 12px 15px;
    }

    .search-result-image {
        width: 50px;
        height: 38px;
        margin-right: 12px;
    }

    .search-result-title {
        font-size: 15px;
    }

    .search-result-info {
        font-size: 12px;
        gap: 8px;
    }

    .search-result-info i {
        font-size: 11px;
        width: 12px;
        margin-right: 3px;
    }

    .search-result-arrow {
        font-size: 12px;
    }

    .search-result-item:hover {
        transform: none;
    }
}

/* Course Item Container */
.course-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Car Image Container */
.car-image-container {
    position: relative;
    overflow: hidden;
}

/* Car Image - Đảm bảo tất cả ảnh có cùng kích thước */
.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-item:hover .car-image {
    transform: scale(1);
}

/* Promotion Badge */
.promotion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.promotion-badge .discount-percent {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.3);
    animation: pulse 2s infinite;
}

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

/* Car Options Icons - Ẩn mặc định */
.car-options-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.option-icon {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(-3px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hiệu ứng hover cho toàn bộ container - Hiện car options */
.course-item:hover .car-options-icons {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.option-icon i {
    font-size: 1rem;
    color: #00d4aa;
}

.option-icon span {
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Course Content - Chiếm phần còn lại của container */
.course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header với title và price */
.course-content .d-flex.justify-content-between.align-items-center.mb-3 {
    align-items: flex-start !important;
    gap: 15px;
}

.course-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.3;
    font-family: var(--wb-font-title);
}

/* Price Container */
.price-container {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 150px;
    flex-shrink: 0;
}

.course-content .price {
    font-size: 16px;
    font-weight: 700;
    color: #dc3545;
    margin: 0;
    white-space: nowrap;
    transition: all 0.3s;
}

/* Original Price (crossed out) - hiển thị nhỏ ở dưới */
.original-price {
    font-size: 16px;
    color: red !important;
    /* text-decoration: line-through; */
    margin: 0 0 2px 0;
    font-weight: 600;
    white-space: nowrap;
}

/* Promotion Price */
.promotion-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff4757;
    margin: 0;
    white-space: nowrap;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
}

.promotion-price::after {
    content: "KM";
    position: absolute;
    top: -6px;
    right: -18px;
    background: #ff4757;
    color: white;
    font-size: 0.55rem;
    padding: 1px 4px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1;
}

.related-cars, .car-details-tabs {
    padding: 10px 0px !important;
}

.section-title {
    padding-bottom: 0px !important;
    margin-bottom: 0px;
}

/* Description */
.course-content p:not(.price) {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 15px 0;
    flex: 1;
    padding-left: 10px;
    font-family: var(--wb-font-text);
}

/* Trainer section */
.trainer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.trainer-profile {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-family: var(--wb-font-text);
}

.trainer .d-flex:last-child {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-family: var(--wb-font-text);
}

.trainer .d-flex:last-child i {
    color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-content {
        padding: 20px;
    }

    .course-content h3 {
        font-size: 1.2rem;
    }

    .course-content .price {
        font-size: 1.1rem;
    }

    .promotion-price {
        font-size: 1.2rem;
    }

    .car-image {
        height: 200px;
    }

    .trainer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }

    /* Mobile adjustments for new elements */
    .car-options-icons {
        top: 10px;
        right: 10px;
        gap: 5px;
    }

    .option-icon {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .option-icon span {
        max-width: 60px;
    }

    .promotion-badge {
        top: 10px;
        left: 10px;
    }

    .promotion-badge .discount-percent {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Mobile: Hiện car options luôn, chỉ hiển thị icons */
    .car-options-icons {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        max-width: 120px;
    }

    .option-icon {
        padding: 4px 6px;
        font-size: 0.7rem;
        min-width: 24px;
        justify-content: center;
    }

    .option-icon span {
        display: none; /* Ẩn text trên mobile */
    }

    .option-icon i {
        font-size: 0.9rem;
    }

    /* Tooltip cho mobile */
    .mobile-tooltip {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
        margin-top: 5px;
    }

    .mobile-tooltip::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 4px solid transparent;
        border-bottom-color: rgba(0, 0, 0, 0.9);
    }

    .mobile-tooltip.show {
        opacity: 1;
        visibility: visible;
    }

    .option-icon {
        position: relative;
    }
}

@media (max-width: 480px) {
    .course-content {
        padding: 15px;
    }

    .car-image {
        height: 180px;
    }

    .course-content h3 {
        font-size: 1.1rem;
    }

    .course-content .price {
        font-size: 1rem;
    }

    .promotion-price {
        font-size: 1.1rem;
    }

    .original-price {
        font-size: 0.8rem;
    }

    .price-row-bottom h3 {
        font-size: 1.1rem;
    }

    .price-row-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .price-row-bottom .promotion-price {
        align-self: flex-end;
    }

    /* Extra small screen adjustments */
    .car-options-icons {
        flex-direction: row;
        flex-wrap: wrap;
        top: 5px;
        right: 5px;
        max-width: 120px;
    }

    .option-icon {
        padding: 3px 6px;
        font-size: 0.65rem;
        min-width: auto;
    }

    .option-icon span {
        display: none; /* Hide text on very small screens, show only icons */
    }

    .promotion-badge {
        top: 5px;
        left: 5px;
    }

    .promotion-badge .discount-percent {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    /* Mobile compact mode */
    .car-options-icons.mobile-compact {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
        max-width: 100px;
    }

    .car-options-icons.mobile-compact .option-icon {
        padding: 2px 4px;
        min-width: 24px;
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-item {
    animation: fadeInUp 0.6s ease forwards;
}

.course-item:nth-child(2) {
    animation-delay: 0.1s;
}

.course-item:nth-child(3) {
    animation-delay: 0.2s;
}

.course-item:nth-child(4) {
    animation-delay: 0.3s;
}

/* Đảm bảo các cột có chiều cao bằng nhau */
.col-lg-6.d-flex {
    margin-bottom: 30px;
}

.car-actions .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Category heading */
.wb-heading {
    font-size: 21px;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 34px 10px;
    display: inline-block;
    border-bottom: 5px solid;
    padding-bottom: 5px;
    margin-bottom: 30px;
    z-index: 3;
    font-family: var(--wb-font-title);
}

/* Car Filter Section */
.car-filter-section {
    /* background: #fff; */
    padding: 30px;
    border-radius: 15px;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
    margin-bottom: 40px;
    background: url('../images/bg-page.webp') !important;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.filter-label i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.filter-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.filter-btn.btn-primary {
    background: linear-gradient(135deg, #1f2585, #0a1e4b);
    color: white;
}

.filter-btn.btn-primary:hover {
    background: linear-gradient(135deg, #1f2585, #0a1e4b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 21, 94, 0.3);
}

.filter-btn.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    padding: 5px 17px;
}

.filter-btn.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Section spacing */
#courses {
    padding: 10px 0 !important;
    /* background: #f8f9fa; */
    border-bottom: 1px solid #eee;
}

#courses .container {
    text-align: center;
}

#courses .row {
    text-align: left;
}
/* 
#category {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
} */

#category h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

#category p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Container adjustments */
.container {
    max-width: 1200px;
}

/* Hover effects */
/* .course-item:hover h3 {
    color: #00d4aa;
} */

.course-item:hover .price {
    transform: scale(1.05);
}

/* Loading animation */
.course-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for multiple items */
.course-item:nth-child(1) { animation-delay: 0.1s; }
.course-item:nth-child(2) { animation-delay: 0.2s; }
.course-item:nth-child(3) { animation-delay: 0.3s; }
.course-item:nth-child(4) { animation-delay: 0.4s; }
.course-item:nth-child(5) { animation-delay: 0.5s; }
.course-item:nth-child(6) { animation-delay: 0.6s; }

/* Car title link */
.car-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600 !important;
}

.car-title-link:hover {
    color: #282828;
    text-decoration: none;
}

.car-actions .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* ===== CAR DETAIL PAGE STYLES ===== */

/* Car Hero Section */
.car-hero {
    padding: 8px 0;
    background: #f8f9fa;
}

.car-image-gallery .main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-car-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.thumbnail-image {
    height: 80px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block; /* Đảm bảo thumbnails hiển thị ngang */
}

.thumbnail-image:hover {
    border-color: #00d4aa;
    transform: scale(1.05);
}

/* Car Info Card */
.car-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    /* top: 20px; */
}

.car-header {
    margin-bottom: 25px;
}

.car-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.badge-featured {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Price Section */
.car-price-section {
    margin-bottom: 30px;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 10px;
}

.price-current {
    font-weight: 700;
    color: red;
    display: block;
}

.price-old {
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--color-text-primary);
    display: block;
}

.discount-percent {
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    font-family: "Roboto" !important;
}

/* Quick Specs */
.car-quick-specs {
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item i {
    color: #4e4e4e;
    font-size: 1.2rem;
    margin-right: 12px;
    width: 20px;
}

.spec-label {
    color: #5a6775;
    margin-right: 10px;
    font-family: var(--wb-font-roboto);
    font-size: 16px;
}

.spec-value {
    color: #5a6775;
    font-weight: 600;
    margin-left: auto;
    font-family: var(--wb-font-roboto);
}

#carTabs li a {
    font-weight: 600 !important;
    font-size: 16px;
    font-family: var(--wb-font-roboto);
}

.bg-category {
    background: #f5f5f54d;
}

.tab-content p, .tab-content strong, .tab-content span {
    font-size: 16px !important;
    font-family: var(--wb-font-roboto);
}

.table table td, .table table th {
    font-size: 16px;
    font-family: var(--wb-font-roboto);
}

/* Car Actions */
.car-actions .btn {
    margin-bottom: 10px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s;
    animation: pulse-zoom 2s infinite;
    letter-spacing: 2px;
}

#apply-filter {
    transition: all 0.3s;
    animation: pulse-zoom 2s infinite;
}

/* Car Details Tabs */
.car-details-tabs {
    padding: 60px 0;
}

.car-tabs {
    border-bottom: 3px solid #ecf0f1;
    margin-bottom: 40px;
}

.car-tabs .nav-link {
    border: none;
    color: #7f8c8d;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 0;
    position: relative;
}

.car-tabs .nav-link.active {
    color: #00d4aa;
    background: transparent;
    border-bottom: 3px solid #00d4aa;
}

.car-tabs .nav-link i {
    margin-right: 8px;
}

.car-tab-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Specifications Table */
.spec-table {
    margin-bottom: 0;
}

figure.table {
    margin: 0;
}

.tab-pane ul, .tab-pane ol {
    padding-left: 0 !important;
}

.spec-table td {
    border: none;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.spec-table td:first-child {
    font-weight: 600;
    color: #7f8c8d;
    width: 40%;
}

.spec-table td:last-child {
    color: #2c3e50;
    font-weight: 500;
}

/* Features */
.feature-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.feature-item i {
    color: #00d4aa;
    font-size: 1.2rem;
    margin-right: 12px;
}

/* Contact */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    color: #00d4aa;
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.contact-form .form-control:focus {
    border-color: #00d4aa;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.25);
}

/* Related Cars */
.related-cars {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
}

.related-car-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.related-car-item:hover {
    transform: translateY(-5px);
}

.related-car-item img {
    height: 200px;
    object-fit: cover;
}

.related-car-info {
    padding: 20px;
}

.related-car-info h5 a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.related-car-info h5 a:hover {
    color: #00d4aa;
}

.related-car-info .price {
    color: #00d4aa;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

/* ===== JAVASCRIPT EFFECTS ===== */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation spin đã được định nghĩa trong custom.css - loại bỏ trùng lặp */

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #00d4aa, #00b894);
}

.notification-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.notification-warning {
    background: linear-gradient(135deg, #ffa726, #ff9800);
}

.notification-info {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
}

/* Active thumbnail */
.thumbnail-image.active {
    border-color: #00d4aa !important;
    transform: scale(1.05);
}

@media (min-width: 768px) { 
    .car-image {
        height: 365px !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .car-filter-section {
        padding: 20px;
    }

    .filter-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .car-info-card {
        margin-top: 30px;
        position: static;
    }

    .main-car-image {
        height: 300px;
    }

    .car-tab-content {
        padding: 20px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .box-price-mobile {
        flex-direction: column;
    }

    .box-price-mobile .price-container {
        align-items: flex-start !important;
    }

    .original-price {
        font-size: 16px;
        font-weight: 600;
    }
}

.courses .course-content .price {
    font-weight: 600 !important;
}

.car-actions button {
    font-family: var(--wb-font-text);
    text-transform: uppercase;
}

/* PDF Link Styles */
.pdf-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.pdf-link:hover {
    color: #c82333;
    text-decoration: none;
    transform: translateY(-1px);
}

.pdf-link i {
    font-size: 14px;
}