/* RESET & BASE */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--dm-black);
}

body {
    font-family: var(--dm-font-body);
    color: var(--dm-text);
    background-color: var(--dm-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--dm-primary);
    text-decoration: none;
    transition: var(--dm-transition);
}

a:hover {
    color: var(--dm-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* NAVBAR */

.dm-navbar {
    background: var(--dm-black);
    padding: 0;
    box-shadow: var(--dm-shadow);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.dm-navbar .navbar-brand {
    padding: 8px 0;
}

.dm-navbar .navbar-brand img {
    height: 35px;
}

.dm-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.2);
}

.dm-navbar .navbar-toggler i {
    color: white;
}

.dm-navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 16px 18px !important;
    font-size: 0.95rem;
    transition: var(--dm-transition);
    position: relative;
}

.dm-navbar .nav-link:hover,
.dm-navbar .nav-link.active {
    color: var(--dm-white) !important;
}

.dm-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--dm-red);
    border-radius: 3px 3px 0 0;
}

.dm-navbar .btn-login {
    background: var(--dm-red);
    color: white !important;
    border: none;
    border-radius: var(--dm-btn-radius);
    padding: 8px 20px !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.dm-navbar .btn-login:hover {
    background: var(--dm-red-dark);
}

/* HERO SECTION */

.dm-hero {
    background: linear-gradient(135deg, var(--dm-black) 0%, var(--dm-teal) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.dm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--dm-red-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.dm-hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.dm-hero > .container {
    position: relative;
    z-index: 1;
}

.dm-hero h1 {
    color: var(--dm-white);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.dm-hero h1 span {
    color: var(--dm-red);
}

.dm-hero .tagline {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.dm-hero .hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.dm-hero .hero-stat {
    text-align: center;
}

.dm-hero .hero-stat .number {
    color: var(--dm-red);
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.dm-hero .hero-stat .label {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.dm-hero-search {
    background: var(--dm-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--dm-shadow-lg);
}

.dm-hero-search h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dm-black);
}

.dm-hero-search .form-select,
.dm-hero-search .form-control {
    border: 2px solid var(--dm-gray-200);
    border-radius: var(--dm-btn-radius);
    padding: 10px 14px;
    font-size: 0.95rem;
}

.dm-hero-search .form-select:focus,
.dm-hero-search .form-control:focus {
    border-color: var(--dm-red);
    box-shadow: 0 0 0 0.2rem rgba(var(--dm-red-rgb), 0.15);
}

.dm-hero-search .btn-search {
    background: var(--dm-red);
    color: white;
    border: none;
    border-radius: var(--dm-btn-radius);
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: var(--dm-transition);
}

.dm-hero-search .btn-search:hover {
    background: var(--dm-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--dm-red-rgb), 0.3);
}

/* SECTIONS */

.dm-section {
    padding: var(--dm-section-padding);
}

.dm-section-alt {
    background: var(--dm-bg-alt);
}

.dm-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dm-black);
    margin-bottom: 8px;
}

.dm-section-subtitle {
    color: var(--dm-text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

/* CAR CARD */

.dm-car-card {
    background: var(--dm-white);
    border-radius: var(--dm-card-radius);
    overflow: hidden;
    box-shadow: var(--dm-shadow-sm);
    transition: var(--dm-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dm-car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dm-shadow-hover);
}

.dm-car-card .card-img-wrap {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
    background: var(--dm-gray-200);
}

.dm-car-card .card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dm-car-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.dm-car-card .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dm-car-card .badge-featured {
    background: var(--dm-red);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dm-car-card .badge-new {
    background: var(--dm-teal);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dm-car-card .badge-sold {
    background: var(--dm-gray-700);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dm-car-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dm-car-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
    color: var(--dm-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dm-car-card .card-title a {
    color: inherit;
}

.dm-car-card .card-title a:hover {
    color: var(--dm-red);
}

.dm-car-card .card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--dm-text-muted);
}

.dm-car-card .card-specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dm-car-card .card-specs i {
    color: var(--dm-gray-500);
    font-size: 0.75rem;
}

.dm-car-card .card-price {
    margin-top: auto;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dm-red);
}

/* CATEGORY PILLS */

.dm-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dm-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--dm-white);
    border: 1px solid var(--dm-gray-200);
    border-radius: 50px;
    text-decoration: none;
    color: var(--dm-black);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--dm-transition);
}

.dm-category-pill:hover {
    background: var(--dm-red);
    border-color: var(--dm-red);
    color: white;
}

.dm-category-pill i {
    color: var(--dm-red);
    font-size: 0.85rem;
    transition: var(--dm-transition);
}

.dm-category-pill:hover i {
    color: white;
}

.dm-category-pill .cat-name {
    white-space: nowrap;
}

.dm-category-pill .cat-count {
    background: rgba(var(--dm-red-rgb), 0.1);
    color: var(--dm-red);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    transition: var(--dm-transition);
}

.dm-category-pill:hover .cat-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* FOOTER */

.dm-footer {
    background: var(--dm-black);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 20px;
}

.dm-footer h5 {
    color: var(--dm-white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
}

.dm-footer a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.dm-footer a:hover {
    color: var(--dm-red);
}

.dm-footer .footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.dm-footer .footer-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.dm-footer .footer-contact li {
    list-style: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.dm-footer .footer-contact i {
    color: var(--dm-red);
    width: 20px;
    margin-right: 8px;
}

.dm-footer .footer-links li {
    list-style: none;
    margin-bottom: 8px;
}

.dm-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    margin-right: 8px;
    transition: var(--dm-transition);
}

.dm-footer .footer-social a:hover {
    background: var(--dm-red);
}

.dm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

.dm-footer-bottom p {
    margin-bottom: 0;
}

/* BUTTONS */

.btn-dm-primary {
    background: var(--dm-red);
    color: white;
    border: none;
    border-radius: var(--dm-btn-radius);
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--dm-transition);
}

.btn-dm-primary:hover {
    background: var(--dm-red-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-dm-outline {
    background: transparent;
    color: var(--dm-red);
    border: 2px solid var(--dm-red);
    border-radius: var(--dm-btn-radius);
    padding: 8px 22px;
    font-weight: 600;
    transition: var(--dm-transition);
}

.btn-dm-outline:hover {
    background: var(--dm-red);
    color: white;
}

.btn-dm-dark {
    background: var(--dm-black);
    color: white;
    border: none;
    border-radius: var(--dm-btn-radius);
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--dm-transition);
}

.btn-dm-dark:hover {
    background: var(--dm-gray-800);
    color: white;
}

/* FORMS */

.dm-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.dm-form .form-control,
.dm-form .form-select {
    border: 2px solid var(--dm-gray-200);
    border-radius: var(--dm-btn-radius);
    padding: 10px 14px;
    transition: var(--dm-transition);
}

.dm-form .form-control:focus,
.dm-form .form-select:focus {
    border-color: var(--dm-red);
    box-shadow: 0 0 0 0.2rem rgba(var(--dm-red-rgb), 0.15);
}

/* CAR DETAIL PAGE */

.dm-car-gallery {
    border-radius: var(--dm-card-radius);
    overflow: hidden;
}

.dm-car-gallery .carousel {
    border-radius: var(--dm-card-radius);
    overflow: hidden;
}

.dm-car-gallery .carousel-inner {
    border-radius: var(--dm-card-radius);
}

.dm-car-gallery .main-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--dm-card-radius);
}

.dm-car-gallery .carousel-control-prev,
.dm-car-gallery .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.dm-car-gallery .carousel-control-prev { left: 12px; }
.dm-car-gallery .carousel-control-next { right: 12px; }

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

.dm-car-gallery .carousel-indicators {
    margin-bottom: 8px;
}

.dm-car-gallery .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: none;
}

.dm-car-gallery .carousel-indicators button.active {
    background: var(--dm-red);
}

.dm-car-gallery .thumb-list {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.dm-car-gallery .thumb-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--dm-transition);
}

.dm-car-gallery .thumb-list img:hover,
.dm-car-gallery .thumb-list img.active {
    border-color: var(--dm-red);
}

.dm-detail-brand {
    font-size: 0.8rem;
    color: var(--dm-red);
    letter-spacing: 1px;
}

.dm-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.dm-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dm-red);
}

.dm-detail-highlight {
    background: rgba(var(--dm-red-rgb), 0.05);
}

.dm-detail-section {
    font-size: 1.3rem;
    font-weight: 700;
}

.dm-detail-no-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dm-gray-200);
    border-radius: var(--dm-card-radius);
}

.dm-detail-eval-img {
    max-height: 500px;
    cursor: zoom-in;
}

.dm-detail-qa {
    background: var(--dm-gray-100);
}

.dm-detail-auction-price {
    font-size: 1.3rem;
    font-weight: 700;
}

.dm-detail-countdown {
    font-size: 1.1rem;
    color: var(--dm-red);
}

.dm-detail-grade {
    font-size: 1.2rem;
}

.dm-car-specs-table {
    background: var(--dm-white);
    border-radius: var(--dm-card-radius);
    overflow: hidden;
}

.dm-car-specs-table table {
    width: 100%;
    margin: 0;
}

.dm-car-specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--dm-gray-200);
}

.dm-car-specs-table td:first-child {
    color: var(--dm-text-muted);
    font-size: 0.9rem;
    width: 40%;
}

.dm-car-specs-table td:last-child {
    font-weight: 600;
}

/* FILTER SIDEBAR */

.dm-filter {
    background: var(--dm-white);
    border-radius: var(--dm-card-radius);
    padding: 24px;
    box-shadow: var(--dm-shadow-sm);
}

.dm-filter h5 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.dm-filter .filter-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dm-text-muted);
    margin-bottom: 6px;
    display: block;
}

/* AUTH PAGES */

.dm-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dm-gray-100) 0%, var(--dm-gray-200) 100%);
    padding: 60px 20px;
}

.dm-auth-card {
    background: var(--dm-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--dm-shadow-lg);
    width: 100%;
    max-width: 440px;
}

.dm-auth-card .logo {
    text-align: center;
    margin-bottom: 30px;
}

.dm-auth-card .logo img {
    height: 50px;
}

.dm-auth-card h4 {
    font-weight: 700;
}

/* LOADING STATES */

.dm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--dm-red-rgb), 0.2);
    border-top-color: var(--dm-red);
    border-radius: 50%;
    animation: dm-spin 0.6s linear infinite;
}

@keyframes dm-spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: dm-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* TOAST NOTIFICATIONS */

.dm-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-toast {
    background: var(--dm-white);
    border-radius: var(--dm-btn-radius);
    padding: 14px 20px;
    box-shadow: var(--dm-shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
    animation: dm-slideIn 0.3s ease;
    border-left: 4px solid var(--dm-primary);
}

.dm-toast.success {
    border-left-color: #28a745;
}

.dm-toast.error {
    border-left-color: var(--dm-red);
}

@keyframes dm-slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* MISC */

.dm-breadcrumb {
    padding: 15px 0;
    background: var(--dm-bg-alt);
    border-bottom: 1px solid var(--dm-border);
}

.dm-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.9rem;
}

.dm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--dm-text-muted);
}

.dm-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.no-car-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dm-gray-200);
    color: var(--dm-gray-500);
    font-size: 2rem;
}

.dm-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dm-red);
    color: white;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(var(--dm-red-rgb), 0.3);
    cursor: pointer;
    z-index: 999;
    transition: var(--dm-transition);
}

.dm-back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--dm-red-rgb), 0.4);
}

.dm-back-to-top.visible {
    display: flex;
}

/* PAGINATION */

.page-link {
    color: var(--dm-red);
    border-color: var(--dm-gray-300);
}

.page-link:hover {
    color: var(--dm-red-dark);
    background: rgba(var(--dm-red-rgb), 0.1);
    border-color: var(--dm-red);
}

.page-item.active .page-link {
    background: var(--dm-red);
    border-color: var(--dm-red);
    color: white;
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--dm-red-rgb), 0.25);
    color: var(--dm-red);
}

.page-item.disabled .page-link {
    color: var(--dm-gray-500);
}

/* AUCTION STYLES */

.badge-auction-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35, #EE3135);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 36px;
    text-align: center;
}

.badge-auction {
    background: linear-gradient(135deg, var(--dm-teal), #1a3340);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.dm-auction-hero {
    background: linear-gradient(135deg, var(--dm-black) 0%, var(--dm-teal) 100%);
    padding: 40px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.dm-auction-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.dm-auction-hero p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.95rem;
}

.countdown-unit {
    display: inline-block;
    margin: 0 2px;
}

.countdown-unit strong {
    font-weight: 800;
}

/* MOBILE BOTTOM NAVIGATION */

.dm-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dm-white);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    z-index: 1030;
    display: none;
    padding-bottom: env(safe-area-inset-bottom);
}

.dm-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
}

.dm-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dm-gray-600);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 0;
    flex: 1;
    transition: color 0.2s;
}

.dm-bottom-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.dm-bottom-nav-item.active {
    color: var(--dm-red);
}

.dm-bottom-nav-item:hover {
    color: var(--dm-red);
}

/* BLOG STYLES */

.dm-blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: var(--dm-card-radius);
    overflow: hidden;
}

.dm-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--dm-shadow-lg);
}

.dm-blog-post-hero {
    background: linear-gradient(135deg, var(--dm-black) 0%, var(--dm-teal) 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.dm-blog-featured-img img {
    box-shadow: var(--dm-shadow-lg);
}

.dm-blog-article {
    background: var(--dm-white);
    border-radius: var(--dm-card-radius);
    padding: 40px;
    box-shadow: var(--dm-shadow-sm);
}

.dm-blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dm-text);
}

.dm-blog-content p {
    margin-bottom: 1.2em;
}

/* Blog category filter buttons */
.dm-section .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* IMAGE LAZY LOADING */

.dm-img-wrapper {
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
}

.dm-img-wrapper img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dm-img-wrapper img.dm-img-loaded {
    opacity: 1;
}

.dm-img-spinner {
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--dm-red);
    border-radius: 50%;
    animation: dm-spin 0.7s linear infinite;
    z-index: 1;
}

.dm-img-wrapper img.dm-img-loaded ~ .dm-img-spinner {
    display: none;
}

/* SKELETON LOADING */

.dm-skeleton {
    background: linear-gradient(90deg, var(--dm-gray-200) 25%, var(--dm-gray-100) 50%, var(--dm-gray-200) 75%);
    background-size: 200% 100%;
    animation: dm-shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes dm-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Homepage search tiles (brand / body / price) */
.dm-brand-tile { transition: transform .15s ease, box-shadow .15s ease; border: 1px solid transparent; }
.dm-brand-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.2); border-color: rgba(238,49,53,.3); }

/* ===== Standard inner-page hero (one guideline for all pages) ===== */
.dm-page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #244350 0%, #16323d 55%, #0e2128 100%);
    color: #fff;
    padding: 2.4rem 0 2.6rem;
}
.dm-page-hero .dm-hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.dm-page-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0; }
.dm-page-hero .dm-page-hero-sub { color: rgba(251,229,190,.8); margin: .6rem 0 0; max-width: 680px; }
.dm-page-hero-crumbs .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.4); margin: 0; }
.dm-page-hero-crumbs .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.dm-page-hero-crumbs .breadcrumb-item a:hover { color: #fff; }
.dm-page-hero-crumbs .breadcrumb-item.active { color: #E0B873; }
.dm-page-hero-crumbs .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* Standard section heading helpers reused across pages */
.dm-page-section-title { font-weight: 800; font-size: 1.5rem; margin-bottom: .25rem; }
.dm-page-section-sub { color: #6c757d; margin-bottom: 1.5rem; }

/* ===== Top utility bar (phone / email / social) ===== */
.dm-topbar { background: #11272f; color: rgba(255,255,255,.7); font-size: .82rem; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.dm-topbar a { color: rgba(255,255,255,.75); text-decoration: none; }
.dm-topbar a:hover { color: #E0B873; }
.dm-topbar-left a, .dm-topbar-left span { margin-right: 1.25rem; }
.dm-topbar-right a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); margin-left: .4rem; font-size: .75rem; }
.dm-topbar-right a:hover { background: #E0B873; border-color: #E0B873; color: #11272f; }

/* ===== Accessibility & polish (UX review fixes) ===== */
/* Visible keyboard focus on all custom interactive elements */
.dm-navbar .nav-link:focus-visible,
.dm-topbar a:focus-visible,
.dm-category-pill:focus-visible,
.dm-brand-tile:focus-visible,
.btn-dm-primary:focus-visible,
.btn-dm-outline:focus-visible,
.btn-dm-dark:focus-visible,
.dm-bottom-nav-item:focus-visible,
.dm-footer a:focus-visible,
.dm-car-gallery .thumb-list img:focus-visible,
.dm-back-to-top:focus-visible {
    outline: 3px solid var(--dm-gold, #E0B873);
    outline-offset: 2px;
    border-radius: 6px;
}
/* Hero search box title (markup uses h2.h4) */
.dm-hero-search h2,
.dm-hero-search .h4 { font-weight: 700; margin-bottom: 1.25rem; }
/* Stronger hero subtitle contrast */
.dm-page-hero .dm-page-hero-sub { color: rgba(251, 229, 190, 0.95); }
