/* =========================================================
   JARVIS GENUINE WRECKERS
   Main Website Stylesheet — Mobile & Safari Optimised
   ========================================================= */

:root {
    --navy: #1c2a35;
    --navy-dark: #111c25;
    --navy-light: #2c4354;
    --gold: #ef7622;
    --gold-dark: #cf5e16;
    --gold-soft: #fff0e5;
    --white: #ffffff;
    --off-white: #f5f7fa;
    --light-grey: #e6ebf0;
    --grey: #5e6d80;
    --dark: #172536;
    --green: #1d7a4c;
    --green-bg: #e4f5ec;
    --red: #c43d3d;

    --shadow-sm: 0 3px 12px rgba(9, 26, 44, 0.07);
    --shadow-md: 0 10px 30px rgba(9, 26, 44, 0.12);
    --shadow-lg: 0 20px 50px rgba(9, 26, 44, 0.22);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 132px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: clip;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* Prevent iOS Safari auto-zoom on form focus */
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 16px;
}

button {
    cursor: pointer;
    touch-action: manipulation;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

::selection {
    background: var(--gold);
    color: var(--navy-dark);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* =========================================================
   TOP ANNOUNCEMENT BAR & STICKY SEARCH HEADER
   ========================================================= */

.top-announcement-bar {
    background: var(--navy);
    color: #e4ebf2;
    text-align: center;
    padding: 6px 12px;
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 10px 4%;
    background: var(--navy-dark);
    color: var(--white);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.22);
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    display: block;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.brand-subtitle {
    display: block;
    margin-top: 2px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.track-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 12px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.track-header-link:hover { background: #ffe08a; border-color: #ffe08a; }

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid rgba(214, 168, 79, 0.65);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.header-icon-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    transition: 0.2s ease;
}

.hamburger-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.header-search-row {
    display: grid;
    grid-template-columns: 132px 132px 132px minmax(180px, 1fr) 40px auto;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin: 0 auto;
}

.header-search-row select,
.header-search-row input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d4dde6;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
}

.header-search-row select {
    font-size: 14px;
    font-weight: 600;
}

.header-search-row input {
    font-size: 14px;
}

.header-search-row button {
    min-height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.header-search-row #clearSearchButton {
    min-width: 40px;
    border: none;
    background: var(--off-white);
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
}

.header-search-row button[type="submit"] {
    padding: 8px 16px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.header-search-row button[type="submit"]:hover {
    background: var(--gold-dark);
    color: var(--white);
}

/* MOBILE SEARCH LAYOUT */
@media (max-width: 680px) {
    .header-search-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .header-search-row select {
        min-width: 0;
        width: 100%;
        font-size: 13px;
    }

    .header-search-row input {
        grid-column: 1 / -1;
        width: 100%;
        font-size: 14px;
    }

    .header-search-row button[type="submit"] {
        grid-column: 1 / -1;
        width: 100%;
    }

    .header-search-row #clearSearchButton {
        grid-column: 1 / -1;
        width: 100%;
    }
}
/* =========================================================
   3-LINE HEADLINES NAVIGATION DRAWER (SLIDES FROM RIGHT)
   ========================================================= */

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: none;
    background: rgba(5, 18, 32, 0.65);
    backdrop-filter: blur(2px);
}

.nav-backdrop.open {
    display: block;
}

.site-header.nav-open {
    z-index: 2000;
}

.nav-headlines-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    width: min(320px, 84vw);
    height: 100dvh;
    background: var(--navy-dark);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right 0.25s ease;
    overflow-y: auto;
}

.nav-headlines-drawer.open {
    right: 0;
}

.nav-headlines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
}

.nav-headlines-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 22px;
    line-height: 1;
}

.nav-headlines-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.nav-headlines-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-headlines-list a,
.nav-headlines-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-headlines-list a::after,
.nav-headlines-list button::after {
    content: "\203A";
    color: var(--gold);
    font-size: 22px;
    line-height: 1;
}

.nav-headlines-list a:hover,
.nav-headlines-list button:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--gold);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    padding: 64px 5% 84px;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(7, 23, 40, 0.96) 0%,
            rgba(12, 34, 55, 0.89) 60%,
            rgba(12, 34, 55, 0.56) 100%
        ),
        url("images/hero.jpeg") center/cover no-repeat,
        var(--navy);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 740px);
    color: var(--white);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

.hero h1 {
    max-width: 720px;
    margin-bottom: 16px;
    font-size: clamp(32px, 5.4vw, 56px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.hero p {
    max-width: 580px;
    margin-bottom: 24px;
    color: #d6e0eb;
    font-size: 15px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-button {
    background: var(--gold);
    color: var(--navy-dark);
}

.primary-button:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.secondary-button {
    border-color: rgba(255, 255, 255, 0.72);
    background: transparent;
    color: var(--white);
}

.secondary-button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #dbe4ed;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   2x2 QUICK CATEGORY TILES CARD
   ========================================================= */

.quick-tiles-section {
    position: relative;
    z-index: 5;
    margin-top: -36px;
    padding: 0 5% 24px;
}

.quick-tiles-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
    margin: 0 auto;
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-md);
    background: var(--off-white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 126px;
    padding: 20px 14px;
    border: none;
    border-right: 1px solid var(--light-grey);
    border-bottom: 1px solid var(--light-grey);
    background: var(--off-white);
    color: var(--navy-dark);
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.quick-tile:nth-child(2n) {
    border-right: none;
}

.quick-tile:nth-child(n+3) {
    border-bottom: none;
}

.quick-tile:hover {
    background: var(--white);
    color: var(--navy);
}

.quick-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--gold);
    font-size: 22px;
}

.quick-tile strong {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* =========================================================
   POPULAR MAKES GRID & QUICK TAGS
   ========================================================= */

.makes-section {
    padding: 40px 5% 24px;
    background: var(--white);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading.compact {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: clamp(24px, 3.8vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

.section-heading p {
    color: var(--grey);
    font-size: 15px;
}

.makes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 960px;
    margin: 0 auto 20px;
}

.make-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-sm);
    background: var(--off-white);
    color: var(--navy-dark);
    text-align: left;
    transition: 0.2s ease;
}

.make-tile:hover,
.make-tile.active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.make-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: var(--navy);
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.make-tile.active .make-badge {
    background: var(--gold);
    color: var(--navy-dark);
}

.make-tile strong {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.quick-search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.quick-tag {
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #d7e0e8;
    border-radius: 999px;
    background: var(--off-white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.quick-tag:hover,
.quick-tag.active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

/* =========================================================
   CATALOGUE SECTIONS & CARDS
   ========================================================= */

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.vehicle-card,
.part-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.vehicle-card img,
.part-card img {
    width: 100%;
    height: 155px;
    min-height: 155px;
    object-fit: cover;
}

.vehicle-card-content,
.part-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .catalogue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .catalogue-grid {
        gap: 10px;
    }
}
.catalogue-image-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.catalogue-image-gallery img {
    flex: 0 0 100%;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: start;
}

.catalogue-image-gallery::-webkit-scrollbar {
    height: 5px;
}

.catalogue-image-gallery::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
}

.catalogue-image-gallery .catalogue-no-image {
    width: 100%;
}
/* =========================================================
   YARD SHOWCASE BANNER
   ========================================================= */

.yard-banner-section {
    padding: 64px 5%;
    background:
        linear-gradient(125deg, rgba(9, 26, 44, 0.96), rgba(16, 38, 63, 0.92)),
        var(--navy-dark);
    color: var(--white);
}

.yard-banner-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.yard-banner-content .eyebrow {
    color: var(--gold);
}

.yard-banner-content h2 {
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.yard-banner-content p {
    color: #d6e0eb;
    font-size: 15px;
    margin-bottom: 24px;
}

.yard-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* =========================================================
   DETAILS MODAL, CART DRAWER & CONFIRMATION MODAL
   ========================================================= */

.vehicle-details {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
    overflow-y: auto;
    padding: 24px 16px calc(32px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 18, 32, 0.78);
    backdrop-filter: blur(4px);
}

.vehicle-details.active,
.vehicle-details.show {
    display: block;
}

.details-content,
#detailsContent {
    position: relative;
    width: min(100%, 820px);
    margin: 16px auto;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.details-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--navy);
    font-size: 24px;
    line-height: 1;
}

.detail-modal-hero {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 12px 0 18px;
    background: #e9edf1;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    font-size: 14px;
}

.detail-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.detail-price-large {
    color: var(--navy);
    font-size: 26px;
    font-weight: 800;
}

.detail-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.related-parts-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--light-grey);
}

.related-parts-section h3 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 18px;
}

.related-part {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-sm);
    background: var(--off-white);
}

.related-part-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.related-part button {
    min-height: 38px;
    padding: 7px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: none;
    background: rgba(5, 18, 32, 0.65);
    backdrop-filter: blur(2px);
}

.cart-backdrop.open {
    display: block;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1900;
    display: flex;
    flex-direction: column;
    width: min(440px, 100vw);
    height: 100dvh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right 0.25s ease;
    overflow: hidden;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    background: var(--navy-dark);
    color: var(--white);
}

.cart-drawer-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.cart-drawer-header p {
    color: #c7d4e2;
    font-size: 12px;
}

.drawer-close-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 24px;
    line-height: 1;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-empty-box {
    text-align: center;
    padding: 40px 16px;
    color: var(--grey);
}

.cart-empty-box strong {
    display: block;
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 6px;
}

.cart-item-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-sm);
    background: var(--off-white);
}

.cart-item-thumb {
    width: 68px;
    height: 68px;
    border-radius: 6px;
    object-fit: cover;
    background: #dde4ec;
    flex-shrink: 0;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.cart-item-meta {
    color: var(--grey);
    font-size: 12px;
    margin-top: 2px;
}

.cart-item-price {
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    margin-top: 6px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: var(--white);
}

.qty-stepper button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--navy);
    font-weight: 800;
}

.qty-stepper span {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.cart-remove-btn {
    border: none;
    background: transparent;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 6px;
}

.cart-checkout-form {
    padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--light-grey);
    background: var(--white);
    overflow-y: auto;
    max-height: 55dvh;
}

.cart-summary-box {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    margin-bottom: 12px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 4px;
}

.cart-summary-row.total {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    padding-top: 6px;
    border-top: 1px solid var(--light-grey);
}

.cart-note {
    display: block;
    color: var(--grey);
    font-size: 11px;
    margin-top: 6px;
}

.checkout-fields {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 12px;
}

.checkout-fields input,
.checkout-fields textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d4dde6;
    border-radius: var(--radius-sm);
    background: var(--white);
}

.checkout-fields textarea {
    min-height: 64px;
    resize: vertical;
}

.cart-submit-btn {
    width: 100%;
}

.confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 18, 32, 0.8);
    backdrop-filter: blur(4px);
}

.confirmation-modal.open {
    display: flex;
}

.confirmation-card {
    width: min(100%, 540px);
    max-height: 88dvh;
    overflow-y: auto;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.confirmation-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.confirmation-ref-box {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    border: 1px solid var(--light-grey);
    font-size: 14px;
}

.confirmation-items-list {
    margin: 12px 0 18px;
    border-top: 1px solid var(--light-grey);
    border-bottom: 1px solid var(--light-grey);
    padding: 10px 0;
}

.confirmation-item-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}

/* =========================================================
   SUBMIT INQUIRY SECTION
   ========================================================= */

.contact-section {
    padding: 64px 5%;
    background: #edf1f5;
}

.contact-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.contact-info {
    min-width: 0;
}

.contact-info h2 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 32px;
    line-height: 1.2;
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--grey);
    line-height: 1.7;
}

.part-request-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.part-request-form h3 {
    color: var(--navy);
    font-size: 20px;
    margin-bottom: 4px;
}

.part-request-form input,
.part-request-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d4dde6;
    border-radius: var(--radius-sm);
    background: var(--white);
}

.part-request-form textarea {
    min-height: 90px;
    resize: vertical;
}

/* =========================================================
   FOOTER WITH MOBILE ACCORDIONS
   ========================================================= */

.site-footer {
    padding: 40px 5% calc(28px + env(safe-area-inset-bottom, 0px));
    background: var(--navy-dark);
    color: #d4dce5;
}

.footer-brand strong {
    display: block;
    font-size: 18px;
    color: var(--white);
}

.footer-brand span {
    display: block;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 6px;
}

.footer-tagline {
    color: #b9c5d2;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-accordions {
    max-width: var(--container);
    margin: 0 auto 20px;
}

.footer-accordion-item {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-accordion-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 2px;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.accordion-plus {
    font-size: 20px;
    font-weight: 400;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.footer-accordion-trigger[aria-expanded="true"] .accordion-plus {
    transform: rotate(45deg);
}

.footer-accordion-panel {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 0 2px 16px;
    font-size: 14px;
    color: #c7d4e2;
}

.footer-accordion-panel.open {
    display: flex;
}

.footer-accordion-panel a,
.footer-accordion-panel button {
    border: none;
    background: transparent;
    color: #dbe4ed;
    font-size: 14px;
    text-align: left;
    padding: 2px 0;
}

.footer-accordion-panel a:hover,
.footer-accordion-panel button:hover {
    color: var(--gold);
}

.footer-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.footer-trust-pills span {
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e4ebf2;
    font-size: 12px;
    font-weight: 700;
}

.site-footer .footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: #b9c5d2;
}

/* =========================================================
   FLOATING CART & LIVE CHAT (NON-OVERLAPPING)
   ========================================================= */

.floating-cart-button {
    position: fixed;
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 2px solid var(--navy-dark);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy-dark);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(9, 26, 44, 0.22);
}

#chatLauncher {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy-dark);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.24);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.chat-launcher:hover {
    background: #e7bd6b;
}

.chat-unread-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--white);
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
}

#liveChatWindow {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    z-index: 1950;
    display: none;
    flex-direction: column;
    width: min(390px, calc(100vw - 32px));
    height: min(600px, calc(100dvh - 104px));
    overflow: hidden;
    border: 1px solid var(--light-grey);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

#liveChatWindow.open,
#liveChatWindow.active {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 14px 18px;
    background: var(--navy);
    color: var(--white);
}

.chat-header strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

#chatStatusText {
    color: #cbd7e3;
    font-size: 12px;
}

#chatCloseButton {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 22px;
    line-height: 1;
}

.chat-welcome {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-welcome h3 {
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 18px;
}

.chat-welcome > p {
    margin-bottom: 14px;
    color: var(--grey);
    font-size: 13px;
}

#chatStartForm {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.chat-welcome input,
.chat-welcome textarea,
.chat-welcome select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
}

.chat-welcome textarea {
    min-height: 70px;
    resize: vertical;
}

.chat-welcome button,
.chat-message-form button {
    border: none;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
}

.chat-welcome button {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
}

.chat-conversation {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f5f7fa;
}

.chat-message {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 12px;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.45;
}

.chat-message.customer {
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    background: var(--navy);
    color: var(--white);
}

.chat-message.admin {
    align-self: flex-start;
    border: 1px solid #e1e6ec;
    border-bottom-left-radius: 3px;
    background: var(--white);
    color: var(--dark);
}

.chat-message time {
    display: block;
    margin-top: 4px;
    opacity: 0.72;
    font-size: 11px;
}

.chat-message img {
    max-width: 100%;
    max-height: 180px;
    margin-top: 8px;
    border-radius: 7px;
    object-fit: contain;
}

.chat-message-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px calc(12px + env(safe-area-inset-bottom, 0px)) 12px 12px;
    border-top: 1px solid var(--light-grey);
    background: var(--white);
}

.chat-message-form textarea {
    width: 100%;
    min-height: 44px;
    max-height: 100px;
    padding: 10px 12px;
    border: 1px solid #d5dde6;
    border-radius: 10px;
    resize: vertical;
}

.chat-message-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-photo-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--off-white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.chat-message-form button {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.chat-upload-message {
    color: var(--grey);
    font-size: 12px;
}

/* =========================================================
   FEEDBACK & RESPONSIVE BREAKPOINTS
   ========================================================= */

.success-message {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

.error-message {
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 950px) {
    .catalogue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 148px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .header-search-row select {
        flex: 0 0 106px;
        font-size: 13px;
    }

    .catalogue-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .details-content,
    #detailsContent {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* COMPACT VEHICLE CATALOGUE CARDS */

#vehicleList,
#wreckingVehicleList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.vehicle-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
}

.vehicle-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.vehicle-card-content {
    padding: 12px;
}

.vehicle-card-content h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 7px 0 10px;
    display: -webkit-box;
     --webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vehicle-card .card-actions {
    margin-top: 8px;
}

.vehicle-card .card-actions button {
    width: 100%;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
}

/* PHONE SCREEN SIZING */
@media (max-width: 600px) {
    #vehicleList,
    #wreckingVehicleList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vehicle-card {
        border-radius: 10px;
    }

    .vehicle-card img {
        height: 105px;
    }

    .vehicle-card-content {
        padding: 8px;
    }

    .vehicle-card-content h3 {
        font-size: 13px;
        line-height: 1.3;
        margin: 6px 0 8px;
    }

    .vehicle-card-content .status {
        font-size: 10px;
        padding: 4px 6px;
    }

    .vehicle-card .card-actions button {
        min-height: 32px;
        font-size: 11px;
        padding: 6px;
    }
}
/* HOMEPAGE CUSTOMER REVIEWS */

.homepage-reviews-section {
    max-width: 1100px;
    margin: 55px auto;
    padding: 35px 20px;
}

.homepage-reviews-summary {
    text-align: center;
    margin: 20px 0 25px;
    color: #555;
}

.homepage-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.homepage-review-card {
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
}

.homepage-review-card h3 {
    color: #091a2c;
    margin: 0 0 8px;
}

.homepage-review-stars {
    color: #c9a44c;
    font-size: 20px;
    letter-spacing: 2px;
}

.homepage-review-text {
    color: #444;
    line-height: 1.7;
    margin: 12px 0;
}

.homepage-review-reply {
    border-left: 3px solid #c9a44c;
    padding-left: 12px;
    margin-top: 15px;
    color: #555;
    font-size: 14px;
}

.homepage-review-verified {
    color: #187545;
    font-size: 12px;
    font-weight: 700;
}

.homepage-reviews-action {
    text-align: center;
    margin-top: 28px;
}

@media (max-width: 600px) {
    .homepage-reviews-section {
        padding: 25px 14px;
    }

    .homepage-reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* COMPACT CATALOGUE CARDS */
.vehicle-card img,
.part-card img {
    height: 145px;
}

.vehicle-card-content,
.part-card-content {
    padding: 10px;
}

.vehicle-card h3,
.part-card h3 {
    font-size: 15px;
}

.vehicle-card p,
.part-card p {
    font-size: 13px;
}

.card-actions {
    gap: 5px;
}

.card-btn-primary,
.card-btn-secondary {
    min-height: 38px;
    padding: 8px 5px;
    font-size: 12px;
}

/* TABLETS */
@media (max-width: 900px) {
    .catalogue-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* PHONES */
@media (max-width: 600px) {
    .catalogue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vehicle-card img,
    .part-card img {
        height: 115px;
    }
}
#adminWreckingVehiclesList,
#adminSaleVehiclesList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#adminWreckingVehiclesList .admin-stock-item,
#adminSaleVehiclesList .admin-stock-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

#adminWreckingVehiclesList .admin-stock-item img,
#adminSaleVehiclesList .admin-stock-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
}

#adminWreckingVehiclesList .admin-stock-item > div,
#adminSaleVehiclesList .admin-stock-item > div {
    flex: 1;
    min-width: 0;
}

#adminWreckingVehiclesList .admin-stock-item button,
#adminSaleVehiclesList .admin-stock-item button {
    margin: 3px;
}

@media (max-width: 600px) {
    #adminWreckingVehiclesList .admin-stock-item,
    #adminSaleVehiclesList .admin-stock-item {
        gap: 8px;
        padding: 8px;
    }

    #adminWreckingVehiclesList .admin-stock-item img,
    #adminSaleVehiclesList .admin-stock-item img {
        width: 65px;
        height: 60px;
    }
}
/* JARVIS INSPECTION IMAGE GALLERY */

.inspection-gallery {
    width: 100%;
    margin: 18px 0;
}

.inspection-main-image {
    position: relative;
    width: 100%;
    height: 340px;
    background: #f2f4f6;
    border-radius: 12px;
    overflow: hidden;
}

.inspection-main-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 35, 55, 0.85);
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.inspection-thumbnails {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 12px 2px;
}

.inspection-thumbnails .inspection-thumbnail {
    flex: 0 0 85px;
    width: 85px;
    height: 68px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
}

.inspection-thumbnails .inspection-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inspection-thumbnails .inspection-thumbnail.active {
    border-color: var(--gold);
}

.gallery-counter {
    text-align: center;
    font-size: 13px;
    color: var(--grey);
}

@media (max-width: 600px) {
    .inspection-main-image {
        height: 250px;
    }
}
/* =========================================================
   JARVIS GENUINE WRECKERS
   FINAL CATALOGUE & RESPONSIVE LAYOUT CORRECTIONS
   ========================================================= */

/* CONSISTENT CATALOGUE GRIDS */

#vehicleList,
#wreckingVehicleList,
#partsList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

/* CONSISTENT VEHICLE AND PART CARDS */

#vehicleList .vehicle-card,
#wreckingVehicleList .vehicle-card,
#partsList .part-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#vehicleList .vehicle-card:hover,
#wreckingVehicleList .vehicle-card:hover,
#partsList .part-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* CONSISTENT CARD IMAGES */

#vehicleList .vehicle-card img,
#wreckingVehicleList .vehicle-card img,
#partsList .part-card img {
    display: block;
    width: 100%;
    height: 150px;
    min-height: 150px;
    object-fit: cover;
    background: var(--off-white);
}

/* CARD CONTENT */

#vehicleList .vehicle-card-content,
#wreckingVehicleList .vehicle-card-content,
#partsList .part-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
}

#vehicleList .vehicle-card h3,
#wreckingVehicleList .vehicle-card h3,
#partsList .part-card h3 {
    margin: 6px 0 8px;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#vehicleList .vehicle-card p,
#wreckingVehicleList .vehicle-card p,
#partsList .part-card p {
    margin-bottom: 6px;
    color: var(--grey);
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* CARD ACTION BUTTONS */

#vehicleList .card-actions,
#wreckingVehicleList .card-actions,
#partsList .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
}

#vehicleList .card-actions button,
#wreckingVehicleList .card-actions button,
#partsList .card-actions button {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    padding: 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

/* SEARCH FILTER CONTROLS */

#vehicleCategory,
#vehicleModel,
#vehicleYear {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d4dde6;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
}

/* VIEW ALL CATALOGUE LINKS */

.section-view-all {
    display: flex;
    justify-content: center;
    margin: 22px auto 28px;
}

.section-view-all a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid var(--navy);
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.section-view-all a:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy-dark);
}

/* SEARCH RESULTS */

.parts-search-status {
    max-width: 1200px;
    margin: 0 auto 18px;
    padding: 12px 15px;
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-sm);
    background: var(--off-white);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

/* TABLETS */

@media (max-width: 900px) {
    #vehicleList,
    #wreckingVehicleList,
    #partsList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* MOBILE PHONES */

@media (max-width: 600px) {
    #vehicleList,
    #wreckingVehicleList,
    #partsList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #vehicleList .vehicle-card img,
    #wreckingVehicleList .vehicle-card img,
    #partsList .part-card img {
        height: 115px;
        min-height: 115px;
    }

    #vehicleList .vehicle-card-content,
    #wreckingVehicleList .vehicle-card-content,
    #partsList .part-card-content {
        padding: 9px;
    }

    #vehicleList .vehicle-card h3,
    #wreckingVehicleList .vehicle-card h3,
    #partsList .part-card h3 {
        font-size: 13px;
    }

    #vehicleList .vehicle-card p,
    #wreckingVehicleList .vehicle-card p,
    #partsList .part-card p {
        font-size: 12px;
    }

    #vehicleList .card-actions button,
    #wreckingVehicleList .card-actions button,
    #partsList .card-actions button {
        min-height: 34px;
        padding: 6px 4px;
        font-size: 11px;
    }
}

/* SMALL PHONE SAFETY */

@media (max-width: 360px) {
    #vehicleList,
    #wreckingVehicleList,
    #partsList {
        gap: 7px;
    }

    #vehicleList .vehicle-card-content,
    #wreckingVehicleList .vehicle-card-content,
    #partsList .part-card-content {
        padding: 7px;
    }
}


.vehicle-card-price {
    margin: 10px 0 14px;
    color: var(--navy, #10263d);
    font-size: 16px;
    font-weight: 800;
}
.vehicle-card-price strong { font-weight: 700; }

/* Modern compact mobile navigation and accessible tap targets */
@media(max-width:680px){
 .top-announcement-bar{font-size:9px;letter-spacing:.7px;padding:5px 8px}
 .site-header{gap:7px;padding:8px 4%;}
 .header-top-row{min-height:38px;gap:8px}
 .brand-name{font-size:16px;letter-spacing:.5px}.brand-subtitle{font-size:8px;letter-spacing:1.5px}
 .header-icon-btn,.hamburger-btn{min-height:38px;padding:6px 9px;font-size:12px}
 .track-header-link{min-height:38px;padding:6px 8px;font-size:10px}
 .header-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin:0}
 .header-search-row input{grid-column:1;min-width:0;width:100%;min-height:42px;font-size:16px}
 .header-search-row button[type=submit]{grid-column:2;width:auto;min-height:42px;padding:7px 13px}
 .header-search-row #clearSearchButton{grid-column:2;display:none!important}
 html{scroll-padding-top:112px}
}


/* =========================================================
   JGW ADMIN INVENTORY STOCK GRID
   Shared by Spare Parts, Wrecking Vehicles and Vehicles for Sale.
   Presentation-only rules: inventory data and action handlers remain unchanged.
   ========================================================= */
#adminPartsList,
#adminWreckingVehiclesList,
#adminSaleVehiclesList {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

#adminPartsList > .admin-stock-item,
#adminWreckingVehiclesList > .admin-stock-item,
#adminSaleVehiclesList > .admin-stock-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    min-height: 220px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px;
    gap: 8px;
    border: 1px solid #e2e7ed;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

#adminPartsList > .admin-stock-item > img,
#adminWreckingVehiclesList > .admin-stock-item > img,
#adminSaleVehiclesList > .admin-stock-item > img {
    display: block;
    width: 100% !important;
    height: 104px !important;
    min-height: 104px;
    object-fit: cover !important;
    border-radius: 7px;
    flex: 0 0 auto;
    background: #f1f3f5;
}

#adminPartsList > .admin-stock-item > div,
#adminWreckingVehiclesList > .admin-stock-item > div,
#adminSaleVehiclesList > .admin-stock-item > div {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 4px;
}

#adminPartsList .admin-stock-item h4,
#adminWreckingVehiclesList .admin-stock-item h4,
#adminSaleVehiclesList .admin-stock-item h4 {
    margin: 0 0 2px;
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

#adminPartsList .admin-stock-item p,
#adminWreckingVehiclesList .admin-stock-item p,
#adminSaleVehiclesList .admin-stock-item p {
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#adminPartsList .admin-stock-item button,
#adminWreckingVehiclesList .admin-stock-item button,
#adminSaleVehiclesList .admin-stock-item button {
    min-height: 28px;
    margin: 2px 0 0;
    padding: 5px 6px;
    font-size: 10px;
    line-height: 1.2;
}

#adminPartsList .admin-stock-item button + button,
#adminWreckingVehiclesList .admin-stock-item button + button,
#adminSaleVehiclesList .admin-stock-item button + button {
    margin-top: 3px;
}

@media (max-width: 1100px) {
    #adminPartsList,
    #adminWreckingVehiclesList,
    #adminSaleVehiclesList {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 760px) {
    #adminPartsList,
    #adminWreckingVehiclesList,
    #adminSaleVehiclesList {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    #adminPartsList > .admin-stock-item,
    #adminWreckingVehiclesList > .admin-stock-item,
    #adminSaleVehiclesList > .admin-stock-item {
        min-height: 190px;
        padding: 7px;
        gap: 6px;
    }

    #adminPartsList > .admin-stock-item > img,
    #adminWreckingVehiclesList > .admin-stock-item > img,
    #adminSaleVehiclesList > .admin-stock-item > img {
        height: 76px !important;
        min-height: 76px;
    }

    #adminPartsList .admin-stock-item h4,
    #adminWreckingVehiclesList .admin-stock-item h4,
    #adminSaleVehiclesList .admin-stock-item h4 {
        font-size: 10px;
    }

    #adminPartsList .admin-stock-item p,
    #adminWreckingVehiclesList .admin-stock-item p,
    #adminSaleVehiclesList .admin-stock-item p {
        font-size: 9px;
    }

    #adminPartsList .admin-stock-item button,
    #adminWreckingVehiclesList .admin-stock-item button,
    #adminSaleVehiclesList .admin-stock-item button {
        min-height: 25px;
        padding: 4px;
        font-size: 9px;
    }
}

@media (max-width: 350px) {
    #adminPartsList,
    #adminWreckingVehiclesList,
    #adminSaleVehiclesList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Live chat multi-photo selection and pre-send preview */
.chat-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}
.chat-image-preview-item {
    width: 88px;
    height: 88px;
    position: relative;
    border: 1px solid #d5dce5;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f4f7;
}
.chat-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.chat-preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 29, 44, .88);
    color: white;
    font-size: 19px;
    line-height: 20px;
    cursor: pointer;
}
.chat-attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.chat-attachment-gallery img {
    width: min(180px, 42vw);
    height: 150px;
    object-fit: cover;
    border-radius: 9px;
}


/* Professional multi-photo chat picker */
.chat-add-photos-button,
.chat-photo-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #183247;
    font-weight: 650;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.chat-add-photos-button:hover,
.chat-photo-label:hover {
    background: #f1f6fa;
    border-color: #8299aa;
}
.chat-photo-count {
    color: #526477;
    font-size: 12px;
    font-weight: 600;
}
.chat-photo-preview {
    padding: 10px;
    border: 1px solid #e1e7ee;
    border-radius: 12px;
    background: #f8fafc;
    min-height: 0;
}
.chat-photo-preview:empty { display: none; }
.chat-image-preview-item { width: 104px; height: 104px; border-radius: 11px; }
.chat-preview-remove { width: 26px; height: 26px; font-weight: 700; }
@media (max-width: 520px) {
    .chat-image-preview-item { width: 82px; height: 82px; }
    .chat-photo-preview { gap: 7px; padding: 8px; }
}

/* Site-wide phone form layout: keep every field reachable and readable */
@media (max-width: 680px) {
  input, select, textarea { max-width:100%; min-width:0; box-sizing:border-box; }
  form input:not([type="checkbox"]):not([type="radio"]), form select, form textarea { width:100%; }
  .checkout-fields, .form-grid, .form-row, .contact-form-grid, .sell-form-grid { grid-template-columns:minmax(0,1fr) !important; }
  .checkout-fields > *, .form-grid > *, .form-row > *, .contact-form-grid > *, .sell-form-grid > * { min-width:0; width:100%; }
  .table-responsive, .table-scroll, .responsive-table { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  button, input[type="submit"], input[type="button"] { min-height:42px; }
}
