/*
 * SHAHIN MOTORS - custom styles (loaded in both languages, after style.css)
 */

/* Logo: keep the PNG logo at the same size as the original 225x60 SVG */
.header-logo img,
.mobile-logo img,
.footer-logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .header-logo img,
    .mobile-logo img {
        height: 48px;
    }
}

/* ---------- Car cards ---------- */
.feature-list-1 .box-icon { position: relative; }
.feature-list-1 .box-icon > a > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-list-1 .actions form { display: inline-block; margin: 0; }
.feature-list-1 .actions button.icon-btn { border: 0; cursor: pointer; }
.feature-list-1 .actions .icon-btn.active { background: var(--theme-color); color: #fff; }
.car-badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--theme-color);
}
.car-badge.reserved { background: #f59e0b; }
.car-badge.deal { background: #16a34a; }
.car-bottom .old-price { font-size: 14px; font-weight: 400; color: var(--body-color); margin-inline-start: 6px; }

/* ---------- Flash messages ---------- */
.site-alert {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 92vw;
    min-width: 280px;
    padding: 16px 44px 16px 20px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    animation: siteAlertIn .3s ease;
}
.site-alert.success { background: #16a34a; }
.site-alert.error { background: #dc2626; }
.site-alert i { margin-top: 3px; }
.site-alert-close {
    position: absolute;
    top: 8px;
    inset-inline-end: 12px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
@keyframes siteAlertIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Compare bar ---------- */
.compare-float {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 40px;
    background: var(--title-color, #111);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.compare-float:hover { color: #fff; background: var(--theme-color); }

/* ---------- Rich text (services, blog, car description) ---------- */
.rich-text p { margin-bottom: 16px; }
.rich-text ul { padding-inline-start: 20px; margin-bottom: 16px; }

/* Empty states */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 48px; color: var(--theme-color); margin-bottom: 16px; }

/* Footer newsletter */
.footer-newsletter { flex: 1; max-width: 480px; }
.footer-newsletter .form-control { height: 56px; border-radius: 30px; padding: 0 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; }
.footer-newsletter .form-control::placeholder { color: rgba(255, 255, 255, .6); }
.footer-newsletter .th-btn { white-space: nowrap; }

/* Compare page: scroll sideways on small screens */
.compare-scroll { overflow-x: auto; }
.compare-scroll > .row { min-width: 760px; }
.compare-scroll .row > .col { min-width: 190px; }
.add-compare-wrap { color: inherit; }

/* Brand slider: text fallback when a make has no logo */
.brand-box .brand-name { display: inline-block; font-weight: 700; font-size: 18px; color: var(--title-color); padding: 12px 0; }
.best-price-car-box img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
