﻿:root {
    --bg: #f4f6f8;
    --text: #16202b;
    --muted: #5e6c7b;
    --card: #ffffff;
    --primary: #3d5f7e;
    --primary-dark: #2f4c66;
    --accent: #5f7891;
    --shadow: 0 14px 30px rgba(13, 27, 42, 0.12);
    --radius: 0px;
    --theme-body-bg: linear-gradient(160deg, #eef2f4 0%, #f7f7f7 45%, #eef5f3 100%);
    --theme-storefront-body-bg: radial-gradient(circle at top left, rgba(199, 62, 29, 0.12), transparent 28%), radial-gradient(circle at top right, rgba(24, 35, 52, 0.18), transparent 24%), linear-gradient(180deg, #f5f5f1 0%, #edf1f4 55%, #f8f7f2 100%);
    --theme-footer-bg: #0f1f2e;
    --theme-footer-text: #dce6ee;
    --theme-footer-link: #e8f6ff;
    --theme-footer-border: rgba(255, 255, 255, 0.12);
    --theme-panel-bg: #ffffff;
    --theme-panel-bg-alt: #f6f8fa;
    --theme-panel-border: #dfe5ea;
    --theme-panel-shadow: 0 14px 30px rgba(13, 27, 42, 0.12);
    --theme-panel-text: #16202b;
    --theme-panel-muted: #5e6c7b;
    --theme-panel-soft-bg: #eef4f3;
    --theme-panel-soft-border: #c8dad5;
    --theme-panel-soft-text: #18443c;
    --theme-panel-soft-hover: #e1eeeb;
    --theme-filter-bg: linear-gradient(135deg, rgba(18, 30, 42, 0.62) 0%, rgba(27, 43, 58, 0.54) 100%);
    --theme-filter-border: rgba(255, 255, 255, 0.14);
    --theme-filter-title: #f7fbff;
    --theme-filter-muted: rgba(240, 247, 252, 0.78);
    --theme-product-bg: #ffffff;
    --theme-product-border: #e1e6ea;
    --theme-product-shadow: 0 12px 24px rgba(16, 29, 42, 0.07);
    --theme-product-media-bg: linear-gradient(180deg, #f0f4f7 0%, #e2e7eb 100%);
    --theme-badge-bg: rgba(255, 255, 255, 0.9);
    --theme-badge-text: #213449;
    --theme-meta-bg: #f1f4f6;
    --theme-meta-text: #33475c;
    --theme-tags-bg: #ffffff;
    --theme-tags-border: #d1d8de;
    --theme-tags-text: #26374a;
    --theme-highlight-card-bg: rgba(255, 255, 255, 0.08);
    --theme-highlight-card-border: rgba(255, 255, 255, 0.12);
    --theme-highlight-card-text: #ffffff;
    --theme-highlight-card-muted: rgba(255, 255, 255, 0.72);
    --theme-topbar-border: rgba(255, 255, 255, 0.34);
    --theme-top-link: rgba(255, 255, 255, 0.88);
    --theme-top-link-active: #ffffff;
    --theme-topbar-cart-bg: rgba(255, 255, 255, 0.1);
    --theme-topbar-cart-border: rgba(255, 255, 255, 0.16);
    --theme-button-gradient: linear-gradient(135deg, #1d3449 0%, #2d4f6e 100%);
    --theme-button-gradient-hover: linear-gradient(135deg, #233e57 0%, #376082 100%);
    --theme-button-alt-gradient: linear-gradient(135deg, #5d7691 0%, #405972 100%);
    --theme-button-alt-gradient-hover: linear-gradient(135deg, #6f88a0 0%, #4d677f 100%);
    --theme-button-text: #ffffff;
    --theme-button-em-text: #ffe7b8;
    --theme-button-shadow: 0 14px 28px rgba(17, 31, 44, 0.16);
    --theme-button-alt-shadow: 0 14px 24px rgba(17, 31, 44, 0.14);
    --theme-search-card-bg: rgba(245, 246, 242, 0.95);
    --theme-search-card-text: #172333;
    --theme-search-card-shadow: 0 28px 55px rgba(7, 14, 20, 0.26);
    --theme-search-muted: #596879;
    --theme-kicker-bg: rgba(255, 255, 255, 0.1);
    --theme-kicker-border: rgba(255, 255, 255, 0.18);
    --theme-kicker-text: #fff2df;
    --theme-detail-bg: #eef4f3;
    --theme-detail-border: #c8dad5;
    --theme-detail-text: #18443c;
    --theme-detail-hover-bg: #e1eeeb;
    --theme-detail-hover-text: #18443c;
    --theme-hero-nav-bg: rgba(12, 23, 34, 0.64);
    --theme-hero-nav-hover-bg: rgba(18, 34, 49, 0.84);
    --theme-hero-nav-border: rgba(255, 255, 255, 0.24);
    --theme-hero-dot-bg: rgba(255, 255, 255, 0.34);
    --theme-hero-dot-border: rgba(255, 255, 255, 0.82);
    --theme-hero-dot-active-bg: #ffffff;
    --theme-social-bg: #1c3347;
    --theme-social-border: #2a4863;
    --theme-social-text: #ecf5ff;
    --theme-social-hover-bg: #254561;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--theme-body-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes pageRiseIn {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.panel,
.storefront-section,
.listing-filter-band,
.account-section,
.account-dashboard-card,
.account-summary-card,
.vehicle-detail-panel,
.checkout-summary,
.checkout-form-panel,
.card,
.storefront-product-card,
.storefront-mini-card,
.checkout-info-grid article,
.checkout-item,
.checkout-total,
.account-order-item,
.account-cart-item {
    animation: pageRiseIn 0.68s cubic-bezier(0.2, 0.75, 0.2, 1) both;
    animation-delay: calc(var(--reveal-index, 0) * 55ms);
    will-change: transform, opacity;
}

.site-footer {
    min-height: 112px;
    background: var(--theme-footer-bg);
    color: var(--theme-footer-text);
    border-top: 1px solid var(--theme-footer-border);
    display: flex;
    align-items: center;
    margin-top: auto;
}

.site-footer-inner {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 1.25rem 0 1.05rem;
    line-height: 1.25;
    font-size: 0.92rem;
}

.site-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.site-footer-company {
    display: grid;
    gap: 0.18rem;
    color: var(--theme-footer-text);
    font-size: 0.96rem;
}

.site-footer-company strong {
    color: var(--theme-footer-link);
    font-size: 1.06rem;
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.site-footer-social-empty {
    min-height: 1px;
}

.footer-social-btn {
    display: inline-grid;
    place-items: center;
    background: var(--theme-social-bg);
    border: 1px solid var(--theme-social-border);
    color: var(--theme-social-text);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 0;
    text-decoration: none;
}

.footer-social-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.footer-social-btn:hover {
    background: var(--theme-social-hover-bg);
    transform: translateY(-1px);
}

.site-footer-bottom {
    margin-top: 0.45rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--theme-footer-border);
    text-align: center;
}

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

.site-footer-inner a {
    color: var(--theme-footer-link);
    text-decoration: underline;
}

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

.hero {
    min-height: 29vh;
    padding: 0.85rem clamp(1rem, 3vw, 3rem) 1.35rem;
    background:
        linear-gradient(180deg, rgba(2, 8, 15, 0.78) 0%, rgba(8, 18, 30, 0.58) 34%, rgba(13, 28, 44, 0.18) 100%),
        url('https://images.unsplash.com/photo-1494905998402-395d579af36f?auto=format&fit=crop&w=1600&q=80') center/cover;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 38%, rgba(89, 155, 225, 0.16) 100%);
    pointer-events: none;
}

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

.site-contact-strip {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 0.32rem 0 0;
}

.site-contact-strip-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
}

.site-contact-strip-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.site-contact-strip-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    min-height: 16px;
    padding: 0;
    color: #f4fbff;
    line-height: 1.05;
}

.site-contact-strip-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-contact-strip-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-contact-strip-link strong {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.05;
}

.site-contact-strip-cart {
    display: inline-grid;
    justify-items: end;
    gap: 0.08rem;
    min-width: 156px;
    padding: 0.42rem 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--theme-button-gradient);
    color: var(--theme-button-text);
    text-align: right;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-contact-strip-cart:hover {
    color: var(--theme-button-text);
    text-decoration: none;
    background: var(--theme-button-gradient-hover);
}

.site-contact-strip-cart strong {
    color: var(--theme-button-text);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.05;
}

.site-contact-strip-cart em {
    font-style: normal;
    color: var(--theme-button-em-text);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.05;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 0.58rem 0 0.5rem;
    gap: 1rem;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--theme-topbar-border);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 40px;
    flex: 0 0 auto;
}

.site-brand-name {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-top-link-active);
}

.site-logo {
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 0;
}

.site-logo-preview {
    height: 34px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f7f9;
    border: 1px solid #d4dde4;
    padding: 0.18rem 0.28rem;
}

.top-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.top-link {
    position: relative;
    padding: 0.2rem 0;
    border: none;
    color: var(--theme-top-link);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.top-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.96rem;
    width: 100%;
    height: 1px;
    border-radius: 0;
    background: var(--theme-top-link-active);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.top-link.active,
.top-link:hover {
    color: var(--theme-top-link-active);
    transform: translateY(-1px);
}

.top-link.active::after,
.top-link:hover::after {
    transform: scaleX(1);
}

.top-link-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0;
    background: var(--theme-topbar-cart-bg);
    border: 1px solid var(--theme-topbar-cart-border);
    line-height: 1;
    font-size: 0.92rem;
}

.top-link-cart::after {
    bottom: -0.9rem;
}

.hero-content {
    width: min(1320px, 100%);
    max-width: 1320px;
    margin: 0.26rem auto 0;
    padding: 0.15rem 0 0.45rem;
}

.hero-home-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.hero-copy-block {
    min-width: 0;
}

.hero-compact {
    min-height: 17vh;
    padding-bottom: 0.85rem;
}

.hero-compact .hero-content {
    margin-top: 0.32rem;
}

.listing-main {
    margin-top: 0.4rem;
    position: relative;
    z-index: 3;
}

.listing-main-wide {
    width: min(1500px, calc(100% - 2.5rem));
    margin: 0.4rem auto 2.2rem;
    display: grid;
    gap: 1.25rem;
}

.page-main {
    margin-top: -1.05rem;
    position: relative;
    z-index: 3;
}

.filter-panel-elevated {
    box-shadow: 0 18px 36px rgba(16, 33, 51, 0.14);
}

.hero h1 {
    margin: 0 0 0.55rem;
    max-width: none;
    font-size: clamp(2.1rem, 5vw, 4.5rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-family: "Avenir Next Condensed", "Bahnschrift Condensed", "Segoe UI", sans-serif;
    white-space: nowrap;
}

.hero p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    letter-spacing: 0.02em;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 54px;
    padding: 0.95rem 1.5rem;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-button-alt-gradient);
    color: var(--theme-button-text);
    backdrop-filter: blur(10px);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.hero-cta-button:hover {
    background: var(--theme-button-alt-gradient-hover);
    border-color: var(--theme-panel-border);
    color: var(--theme-button-text);
    transform: translateY(-2px);
}

.home-media-slider {
    position: relative;
    width: 100%;
    margin: 8px auto 0.8rem;
    overflow: hidden;
    background: transparent;
}

.home-media-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    z-index: 9;
    pointer-events: none;
}

.home-media-slider-track {
    position: relative;
    height: clamp(280px, 38vw, 620px);
}

.home-media-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.5s ease, transform 0.6s ease;
    pointer-events: none;
}

.home-media-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.home-media-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: transparent;
}

.home-media-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 0.8rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    z-index: 8;
}

.home-media-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.38);
    padding: 0;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(7, 18, 31, 0.32);
}

.home-media-slider-dot:hover,
.home-media-slider-dot:focus-visible {
    background: #fff;
    border-color: #fff;
}

.home-media-slider-dot.is-active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.home-vehicle-hero-slider {
    position: relative;
    width: min(1152px, 72vw);
    margin: 10px auto 1rem;
    overflow: hidden;
    animation: homeVehicleHeroIntro 0.8s ease-out both;
}

.home-vehicle-hero-track {
    position: relative;
    min-height: clamp(243px, 29.7vw, 418px);
}

.home-vehicle-hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.55s ease;
    border: 1px solid rgba(24, 42, 60, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(234, 240, 245, 0.98));
    box-shadow: 0 22px 48px rgba(14, 27, 40, 0.16);
}

.home-vehicle-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.home-vehicle-hero-media {
    position: relative;
    min-height: 100%;
    background: #dce5ec;
}

.home-vehicle-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 18, 28, 0.04), rgba(9, 18, 28, 0));
    pointer-events: none;
}

.home-vehicle-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 42%;
}

.home-vehicle-hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.6rem;
    align-items: stretch;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(240, 245, 250, 0.96)),
        repeating-linear-gradient(90deg, rgba(52, 90, 120, 0.03) 0, rgba(52, 90, 120, 0.03) 1px, transparent 1px, transparent 24px);
}

.home-vehicle-hero-copy {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    min-width: 0;
}

.home-vehicle-hero-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.38rem 0.7rem;
    border: 1px solid rgba(52, 90, 120, 0.14);
    border-radius: 4px;
    background: rgba(52, 90, 120, 0.08);
    color: #20384d;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-vehicle-hero-panel h2 {
    margin: 0;
    color: #122637;
    width: 90%;
    max-width: 90%;
    font-size: clamp(1.35rem, 1.85vw, 2.15rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-vehicle-hero-subtitle {
    margin: 0;
    color: #4b6073;
    font-size: 1rem;
    font-weight: 700;
}

.home-vehicle-hero-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-vehicle-hero-specs span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(52, 90, 120, 0.12);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
    color: #22394d;
    font-size: 0.84rem;
    font-weight: 700;
}

.home-vehicle-hero-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.home-vehicle-hero-details span {
    display: grid;
    gap: 0.12rem;
    padding: 0.62rem 0.68rem;
    border: 1px solid rgba(52, 90, 120, 0.12);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.62);
    color: #30485e;
    font-size: 0.82rem;
    font-weight: 700;
}

.home-vehicle-hero-details strong {
    color: #617587;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-vehicle-hero-aside {
    display: block;
    margin-top: auto;
}

.home-vehicle-hero-cta-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

.home-vehicle-hero-price-card {
    display: grid;
    gap: 0.28rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(52, 90, 120, 0.16);
    border-left: 5px solid #345a78;
    border-radius: 4px;
    background: linear-gradient(180deg, #f8fbfd 0%, #eaf1f7 100%);
    box-shadow: 0 14px 28px rgba(18, 38, 55, 0.08);
    flex: 0 0 auto;
}

.home-vehicle-hero-price-label {
    color: #5d7184;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-vehicle-hero-price-value {
    color: var(--theme-panel-text);
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.home-vehicle-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 0.88rem 1rem;
    border: 1px solid var(--theme-topbar-cart-border);
    border-radius: 4px;
    background: var(--theme-button-gradient);
    color: var(--theme-button-text);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 1 1 auto;
    min-width: 220px;
}

.home-vehicle-hero-link:hover {
    background: var(--theme-button-gradient-hover);
    color: var(--theme-button-text);
}

.home-vehicle-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid var(--theme-hero-nav-border);
    background: var(--theme-hero-nav-bg);
    color: #fff;
    font-size: 1.3rem;
}

.home-vehicle-hero-nav.prev {
    left: 1rem;
}

.home-vehicle-hero-nav.next {
    right: 1rem;
}

.home-vehicle-hero-nav:hover {
    background: var(--theme-hero-nav-hover-bg);
}

.home-vehicle-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 3;
}

.home-vehicle-hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--theme-hero-dot-border);
    background: var(--theme-hero-dot-bg);
}

.home-vehicle-hero-dot.is-active,
.home-vehicle-hero-dot:hover {
    background: var(--theme-hero-dot-active-bg);
    border-color: var(--theme-hero-dot-active-bg);
}

@keyframes homeVehicleHeroIntro {
    from {
        opacity: 0;
        transform: translateX(48px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

input,
textarea,
select,
button {
    font: inherit;
    border-radius: 0;
    border: 1px solid #d2d9df;
    padding: 0.72rem 0.9rem;
}

button {
    border: none;
    background: var(--theme-button-gradient);
    color: var(--theme-button-text);
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
}

button:hover {
    background: var(--theme-button-gradient-hover);
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.1rem;
    border-radius: 0;
    background: var(--theme-button-gradient);
    color: var(--theme-button-text);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: var(--theme-button-shadow);
}

.button-primary:hover {
    color: var(--theme-button-text);
    background: var(--theme-button-gradient-hover);
}

.button-primary-orange {
    background: var(--theme-button-alt-gradient);
    box-shadow: var(--theme-button-alt-shadow);
}

.button-primary-orange:hover {
    background: var(--theme-button-alt-gradient-hover);
}

.container {
    width: min(1120px, 92%);
    margin: 0.4rem auto 2.2rem;
    display: grid;
    gap: 1rem;
}

.panel {
    background: var(--theme-panel-bg);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--theme-panel-shadow);
}

.account-main {
    width: min(1120px, calc(100% - 1.4rem));
    margin-top: 0.45rem;
}

.account-panel {
    border: 1px solid var(--theme-panel-border);
    background: linear-gradient(180deg, var(--theme-panel-bg) 0%, var(--theme-panel-bg-alt) 100%);
}

.account-shell {
    display: grid;
    gap: 1rem;
}

.account-intro h2 {
    margin: 0.35rem 0 0.35rem;
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: var(--theme-panel-text);
}

.account-shell-compact {
    gap: 0.8rem;
}

.account-panel-login {
    width: min(560px, 100%);
    justify-self: center;
}

.account-main-login {
    width: min(560px, calc(100% - 1.4rem));
}

.account-main-login .account-form-grid {
    grid-template-columns: 1fr;
}

.account-main-login .account-section {
    padding: 0.85rem;
}

.account-dashboard {
    width: min(1240px, calc(100% - 1.4rem));
}

.account-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 1rem;
}

.account-dashboard-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.account-dashboard-primary,
.account-dashboard-side {
    min-width: 0;
}

.account-dashboard-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.account-dashboard-card {
    display: grid;
    gap: 0.9rem;
}

.account-empty-state {
    margin: 0;
    color: var(--theme-panel-muted);
}

.account-order-list,
.account-cart-list {
    display: grid;
    gap: 0.7rem;
}

.account-order-list-wide,
.account-cart-list-wide {
    gap: 0.75rem;
}

.account-order-item,
.account-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-panel-bg-alt);
    box-shadow: var(--theme-panel-shadow);
}

.account-order-item strong,
.account-cart-copy strong {
    display: block;
    color: var(--theme-panel-text);
}

.account-order-item span,
.account-cart-copy span {
    display: block;
    margin-top: 0.2rem;
    color: var(--theme-panel-muted);
    font-size: 0.85rem;
}

.account-order-item em,
.account-cart-item em {
    font-style: normal;
    font-weight: 800;
    color: var(--theme-panel-text);
    white-space: nowrap;
}

.account-cart-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
}

.account-cart-thumb {
    width: 72px;
    height: 72px;
    padding: 4px;
    border-radius: 14px;
    background: var(--theme-product-media-bg);
    border: 1px solid var(--theme-panel-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.account-cart-thumb .account-cart-product-link {
    display: block;
    width: 100%;
    height: 100%;
}

.account-cart-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.account-cart-copy {
    min-width: 0;
}

.account-cart-title-row .account-cart-product-link {
    color: var(--theme-panel-text);
    text-decoration: none;
    min-width: 0;
}

.account-cart-title-row .account-cart-product-link:hover {
    text-decoration: underline;
}

.account-cart-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.account-cart-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0.08rem 0.28rem;
    border-radius: 999px;
    background: #b51f1f;
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.account-cart-stock-badge,
.account-cart-stock-badge * {
    color: #ffffff !important;
}

.account-cart-item-is-out {
    background: linear-gradient(180deg, #fff6f6 0%, #fef0f0 100%);
    border-color: #e2baba;
}

.account-cart-item-is-out .account-cart-title-row .account-cart-product-link {
    color: #8f2c2c;
}

.account-cart-quantity-line {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.account-cart-qty-form {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.account-cart-qty-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 0;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-panel-bg-alt);
    color: var(--theme-panel-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.account-cart-quantity-value {
    white-space: nowrap;
}

.account-cart-actions {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
}

.account-cart-remove-btn {
    padding: 0.42rem 0.65rem;
    border-radius: 0;
    background: var(--theme-panel-bg-alt);
    color: var(--theme-panel-muted);
    border: 1px solid var(--theme-panel-border);
    font-size: 0.78rem;
    font-weight: 700;
}

.account-cart-remove-btn:hover {
    background: var(--theme-panel-soft-hover);
    color: var(--theme-panel-text);
}

.account-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.35rem;
    border-top: 1px solid var(--theme-panel-border);
    color: var(--theme-panel-text);
    font-weight: 800;
}

.account-checkout-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.05rem;
}

.account-checkout-actions .button-primary {
    margin-left: auto;
    min-height: 48px;
    padding: 0.72rem 0.9rem;
    border-radius: 14px;
    background: var(--theme-button-gradient);
    box-shadow: var(--theme-button-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-checkout-actions .button-primary:hover {
    background: var(--theme-button-gradient-hover);
}

.account-checkout-actions .storefront-inline-link {
    color: var(--theme-panel-text);
    font-weight: 700;
}

.account-checkout-actions .storefront-inline-link:hover {
    color: var(--theme-panel-text);
    text-decoration: underline;
}

.account-dashboard-links {
    margin-top: 0.45rem;
}

.account-page-nav {
    margin-top: 0.35rem;
}

.account-section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.account-section-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.62rem 1rem;
    border-radius: 0;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-panel-bg-alt);
    color: var(--theme-panel-text);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.account-section-tab:hover {
    background: var(--theme-panel-soft-hover);
    color: var(--theme-panel-text);
}

.account-section-tab.is-active {
    background: var(--theme-button-gradient);
    border-color: var(--theme-panel-border);
    color: var(--theme-button-text);
}

.account-section-tab.is-active:hover {
    color: var(--theme-button-text);
}

.account-order-item-wide {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.account-order-item-is-pending {
    border-left: 5px solid var(--theme-button-alt-gradient-hover);
    background: linear-gradient(180deg, var(--theme-panel-soft-bg) 0%, var(--theme-panel-bg) 100%);
}

.account-order-item-is-paid {
    border-left: 5px solid var(--theme-button-gradient);
    background: linear-gradient(180deg, var(--theme-panel-bg-alt) 0%, var(--theme-panel-bg) 100%);
}

.account-order-copy {
    min-width: 0;
}

.account-order-copy span {
    display: block;
    margin-top: 0.2rem;
    color: var(--theme-panel-muted);
    font-size: 0.85rem;
}

.account-order-state-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    align-self: flex-start;
    min-height: 22px;
    margin-top: 0.25rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-panel-bg-alt);
    color: var(--theme-panel-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-order-item-is-pending .account-order-state-badge {
    border-color: rgba(201, 74, 34, 0.25);
    background: rgba(201, 74, 34, 0.08);
    color: #9a3319;
}

.account-order-item-is-paid .account-order-state-badge {
    border-color: rgba(31, 122, 67, 0.25);
    background: rgba(31, 122, 67, 0.08);
    color: #1f7a43;
}

.account-order-side {
    display: grid;
    justify-items: end;
    gap: 0.5rem;
    min-width: 220px;
}

.account-order-total {
    display: grid;
    justify-items: end;
    gap: 0.15rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #d9e1e7;
    background: linear-gradient(180deg, #f7fbfd 0%, #edf4f8 100%);
    width: 100%;
    box-sizing: border-box;
}

.account-order-total span {
    color: #6a7a89;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-order-total strong {
    color: #0f2436;
    font-size: 1.26rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.account-order-actions {
    display: grid;
    gap: 0.45rem;
    justify-items: stretch;
    width: 100%;
}

.account-order-actions .detail-btn,
.account-order-actions .button-primary {
    min-height: 44px;
    width: 100%;
}

.account-order-paid-label {
    color: var(--theme-panel-muted);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.25rem 0;
}

.account-empty-cart {
    display: grid;
    gap: 0.9rem;
}

.account-cart-page {
    width: min(1320px, calc(100% - 1.4rem));
}

.account-cart-shell {
    display: grid;
    gap: 1rem;
}

.account-orders-page {
    width: min(1240px, calc(100% - 1.4rem));
}

.checkout-main {
    width: min(1240px, calc(100% - 1.4rem));
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 1rem;
}

.checkout-summary,
.checkout-form-panel {
    display: grid;
    gap: 0.45rem;
}

.checkout-summary h2,
.checkout-form-panel h2 {
    margin: 0;
    color: #0c1724;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    line-height: 1.02;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.checkout-summary .storefront-section-kicker {
    background: rgba(19, 35, 49, 0.08);
    border-color: rgba(19, 35, 49, 0.16);
    color: #132335;
    display: inline-flex;
    align-items: center;
    align-self: start;
    width: fit-content;
    min-height: 0;
    height: auto;
    padding: 0.18rem 0.58rem;
    line-height: 1;
    font-size: 0.66rem;
    letter-spacing: 0.11em;
}

.checkout-form-panel .storefront-section-kicker {
    background: rgba(19, 35, 49, 0.08);
    border-color: rgba(19, 35, 49, 0.16);
    color: #132335;
    display: inline-flex;
    align-items: center;
    align-self: start;
    width: fit-content;
    min-height: 0;
    height: auto;
    padding: 0.18rem 0.58rem;
    line-height: 1;
    font-size: 0.66rem;
    letter-spacing: 0.11em;
}

.checkout-summary {
    background: linear-gradient(180deg, var(--theme-panel-bg) 0%, var(--theme-panel-bg-alt) 100%);
    border: 1px solid var(--theme-panel-border);
    border-radius: 18px;
    padding: 0.72rem;
    box-shadow: var(--theme-panel-shadow);
}

.checkout-item-list {
    display: grid;
    gap: 0.22rem;
}

.checkout-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.34rem 0.68rem;
    border-radius: 12px;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-panel-bg);
}

.checkout-item.checkout-item--text {
    grid-template-columns: minmax(0, 1fr) auto;
}

.checkout-item-thumb {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--theme-panel-border);
    background: linear-gradient(180deg, var(--theme-panel-bg-alt) 0%, var(--theme-panel-soft-bg) 100%);
}

.checkout-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.checkout-item-copy {
    min-width: 0;
    display: grid;
    gap: 0.04rem;
}

.checkout-item-copy strong {
    color: var(--theme-panel-text);
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.checkout-item-copy strong span:first-child {
    display: inline;
}

.checkout-item.checkout-item--text .checkout-item-copy strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.checkout-item-copy span {
    color: var(--theme-panel-muted);
    font-size: 0.84rem;
}

.checkout-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 0;
    flex: 0 0 auto;
    margin-left: 0.45rem;
    padding: 0.08rem 0.28rem;
    border-radius: 999px;
    background: #b51f1f;
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.checkout-item em {
    font-style: normal;
    font-weight: 800;
    color: var(--theme-panel-text);
    white-space: nowrap;
    justify-self: end;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 0.68rem;
    border-top: 1px solid var(--theme-panel-border);
    color: var(--theme-panel-text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1;
    min-height: 0;
}

.checkout-total-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.shipping-display-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.checkout-total-icon {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    background: var(--theme-panel-bg-alt);
    color: var(--theme-panel-text);
}

.checkout-total-subtotal {
    background: linear-gradient(180deg, var(--theme-panel-bg) 0%, var(--theme-panel-bg-alt) 100%);
}

.checkout-total-shipping {
    background: linear-gradient(180deg, var(--theme-panel-bg-alt) 0%, var(--theme-panel-soft-bg) 100%);
}

.checkout-total-grand {
    background: linear-gradient(180deg, var(--theme-panel-soft-bg) 0%, var(--theme-panel-soft-hover) 100%);
    border-top: 3px solid var(--theme-panel-soft-border);
    font-size: 1.28rem;
    padding-top: 0.42rem;
    padding-bottom: 0.38rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(24, 80, 56, 0.08);
}

.checkout-total-grand .checkout-total-icon {
    width: 2.05rem;
    height: 2.05rem;
    background: var(--theme-button-gradient);
    color: var(--theme-button-text);
    font-size: 1.08rem;
}

.checkout-total-grand strong {
    color: var(--theme-panel-text);
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.checkout-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.checkout-info-grid article {
    display: grid;
    gap: 0.15rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid var(--theme-panel-border);
    border-radius: 14px;
    background: var(--theme-panel-bg-alt);
}

.checkout-info-grid strong {
    color: var(--theme-panel-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-info-grid span {
    color: var(--theme-panel-text);
    font-weight: 700;
}

.checkout-action-form {
    display: grid;
    gap: 0.85rem;
}

.checkout-action-form textarea {
    min-height: 140px;
    resize: vertical;
}

.checkout-hint {
    display: grid;
    gap: 0.25rem;
    padding: 0.88rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-panel-bg-alt);
    color: var(--theme-panel-text);
}

.checkout-hint strong {
    color: var(--theme-panel-text);
    font-size: 0.9rem;
}

.checkout-hint code {
    display: inline-block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.payment-gateway-shell {
    display: grid;
    gap: 0.6rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--theme-panel-border);
    background: linear-gradient(180deg, var(--theme-panel-bg) 0%, var(--theme-panel-bg-alt) 100%);
}

.payment-gateway-shell strong {
    color: var(--theme-panel-text);
    font-size: 0.92rem;
}

.payment-gateway-status {
    min-height: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #516170;
}

.payment-gateway-status-info {
    color: #516170;
}

.payment-gateway-status-success {
    color: #126c39;
}

.payment-gateway-status-error {
    color: #9d341f;
}

.payment-method-stack {
    display: grid;
    gap: 0.75rem;
}

.payment-method-card {
    display: grid;
    gap: 0.6rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid #e0e7ed;
    background: #ffffff;
}

.payment-method-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.payment-method-label {
    color: #12202f;
    font-size: 0.95rem;
    font-weight: 800;
}

.payment-method-meta {
    color: #64788a;
    font-size: 0.83rem;
}

.paypal-buttons-shell {
    min-height: 150px;
}

.paypal-buttons-shell-secondary {
    min-height: 62px;
}

.payment-wallet-section {
    display: grid;
    gap: 0.45rem;
}

.payment-wallet-button-shell {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-wallet-button-shell #apple-pay-button {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: pay;
    -apple-pay-button-style: black;
    display: inline-block;
    width: min(260px, 100%);
    height: 44px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.payment-gateway-note {
    margin: 0;
    color: #5c6e7d;
    font-size: 0.9rem;
    line-height: 1.35;
}

.checkout-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
    width: 100%;
}

.checkout-panel-actions .checkout-back-link {
    margin-right: auto;
}

.checkout-panel-actions .button-primary {
    margin-left: auto;
    min-height: 48px;
    padding: 0.72rem 0.9rem;
    border-radius: 0;
    background: var(--theme-button-gradient);
    box-shadow: var(--theme-button-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout-panel-actions .button-primary:hover {
    background: var(--theme-button-gradient-hover);
}

.checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-panel-bg-alt);
    color: var(--theme-panel-text);
    font-weight: 800;
}

.checkout-back-link:hover {
    color: var(--theme-panel-text);
    background: var(--theme-panel-soft-hover);
}

.checkout-hint-compact {
    gap: 0.2rem;
}

.shipping-help-badge {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 1px solid var(--theme-panel-muted);
    background: var(--theme-panel-bg);
    color: var(--theme-panel-muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    flex: 0 0 auto;
}

.field-help {
    display: block;
    margin-top: 0.35rem;
    color: var(--theme-panel-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.checkout-empty {
    display: grid;
    gap: 0.75rem;
    width: min(760px, 100%);
    justify-self: center;
}

.checkout-empty h2 {
    margin: 0;
    color: var(--theme-panel-text);
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.panel,
.account-section,
.account-summary-card,
.account-order-item,
.account-cart-item,
.account-toggle-row,
.account-alert,
.account-section-tab,
.checkout-summary,
.checkout-form-panel,
.checkout-hint,
.payment-gateway-shell,
.payment-method-card,
.checkout-item,
.home-vehicle-hero-price-card,
.home-vehicle-hero-link,
.quick-cart-btn,
.button-primary,
.checkout-back-link,
.top-link-cart {
    border-radius: 0;
}

.shipping-threshold-field {
    max-width: 280px;
}

.shipping-threshold-field input {
    width: 100%;
}

.account-shipping-fields-hidden {
    display: none !important;
}

.product-cart-form {
    display: grid;
    gap: 0.65rem;
}

.product-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.product-cart-qty {
    min-width: 120px;
    max-width: 160px;
}

.product-cart-qty .field-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--theme-panel-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.product-cart-qty input {
    width: 100%;
}

.account-section {
    padding: 1rem;
    border-radius: 18px;
    background: var(--theme-panel-bg);
    border: 1px solid var(--theme-panel-border);
}

.account-section-title {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    line-height: 1.1;
}

.account-section-note {
    margin: 0;
    color: var(--theme-panel-muted);
}

.account-section-kicker-dark {
    background: var(--theme-button-gradient);
    border-color: var(--theme-panel-border);
    color: var(--theme-button-text);
}

.account-panel .storefront-section-kicker {
    background: var(--theme-button-gradient);
    border-color: var(--theme-panel-border);
    color: var(--theme-button-text);
}

.account-form {
    display: grid;
    gap: 1rem;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.account-form-grid .field-group.full {
    grid-column: 1 / -1;
}

.account-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--theme-panel-border);
    background: var(--theme-panel-bg-alt);
    color: var(--theme-panel-text);
    font-weight: 700;
}

.account-toggle-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.account-summary-card {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f5 100%);
    border: 1px solid #dfe6eb;
}

.account-summary-card span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--theme-panel-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.account-summary-card strong {
    color: var(--theme-panel-text);
    font-size: 0.98rem;
    line-height: 1.25;
}

.account-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.account-alert {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
}

.account-alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.account-alert-error {
    background: #fff4f4;
    border-color: #efc1c1;
    color: #8b2222;
}

.account-alert-success {
    background: #eefaf1;
    border-color: #bfdcc7;
    color: #1c5f2e;
}

.account-hero .hero-content p {
    max-width: 52rem;
}

.listing-filter-panel {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.listing-filter-band {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 1.15rem 1.1rem 1.35rem;
    border: 1px solid var(--theme-filter-border);
    border-radius: 24px;
    background: var(--theme-filter-bg);
    box-shadow: var(--theme-panel-shadow);
    backdrop-filter: blur(8px);
    overflow-x: clip;
}

.listing-filter-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding: 0 0.25rem;
}

.listing-filter-heading h2,
.listing-filter-heading .muted {
    margin: 0;
}

.listing-filter-heading h2 {
    color: var(--theme-filter-title);
}

.listing-filter-heading .muted {
    color: var(--theme-filter-muted);
}

.about-panel-transparent {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.services-panel-transparent {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.about-panel-intro,
.services-panel-intro {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--theme-panel-border) 68%, rgba(255, 255, 255, 0.18));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 247, 246, 0.98) 100%),
        var(--theme-panel-bg);
    box-shadow: 0 18px 44px rgba(11, 22, 31, 0.11);
}

.about-panel-intro::before,
.services-panel-intro::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--theme-button-gradient);
}

.about-page-body {
    position: relative;
    margin-top: 0.35rem;
    padding: 1.15rem 1rem 0.25rem 1.05rem;
    border-left: 1px solid color-mix(in srgb, var(--theme-panel-border) 70%, rgba(255, 255, 255, 0.18));
    animation: aboutBodyReveal 0.75s ease-out both;
}

.about-page-body,
.about-page-body p,
.about-page-body li {
    color: var(--theme-panel-text);
    line-height: 1.75;
}

.about-page-body::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0.25rem;
    width: 3px;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--theme-button-gradient);
    box-shadow: 0 8px 18px rgba(20, 42, 58, 0.16);
}

.about-page-body p:first-child {
    margin-top: 0;
}

.about-page-body p:last-child {
    margin-bottom: 0;
}

.about-gallery {
    margin-top: 1.5rem;
}

.about-gallery .about-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--theme-panel-shadow);
    background: var(--theme-panel-bg);
}

.about-gallery .about-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@keyframes aboutBodyReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.home-highlight-panel {
    padding: 0;
    min-height: 100px;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.home-highlight-content > *:first-child {
    margin-top: 0;
}

.home-highlight-content > *:last-child {
    margin-bottom: 0;
}

.home-highlight-panel-intro .home-highlight-content {
    animation: homeHighlightSlideIn 0.8s ease-out both;
}

.home-between-panel-intro .home-highlight-content {
    animation: homeBetweenSlideIn 0.8s ease-out both;
}

.services-panel-intro .services-content {
    animation: servicesSlideIn 0.8s ease-out both;
}

.about-panel-intro .services-content {
    animation: aboutSlideIn 0.8s ease-out both;
}

@keyframes homeHighlightSlideIn {
    from {
        opacity: 0;
        transform: translateX(-42px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes homeBetweenSlideIn {
    from {
        opacity: 0;
        transform: translateX(42px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes servicesSlideIn {
    from {
        opacity: 0;
        transform: translateX(-42px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutSlideIn {
    from {
        opacity: 0;
        transform: translateX(-42px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--theme-panel-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--theme-panel-shadow);
}

.card img {
    width: 100%;
    height: 144px;
    object-fit: cover;
}

.card-content {
    padding: 0.85rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.vehicle-meta {
    margin: 0.18rem 0;
    line-height: 1.35;
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vehicle-list-card .card-content h3 {
    margin: 0 0 0.45rem;
    line-height: 1.25;
    min-height: 2.35em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vehicle-list-card .card-content {
    display: flex;
    flex-direction: column;
    min-height: 188px;
}

.vehicle-list-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(13, 27, 42, 0.18);
}

.showcase-card:hover .showcase-media img {
    transform: scale(1.04);
}

.showcase-media img {
    transition: transform 0.26s ease;
}

.featured-offer-card {
    position: relative;
    border: 1px solid var(--theme-panel-border);
    box-shadow:
        0 18px 34px rgba(13, 27, 42, 0.16),
        0 0 0 2px var(--theme-panel-border);
}

.featured-offer-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(157, 185, 211, 0.5);
    animation: offerPulse 2.2s ease-in-out infinite;
}

.featured-media {
    position: relative;
    overflow: hidden;
}

.featured-offer-card .featured-media::after {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 28%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 248, 220, 0.42) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    animation: offerSweep 3.6s ease-in-out infinite;
    pointer-events: none;
}

.offer-chip {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 2;
    background: var(--theme-button-alt-gradient);
    color: var(--theme-button-text);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.25px;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--theme-topbar-cart-border);
    box-shadow: 0 6px 14px rgba(52, 82, 109, 0.26);
}

.featured-offer-card .price-badge {
    background: linear-gradient(145deg, var(--theme-panel-bg) 0%, var(--theme-panel-bg-alt) 100%);
    border-color: var(--theme-panel-border);
    box-shadow: 0 10px 24px rgba(66, 92, 117, 0.22);
}

.featured-offer-card .price-label {
    color: var(--theme-panel-muted);
}

.featured-offer-card .price-value {
    color: var(--theme-panel-text);
}

@keyframes offerPulse {
    0% { box-shadow: 0 0 0 0 rgba(157, 185, 211, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(157, 185, 211, 0); }
    100% { box-shadow: 0 0 0 0 rgba(157, 185, 211, 0); }
}

@keyframes offerSweep {
    0% { left: -35%; }
    55% { left: 120%; }
    100% { left: 120%; }
}

.vehicle-meta-list {
    min-height: 0;
    display: grid;
    gap: 0.08rem;
}

.vehicle-meta-empty {
    visibility: hidden;
}

.vehicle-list-card .price {
    margin-top: auto;
    text-align: right;
    color: #111111;
}

.price-label {
    color: #275f53;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.6px;
    margin-right: 0;
    text-transform: uppercase;
}

.catalog-section {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.catalog-section-showcase {
    padding: 0 0.25rem;
}

.catalog-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.catalog-section-heading h2,
.catalog-section-heading .muted {
    margin: 0;
}

.catalog-section-heading h2 {
    color: #f5fbff;
}

.catalog-section-heading .muted {
    color: rgba(238, 246, 252, 0.76);
}

.catalog-section-heading-centered {
    justify-content: center;
    text-align: center;
}

.catalog-heading-copy {
    display: grid;
    gap: 0.25rem;
    justify-items: start;
}

.catalog-section-heading-centered .catalog-heading-copy {
    justify-items: center;
}

.catalog-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.28rem 0.58rem;
    border: 1px solid #d6dde2;
    border-radius: 4px;
    background: #f3f6f8;
    color: #52616e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.vehicle-grid .empty {
    grid-column: 1 / -1;
}

.showcase-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.8rem;
    align-items: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.showcase-track {
    display: flex;
    gap: 1.35rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 0.2rem 0.1rem 0.55rem;
    width: 100%;
    max-width: calc((min(100%, 430px) * 3) + (1.35rem * 2));
    margin-left: auto;
    margin-right: auto;
}

.showcase-track .showcase-card {
    flex: 0 0 calc((100% - 2.7rem) / 3);
    max-width: calc((100% - 2.7rem) / 3);
    scroll-snap-align: start;
}

.showcase-nav {
    width: 46px;
    height: 46px;
    border: 1px solid #cad4da;
    border-radius: 4px;
    background: #f4f7f9;
    color: #10202f;
    font-size: 1.05rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.showcase-nav:hover:not(:disabled) {
    background: var(--theme-panel-bg-alt);
}

.showcase-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.showcase-card {
    border: 1px solid var(--theme-product-border);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(180deg, var(--theme-product-bg) 0%, var(--theme-panel-bg-alt) 100%);
    box-shadow: var(--theme-product-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.vehicle-grid .showcase-card {
    min-height: 100%;
}

.vehicle-list-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-product-shadow);
    border-color: var(--theme-panel-border);
}

.showcase-card .card-content {
    padding: 0.75rem 0.75rem 0.85rem;
}

.showcase-media {
    position: relative;
    background: var(--theme-product-media-bg);
}

.showcase-media img {
    width: 100%;
    height: 156px;
    object-fit: cover;
    object-position: center 44%;
}

.showcase-badges {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
}

.showcase-status {
    display: inline-block;
    padding: 0.24rem 0.5rem;
    border-radius: 4px;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.showcase-status {
    background: rgba(255, 255, 255, 0.92);
    color: #8a2b22;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.showcase-copy {
    display: grid;
    gap: 0.22rem;
}

.showcase-content h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.18;
    color: #10202f;
    overflow-wrap: anywhere;
}

.vehicle-list-card .showcase-content h3 {
    min-height: 0;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.showcase-subtitle {
    margin: 0;
    color: #5b6976;
    font-size: 0.8rem;
    line-height: 1.25;
}

.showcase-bottom {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.vehicle-list-card .showcase-bottom {
    margin-top: 0.25rem;
}

.showcase-price {
    margin-top: 0.7rem;
    font-size: 1.77rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #091523;
    text-align: left;
    padding: 0.25rem 0 0.15rem;
    font-family: "Avenir Next Condensed", "Bahnschrift", "IBM Plex Sans", "Segoe UI", sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
}

.showcase-specs {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
}

.showcase-spec-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.24rem;
    min-height: 42px;
    padding: 0.42rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.1;
    color: #243645;
    background: #f1f4f6;
    border: 1px solid #dde5ea;
    border-radius: 4px;
}

.showcase-spec-item .spec-icon {
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.72rem;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    filter: grayscale(100%);
    opacity: 0.85;
}

.showcase-spec-item .spec-text {
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
    font-weight: 700;
}

.showcase-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #061a2f;
    color: #fff;
    border: 1px solid #061a2f;
    border-radius: 4px;
    padding: 0.4rem 0.65rem;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    margin-top: 0.65rem;
    text-transform: uppercase;
}

.showcase-link:hover {
    background: #0d2743;
}

.price-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    background: linear-gradient(145deg, #edf8f4 0%, #d7efe7 100%);
    border: 1px solid #a8d6c7;
    color: #1c5a4f;
    border-radius: 12px;
    padding: 0.34rem 0.66rem 0.4rem;
    box-shadow: 0 8px 18px rgba(20, 86, 71, 0.14);
    white-space: nowrap;
}

.price-value {
    font-size: 1.58rem;
    font-weight: 900;
    color: #114d42;
    letter-spacing: 0.15px;
    line-height: 1.1;
}

.vehicle-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.detail-btn {
    background: var(--theme-detail-bg);
    border: 1px solid var(--theme-detail-border);
    color: var(--theme-detail-text);
    padding: 0.35rem 0.62rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.78rem;
}

.detail-btn:hover {
    background: var(--theme-detail-hover-bg);
    color: var(--theme-detail-hover-text);
}

.muted {
    color: var(--muted);
}

.empty {
    padding: 1.2rem;
}

.admin-layout {
    margin-top: 1.3rem;
    --admin-control-radius: 6px;
    --admin-bg: linear-gradient(180deg, #edf3f8 0%, #e3ebf2 100%);
    --admin-surface: rgba(248, 251, 253, 0.96);
    --admin-surface-strong: #f2f7fb;
    --admin-border: rgba(49, 74, 96, 0.16);
    --admin-border-strong: rgba(36, 59, 81, 0.24);
    --admin-shadow: 0 20px 42px rgba(17, 35, 52, 0.1);
    --admin-accent: #345a78;
    --admin-accent-dark: #20384d;
    --admin-accent-soft: #dce8f2;
    --admin-text: #162635;
    --admin-muted: #607384;
    padding: 1rem 0 2rem;
}

.admin-layout button,
.admin-layout .detail-btn,
.admin-layout .tab-btn,
.admin-layout .admin-nav a,
.admin-layout .wysiwyg-toolbar button,
.admin-layout .link-button,
.admin-layout .image-move-btn,
.admin-layout .image-remove-btn {
    border-radius: var(--admin-control-radius);
}

.admin-layout input,
.admin-layout textarea,
.admin-layout select {
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-control-radius);
    background: #f7fbfe;
    color: var(--admin-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-layout input:focus,
.admin-layout textarea:focus,
.admin-layout select:focus {
    outline: none;
    border-color: rgba(52, 90, 120, 0.42);
    box-shadow: 0 0 0 4px rgba(52, 90, 120, 0.12);
}

.admin-topbar {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(111, 148, 182, 0.12), rgba(111, 148, 182, 0) 28%),
        rgba(248, 251, 253, 0.96);
    box-shadow: var(--admin-shadow);
}

.admin-topbar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-topbar-brand h1 {
    margin: 0.35rem 0 0;
    color: var(--admin-text);
    font-size: 1.55rem;
    line-height: 1;
}

.admin-topbar-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    background: rgba(52, 90, 120, 0.1);
    color: var(--admin-accent-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    border: 1px solid rgba(52, 90, 120, 0.14);
}

.admin-topbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
}

.admin-topbar-body {
    margin-top: 0.9rem;
}

.admin-topbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 6px;
    background: #f3f8fc;
    border: 1px solid var(--admin-border);
    color: var(--admin-accent-dark);
    font-weight: 800;
    justify-self: end;
}

.admin-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    background: #f4f8fc;
    border: 1px solid var(--admin-border);
    color: var(--admin-accent-dark);
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-topbar-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #d53b3b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(213, 59, 59, 0.18);
}

.admin-topbar-link-badge.is-hidden {
    display: none;
}

.admin-topbar-link.is-active .admin-topbar-link-badge {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.admin-topbar-link:hover {
    background: #eaf2f8;
    border-color: var(--admin-border-strong);
    transform: translateY(-1px);
}

.admin-topbar-link.is-active {
    background: linear-gradient(135deg, #345a78 0%, #20384d 100%);
    color: #f6fbff;
    border-color: #27445b;
    box-shadow: 0 14px 26px rgba(32, 56, 77, 0.2);
}

.admin-topbar-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    align-items: center;
}

.admin-topbar-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.48rem 0.8rem;
    border-radius: 6px;
    background: rgba(52, 90, 120, 0.08);
    border: 1px solid rgba(52, 90, 120, 0.1);
}

.admin-topbar-user strong {
    letter-spacing: 0.08em;
    line-height: 1;
}

.admin-topbar-user-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 0.9rem;
    line-height: 1;
    flex: 0 0 auto;
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-topbar-user-admin {
    min-width: 0;
}

.admin-topbar-utility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
    background: #f4f8fc;
    border: 1px solid var(--admin-border);
    color: var(--admin-accent-dark);
    font-weight: 700;
}

.admin-topbar-utility-danger {
    background: #f8ecec;
    color: #8a2f2f;
    border-color: rgba(138, 47, 47, 0.16);
}

.admin-content-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-customers-shell {
    grid-template-columns: minmax(0, 1fr);
}

.admin-customers-main {
    display: grid;
    gap: 1rem;
}

.admin-detail-header {
    display: grid;
    gap: 0.7rem;
}

.admin-back-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: #edf4f9;
    border: 1px solid rgba(52, 90, 120, 0.16);
    color: var(--admin-accent-dark);
    font-weight: 700;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-pagination-current {
    color: var(--admin-muted);
    font-weight: 700;
}

.admin-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    background: #f4f8fc;
    border: 1px solid var(--admin-border);
    color: var(--admin-accent-dark);
    font-weight: 700;
}

.admin-customer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

.admin-customer-actions-primary {
    gap: 0.65rem;
}

.admin-customer-delete {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0.9rem 0 1.35rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(52, 90, 120, 0.12);
}

.admin-section-sidebar {
    position: static;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbfd 0%, #edf3f8 100%);
    box-shadow: var(--admin-shadow);
}

.admin-section-sidebar-head h2 {
    margin: 0 0 0.3rem;
    color: var(--admin-text);
    font-size: 1.15rem;
}

.admin-section-sidebar-head p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.9rem;
}

.admin-section-sidebar-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
    gap: 0.55rem;
}

.admin-section-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    width: 100%;
    padding: 0.75rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(52, 90, 120, 0.1);
    color: #294154;
    text-align: left;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-section-link:hover {
    background: #eaf2f8;
    border-color: var(--admin-border-strong);
    color: #20384d;
    transform: translateY(-1px);
}

.admin-section-link.is-active {
    background: linear-gradient(135deg, #345a78 0%, #20384d 100%);
    border-color: #27445b;
    color: #f6fbff;
    box-shadow: 0 14px 26px rgba(32, 56, 77, 0.18);
}

.admin-section-link-emoji {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(52, 90, 120, 0.12);
    font-size: 1.1rem;
}

.admin-section-link.is-active .admin-section-link-emoji {
    background: rgba(255, 255, 255, 0.16);
}

.admin-section-link-copy {
    display: grid;
    gap: 0.08rem;
}

.admin-section-link-copy strong,
.admin-section-link-copy small {
    display: block;
}

.admin-section-link-copy small {
    color: var(--admin-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-section-link.is-active .admin-section-link-copy small {
    color: rgba(246, 251, 255, 0.82);
}

.admin-main {
    display: grid;
    gap: 1rem;
}

.admin-main .panel {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow);
}

.admin-hero-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem;
    background:
        linear-gradient(135deg, rgba(111, 148, 182, 0.18), rgba(111, 148, 182, 0) 30%),
        var(--admin-bg);
}

.admin-hero-copy h2 {
    margin: 0.2rem 0 0.45rem;
    font-size: 2rem;
    line-height: 1.05;
    color: var(--admin-text);
}

.admin-eyebrow,
.admin-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.72rem;
    border-radius: 4px;
    background: rgba(52, 90, 120, 0.12);
    color: var(--admin-accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid rgba(52, 90, 120, 0.12);
}

.admin-hero-copy .muted,
.admin-inline-note {
    color: var(--admin-muted);
}

.admin-hero-meta,
.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.admin-mini-stat {
    min-width: 132px;
    padding: 0.9rem 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(52, 90, 120, 0.14);
    text-align: left;
}

.admin-mini-stat-label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--admin-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-mini-stat strong {
    color: var(--admin-text);
    font-size: 1.25rem;
}

.admin-primary-link,
.admin-secondary-link,
.admin-card-link,
.admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.72rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-primary-link {
    background: var(--admin-accent);
    color: #f6fbff;
    border: 1px solid #27445b;
}

.admin-primary-link:hover {
    background: var(--admin-accent-dark);
}

.admin-secondary-link,
.admin-card-link {
    background: #f4f8fc;
    border: 1px solid var(--admin-border);
    color: var(--admin-accent-dark);
}

.admin-secondary-link:hover,
.admin-card-link:hover,
.admin-action-link:hover {
    background: #eaf2f8;
    border-color: var(--admin-border-strong);
    transform: translateY(-1px);
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.admin-section-heading h2 {
    margin: 0.3rem 0 0;
    color: var(--admin-text);
}

.admin-orders-main {
    gap: 1rem;
}

.admin-orders-main .admin-section-kicker {
    display: none;
}

.admin-orders-main .admin-section-heading {
    margin-bottom: 0.35rem;
    align-items: center;
}

.admin-orders-main .admin-section-heading h2 {
    margin-top: 0;
}

.admin-orders-filter-panel {
    display: grid;
    gap: 1rem;
}

.admin-orders-filters {
    display: grid;
    gap: 0.65rem;
}

.admin-orders-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem 0.75rem;
}

.admin-orders-search {
    grid-column: 1 / span 2;
}

.admin-orders-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.admin-orders-filter-actions .button-primary,
.admin-orders-filter-actions .admin-secondary-link {
    min-height: 40px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.admin-orders-filter-panel .field-label {
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
}

.admin-orders-filter-panel input,
.admin-orders-filter-panel select {
    min-height: 40px;
    padding-top: 0.52rem;
    padding-bottom: 0.52rem;
    font-size: 0.92rem;
}

.admin-orders-table-wrap {
    overflow: hidden;
}

.admin-orders-summary-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
    margin: 0.2rem 0 0.8rem;
}

.admin-orders-summary-chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 54px;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(52, 90, 120, 0.12);
    background: rgba(244, 248, 252, 0.85);
    color: var(--admin-text);
    white-space: nowrap;
}

.admin-orders-summary-chip span {
    color: var(--admin-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-orders-summary-chip strong {
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1;
    margin-left: auto;
}

.admin-orders-summary-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(52, 90, 120, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #edf4f8 100%);
    font-size: 1rem;
    flex: 0 0 auto;
}

.admin-orders-summary-chip-total {
    background: linear-gradient(180deg, rgba(233, 241, 248, 0.95), rgba(225, 236, 246, 0.95));
}

.admin-orders-summary-chip-total strong {
    color: #1f4f72;
}

.admin-orders-table td {
    vertical-align: middle;
}

.admin-order-number {
    font-weight: 800;
    color: var(--admin-text);
    line-height: 1.15;
}

.admin-order-customer {
    display: block;
    color: var(--admin-text);
    font-weight: 800;
    margin-bottom: 0.1rem;
}

.admin-order-customer-card {
    display: grid;
    gap: 0.08rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(52, 90, 120, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    color: inherit;
}

.admin-order-customer-card:hover {
    background: linear-gradient(180deg, #f7fbfd 0%, #eef4f8 100%);
    border-color: rgba(52, 90, 120, 0.2);
}

.admin-order-subline {
    color: var(--admin-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.admin-order-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.45rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    background: #d53b3b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.admin-order-total {
    display: grid;
    justify-items: end;
    gap: 0.12rem;
    min-width: 130px;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(52, 90, 120, 0.12);
    background: linear-gradient(180deg, #f7fbfd 0%, #eef4f8 100%);
}

.admin-order-total span {
    color: var(--admin-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-order-total strong {
    color: var(--admin-text);
    font-size: 1.2rem;
    line-height: 1;
}

.admin-order-actions-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 128px;
}

.admin-order-actions-stack .admin-action-link {
    width: 100%;
}

.admin-action-preview {
    background: #eef6fb;
    border-color: rgba(52, 90, 120, 0.2);
    color: #1f4f72;
}

.admin-order-delete-form {
    width: 100%;
    display: flex;
}

.admin-order-edit-main {
    gap: 1rem;
}

.admin-order-edit-header {
    display: grid;
    gap: 0.9rem;
}

.admin-order-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.62fr);
    gap: 2.2rem;
    align-items: start;
}

.admin-order-edit-form {
    display: grid;
    gap: 1rem;
}

.admin-order-edit-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
    align-self: start;
    min-width: 0;
    max-width: 100%;
    width: calc(100% - 0.35rem);
    margin-left: auto;
    box-sizing: border-box;
}

.admin-order-summary-panel {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.25rem;
    width: 100%;
}

.admin-order-summary-customer {
    width: 100%;
}

.admin-order-edit-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.admin-order-edit-summary-item {
    display: grid;
    gap: 0.18rem;
    padding: 0.8rem;
    border: 1px solid rgba(52, 90, 120, 0.12);
    background: rgba(244, 248, 252, 0.78);
}

.admin-order-edit-summary-item span {
    color: var(--admin-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-order-edit-summary-item strong {
    color: var(--admin-text);
    font-size: 1.1rem;
    line-height: 1.05;
}

.admin-order-edit-summary-total {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, rgba(233, 241, 248, 0.95), rgba(225, 236, 246, 0.95));
}

.admin-order-items-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.admin-order-items-toolbar .muted {
    margin: 0;
}

.admin-order-add-row {
    min-height: 40px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.admin-order-items-table-wrap {
    overflow-x: auto;
}

.admin-order-items-table {
    width: 100%;
    min-width: 760px;
}

.admin-order-items-table th,
.admin-order-items-table td {
    vertical-align: top;
}

.admin-order-items-table th:nth-child(1),
.admin-order-items-table td:nth-child(1) {
    width: 7%;
    vertical-align: middle;
}

.admin-order-items-table th:nth-child(2),
.admin-order-items-table td:nth-child(2) {
    width: 53%;
}

.admin-order-items-table th:nth-child(3),
.admin-order-items-table td:nth-child(3) {
    width: 11%;
}

.admin-order-items-table th:nth-child(4),
.admin-order-items-table td:nth-child(4) {
    width: 17%;
}

.admin-order-items-table th:nth-child(5),
.admin-order-items-table td:nth-child(5) {
    width: 12%;
}

.admin-order-items-table input,
.admin-order-items-table textarea {
    width: 100%;
    min-width: 0;
}

.admin-order-items-table input[name$="[quantity]"] {
    min-width: 6ch;
}

.admin-order-items-table input[name$="[unit_price]"] {
    min-width: 10.5ch;
}

.admin-order-item-row input {
    min-height: 42px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.admin-order-item-id {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0.2rem;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(52, 90, 120, 0.14);
    background: #f4f8fc;
    color: var(--admin-text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.admin-order-item-remove {
    min-height: 42px;
    width: 2.35rem;
    justify-self: center;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1;
    text-align: center;
    background: #b42318;
    color: #fff;
    border: 1px solid #8f1d14;
    box-shadow: 0 8px 16px rgba(180, 35, 24, 0.18);
}

.admin-order-item-remove:hover,
.admin-order-item-remove:focus-visible {
    background: #8f1d14;
    color: #fff;
    border-color: #6f170f;
}

.admin-order-items-total-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.admin-order-items-total-row .field-group {
    min-width: 220px;
}

.admin-order-save-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-order-delete-panel {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    border: 1px solid rgba(180, 35, 24, 0.18);
    background: linear-gradient(180deg, rgba(255, 246, 244, 0.98), rgba(255, 240, 236, 0.98));
    width: 100%;
}

.admin-order-delete-panel .admin-delete-button {
    width: 100%;
}

.admin-order-preview-source {
    display: none;
}

.admin-order-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.admin-order-preview-modal[hidden] {
    display: none;
}

.admin-order-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 26, 0.64);
    backdrop-filter: blur(3px);
}

.admin-order-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: min(88vh, 980px);
    overflow: auto;
    padding: 1rem;
    border: 1px solid rgba(52, 90, 120, 0.16);
    background: linear-gradient(180deg, #f8fbfe 0%, #eef4f8 100%);
    box-shadow: 0 28px 60px rgba(10, 18, 26, 0.24);
}

.admin-order-preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-order-preview-toolbar h3 {
    margin: 0.15rem 0 0;
    font-size: 1.5rem;
    line-height: 1.08;
}

.admin-order-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-order-preview-actions .admin-secondary-link {
    min-height: 40px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.admin-order-preview-body {
    display: grid;
    gap: 0.9rem;
}

.admin-order-receipt {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(52, 90, 120, 0.12);
    background: #ffffff;
}

.admin-order-receipt-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-order-receipt-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.5rem;
    background: rgba(52, 90, 120, 0.08);
    color: var(--admin-accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-order-receipt-head h3 {
    margin: 0.45rem 0 0.2rem;
    font-size: 1.55rem;
    line-height: 1.06;
}

.admin-order-receipt-head h3::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 0.35rem;
    background: linear-gradient(90deg, #345a78 0%, rgba(52, 90, 120, 0.08) 100%);
}

.admin-order-receipt-meta {
    margin: 0;
    color: var(--admin-muted);
}

.admin-order-receipt-state {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.admin-order-receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-order-receipt-box {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem;
    border: 1px solid rgba(52, 90, 120, 0.12);
    background: rgba(244, 248, 252, 0.78);
}

.admin-order-receipt-box span,
.admin-order-receipt-items h4,
.admin-order-receipt-total span {
    color: var(--admin-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-order-receipt-box p {
    margin: 0;
}

.admin-order-receipt-items {
    display: grid;
    gap: 0.6rem;
}

.admin-order-receipt-summary {
    display: grid;
    gap: 0.55rem;
}

.admin-order-receipt-items h4 {
    margin: 0;
}

.admin-order-receipt-items-list {
    display: grid;
    gap: 0.45rem;
}

.admin-order-receipt-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(52, 90, 120, 0.1);
    background: #f8fbfd;
}

.admin-order-receipt-item-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.admin-order-receipt-item-main strong {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.admin-order-receipt-item-main small {
    color: var(--admin-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-order-receipt-item strong {
    min-width: 0;
}

.admin-order-receipt-item span {
    color: var(--admin-muted);
    white-space: nowrap;
}

.admin-order-product-details {
    grid-column: 1 / -1;
    border: 1px solid rgba(52, 90, 120, 0.12);
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.admin-order-product-details summary {
    cursor: pointer;
    list-style: none;
    padding: 0.65rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: #24415d;
    background: linear-gradient(180deg, #f7fbfe 0%, #eef5fa 100%);
    user-select: none;
}

.admin-order-product-details summary::-webkit-details-marker {
    display: none;
}

.admin-order-product-details-body {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.8rem;
}

.admin-order-product-details-media {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(52, 90, 120, 0.1);
    background: #f3f7fa;
}

.admin-order-product-details-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.admin-order-product-details-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.85rem;
    align-content: start;
}

.admin-order-product-details-copy p:first-child {
    grid-column: 1 / -1;
}

.admin-order-product-details-copy p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #33475d;
}

.admin-order-product-details-copy strong {
    color: #1f2d3a;
}

.admin-order-receipt-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(52, 90, 120, 0.1);
    background: #f8fbfd;
}

.admin-order-receipt-summary-row span {
    color: var(--admin-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-order-receipt-summary-row strong {
    font-size: 1rem;
    line-height: 1.15;
}

.admin-order-receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(52, 90, 120, 0.14);
    background: linear-gradient(180deg, rgba(233, 241, 248, 0.95), rgba(225, 236, 246, 0.95));
}

.admin-order-receipt-total strong {
    font-size: 1.4rem;
    line-height: 1;
}

.admin-order-receipt-total {
    box-shadow: inset 0 0 0 1px rgba(52, 90, 120, 0.04);
}

body.admin-order-preview-open {
    overflow: hidden;
}

.admin-action-highlight {
    background: #eaf3fb;
    border-color: rgba(52, 90, 120, 0.2);
    color: #1f4f72;
}

.admin-order-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.28rem 0.52rem;
    border-radius: 4px;
    border: 1px solid rgba(52, 90, 120, 0.14);
    background: #f4f8fc;
    color: var(--admin-text);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-order-badge-pending {
    background: rgba(201, 74, 34, 0.08);
    border-color: rgba(201, 74, 34, 0.18);
    color: #9a3319;
}

.admin-order-badge-paid {
    background: rgba(31, 122, 67, 0.08);
    border-color: rgba(31, 122, 67, 0.18);
    color: #1f7a43;
}

.admin-order-badge-complete {
    background: rgba(45, 79, 110, 0.08);
    border-color: rgba(45, 79, 110, 0.18);
    color: #2d4f6e;
}

.admin-order-badge-neutral {
    background: rgba(52, 90, 120, 0.06);
    color: #294154;
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(238, 244, 249, 0.98));
    border: 1px solid rgba(52, 90, 120, 0.12);
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    background: rgba(52, 90, 120, 0.12);
    font-size: 1.5rem;
}

.admin-search-form {
    margin-bottom: 1rem;
}

.admin-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
}

.admin-search-box button {
    min-width: 130px;
}

.admin-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.admin-bulk-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--admin-text);
}

.admin-bulk-toolbar select {
    min-width: 180px;
    max-width: 240px;
}

.admin-table-wrap {
    border-radius: 8px;
    border: 1px solid rgba(52, 90, 120, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.admin-table thead th {
    background: rgba(52, 90, 120, 0.08);
    color: var(--admin-text);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background: rgba(233, 241, 248, 0.78);
}

.admin-stock-zero-row,
.admin-stock-zero-row:hover {
    background: rgba(255, 236, 236, 0.92);
}

.admin-stock-zero-row td {
    color: #7f2c2c;
}

.admin-stock-zero-row .admin-title-cell,
.admin-stock-zero-row .admin-action-link,
.admin-stock-zero-row .admin-action-danger {
    color: inherit;
}

.admin-table-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
}

.admin-action-link {
    min-height: 30px;
    padding: 0.28rem 0.52rem;
    background: #f4f8fc;
    color: var(--admin-accent-dark);
    border: 1px solid var(--admin-border);
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
}

.admin-action-danger {
    background: #f8ecec;
    color: #8a2f2f;
    border-color: rgba(138, 47, 47, 0.16);
}

.admin-alert-error {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    background: #f8ecec;
    color: #8a2f2f;
    border: 1px solid rgba(138, 47, 47, 0.16);
    font-weight: 700;
}

.tab-btn {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    background: rgba(255, 255, 255, 0.78);
    color: #294154;
    border: 1px solid rgba(52, 90, 120, 0.1);
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-btn:hover {
    background: #eaf2f8;
    color: #20384d;
    border-color: var(--admin-border-strong);
    transform: translateY(-1px);
}

.tab-btn.is-active {
    background: linear-gradient(135deg, #345a78 0%, #20384d 100%);
    color: #f6fbff;
    border-color: #27445b;
    box-shadow: 0 14px 24px rgba(32, 56, 77, 0.2);
}

.settings-content {
    display: grid;
    gap: 1rem;
}

.admin-tab-heading {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.admin-tab-heading span {
    color: var(--admin-text);
    font-size: 1.15rem;
    font-weight: 800;
}

.admin-login-panel {
    max-width: 560px;
    margin: 2rem auto;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(111, 148, 182, 0.18), rgba(111, 148, 182, 0) 30%),
        var(--admin-bg);
    border: 1px solid rgba(52, 90, 120, 0.14);
    box-shadow: var(--admin-shadow);
}

.admin-login-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 4px;
    background: rgba(52, 90, 120, 0.12);
    color: var(--admin-accent-dark);
    font-weight: 800;
}

.home-slides-admin-table {
    display: grid;
    grid-template-columns: 110px minmax(260px, 1fr) 180px;
    gap: 0.7rem;
    align-items: start;
}

.home-slides-admin-head {
    color: #546775;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-slide-admin-row {
    display: contents;
}

.home-slide-admin-index,
.home-slide-admin-media,
.home-slide-admin-copy,
.home-slide-admin-actions {
    min-height: 100%;
    padding: 0.8rem;
    border: 1px solid #d2dde7;
    border-radius: 6px;
    background: #f8fbfd;
}

.home-slide-admin-index {
    display: flex;
    align-items: center;
    font-weight: 800;
    color: #22323c;
}

.home-slide-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.home-slide-dropzone {
    display: grid;
    place-items: center;
    min-height: 138px;
    border: 2px dashed #b8c9d8;
    border-radius: 6px;
    background: #f3f8fc;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.home-slide-dropzone.is-over {
    border-color: #577592;
    background: #e7f0f8;
}

.home-slide-dropzone-empty {
    padding: 0.9rem;
    color: #5d7180;
    font-weight: 600;
}

.home-slide-admin-preview {
    width: 100%;
    height: 138px;
    object-fit: contain;
    display: block;
    background: #0d1c29;
}

.home-slide-admin-actions {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.form-grid {
    display: grid;
    gap: 0.7rem;
}

.field-group {
    display: grid;
    gap: 0.35rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: start;
    gap: 0.7rem;
}

.form-row-meta {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: start;
    column-gap: 1.1rem;
    row-gap: 0.7rem;
    align-items: start;
}

.form-row-meta .field-group {
    min-width: 0;
}

.form-row-meta #id_display {
    width: 120px;
}

.form-row-meta .admin-static-value {
    min-width: 240px;
}

.form-row-type-condition {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(160px, 220px);
    gap: 0.7rem;
    align-items: end;
}

.compact-input {
    width: 100%;
}

.compact-type {
    max-width: 340px;
}

.compact-condition {
    max-width: 220px;
}

.compact-year {
    max-width: 90px;
}

.compact-doors {
    max-width: 130px;
}

.compact-fuel {
    max-width: 220px;
}

.compact-km {
    max-width: 130px;
}

.compact-price {
    max-width: 140px;
}

.image-manager {
    display: grid;
    gap: 0.35rem;
}

.image-dropzone {
    border: 2px dashed #b8c9d8;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    color: #35526a;
    background: #f4f9fc;
    cursor: pointer;
}

.image-dropzone.is-over {
    background: #e7f0f8;
    border-color: #577592;
}

.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    min-height: 96px;
    margin-top: 0.1rem;
}

.image-item {
    position: relative;
    border: 1px solid #d3dde5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    min-height: 92px;
}

.image-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.image-item-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.3rem;
    background: #eff5f9;
}

.drag-handle {
    font-size: 0.75rem;
    color: #4d6679;
    user-select: none;
    letter-spacing: 1px;
    padding: 0.12rem 0.24rem;
    border: 1px solid #cedae4;
    border-radius: 4px;
    background: #ffffff;
}

.image-move-btn {
    background: #eaf2f8;
    color: #26465d;
    border: 1px solid #c9d8e4;
    border-radius: 4px;
    padding: 0.08rem 0.34rem;
    font-size: 0.76rem;
    line-height: 1.1;
}

.image-remove-btn {
    background: #f8ecec;
    color: #8a2f2f;
    border: 1px solid #e4c5c5;
    border-radius: 4px;
    padding: 0.08rem 0.34rem;
    font-size: 0.76rem;
    line-height: 1;
}

.image-item.is-dragging {
    opacity: 0.6;
}

.field-label {
    font-weight: 700;
    color: #26445c;
    font-size: 0.95rem;
}

.admin-static-value {
    display: block;
    min-height: 46px;
    padding: 0.78rem 0.9rem;
    border: 1px solid #d2dde7;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98) 0%, rgba(237, 243, 248, 0.98) 100%);
    color: var(--admin-text);
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hidden-input {
    display: none;
}

.hero-preview {
    width: 100%;
    max-width: 420px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d4e0dc;
}

.style-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.style-compact-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.65rem;
    border: 1px solid #d2dde7;
    border-radius: 6px;
    background: #f8fbfd;
}

.style-compact-title {
    margin: 0;
    font-size: 1rem;
    color: #26445c;
}

.style-inline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.6rem;
    align-items: end;
}

.dual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.secondary-btn {
    background: #607487;
}

.secondary-btn:hover {
    background: #4e6173;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tab-panel {
    display: none;
    gap: 0.7rem;
}

.tab-panel.is-active {
    display: grid;
}

.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wysiwyg-toolbar button {
    background: #f2f7fb;
    color: #26445c;
    border: 1px solid #d2dde7;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
}

.wysiwyg-toolbar button:hover {
    background: #e8f0f7;
}

.wysiwyg-font-select,
.wysiwyg-size-select {
    min-height: 32px;
    padding: 0.32rem 0.55rem;
    border: 1px solid #d2dde7;
    border-radius: 4px;
    background: #f2f7fb;
    color: #26445c;
}

.wysiwyg-color-label {
    display: inline-flex;
    align-items: center;
}

.wysiwyg-color-input {
    width: 36px;
    height: 32px;
    padding: 0.2rem;
    border: 1px solid #d2dde7;
    border-radius: 4px;
    background: #f2f7fb;
    cursor: pointer;
}

.icon-align {
    display: inline-block;
    width: 16px;
    height: 12px;
    background:
        linear-gradient(#1f4d45, #1f4d45) 0 0 / 100% 2px no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 0 5px / 78% 2px no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 0 10px / 92% 2px no-repeat;
}

.icon-align-center {
    background:
        linear-gradient(#1f4d45, #1f4d45) 50% 0 / 100% 2px no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 50% 5px / 78% 2px no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 50% 10px / 92% 2px no-repeat;
}

.icon-align-right {
    background:
        linear-gradient(#1f4d45, #1f4d45) 100% 0 / 100% 2px no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 100% 5px / 78% 2px no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 100% 10px / 92% 2px no-repeat;
}

.icon-valign {
    display: inline-block;
    width: 16px;
    height: 14px;
    background:
        linear-gradient(#1f4d45, #1f4d45) 0 0 / 2px 100% no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 6px 0 / 2px 78% no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 12px 0 / 2px 92% no-repeat;
}

.icon-valign-middle {
    background:
        linear-gradient(#1f4d45, #1f4d45) 0 50% / 2px 100% no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 6px 50% / 2px 78% no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 12px 50% / 2px 92% no-repeat;
}

.icon-valign-bottom {
    background:
        linear-gradient(#1f4d45, #1f4d45) 0 100% / 2px 100% no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 6px 100% / 2px 78% no-repeat,
        linear-gradient(#1f4d45, #1f4d45) 12px 100% / 2px 92% no-repeat;
}

.wysiwyg-editor {
    min-height: 260px;
    background: #edf2f7;
    border: 1px solid #d2d9df;
    border-radius: 12px;
    padding: 0.85rem;
    line-height: 1.45;
}

.wysiwyg-editor[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: #5f6f7f;
    font-style: italic;
    pointer-events: none;
}

.wysiwyg-box[data-wysiwyg-mode="plain-text"] .wysiwyg-editor {
    white-space: pre-wrap;
}

.wysiwyg-vrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    vertical-align: middle;
}

.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.checkbox-field input {
    width: auto;
}

.hours-admin-grid {
    display: grid;
    grid-template-columns: 140px minmax(220px, 1fr) minmax(220px, 1fr) 110px;
    gap: 0.5rem 0.65rem;
    align-items: center;
}

.hours-admin-head {
    font-size: 0.82rem;
    font-weight: 800;
    color: #315d56;
}

.hours-admin-day {
    font-weight: 700;
}

.hours-admin-slot {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hours-admin-slot input[type="time"] {
    max-width: 120px;
}

.hours-admin-close label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-panel {
    padding: 0.95rem 1.1rem;
}

.filter-panel h2 {
    margin: 0 0 0.45rem;
}

.filter-panel .form-grid {
    gap: 0.48rem;
}

.filter-panel .search-box {
    margin-top: 0;
    gap: 0.55rem;
}

.filter-panel .search-box button {
    padding: 0.48rem 0.72rem;
    font-size: 0.86rem;
}

.filter-panel .field-group {
    gap: 0.2rem;
}

.filter-panel .field-label {
    font-size: 0.82rem;
    font-weight: 700;
}

.filter-controls-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
    gap: 0.55rem;
    align-items: end;
}

.filter-controls-row > .field-group {
    min-width: 0;
}

.compact-check {
    min-height: 38px;
    align-items: center;
}

.filter-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.42rem;
}

.filter-actions button {
    min-height: 42px;
    padding: 0 0.72rem;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
}

.filter-actions .detail-btn {
    min-height: 42px;
    padding: 0 0.72rem;
    display: inline-flex;
    align-items: center;
}

.filter-actions-inline {
    align-self: end;
    min-width: 0;
}

.filter-controls-row .transmission-break {
    grid-column: 1 / 2;
    grid-row: 2;
    max-width: 220px;
}

.filter-actions-inline {
    grid-column: 5;
    grid-row: 1;
}

.compact-check-inline {
    min-height: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.08rem 0;
    font-size: 0.86rem;
    line-height: 1.1;
}

.filter-label-spacer {
    opacity: 0;
    user-select: none;
}

.listing-filter-band .form-grid {
    gap: 0.8rem;
}

.listing-filter-band .search-box {
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    min-width: 0;
    max-width: 100%;
}

.listing-filter-band .search-box input,
.listing-filter-band .field-group select {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--theme-panel-text);
}

.listing-filter-band .search-box button,
.listing-filter-band .filter-actions button,
.listing-filter-band .filter-actions .detail-btn {
    min-height: 50px;
    border-radius: 4px;
}

.listing-filter-band .search-box button {
    min-width: 150px;
}

.listing-filter-band .field-group {
    gap: 0.3rem;
    min-width: 0;
    max-width: 100%;
}

.listing-filter-band .field-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-filter-title);
    text-shadow: 0 1px 2px rgba(7, 14, 22, 0.3);
}

.listing-filter-band .filter-controls-row {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
}

.listing-filter-band .filter-actions {
    gap: 0.55rem;
}

.listing-filter-band .search-box button,
.listing-filter-band .filter-actions button {
    background: var(--theme-button-gradient);
}

.listing-filter-band .search-box button:hover,
.listing-filter-band .filter-actions button:hover {
    background: var(--theme-button-gradient-hover);
}

.listing-filter-band .filter-actions .detail-btn {
    background: var(--theme-detail-bg);
    border-color: var(--theme-detail-border);
    color: var(--theme-detail-text);
}

.listing-filter-band .filter-actions .detail-btn:hover {
    background: var(--theme-detail-hover-bg);
    color: var(--theme-detail-hover-text);
}

.pagination-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.32rem;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border: 1px solid #c8d6e4;
    border-radius: 10px;
    background: #f2f7fc;
    color: #26445f;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: #e3edf7;
}

.pagination-btn.is-active {
    background: #4f6d8b;
    border-color: #4f6d8b;
    color: #fff;
}

.pagination-arrow {
    font-size: 1rem;
    line-height: 1;
}

.pagination-btn.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.stat-card {
    background: #f8fbfb;
    border: 1px solid #e0ebea;
    border-radius: 14px;
    padding: 1rem;
}

.stat-card h3 {
    margin: 0 0 0.4rem;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    color: var(--primary);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid #e5eaef;
    padding: 0.48rem 0.55rem;
    text-align: left;
    vertical-align: middle;
}

.vehicle-thumb {
    width: 64px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid #d9e2e8;
}

.admin-col-thumb {
    width: 84px;
}

.admin-col-select {
    width: 52px;
}

.admin-col-id {
    width: 70px;
}

.admin-col-title {
    width: 52%;
}

.admin-col-category {
    width: 120px;
}

.admin-col-price {
    width: 96px;
}

.admin-col-actions {
    width: 140px;
}

.admin-title-cell {
    font-weight: 400;
}

.admin-row-select-cell {
    text-align: center;
}

.admin-row-select {
    width: 16px;
    height: 16px;
}

.featured-star {
    color: #e0a10b;
    font-size: 1.05rem;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(224, 161, 11, 0.35);
}

.inline-form {
    display: inline;
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    font-weight: 500;
    cursor: pointer;
}

.danger-link {
    color: #b42318;
}

.section-cta {
    margin-top: 1rem;
    text-align: center;
}

.cta-link {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
}

.services-panel .services-content {
    line-height: 1.6;
}

.services-panel-intro .services-content,
.about-panel-intro .services-content {
    padding: 1rem 1.1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.services-panel-intro,
.about-panel-intro {
    border-radius: 18px;
    overflow: hidden;
}

.services-panel .services-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-panel-intro .services-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-panel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--theme-panel-border);
    background: linear-gradient(180deg, var(--theme-panel-bg) 0%, var(--theme-panel-bg-alt) 100%);
    box-shadow: var(--theme-panel-shadow);
}

.contact-panel::before {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 109, 94, 0.18) 0%, rgba(15, 109, 94, 0) 70%);
    pointer-events: none;
}

.contact-page-main {
    margin-top: 0.4rem;
}

.contact-grid {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem;
    background: #f5f7f9;
    border: 1px solid #dbe3e8;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.1);
}

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: #e8edf1;
    font-size: 1.1rem;
}

.contact-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
}

.contact-extra {
    margin-top: 0.95rem;
    padding: 0.9rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--theme-panel-bg-alt) 0%, var(--theme-panel-soft-bg) 100%);
    border: 1px solid var(--theme-panel-border);
}

.contact-extra h3 {
    margin: 0 0 0.4rem;
}

.contact-extra p {
    margin: 0;
}

.hours-day {
    font-weight: 700;
}

.hours-value {
    text-align: right;
}

.hours-contact-item {
    align-items: flex-start;
}

.address-contact-item {
    align-items: flex-start;
}

.address-contact-item > div {
    text-align: left;
}

.address-contact-item .map-cta {
    margin: 0.55rem 0 0;
    text-align: center;
}

.hours-compact {
    width: 100%;
    display: grid;
    gap: 0.2rem;
}

.hours-compact h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.hours-compact-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.86rem;
    line-height: 1.2;
    padding: 0.12rem 0;
    border-bottom: 1px dashed #d8e5e1;
}

.hours-compact-row:last-child {
    border-bottom: 0;
}

.map-wrap {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--theme-panel-border);
    border-radius: 6px;
    background: var(--theme-panel-bg-alt);
}

.map-wrap h3 {
    margin: 0 0 0.6rem;
}

.contact-map {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 12px;
}

.map-link {
    margin: 0.55rem 0 0;
}

.map-cta {
    margin: 0.75rem 0 0;
}

.map-nav-btn {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    padding: 0.68rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(26, 115, 232, 0.24);
}

.map-nav-btn:hover {
    background: #0f62d6;
}

@media (max-width: 760px) {
    .admin-orders-summary-bar {
        grid-template-columns: 1fr;
    }

    .admin-orders-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-orders-search {
        grid-column: auto;
    }

    .admin-orders-filter-actions .button-primary,
    .admin-orders-filter-actions .admin-secondary-link {
        width: 100%;
    }

    .admin-order-edit-layout {
        grid-template-columns: 1fr;
    }

    .admin-order-edit-sidebar {
        position: static;
    }

    .admin-order-edit-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-order-edit-summary-total {
        grid-column: auto;
    }

    .admin-order-items-table {
        min-width: 0;
        width: 100%;
    }

    .admin-order-items-table-wrap {
        overflow-x: visible;
    }

    .admin-order-items-table,
    .admin-order-items-table tbody,
    .admin-order-items-table tr,
    .admin-order-items-table td {
        display: block;
        width: 100%;
    }

    .admin-order-items-table thead {
        display: none;
    }

    .admin-order-items-table tbody {
        display: grid;
        gap: 0.9rem;
        padding: 0.8rem 0;
    }

    .admin-order-items-table tbody tr {
        padding: 0.9rem;
        border: 1px solid rgba(52, 90, 120, 0.12);
        border-radius: 8px;
        background: rgba(248, 251, 253, 0.96);
        box-shadow: 0 12px 26px rgba(17, 35, 52, 0.08);
    }

    .admin-order-items-table td {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(52, 90, 120, 0.08);
    }

    .admin-order-items-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .admin-order-items-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.38rem;
        color: var(--admin-muted);
        font-size: 0.82rem;
        font-weight: 800;
    }

    .admin-order-items-table td[data-label="Azioni"] .admin-order-item-remove {
        justify-self: start;
    }

    .admin-order-items-table td .admin-order-item-id,
    .admin-order-items-table td input {
        width: 100%;
        max-width: 100%;
    }

    .admin-order-items-table td .admin-order-item-id {
        justify-content: center;
        text-align: center;
        margin-bottom: 0;
    }

    .admin-order-items-table input[name$="[quantity]"] {
        min-width: 0;
    }

    .admin-order-items-table input[name$="[unit_price]"] {
        min-width: 0;
    }

    .admin-order-items-table td[data-label="Azioni"] .admin-order-item-remove {
        width: 100%;
        justify-self: stretch;
    }

    .hero {
        min-height: 22vh;
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }

    .topbar {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.8rem;
        padding-bottom: 0.52rem;
    }

    .site-contact-strip {
        padding-top: 0.38rem;
    }

    .site-contact-strip-stack {
        width: 100%;
    }

    .site-contact-strip-inner {
        justify-content: flex-start;
    }

    .site-contact-strip-cart {
        width: 100%;
        min-width: 0;
    }

    .site-contact-strip-link {
        width: 100%;
        justify-content: flex-start;
    }

    .top-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.9rem 1rem;
    }

    .site-contact-strip-cart {
        width: 100%;
        min-width: 0;
        justify-items: start;
    }

    .top-link {
        font-size: 0.82rem;
    }

    .top-link::after {
        bottom: -0.72rem;
    }

    .hero-content {
        margin-top: 0.68rem;
    }

    .hero-home-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(1.8rem, 9vw, 3rem);
        white-space: normal;
    }

    .hero p {
        font-size: 0.92rem;
    }

    .hero-cta-button {
        min-width: 0;
        width: 100%;
    }

    .admin-topbar,
    .admin-content-shell {
        grid-template-columns: 1fr;
    }

    .admin-section-sidebar {
        position: static;
    }

    .admin-topbar {
        padding: 0.9rem 1rem;
    }

    .admin-topbar-toggle {
        display: inline-flex;
    }

    .admin-topbar-body {
        display: none;
        width: 100%;
        margin-top: 0.8rem;
    }

    .admin-topbar.is-open .admin-topbar-body {
        display: grid;
        gap: 0.75rem;
    }

    .admin-topbar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-topbar-nav,
    .admin-topbar-meta,
    .admin-topbar-actions {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-topbar-link,
    .admin-topbar-utility {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-hero-panel,
    .admin-section-heading,
    .admin-table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search-box {
        grid-template-columns: 1fr;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: 0.9rem;
        padding: 0.8rem;
    }

    .admin-table tbody tr {
        padding: 0.9rem;
        border: 1px solid rgba(52, 90, 120, 0.12);
        border-radius: 8px;
        background: rgba(248, 251, 253, 0.96);
        box-shadow: 0 12px 26px rgba(17, 35, 52, 0.08);
    }

    .admin-table td {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 0.6rem;
        align-items: center;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(52, 90, 120, 0.08);
    }

    .admin-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--admin-muted);
        font-size: 0.82rem;
        font-weight: 800;
    }

    .admin-table td[data-label="Anteprima"] {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .admin-table td[data-label="Anteprima"]::before {
        margin-bottom: 0.2rem;
    }

    .admin-table td[data-label="Anteprima"] .vehicle-thumb {
        width: 100%;
        height: 180px;
        border-radius: 14px;
    }

    .admin-table.admin-order-items-table td {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(52, 90, 120, 0.08);
    }

    .admin-table.admin-order-items-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.38rem;
        color: var(--admin-muted);
        font-size: 0.82rem;
        font-weight: 800;
    }

    .admin-table.admin-order-items-table td .admin-order-item-id,
    .admin-table.admin-order-items-table td input,
    .admin-table.admin-order-items-table td button {
        width: 100%;
        max-width: 100%;
    }

    .admin-table.admin-order-items-table td .admin-order-item-id {
        display: flex;
        justify-content: center;
        text-align: center;
        margin-bottom: 0;
    }

    .admin-table.admin-order-items-table td[data-label="Azioni"] .admin-order-item-remove {
        width: 100%;
        justify-self: stretch;
    }

    .admin-section-link,
    .tab-btn {
        min-height: 56px;
    }

    .hero-compact {
        min-height: 15vh;
        padding-bottom: 0.9rem;
    }

    .home-media-slider {
        width: 100%;
        margin-top: 6px;
    }

    .home-vehicle-hero-slider {
        width: min(100%, calc(100% - 1.25rem));
        margin-top: 0.4rem;
    }

    .home-vehicle-hero-track {
        min-height: 0;
    }

    .home-vehicle-hero-slide {
        grid-template-columns: 1fr;
    }

    .home-vehicle-hero-media {
        min-height: 250px;
    }

    .home-vehicle-hero-panel {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .home-vehicle-hero-aside {
        align-content: start;
    }

    .home-vehicle-hero-panel h2 {
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }

    .home-vehicle-hero-details {
        grid-template-columns: 1fr;
    }

    .home-vehicle-hero-cta-row {
        flex-direction: column;
    }

    .home-vehicle-hero-nav {
        top: 126px;
        transform: none;
        width: 40px;
        height: 40px;
    }

    .home-vehicle-hero-nav.prev {
        left: 0.65rem;
    }

    .home-vehicle-hero-nav.next {
        right: 0.65rem;
    }

    .home-vehicle-hero-dots {
        bottom: 0.65rem;
    }

    .home-media-slider-track {
        height: clamp(220px, 56vw, 340px);
    }

    .home-media-slide img {
        height: 240px;
    }

    .home-media-slider-dots {
        bottom: 0.55rem;
    }

    .home-slides-admin-table {
        grid-template-columns: 1fr;
    }

    .home-slides-admin-head {
        display: none;
    }

    .home-slide-admin-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0.75rem;
        border: 1px solid #d7dcd8;
        border-radius: 14px;
        background: #fbfcfb;
    }

    .home-slide-admin-index,
    .home-slide-admin-media,
    .home-slide-admin-actions {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .listing-main {
        margin-top: 0.25rem;
    }

    .listing-main-wide {
        width: min(100%, calc(100% - 1.25rem));
        margin-top: 0.25rem;
    }

    .listing-filter-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .listing-filter-band {
        padding: 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .listing-filter-band .form-grid {
        gap: 0.9rem;
    }

    .listing-filter-band .search-box {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(17, 29, 41, 0.62) 0%, rgba(23, 38, 53, 0.74) 100%);
        box-shadow: 0 14px 28px rgba(12, 23, 35, 0.12);
    }

    .listing-filter-band .filter-controls-row > .field-group {
        padding: 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(17, 29, 41, 0.62) 0%, rgba(23, 38, 53, 0.74) 100%);
        box-shadow: 0 14px 28px rgba(12, 23, 35, 0.12);
        gap: 0.45rem;
    }

    .listing-filter-band,
    .listing-filter-band .form-grid,
    .listing-filter-band .search-box,
    .listing-filter-band .filter-controls-row,
    .listing-filter-band .filter-controls-row > .field-group {
        min-width: 0;
        max-width: 100%;
    }

    .page-main {
        margin-top: 0.45rem;
    }

    .contact-page-main {
        margin-top: 0.25rem;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-row-3 {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .form-row-meta {
        grid-template-columns: 1fr;
    }

    .form-row-type-condition {
        grid-template-columns: 1fr;
    }

    .compact-year,
    .compact-doors,
    .compact-type,
    .compact-condition,
    .compact-fuel,
    .compact-km,
    .compact-price {
        max-width: 100%;
    }

    .catalog-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-section-heading h2,
    .catalog-section-heading .muted {
        color: #f5fbff;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .showcase-slider {
        grid-template-columns: 1fr;
    }

    .showcase-nav {
        display: none;
    }

    .showcase-track {
        gap: 0;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .showcase-track .showcase-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-stop: always;
    }

    .vehicle-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .price-badge {
        margin-left: 0;
        justify-content: center;
    }

    .vehicle-meta {
        font-size: 0.95rem;
    }

    .contact-map {
        height: 260px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-nav-btn {
        width: 100%;
        text-align: center;
    }

    .style-split-grid {
        grid-template-columns: 1fr;
    }

    .style-inline-grid {
        grid-template-columns: 1fr;
    }

    .hours-admin-grid {
        grid-template-columns: 1fr;
    }

    .hours-admin-head {
        display: none;
    }

    .hours-admin-day {
        margin-top: 0.35rem;
    }

    .hours-compact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .hours-value {
        text-align: left;
    }

    .filter-controls-row,
    .listing-filter-band .filter-controls-row {
        grid-template-columns: 1fr;
    }

    .listing-filter-band .search-box {
        grid-template-columns: 1fr;
    }

    .listing-filter-band .search-box input,
    .listing-filter-band .field-group select,
    .listing-filter-band .search-box button,
    .listing-filter-band .filter-actions button,
    .listing-filter-band .filter-actions .detail-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .filter-controls-row .transmission-break,
    .filter-actions-inline {
        grid-column: auto;
        grid-row: auto;
        max-width: none;
    }

    .filter-actions-inline {
        align-self: stretch;
    }

    .filter-actions {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    .listing-filter-band .filter-label-spacer {
        display: none;
    }

    .site-footer-top {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 1100px) and (min-width: 761px) {
    .vehicle-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .showcase-track .showcase-card {
        flex-basis: min(300px, 65%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-highlight-panel-intro .home-highlight-content,
    .home-between-panel-intro .home-highlight-content,
    .services-panel-intro .services-content,
    .about-panel-intro .services-content,
    .panel,
    .storefront-section,
    .listing-filter-band,
    .account-section,
    .account-dashboard-card,
    .account-summary-card,
    .vehicle-detail-panel,
    .checkout-summary,
    .checkout-form-panel,
    .card,
    .storefront-product-card,
    .storefront-mini-card,
    .checkout-info-grid article,
    .checkout-item,
    .account-order-item,
    .account-cart-item {
        animation: none;
    }
}

.vehicle-detail-panel {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: start;
    padding: 1.35rem;
    border: 1px solid #d5dde4;
    border-radius: 4px;
    box-shadow: 0 18px 34px rgba(13, 27, 42, 0.12);
}

.vehicle-detail-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 440px;
    object-fit: cover;
    border-radius: 14px;
}

.vehicle-detail-media {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.vehicle-main-image-btn {
    position: relative;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    border-radius: 14px;
    overflow: hidden;
}

.vehicle-main-image-btn .vehicle-detail-image {
    display: block;
    transition: transform 0.25s ease;
}

.vehicle-main-image-btn:hover .vehicle-detail-image {
    transform: scale(1.02);
}

.vehicle-gallery-count {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    background: rgba(15, 35, 44, 0.78);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
}

.vehicle-thumb-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 0.45rem;
    row-gap: 0.08rem;
    align-items: start;
}

.vehicle-thumb-btn {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: block;
    width: 100%;
    aspect-ratio: 72 / 50;
    cursor: pointer;
}

.vehicle-thumb-btn img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.vehicle-thumb-btn.is-active {
    border-color: #0f6d5e;
    box-shadow: 0 5px 14px rgba(15, 109, 94, 0.24);
}

.vehicle-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1200;
}

.vehicle-lightbox.is-open {
    display: block;
}

.vehicle-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 9, 13, 0.72);
}

.vehicle-lightbox-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 1180px);
    height: min(80vh, 760px);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    background: #0f1418;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.vehicle-lightbox-stage {
    position: absolute;
    inset: 0;
    padding: 2.9rem 4rem;
    display: grid;
    place-items: center;
}

.vehicle-lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #0f1418;
    display: block;
}

.vehicle-lightbox-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0;
}

.vehicle-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    font-size: 1.45rem;
    padding: 0;
}

.vehicle-lightbox-nav.prev {
    left: 0.8rem;
}

.vehicle-lightbox-nav.next {
    right: 0.8rem;
}

.vehicle-lightbox-counter {
    position: absolute;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(10, 22, 28, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.vehicle-detail-content h2 {
    margin-top: 0;
}

.vehicle-detail-price {
    margin: 0.9rem 0 1rem;
    display: inline-grid;
    justify-items: stretch;
    gap: 0;
    min-width: min(100%, 290px);
    padding: 0;
    background: linear-gradient(180deg, #fbfcfd 0%, #eef2f5 100%);
    border: 1px solid #b9c5d0;
    border-radius: 3px;
    box-shadow:
        0 16px 30px rgba(15, 28, 41, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.vehicle-detail-price .price-label {
    display: block;
    padding: 0.52rem 0.85rem 0.48rem;
    background: linear-gradient(180deg, #23384c 0%, #152534 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #f3f7fb;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vehicle-detail-price-row {
    display: block;
    padding: 0.9rem 0.95rem 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(232, 238, 243, 0.72) 100%),
        repeating-linear-gradient(90deg, rgba(47, 76, 102, 0.05) 0, rgba(47, 76, 102, 0.05) 1px, transparent 1px, transparent 18px);
}

.vehicle-detail-price .price-value {
    display: block;
    width: 100%;
    color: var(--theme-panel-text);
    font-size: clamp(1.85rem, 3.4vw, 2.65rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    text-align: right;
}

.vehicle-detail-offer {
    position: relative;
    border: 1px solid #9db9d3;
    box-shadow:
        0 18px 34px rgba(13, 27, 42, 0.14),
        0 0 0 2px rgba(157, 185, 211, 0.2);
}

.vehicle-detail-offer::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(157, 185, 211, 0.45);
    animation: offerPulse 2.2s ease-in-out infinite;
}

.vehicle-detail-offer .price-badge {
    background: linear-gradient(180deg, #f0f5fb 0%, #dfe8f2 100%);
    border-color: #9db9d3;
    box-shadow: 0 14px 28px rgba(66, 92, 117, 0.18);
}

.vehicle-detail-offer .price-label {
    background: linear-gradient(180deg, #4d6f8f 0%, #35536e 100%);
    color: #f7fbff;
}

.vehicle-detail-offer .vehicle-detail-price-row {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(221, 230, 240, 0.78) 100%),
        repeating-linear-gradient(90deg, rgba(63, 93, 120, 0.06) 0, rgba(63, 93, 120, 0.06) 1px, transparent 1px, transparent 18px);
}

.vehicle-detail-offer .price-value {
    color: #2f4c66;
}

.offer-note {
    margin: 0.2rem 0 0.5rem;
    color: #3f5d78;
    font-weight: 700;
    font-size: 0.86rem;
}

@media (max-width: 900px) {
    .vehicle-detail-panel {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .vehicle-detail-price {
        display: grid;
        width: min(100%, 290px);
        margin-left: auto;
        margin-right: auto;
    }

    .vehicle-thumb-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .vehicle-lightbox-dialog {
        width: 94vw;
        height: 76vh;
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .vehicle-lightbox-stage {
        padding: 2.9rem 2.8rem;
    }

    .vehicle-lightbox-nav {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 560px) {
    .vehicle-thumb-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.storefront-body {
    background: var(--theme-storefront-body-bg);
}

.storefront-hero {
    color: #fff;
    position: relative;
    min-height: 29vh;
    padding: 0.85rem clamp(1rem, 3vw, 3rem) 1.35rem;
    border-bottom: 0;
    overflow: hidden;
}

.storefront-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 38%, rgba(89, 155, 225, 0.16) 100%);
    pointer-events: none;
}

.storefront-topbar {
    border-bottom-color: var(--theme-topbar-border);
}

.storefront-shell {
    width: min(1320px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.storefront-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.95fr);
    gap: 1.25rem;
    align-items: end;
    margin-top: 0.25rem;
}

.storefront-hero-copy {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.storefront-kicker,
.storefront-section-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 0;
    padding: 0.18rem 0.58rem;
    border-radius: 999px;
    background: var(--theme-kicker-bg);
    border: 1px solid var(--theme-kicker-border);
    color: var(--theme-kicker-text);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.storefront-hero-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: none;
    white-space: normal;
    max-width: 11ch;
}

.storefront-hero-copy p {
    margin: 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.storefront-search-card {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 22px;
    background: var(--theme-search-card-bg);
    color: var(--theme-search-card-text);
    box-shadow: var(--theme-search-card-shadow);
    border: 1px solid var(--theme-panel-border);
}

.storefront-search-heading {
    display: grid;
    gap: 0.2rem;
}

.storefront-search-heading strong {
    font-size: 1.15rem;
}

.storefront-search-heading span {
    color: var(--theme-search-muted);
    font-size: 0.92rem;
}

.storefront-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(160px, 0.7fr);
    gap: 0.85rem;
    align-items: end;
}

.storefront-search-grid > .field-group {
    min-width: 0;
}

.storefront-search-grid input,
.storefront-search-grid select {
    width: 100%;
    min-width: 0;
}

.storefront-search-submit {
    min-height: 48px;
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 14px;
    background: var(--theme-button-gradient);
    color: var(--theme-button-text);
    box-shadow: var(--theme-button-shadow);
    align-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storefront-search-submit:hover {
    background: var(--theme-button-gradient-hover);
}

.storefront-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #647385;
    font-size: 0.84rem;
}

.storefront-search-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--theme-tags-border);
    background: var(--theme-tags-bg);
    color: var(--theme-tags-text);
    font-weight: 700;
}

.storefront-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.storefront-highlight-card {
    display: grid;
    gap: 0.18rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: var(--theme-highlight-card-bg);
    border: 1px solid var(--theme-highlight-card-border);
    backdrop-filter: blur(10px);
}

.storefront-highlight-card strong {
    font-size: 1.2rem;
    color: var(--theme-highlight-card-text);
}

.storefront-highlight-card span {
    color: var(--theme-highlight-card-muted);
    font-size: 0.88rem;
}

.storefront-main {
    width: min(1320px, calc(100% - 2rem));
    margin: 0.35rem auto 2.5rem;
    position: relative;
    z-index: 2;
    display: grid;
    gap: 1.25rem;
}

.storefront-section {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(21, 35, 49, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 27, 38, 0.08);
    backdrop-filter: blur(10px);
}

.storefront-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.storefront-section-head h2 {
    margin: 0.28rem 0 0;
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: var(--theme-panel-text);
}

.storefront-inline-link {
    font-weight: 800;
    color: var(--theme-panel-soft-text);
}

.storefront-section .storefront-section-kicker {
    background: var(--theme-panel-soft-bg);
    border-color: var(--theme-panel-soft-border);
    color: var(--theme-panel-text);
}

.storefront-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.storefront-category-card {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 18px;
    background: var(--theme-filter-bg);
    color: var(--theme-filter-title);
    min-height: 130px;
    justify-content: end;
    align-content: end;
    box-shadow: var(--theme-panel-shadow);
}

.storefront-category-card strong {
    font-size: 1.1rem;
}

.storefront-category-card span {
    color: var(--theme-highlight-card-muted);
}

.storefront-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.storefront-product-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--theme-product-bg);
    border: 1px solid var(--theme-product-border);
    box-shadow: var(--theme-product-shadow);
}

.storefront-product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--theme-product-media-bg);
}

.storefront-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.26s ease;
}

.storefront-product-card:hover .storefront-product-media img {
    transform: scale(1.04);
}

.storefront-product-body {
    display: grid;
    gap: 0.55rem;
    padding: 0.8rem;
}

.storefront-product-body h3 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
    min-height: 2.25em;
}

.storefront-product-subtitle {
    margin: 0;
    color: var(--theme-panel-muted);
    font-size: 0.78rem;
}

.storefront-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.storefront-product-meta span {
    padding: 0.22rem 0.4rem;
    border-radius: 999px;
    background: var(--theme-meta-bg);
    color: var(--theme-meta-text);
    font-size: 0.68rem;
    font-weight: 700;
}

.storefront-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.storefront-card-actions,
.showcase-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    flex-wrap: nowrap;
}

.storefront-card-actions .detail-btn,
.showcase-actions .detail-btn,
.storefront-mini-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.quick-cart-form {
    margin: 0;
}

.quick-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    border-radius: 0;
    border: 1px solid var(--theme-topbar-cart-border);
    background: var(--theme-button-gradient);
    color: var(--theme-button-text);
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1;
}

.quick-cart-btn:hover {
    color: var(--theme-button-text);
    background: var(--theme-button-gradient-hover);
}

.storefront-mini-copy {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
}

.storefront-mini-meta {
    display: grid;
    gap: 0.35rem;
    justify-items: stretch;
}

.storefront-mini-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
}

.storefront-mini-detail-btn,
.storefront-mini-cart-btn {
    min-height: 28px;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    flex: 0 0 auto;
}

.storefront-mini-detail-btn {
    background: #eef4f3;
    border: 1px solid #c8dad5;
    color: #18443c;
    font-weight: 700;
}

.storefront-mini-detail-btn:hover {
    background: #e1eeeb;
    color: #18443c;
}

.storefront-mini-cart-btn {
    margin-left: auto;
}

.storefront-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f2235;
}

.storefront-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    background: var(--theme-button-gradient);
    color: var(--theme-button-text);
    font-weight: 800;
    font-size: 0.84rem;
    line-height: 1;
}

.storefront-card-link:hover {
    color: var(--theme-button-text);
    background: var(--theme-button-gradient-hover);
}

.storefront-split {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 1.15rem;
    align-items: stretch;
}

.storefront-split-panel {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 247, 246, 0.96) 100%);
    border: 1px solid color-mix(in srgb, var(--theme-panel-border) 70%, rgba(255, 255, 255, 0.18));
    color: var(--theme-panel-text);
    box-shadow: 0 18px 38px rgba(14, 28, 38, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.storefront-split-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--theme-button-gradient);
}

.storefront-split-panel h2 {
    margin: 0.45rem 0 0.8rem;
    font-size: 1.55rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.storefront-split-panel-muted {
    background:
        linear-gradient(155deg, rgba(10, 22, 34, 0.95) 0%, rgba(17, 35, 50, 0.88) 54%, rgba(23, 49, 68, 0.96) 100%),
        var(--theme-footer-bg, #102435);
    color: var(--theme-filter-title, #ffffff);
    border-color: color-mix(in srgb, var(--theme-filter-border, rgba(255, 255, 255, 0.14)) 75%, rgba(255, 255, 255, 0.08));
    box-shadow: 0 24px 44px rgba(11, 23, 33, 0.24);
}

.storefront-split-panel-muted .storefront-section-kicker {
    background: rgba(255, 255, 255, 0.12);
    color: var(--theme-filter-title, #ffffff);
    border-color: rgba(255, 255, 255, 0.16);
}

.storefront-split-panel-muted p,
.storefront-split-panel-muted a {
    color: var(--theme-filter-title, #ffffff);
}

.storefront-split-panel-muted h2 {
    color: var(--theme-filter-title, #ffffff);
}

.storefront-split-panel p {
    margin: 0;
    color: rgba(22, 35, 42, 0.82);
    line-height: 1.7;
}

.storefront-split-panel-muted p {
    color: rgba(255, 255, 255, 0.84);
}

.storefront-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.storefront-checklist li {
    position: relative;
    padding-left: 1.45rem;
    color: rgba(22, 35, 42, 0.86);
    line-height: 1.55;
}

.storefront-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--theme-button-gradient);
    box-shadow: 0 0 0 4px rgba(49, 91, 130, 0.09);
}

.storefront-split-panel-muted .storefront-checklist li {
    color: rgba(255, 255, 255, 0.9);
}

.storefront-split-panel-muted .storefront-checklist li::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.storefront-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.storefront-mini-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 18px;
    background: var(--theme-panel-bg);
    border: 1px solid var(--theme-panel-border);
    box-shadow: 0 12px 28px rgba(17, 31, 44, 0.06);
}

.storefront-mini-card img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.storefront-mini-card strong,
.storefront-mini-card span,
.storefront-mini-card em {
    display: block;
}

.storefront-mini-card span {
    margin-top: 0.25rem;
    color: var(--theme-panel-muted);
    font-style: normal;
}

.storefront-mini-card em {
    font-style: normal;
    font-weight: 800;
    color: var(--theme-panel-text);
}

@media (max-width: 1100px) {
    .storefront-hero-panel,
    .storefront-split {
        grid-template-columns: 1fr;
    }

    .account-summary-grid {
        grid-template-columns: 1fr;
    }

    .storefront-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storefront-search-submit {
        grid-column: 1 / -1;
    }

    .storefront-category-grid,
    .storefront-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .storefront-mini-grid {
        grid-template-columns: 1fr;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .account-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .admin-customers-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .storefront-main {
        width: min(100%, calc(100% - 1rem));
        margin-top: 0.35rem;
    }

    .storefront-section {
        padding: 1rem;
        border-radius: 20px;
    }

    .account-main {
        width: min(100%, calc(100% - 0.8rem));
        margin-top: 0.25rem;
    }

    .account-section {
        padding: 0.9rem;
    }

    .storefront-search-grid,
    .storefront-category-grid,
    .storefront-product-grid,
    .storefront-highlights {
        grid-template-columns: 1fr;
    }

    .storefront-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .vehicle-grid .showcase-card {
        border-radius: 20px;
    }

    .vehicle-grid .showcase-media img {
        height: 220px;
        object-position: center center;
    }

    .vehicle-grid .showcase-badges {
        left: 0.9rem;
        right: auto;
        bottom: 0.8rem;
        width: fit-content;
        max-width: calc(100% - 1.8rem);
        align-items: flex-start;
        justify-content: flex-start;
    }

    .vehicle-grid .showcase-status {
        padding: 0.22rem 0.45rem;
        font-size: 0.75rem;
        width: fit-content;
        white-space: nowrap;
    }

    .vehicle-grid .showcase-content {
        gap: 0.7rem;
    }

    .vehicle-grid .showcase-content h3 {
        font-size: 1.08rem;
        line-height: 1.25;
        min-height: 0;
    }

    .vehicle-grid .showcase-subtitle {
        font-size: 0.93rem;
        line-height: 1.35;
    }

    .vehicle-grid .showcase-price {
        margin-top: 0.15rem;
        font-size: 1.8rem;
        line-height: 1;
    }

    .vehicle-grid .showcase-specs {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .vehicle-grid .showcase-spec-item {
        min-height: 0;
        padding: 0.42rem 0.6rem;
        font-size: 0.82rem;
    }

    .vehicle-grid .showcase-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .vehicle-grid .showcase-actions .detail-btn,
    .vehicle-grid .showcase-actions .quick-cart-form,
    .vehicle-grid .showcase-actions .quick-cart-btn {
        width: 100%;
    }

    .storefront-product-card {
        border-radius: 20px;
    }

    .storefront-product-media {
        aspect-ratio: 16 / 11;
    }

    .storefront-product-media img {
        object-position: center center;
    }

    .storefront-product-body {
        gap: 0.7rem;
        padding: 1rem;
    }

    .storefront-product-body h3 {
        font-size: 1.08rem;
        line-height: 1.25;
        min-height: 0;
    }

    .storefront-product-subtitle {
        font-size: 0.93rem;
        line-height: 1.35;
    }

    .storefront-product-meta {
        gap: 0.5rem;
    }

    .storefront-product-meta span {
        padding: 0.34rem 0.58rem;
        font-size: 0.82rem;
        line-height: 1.15;
    }

    .storefront-product-footer {
        align-items: stretch;
        gap: 0.7rem;
    }

    .storefront-price {
        font-size: 1.8rem;
        line-height: 1;
    }

    .storefront-card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .storefront-card-actions .detail-btn,
    .storefront-card-actions .quick-cart-form,
    .storefront-card-actions .quick-cart-btn {
        width: 100%;
    }

    .quick-cart-btn {
        min-height: 40px;
        font-size: 0.92rem;
    }

    .checkout-item {
        align-items: start;
    }

    .checkout-item-thumb {
        width: 44px;
        height: 44px;
    }

    .account-actions {
        align-items: stretch;
    }

    .account-actions .button-primary,
    .account-actions .storefront-inline-link {
        width: 100%;
        justify-content: center;
    }

    .admin-customer-actions {
        align-items: stretch;
    }

    .admin-customer-delete {
        margin-left: 0;
        justify-content: stretch;
        width: 100%;
    }

    .account-main-login {
        width: min(100%, calc(100% - 0.8rem));
    }

    .account-dashboard {
        width: min(100%, calc(100% - 0.8rem));
    }

    .checkout-main {
        width: min(100%, calc(100% - 0.8rem));
    }

    .product-cart-actions {
        align-items: stretch;
    }

    .product-cart-qty {
        max-width: none;
        width: 100%;
    }

    .product-cart-actions .button-primary {
        width: 100%;
    }

    .storefront-mini-card {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1rem;
    }

    .storefront-mini-card img {
        width: 100%;
        height: 200px;
        border-radius: 16px;
    }

    .storefront-mini-copy strong {
        font-size: 1.06rem;
        line-height: 1.25;
    }

    .storefront-mini-copy span {
        font-size: 0.92rem;
    }

    .storefront-mini-meta {
        grid-column: auto;
        gap: 0.55rem;
    }

    .storefront-mini-meta em {
        font-size: 1.25rem;
    }

    .storefront-mini-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .storefront-mini-detail-btn,
    .storefront-mini-cart-btn {
        width: 100%;
        min-height: 40px;
        font-size: 0.86rem;
    }

    .account-order-item,
    .account-cart-item {
        grid-template-columns: 1fr;
    }

    .checkout-info-grid {
        grid-template-columns: 1fr;
    }

    .checkout-item {
        align-items: start;
    }

    .account-cart-thumb {
        width: 100%;
        height: 180px;
    }

    .account-cart-actions {
        justify-items: start;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .admin-order-preview-modal,
    .admin-order-preview-modal * {
        visibility: visible !important;
    }

    .admin-order-preview-modal {
        position: static !important;
        inset: auto !important;
        display: block !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .admin-order-preview-backdrop,
    .admin-order-preview-toolbar,
    .admin-order-preview-actions {
        display: none !important;
    }

    .admin-order-preview-dialog {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .admin-order-receipt {
        border: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}
