/* ═══════════════════════════════════════════════════
   Sahar Parts Homepage — Luxury Black/Gold Design
   Performance: transform/opacity only, content-visibility
   ═══════════════════════════════════════════════════ */

:root {
    --sp-gold: #C8A45A;
    --sp-gold-2: #E0C07A;
    --sp-gold-soft: rgba(200, 164, 90, 0.12);
    --sp-black: #2D2D2D;
    --sp-ink: #2D2D2D;
    --sp-ink-2: #3f3f46;
    --sp-ink-3: #71717a;
    --sp-bg: #ffffff;
    --sp-bg-soft: #f7f7f8;
    --sp-bg-muted: #f1f1f3;
    --sp-line: rgba(26, 26, 26, 0.08);
    --sp-line-2: rgba(26, 26, 26, 0.12);
    --sp-radius: 18px;
    --sp-radius-sm: 12px;
    --sp-shadow: 0 8px 28px rgba(26, 26, 26, 0.06);
    --sp-shadow-lg: 0 18px 48px rgba(26, 26, 26, 0.1);
    --sp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --sp-dur: .28s;
    --sp-container: 100%;
}

.sp-home {
    color: var(--sp-ink);
    background: #ffffff;
    padding-bottom: 48px;
    overflow-x: clip;
}

.sp-container {
    width: var(--sp-container);
    margin-inline: auto;
}

.sp-benefits,
.sp-benefits ~ .sp-section {
    --sp-container: min(1200px, calc(100% - 32px));
}

.sp-section {
    margin: 36px 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
}

.sp-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.sp-section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--sp-black);
}

.sp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 26px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    color: var(--sp-ink-2);
    background: rgba(45, 45, 45, 0.06);
    border: 1px solid rgba(45, 45, 45, 0.08);
    user-select: none;
    white-space: nowrap;
}

.sp-badge--gold {
    background: linear-gradient(135deg, var(--sp-gold), var(--sp-gold-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(200, 164, 90, 0.3);
}

.sp-badge--dark {
    background: var(--sp-black);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(45, 45, 45, 0.2);
}

.sp-badge--ghost {
    background: transparent;
    border-color: var(--sp-gold);
    color: var(--sp-gold);
}

.sp-link {
    color: var(--sp-black);
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--sp-dur) var(--sp-ease);
}
.sp-link:hover { color: var(--sp-gold); }

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--sp-dur) var(--sp-ease), box-shadow var(--sp-dur) var(--sp-ease), background var(--sp-dur) var(--sp-ease);
}
.sp-btn--sm { padding: 8px 12px; font-size: .8rem; }
.sp-btn--lg { padding: 13px 22px; font-size: .95rem; }
.sp-btn--primary {
    background: var(--sp-black);
    color: #fff;
    box-shadow: 0 10px 24px rgba(26,26,26,.16);
}
.sp-btn--primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 14px 30px rgba(26,26,26,.2);
}
.sp-btn--gold {
    background: linear-gradient(135deg, var(--sp-gold), var(--sp-gold-2));
    color: var(--sp-black);
    box-shadow: 0 10px 24px rgba(200,164,90,.28);
}
.sp-btn--gold:hover {
    transform: translateY(-2px);
    color: var(--sp-black);
}
.sp-btn--ghost {
    background: transparent;
    color: var(--sp-black);
    border: 1px solid var(--sp-line-2);
}
.sp-btn--ghost:hover {
    border-color: rgba(200,164,90,.45);
    background: var(--sp-gold-soft);
    color: var(--sp-black);
}

.sp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: var(--sp-ink-3);
    background: var(--sp-bg-soft);
    border: 1px dashed var(--sp-line-2);
    border-radius: var(--sp-radius);
}

/* Topbar */
.sp-topbar {
    background: var(--sp-black);
    color: #fff;
    font-size: .82rem;
}
.sp-topbar__inner {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.sp-topbar__item {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: .92;
    color: #fff;
}
.sp-topbar__item--gold { color: var(--sp-gold-2); font-weight: 700; }
.sp-topbar__item i { color: var(--sp-gold); }

/* Vehicle finder */
.sp-vehicle-finder__card {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: calc(var(--sp-radius) + 4px);
    box-shadow: var(--sp-shadow);
    padding: clamp(18px, 3vw, 28px);
    position: relative;
    overflow: hidden;
}
.sp-vehicle-finder__card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    
}
.sp-vehicle-finder__head h2 {
    margin: 8px 0 6px;
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    font-weight: 800;
}
.sp-vehicle-finder__head p {
    margin: 0 0 18px;
    color: var(--sp-ink-3);
}
.sp-vehicle-finder__form {
    display: grid;
    gap: 14px;
}
.sp-vehicle-finder__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.sp-field {
    display: grid;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--sp-ink-2);
}
.sp-field select,
.sp-newsletter__form input {
    width: 100%;
    border: 1px solid var(--sp-line-2);
    background: var(--sp-bg-soft);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: var(--sp-ink);
    outline: none;
    transition: border-color var(--sp-dur) var(--sp-ease), box-shadow var(--sp-dur) var(--sp-ease);
}
.sp-field select:focus,
.sp-newsletter__form input:focus {
    border-color: rgba(200,164,90,.55);
    box-shadow: 0 0 0 3px var(--sp-gold-soft);
}

/* Hero */
.sp-hero-swiper {
    border-radius: calc(var(--sp-radius) + 4px);
    overflow: hidden;
    box-shadow: var(--sp-shadow-lg);
}
.sp-hero-slide {
    display: block;
    position: relative;
    aspect-ratio: 21 / 9;
    background: linear-gradient(135deg, var(--sp-black), #404040);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}
.sp-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--sp-black);
    display: block;
    transform: scale(1.02);
    transition: transform 6s linear;
}
.swiper-slide-active .sp-hero-slide img { transform: scale(1); }
.sp-hero-slide__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: clamp(16px, 3vw, 28px);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
}
.sp-hero-slide__overlay,
.sp-hero-slide__overlay h2,
.sp-hero-slide__overlay p {
    color: #fff;
}
.sp-hero-slide__overlay h2 {
    margin: 0 0 8px;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 800;
}
.sp-hero-slide__overlay p {
    margin: 0 0 12px;
    opacity: .9;
}
.sp-hero-slide--empty {
    min-height: 280px;
    display: flex;
    align-items: end;
    color: #fff;
}
.sp-hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: .45;
}
.sp-hero-swiper .swiper-pagination-bullet-active {
    background: var(--sp-gold);
    opacity: 1;
    width: 22px;
    border-radius: 999px;
}
.sp-hero-swiper .swiper-button-prev,
.sp-hero-swiper .swiper-button-next,
.sp-cats-swiper .swiper-button-prev,
.sp-cats-swiper .swiper-button-next,
.sp-products-swiper .swiper-button-prev,
.sp-products-swiper .swiper-button-next {
    color: var(--sp-black);
    background: rgba(255,255,255,.92);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--sp-shadow);
}
.sp-hero-swiper .swiper-button-prev:after,
.sp-hero-swiper .swiper-button-next:after,
.sp-cats-swiper .swiper-button-prev:after,
.sp-cats-swiper .swiper-button-next:after,
.sp-products-swiper .swiper-button-prev:after,
.sp-products-swiper .swiper-button-next:after {
    font-size: 14px;
    font-weight: 800;
}

/* Benefits */
.sp-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.sp-benefit {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
}
.sp-benefit__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--sp-gold-soft);
    color: var(--sp-gold);
    flex-shrink: 0;
}
.sp-benefit h3 {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 800;
}
.sp-benefit p {
    margin: 0;
    color: var(--sp-ink-3);
    font-size: .8rem;
}

/* Videos */
.sp-videos__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 260px);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.sp-video-card {
    border: 0;
    background: #fff;
    border-radius: var(--sp-radius);
    overflow: hidden;
    text-align: right;
    box-shadow: var(--sp-shadow);
    border: 1px solid var(--sp-line);
    cursor: pointer;
    padding: 0;
    transition: transform var(--sp-dur) var(--sp-ease), box-shadow var(--sp-dur) var(--sp-ease);
}
.sp-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-lg);
}
.sp-video-card__thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--sp-black);
}
.sp-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sp-video-card__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--sp-gold), var(--sp-gold-2));
    color: var(--sp-black);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.sp-video-card__title {
    display: block;
    padding: 12px 14px 14px;
    font-weight: 700;
    font-size: .9rem;
}

/* Categories */
.sp-cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sp-shadow);
    transition: transform var(--sp-dur) var(--sp-ease), box-shadow var(--sp-dur) var(--sp-ease), border-color var(--sp-dur) var(--sp-ease);
}
.sp-cat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200,164,90,.4);
    box-shadow: var(--sp-shadow-lg);
    color: inherit;
}
.sp-cat-card__media {
    height: 120px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #fafafa, #fff);
}
.sp-cat-card__media img {
    max-width: 80%;
    max-height: 90px;
    object-fit: contain;
}
.sp-cat-card__media i {
    font-size: 2rem;
    color: var(--sp-gold);
}
.sp-cat-card__body {
    padding: 12px 14px 16px;
    border-top: 1px solid var(--sp-line);
}
.sp-cat-card__body h3 {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 800;
}
.sp-cat-card__body span {
    color: var(--sp-ink-3);
    font-size: .8rem;
}

/* Product cards */
.sp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.sp-products-section--soft {
    background: var(--sp-bg-soft);
    padding: 28px 0;
    border-block: 1px solid var(--sp-line);
}
.sp-product-card {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--sp-dur) var(--sp-ease), box-shadow var(--sp-dur) var(--sp-ease);
    height: 100%;
}
.sp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sp-shadow-lg);
}
.sp-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #fafafa, #fff);
    overflow: hidden;
}
.sp-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 12px;
    transition: transform var(--sp-dur) var(--sp-ease);
}
.sp-product-card:hover .sp-product-card__media img { transform: scale(1.04); }
.sp-product-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--sp-gold), var(--sp-gold-2));
    color: #1a1a1a;
    font-weight: 800;
    font-size: .75rem;
    padding: 5px 10px;
    border-radius: 999px;
    z-index: 1;
}
.sp-product-card__oos {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 1;
}
.sp-product-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.sp-product-card__brand {
    color: var(--sp-ink-3);
    font-size: .75rem;
    font-weight: 700;
}
.sp-product-card__title {
    margin: 0;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.45;
    min-height: 2.7em;
}
.sp-product-card__title a {
    color: inherit;
    text-decoration: none;
}
.sp-product-card__title a:hover { color: var(--sp-gold); }
.sp-product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}
.sp-product-card__price strong {
    font-size: 1rem;
    color: var(--sp-black);
}
.sp-product-card__price small {
    font-size: .75rem;
    font-weight: 700;
    color: var(--sp-ink-3);
}
.sp-product-card__price del {
    color: var(--sp-ink-3);
    font-size: .8rem;
}
.sp-product-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.sp-product-card__actions .sp-btn { flex: 1; }
.sp-add-form { flex: 1; display: flex; }
.sp-add-form .sp-btn { width: 100%; }
.sp-product-card.is-oos { opacity: .78; }
.is-oos-text { color: #ef4444; font-weight: 800; }

/* Promo */
.sp-promo__banner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: clamp(18px, 3vw, 28px);
    border-radius: calc(var(--sp-radius) + 4px);
    background:
        radial-gradient(500px 200px at 0% 0%, rgba(200,164,90,.2), transparent 60%),
        linear-gradient(135deg, var(--sp-black), #404040);
    color: #fff;
    box-shadow: var(--sp-shadow-lg);
}
.sp-promo__content,
.sp-promo__content h2,
.sp-promo__content p {
    color: #fff;
}
.sp-promo__content h2 {
    margin: 8px 0 6px;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    font-weight: 800;
}
.sp-promo__content p {
    margin: 0 0 14px;
    opacity: .85;
}

/* Vehicles / brands */
.sp-vehicles__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.sp-vehicle-card,
.sp-brand-card {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sp-shadow);
    overflow: hidden;
    transition: transform var(--sp-dur) var(--sp-ease), box-shadow var(--sp-dur) var(--sp-ease), border-color var(--sp-dur) var(--sp-ease);
    text-align: center;
}
.sp-vehicle-card:hover,
.sp-brand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200,164,90,.4);
    box-shadow: var(--sp-shadow-lg);
    color: inherit;
}
.sp-vehicle-card__media,
.sp-brand-card {
    display: grid;
    place-items: center;
}
.sp-vehicle-card__media {
    height: 110px;
    background: linear-gradient(180deg, #fafafa, #fff);
}
.sp-vehicle-card__media img,
.sp-brand-card img {
    max-width: 80%;
    max-height: 78px;
    object-fit: contain;
}
.sp-vehicle-card__media i,
.sp-brand-card i {
    font-size: 1.8rem;
    color: var(--sp-gold);
}
.sp-vehicle-card span,
.sp-brand-card span {
    display: block;
    padding: 10px 8px 14px;
    font-weight: 800;
    font-size: .85rem;
}
.sp-brand-card {
    min-height: 140px;
    padding: 16px 10px;
    gap: 10px;
}

/* Stats */
.sp-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.sp-stat {
    text-align: center;
    padding: 22px 12px;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
}
.sp-stat__num {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--sp-gold);
    margin-bottom: 4px;
}
.sp-stat span {
    color: var(--sp-ink-3);
    font-weight: 700;
    font-size: .9rem;
}

/* Blog */
.sp-blog__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.sp-blog-card {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--sp-dur) var(--sp-ease);
}
.sp-blog-card:hover { transform: translateY(-4px); }
.sp-blog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--sp-bg-muted);
    overflow: hidden;
}
.sp-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sp-blog-card__placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--sp-ink-3);
    font-size: 1.8rem;
}
.sp-blog-card__body {
    padding: 14px;
    display: grid;
    gap: 8px;
}
.sp-blog-card__body h3 {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.45;
}
.sp-blog-card__body h3 a {
    color: inherit;
    text-decoration: none;
}
.sp-blog-card__body p {
    margin: 0;
    color: var(--sp-ink-3);
    font-size: .85rem;
    line-height: 1.6;
}

/* Requests */
.sp-requests__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 250px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.sp-request-card {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 14px;
    box-shadow: var(--sp-shadow);
    position: relative;
}
.sp-request-card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0ea5e9;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
}
.sp-request-card__img,
.sp-request-card__placeholder {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--sp-bg-soft);
    margin-bottom: 10px;
}
.sp-request-card__placeholder {
    display: grid;
    place-items: center;
    color: var(--sp-ink-3);
    font-size: 1.6rem;
}
.sp-request-card h3 {
    margin: 0 0 8px;
    font-size: .92rem;
    font-weight: 800;
}
.sp-request-card__meta {
    color: var(--sp-ink-3);
    font-size: .8rem;
    margin-bottom: 6px;
}

/* Trust */
.sp-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.sp-trust-item {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 22px 12px;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sp-shadow);
    font-weight: 800;
}
.sp-trust-item i {
    color: var(--sp-gold);
    font-size: 1.5rem;
}
.sp-trust-item img {
    max-height: 48px;
    object-fit: contain;
}

/* Modal */
.sp-modal[hidden] { display: none !important; }
.sp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
}
.sp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,.72);
    backdrop-filter: blur(8px);
}
.sp-modal__dialog {
    position: relative;
    width: min(92vw, 900px);
    background: var(--sp-black);
    color: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.08);
    animation: spFadeUp .28s var(--sp-ease);
}
.sp-modal__close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}
.sp-modal__player {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}
.sp-modal__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.sp-modal__title {
    margin: 0;
    padding: 14px 16px;
    font-size: 1rem;
    color: #fff;
}
@keyframes spFadeUp {
    from { opacity: 0; transform: translate3d(0, 16px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Floating */
.sp-float {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 50;
    display: grid;
    gap: 10px;
}
.sp-float__btn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    cursor: pointer;
    transition: transform var(--sp-dur) var(--sp-ease);
}
.sp-float__btn:hover { transform: translateY(-2px); color: #fff; }
.sp-float__btn--wa { background: #25d366; }
.sp-float__btn--call { background: var(--sp-black); }
.sp-float__btn--top {
    background: linear-gradient(135deg, var(--sp-gold), var(--sp-gold-2));
    color: var(--sp-black);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}
.sp-float__btn--top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Reveal */
.sp-reveal {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity .45s var(--sp-ease), transform .45s var(--sp-ease);
}
.sp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .sp-products-grid,
    .sp-blog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sp-vehicles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sp-benefits__grid,
    .sp-stats__grid,
    .sp-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    :root { --sp-container: 100%; }
    .sp-vehicle-finder__fields { grid-template-columns: 1fr; }
    .sp-products-grid,
    .sp-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-vehicles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sp-promo__banner,
    .sp-newsletter__card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .sp-newsletter__form {
        justify-content: center;
        min-width: 0;
    }
    .sp-newsletter__form input { max-width: none; flex: 1 1 100%; }
    .sp-hero-slide { aspect-ratio: 16 / 10; }
    .sp-topbar__inner { gap: 14px; }
    .sp-product-card__actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .sp-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sp-blog__grid { grid-template-columns: 1fr; }
    .sp-vehicles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-benefits__grid { grid-template-columns: 1fr; }
    .sp-stats__grid,
    .sp-trust__grid { grid-template-columns: 1fr 1fr; }
    .sp-float { left: 12px; bottom: 50px; }
}

@media (hover: none) and (pointer: coarse) {
    .sp-product-card:hover,
    .sp-cat-card:hover,
    .sp-vehicle-card:hover,
    .sp-brand-card:hover,
    .sp-video-card:hover,
    .sp-blog-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .sp-reveal { opacity: 1; transform: none; }
}
