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

:root {
    --radius-control: 12px;
    --radius-panel: 20px;
    --black: #050505;
    --dark: #0b0b0c;
    --dark-2: #111113;

    --red: #9d0000;
    --red-light: #d40000;

    --white: #ffffff;
    --gray: #929292;
    --border: rgba(255, 255, 255, 0.09);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(150, 0, 0, 0.16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #030303 0%,
            #090909 50%,
            #040404 100%
        );

    color: var(--white);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: relative;
    z-index: 100;

    width: 100%;
    height: 84px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(5, 5, 5, 0.92);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
}


/* LOGO */

.logo {
    color: #fff;

    font-size: 25px;
    font-weight: 900;

    letter-spacing: 4px;
}

.logo span {
    display: block;

    margin-top: 5px;

    color: #777;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 4px;
}


/* NAV */

.nav {
    display: flex;
    align-items: center;

    gap: 38px;
}

.nav a {
    position: relative;

    color: #bdbdbd;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.5px;

    transition: 0.3s ease;
}

.nav a:hover {
    color: #fff;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -10px;

    width: 0;
    height: 2px;

    background: var(--red-light);

    transition: 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}


/* HEADER BUTTONS */

.header-actions {
    display: flex;
    gap: 10px;
}

.header-actions button {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: 1px solid #292929;

    background: #101010;

    color: #fff;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s ease;
}

.header-actions button:hover {
    background: var(--red);

    border-color: var(--red);

    transform: translateY(-2px);
}


/* =====================================================
   PARTS PAGE
===================================================== */

.parts-page {
    position: relative;

    min-height: calc(100vh - 84px);
}


/* =====================================================
   PARTS HERO
===================================================== */

.parts-hero {
    position: relative;

    min-height: 360px;

    padding:
        90px
        7%
        80px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom: 1px solid var(--border);
}

.parts-background {
    box-sizing: border-box;
    min-height: 240px;
    padding: 32px 0;
    justify-content: center;
}
.parts-search-panel {
    box-sizing: border-box;
    width: min(620px, calc(100% - 40px));
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 15, 16, 0.88);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}
.parts-search-panel label {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}
.parts-search-panel {
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(43, 24, 27, .96), rgba(12, 13, 16, .96));
    border-color: rgba(255, 255, 255, .18);
}
.shop-back-button { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 1px solid #bd536c; border-radius: 12px; background: linear-gradient(135deg,#49202e,#251820); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: 0 5px 18px #0005; transition: background .2s, border-color .2s; }
.shop-back-button > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #ffffff12; font-size: 23px; }
.shop-back-button:hover { background: #65243a; border-color: #ffadc1; }
.shop-back-button:focus-visible { outline: 3px solid #ffc4d2; outline-offset: 4px; }
.checkout-back { border: 1px solid #bd536c !important; background: #35212b !important; color: #fff !important; min-height: 48px; border-radius: 12px; }
.account-panel, .shop-settings { max-width: 900px; margin: 40px auto; padding: 24px; color: #eee; }
.account-panel { max-width: 460px; border: 1px solid #4e303d; border-radius: 20px; background: #181217; }
.account-panel h1, .shop-settings h1 { margin: 24px 0; font-size: 28px; }
.account-panel form, .settings-form { display: grid; gap: 16px; }
.account-panel form[hidden] { display: none; }
.account-panel > p { line-height: 1.7; margin: 16px 0; color: #bbaeb4; }
.account-panel select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #644653; border-radius: 10px; background: #0e0b0d; color: #fff; font: inherit; }
.admin-account-name { color: #ffc0d0; font-size: 14px; margin: 10px 0; }
.settings-form { padding: 24px; margin: 24px 0; border: 1px solid #4e303d; border-radius: 16px; background: #181217; }
.settings-form label, .account-panel label { display: grid; gap: 8px; }
.settings-form input, .settings-form textarea, .account-panel input, .order-filters input, .order-filters select, .admin-customers-list input, .checkout-contact select, .checkout-contact textarea { width: 100%; min-width: 0; min-height: 44px; padding: 12px; background: #0e0b0d; border: 1px solid #644653; border-radius: 10px; color: #fff; font: inherit; }
.settings-form textarea { min-height: 110px; }
.settings-form .check-label { display: flex; align-items: center; }
.check-label input { width: 22px; }
.account-panel button, .settings-form button, .order-actions button, #detailAddToCart { min-height: 44px; padding: 12px 20px; border: 1px solid #9b3a50; border-radius: 10px; background: #8e102c; color: white; cursor: pointer; }
.settings-form a, .shop-settings a, .account-panel a, .product-detail-page a, .shop-footer-links a { color: #ffa6b9; }
.settings-form li { margin-bottom: 12px; overflow-wrap: anywhere; }
.order-actions, .order-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.order-filters > * { flex: 1 1 220px; }
.order-status { padding: 8px 12px; border-radius: 8px; background: #442134; color: #ffc1d0; }
.gallery-keep { display: inline-flex; align-items: center; gap: 6px; margin: 8px; }
.gallery-keep input { width: auto; }
.gallery-keep img { width: 60px; height: 60px; object-fit: contain; }
.product-detail-page { max-width: 1200px; margin: 40px auto; padding: 24px; }
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; margin-top: 24px; }
.product-detail-copy h1 { font-size: clamp(26px,4vw,42px); margin: 16px 0; }
.product-detail-copy p { margin: 16px 0; }
.product-zoom { width: 100%; border: 1px solid #513643; border-radius: 18px; background: #1c181b; cursor: zoom-in; }
.product-zoom img { width: 100%; height: 400px; object-fit: contain; }
.product-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.product-thumbnails button { border: 1px solid #785366; background: #20161c; border-radius: 8px; cursor: pointer; }
.product-thumbnails img { width: 64px; height: 64px; object-fit: contain; }
.product-no-image { min-height: 250px; display: grid; place-items: center; font-size: 80px; background: #1c181b; }
.detail-price { font-size: 26px; font-weight: bold; }
.detail-text, .product-detail dd { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.product-detail dt { color: #bda5b1; margin-top: 20px; }
.product-detail dd { margin-top: 8px; }
.product-card-zoom { width: 100%; border: 0; cursor: zoom-in; font: inherit; color: inherit; }
.product-card-zoom:disabled { cursor: default; }
.product-card-zoom:focus-visible { outline: 2px solid #ff939e; outline-offset: -3px; }
.image-viewer-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 12px; }
.image-viewer-controls[hidden] { display: none; }
.product-image-viewer .image-viewer-controls button { position: static; min-width: 44px; min-height: 44px; border: 1px solid #785366; border-radius: 8px; color: white; background: #33202a; cursor: pointer; }
.product-image-viewer > img { max-height: 62dvh; }
dialog.chat-image-dialog { min-width: min(320px, 90vw); }
dialog.chat-image-dialog > img { margin: auto; }
.product-detail-link { color: inherit; text-decoration: none; }
.product-detail-link:hover { color: #ffabc0; }
.availability { display: block; margin: 8px 0; font-size: 13px; }
.available { color: #8dd8a1; }.unavailable { color: #e5a5aa; }
.product-bottom button:disabled, #detailAddToCart:disabled { opacity: .5; cursor: not-allowed; }
.delivery-address[hidden] { display: none; }
.shop-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; padding: 30px; font-size: 13px; }
@media(max-width:650px) { .product-detail { grid-template-columns: minmax(0,1fr); }.product-zoom img { height: 280px; }.shop-settings, .account-panel { margin: 20px 12px; padding: 16px; }.settings-form { padding: 16px; } }
.parts-recent { margin-top: 18px; padding-top: 16px; border-top: 1px solid #393036; }
.parts-recent[hidden] { display: none; }
.parts-recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.parts-recent-heading h2 { font-size: 13px; line-height: 1.5; color: #c4b8be; }
.parts-recent-heading button { min-height: 44px; border: 0; background: transparent; color: #ffabb9; font-size: 12px; cursor: pointer; }
.parts-recent-list { display: flex; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.parts-recent-list button { display: flex; align-items: center; gap: 10px; flex: 0 0 180px; max-width: 85%; min-height: 64px; padding: 10px; border: 1px solid #43343d; border-radius: 12px; background: #181417; color: white; text-align: left; cursor: pointer; }
.parts-recent-list button:hover { border-color: #ff939e; }
.parts-recent button:focus-visible { outline: 2px solid #ff939e; outline-offset: 1px; }
.parts-recent-list img, .parts-recent-icon { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; border-radius: 6px; background: #eee; }
.parts-recent-icon { display: grid; place-items: center; color: #9d001b; }
.parts-recent-list strong { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.parts-recent-list small { display: block; margin-top: 4px; color: #aaa; font-size: 11px; overflow-wrap: anywhere; }
.product-code { display: block; margin: 8px 0; color: #ccc; font-size: 12px; overflow-wrap: anywhere; }
.parts-search-hint { margin-top: 12px; color: #c4b8be; font-size: 13px; line-height: 1.6; }
.parts-filters { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; margin-bottom: 16px; padding: 18px; border: 1px solid #393036; border-radius: 16px; background: #181417; }
.parts-filters label { display: grid; gap: 8px; min-width: 0; font-size: 12px; color: #c4b8be; }
.parts-filters input, .parts-filters select { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #51424b; border-radius: 9px; background: #0f0d10; color: white; font-size: 16px; }
.parts-filters :is(input,select):focus-visible { outline: 2px solid #ff939e; outline-offset: 2px; }
.parts-search-notice { color: #ffc4ce; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.parts-search-notice:empty { display: none; }
.parts-categories button[data-count]::after { content: attr(data-count); float: right; margin-left: 10px; font-size: 12px; opacity: .75; }
.parts-show-more, .parts-empty button { min-height: 44px; padding: 12px 24px; border: 1px solid #a74f64; border-radius: 12px; color: white; background: #381c26; cursor: pointer; margin-top: 20px; }
.parts-show-more[hidden] { display: none; }
.parts-empty p + p { margin-top: 12px; font-size: 14px; color: #aaa; }
.product-card:focus-visible, .parts-show-more:focus-visible, .parts-empty button:focus-visible { outline: 2px solid #ff939e; outline-offset: 3px; }
@media (max-width: 600px) {
    .parts-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
    .parts-filters label:last-child { grid-column: 1 / -1; }
    .parts-layout .parts-categories { display: flex; gap: 8px; overflow-x: auto; align-items: center; padding: 12px; scrollbar-width: thin; }
    .parts-layout .parts-categories h1 { display: none; }
    .parts-layout .parts-categories button { flex: 0 0 auto; width: auto; margin: 0; white-space: nowrap; min-height: 44px; border-radius: 10px; }
}
.parts-search-control { position: relative; align-items: center; }
.parts-search-icon { position: absolute; left: 16px; width: 22px; height: 22px; color: #e3656d; pointer-events: none; }
.parts-search-control input { border-radius: 12px; min-height: 56px; }
.parts-search-control input::-webkit-search-cancel-button { -webkit-appearance: none; }
.parts-search-control button { position: absolute; right: 8px; }
.parts-search-panel input {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #555;
    border-radius: 12px;
    background: #0a0a0b;
    color: #fff;
    font: inherit;
    font-size: 16px;
}
.parts-search-control { display: flex; gap: 8px; }
.parts-search-control input {
    min-width: 0;
    flex: 1;
    padding: 14px 50px 14px 50px;
}
.parts-search-control button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid #555;
    border-radius: var(--radius-control);
    background: #171717;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}
.parts-search-control button[hidden], .parts-search-suggestions[hidden],
.parts-results-toolbar button[hidden] { display: none; }
.parts-search-suggestions {
    display: grid;
    gap: 6px;
    max-height: min(360px, 45vh);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #98404a #18181b;
    overflow-y: auto;
    margin-top: 10px;
}
.parts-search-suggestions button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #151515;
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.parts-search-suggestions button:hover,
.parts-search-suggestions button[aria-selected="true"] {
    border-color: var(--red);
    background: #271010;
}
.parts-search-suggestions img, .parts-suggestion-image {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    background: #eee;
}
.parts-suggestion-image { display: grid; place-items: center; color: #a00000; }
.parts-suggestion-info { min-width: 0; flex: 1; }
.parts-suggestion-info strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; }
.parts-suggestion-info small { margin-top: 4px; }
.parts-search-suggestions img, .parts-suggestion-image { border-radius: 8px; }
.parts-search-suggestions button > small { white-space: nowrap; color: #fff; font-weight: 700; }
.parts-search-suggestions button:focus-visible { outline: 2px solid #ff6666; outline-offset: -2px; }
.parts-suggestion-info strong, .parts-suggestion-info small { display: block; }
.parts-search-suggestions small { color: #bbb; font-size: 11px; }
.parts-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 24px;
    margin-bottom: 16px;
    color: #bbb;
}
.parts-results-toolbar p { margin: 0; }
.parts-results-toolbar button {
    border: 0;
    background: transparent;
    color: #ff6666;
    font: inherit;
    cursor: pointer;
}
.parts-results-toolbar button:hover { text-decoration: underline; }
.parts-search-panel input:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.parts-layout {
    display: grid;
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
    gap: 30px;
    padding: 40px 7% 90px;
}
.parts-categories {
    align-self: start;
    display: grid;
    gap: 5px;
    padding: 22px;
    border: 1px solid var(--border);
    background: #101011;
}
.parts-categories h1 { margin: 0 0 16px; color: #fff; font-size: 22px; }
.parts-categories button {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    background: transparent;
    color: #d5d5d5;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.parts-categories button:hover, .parts-categories .parts-category-active {
    border-color: var(--red);
    background: #2a1010;
    color: #fff;
}
.parts-results { min-width: 0; }
.parts-results .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.parts-empty { grid-column: 1 / -1; color: #ccc; }
.parts-results .product-photo { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 850px) {
    .parts-layout { grid-template-columns: 1fr; padding: 30px 5% 60px; }
    .parts-results .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .parts-results .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .parts-results .products-grid .product-info { padding: 12px; }
    .parts-results .products-grid .product-image { height: 160px; }
    .parts-results .products-grid .product-info h3 { font-size: 15px; }
    .parts-results .products-grid .product-bottom { gap: 8px; }
    .parts-results .products-grid .product-bottom button { width: 100%; padding: 10px 6px; }
}


/* BIG CIRCLE */

.parts-hero::before {
    content: "";

    position: absolute;

    width: 550px;
    height: 550px;

    right: 5%;
    top: 50%;

    transform: translateY(-50%);

    border-radius: 50%;

    border: 1px solid rgba(180, 0, 0, 0.25);

    box-shadow:
        0 0 0 35px rgba(180, 0, 0, 0.025),
        0 0 0 70px rgba(180, 0, 0, 0.015),
        0 0 100px rgba(180, 0, 0, 0.13),
        inset 0 0 100px rgba(180, 0, 0, 0.08);
}


/* INNER SHAPE */

.parts-hero::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 330px;

    right: calc(5% + 160px);
    top: 50%;

    transform:
        translateY(-50%)
        rotate(45deg);

    border: 1px solid rgba(210, 0, 0, 0.22);

    box-shadow:
        0 0 50px rgba(180, 0, 0, 0.1),
        inset 0 0 50px rgba(180, 0, 0, 0.05);
}


/* HERO CONTENT */

.parts-hero > div {
    position: relative;
    z-index: 5;
}

.parts-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--red-light);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 5px;
}

.parts-hero h1 {
    font-size: clamp(55px, 7vw, 90px);

    line-height: 0.9;

    font-weight: 900;

    letter-spacing: -4px;
}

.parts-hero h1 span {
    display: block;

    color: transparent;

    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
}

.parts-hero p {
    max-width: 480px;

    margin-top: 25px;

    color: var(--gray);

    font-size: 15px;

    line-height: 1.7;
}


/* =====================================================
   CATALOG
===================================================== */

.catalog {
    position: relative;
    z-index: 5;

    padding: 80px 7% 110px;
}


/* CATALOG TOP */

.catalog-top {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}

.catalog-label {
    display: block;

    margin-bottom: 10px;

    color: var(--red-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 4px;
}

.catalog h2 {
    font-size: 42px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -1px;
}


/* FILTER */

.catalog-filter {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}

.catalog-filter button {
    padding: 11px 18px;

    border: 1px solid #292929;

    background: #0d0d0e;

    color: #888;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.3s ease;
}

.catalog-filter button:hover {
    color: #fff;

    border-color: #555;
}

.catalog-filter .filter-active {
    background: var(--red);

    border-color: var(--red);

    color: #fff;
}


/* =====================================================
   PRODUCT GRID
===================================================== */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.product-card {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #111112,
            #090909
        );

    border: 1px solid var(--border);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-7px);

    border-color: rgba(190, 0, 0, 0.45);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(150, 0, 0, 0.08);
}


/* =====================================================
   PRODUCT IMAGE AREA
===================================================== */

.product-image {
    position: relative;

    height: 245px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(150, 0, 0, 0.14),
            transparent 55%
        ),
        #0c0c0d;

    border-bottom: 1px solid var(--border);
}


/* DECORATIVE CIRCLE */

.product-image::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    border: 1px solid rgba(200, 0, 0, 0.22);

    box-shadow:
        0 0 45px rgba(170, 0, 0, 0.12),
        inset 0 0 30px rgba(170, 0, 0, 0.08);
}


/* DECORATIVE DIAMOND */

.product-image::after {
    content: "";

    position: absolute;

    width: 105px;
    height: 105px;

    transform: rotate(45deg);

    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* PRODUCT ICON */

.product-icon {
    position: relative;
    z-index: 3;

    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #171718,
            #080808
        );

    border: 1px solid rgba(210, 0, 0, 0.35);

    color: #d00000;

    font-size: 32px;

    box-shadow:
        0 0 35px rgba(180, 0, 0, 0.18),
        inset 0 0 25px rgba(180, 0, 0, 0.05);
}


/* PRODUCT BADGE */

.product-badge {
    position: absolute;

    top: 16px;
    right: 16px;

    padding: 6px 10px;

    background: var(--red);

    color: #fff;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.5px;

    z-index: 5;
}


/* =====================================================
   PRODUCT INFO
===================================================== */

.product-info {
    padding: 25px;
    min-width: 0;
}

.product-category {
    display: block;

    margin-bottom: 9px;

    color: var(--red-light);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2.5px;
}

.product-info h3 {
    margin-bottom: 10px;

    color: #fff;

    font-size: 22px;
    font-weight: 800;
}

.product-info p {
    min-height: 46px;

    color: #777;

    font-size: 12px;

    line-height: 1.6;
}


/* =====================================================
   PRODUCT BOTTOM
===================================================== */

.product-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 24px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.product-bottom strong {
    color: #fff;

    font-size: 22px;

    font-weight: 900;
}

.product-bottom button {
    padding: 12px 15px;

    border: 1px solid var(--red);

    background: var(--red);

    color: #fff;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.3s ease;
}

.product-bottom button:hover {
    background: var(--red-light);

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(190, 0, 0, 0.2);
}


/* =====================================================
   HOME PAGE HERO
===================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 7%;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: 50%;
    top: 50%;

    transform: translate(50%, -50%);

    border-radius: 50%;

    border: 1px solid rgba(190, 0, 0, 0.35);

    box-shadow:
        0 0 0 25px rgba(190, 0, 0, 0.025),
        0 0 0 55px rgba(190, 0, 0, 0.018),
        0 0 100px rgba(150, 0, 0, 0.20),
        inset 0 0 100px rgba(150, 0, 0, 0.08);
}

.hero::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 470px;

    right: 50%;
    top: 50%;

    transform:
        translate(50%, -50%)
        rotate(45deg);

    border: 1px solid rgba(220, 0, 0, 0.32);

    box-shadow:
        0 0 40px rgba(180, 0, 0, 0.15),
        inset 0 0 50px rgba(180, 0, 0, 0.06);

    opacity: 0.75;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-small {
    display: inline-block;

    margin-bottom: 24px;
    padding: 9px 15px;
    border: 1px solid rgba(212, 0, 0, 0.32);
    border-radius: 999px;
    background: rgba(120, 0, 0, 0.1);

    color: var(--red-light);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 24px;
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -2.5px;
}

.hero h1 span {
    color: #fff;
    background: linear-gradient(90deg, #fff 20%, #ff7777 55%, #fff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .hero-title-line {
    display: block;
    background: none;
    -webkit-text-fill-color: #fff;
}

.hero p {
    max-width: 690px;
    color: var(--gray);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.65;
}

.hero-buttons {
    display: flex;

    gap: 14px;

    justify-content: center;
    margin-top: 32px;
}

.hero-buttons button {
    min-width: 165px;

    padding: 15px 25px;

    border-radius: var(--radius-control);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition: 0.3s;
}

.btn-primary {
    background: var(--red);

    border: 1px solid var(--red);

    color: white;

    box-shadow:
        0 10px 35px rgba(190,0,0,0.2);
}

.btn-primary:hover {
    background: var(--red-light);

    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255,255,255,0.02);

    border: 1px solid #3b3b3b;

    color: white;
}

.btn-secondary:hover {
    border-color: white;

    transform: translateY(-3px);
}

.hero-car {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.hero-car img {
    display: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

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

    .parts-hero {
        min-height: 320px;
    }

    .parts-hero::before {
        right: -80px;
    }

    .parts-hero::after {
        right: 80px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

    .header {
        height: 75px;

        padding: 0 5%;
    }

    .nav {
        display: none;
    }

    .logo {
        font-size: 19px;
    }

    .logo span {
        font-size: 7px;
    }


    /* PARTS HERO */

    .parts-hero {
        min-height: 310px;

        padding:
            70px 6%
            60px;
    }

    .parts-hero::before {
        width: 390px;
        height: 390px;

        right: -140px;
    }

    .parts-hero::after {
        width: 180px;
        height: 260px;

        right: 0;
    }

    .parts-hero h1 {
        font-size: 56px;
    }


    /* CATALOG */

    .catalog {
        padding:
            60px 6%
            80px;
    }

    .catalog-top {
        align-items: flex-start;

        flex-direction: column;
    }

    .catalog h2 {
        font-size: 34px;
    }

    .catalog-filter {
        width: 100%;
    }


    /* PRODUCTS */

    .products-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .product-image {
        height: 230px;
    }


    /* HOME */

    .hero {
        min-height: calc(100vh - 75px);

        padding: 50px 6%;

        text-align: center;

        justify-content: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero::before {
        width: 430px;
        height: 430px;

        right: 50%;

        transform:
            translate(50%, -50%);
    }

    .hero::after {
        right: 50%;

        transform:
            translate(50%, -50%)
            rotate(45deg);
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 500px) {

    .header-actions button {
        width: 38px;
        height: 38px;
    }

    .parts-hero h1 {
        font-size: 48px;

        letter-spacing: -3px;
    }

    .catalog h2 {
        font-size: 30px;
    }

    .product-info {
        padding: 20px;
    }

    .product-bottom {
        align-items: flex-start;

        flex-direction: column;
    }

    .product-bottom button {
        width: 100%;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons button {
        width: 100%;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .hero-benefits div {
        padding: 13px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .hero-benefits div:last-child {
        border-bottom: 0;
    }
}

#cartButton {
    position: relative;
}

.cart-count[hidden] {
    display: none;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d40000;
    color: white;
    font-size: 10px;
    font-weight: 900;
    border: 2px solid #050505;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.cart-panel {
    width: min(500px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #080808;
    border-left: 1px solid #333;
}

.cart-header {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #222;
}

.cart-header span {
    color: #d40000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.cart-header h2 {
    margin-top: 8px;
    color: white;
    font-size: 28px;
}

.cart-close {
    width: 40px;
    height: 40px;
    background: #111;
    border: 1px solid #333;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto 30px;
    align-items: center;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid #222;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    width: min(690px, 100%);
    margin-top: 54px;
    border: 1px solid var(--border);
    background: rgba(10, 10, 11, 0.72);
    backdrop-filter: blur(12px);
}
.hero-benefits div {
    padding: 19px 15px;
    border-right: 1px solid var(--border);
}
.hero-benefits div:last-child { border-right: 0; }
.hero-benefits strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 25px;
}
.hero-benefits span { color: #999; font-size: 12px; }

.cart-product-image {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #2c2c2c;
    border-radius: var(--radius-control);
    background: #151515;
}
.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-image-fallback { display: none; color: #d40000; font-weight: 900; }
.cart-product-image.image-fallback .cart-image-fallback { display: block; }

.cart-item-info {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cart-item-info h3 {
    color: white;
    font-size: 14px;
    margin: 0 0 5px;
}

.cart-item-info span {
    color: #d40000;
    font-size: 12px;
    font-weight: 800;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-quantity button {
    width: 30px;
    height: 30px;
    background: #111;
    border: 1px solid #333;
    color: white;
    cursor: pointer;
}

.cart-quantity strong {
    color: white;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 0;
    color: #888;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 500px) {
    .cart-items { padding: 12px; }
    .cart-item { grid-template-columns: 54px minmax(0, 1fr) auto 24px; gap: 6px; }
    .cart-product-image { width: 54px; height: 54px; }
    .cart-quantity { gap: 3px; }
    .cart-quantity button { width: 24px; height: 24px; }
    .cart-quantity strong { min-width: 14px; font-size: 12px; }
    .remove-item { width: 24px; height: 24px; }
}

.empty-cart {
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.empty-cart p {
    color: #777;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #222;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    color: white;
    margin-bottom: 18px;
}

.cart-total span {
    color: #ddd;
    font-size: 16px;
    font-weight: 800;
}

.cart-total strong {
    font-size: 26px;
}

.checkout-button {
    width: 100%;
    padding: 16px;
    background: #a00000;
    border: 1px solid #d40000;
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.shop-notification {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 100000;
    padding: 15px 20px;
    background: #111;
    border: 1px solid #700000;
    color: white;
    font-size: 12px;
}

/* =========================================================
   HONGQI E-QM5 — ADMIN PANEL
========================================================= */

.admin-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(160, 0, 0, 0.12),
            transparent 35%
        ),
        #050505;
    color: #ffffff;
}


/* =========================
   HEADER
========================= */

.admin-header {
    min-height: 78px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgba(8, 8, 8, 0.96);
    border-bottom: 1px solid #242424;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}


.admin-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}


.admin-logo {
    font-size: 24px;
    font-weight: 950;
    letter-spacing: 5px;
    color: #ffffff;
}


.admin-brand-text {
    padding-left: 16px;
    border-left: 1px solid #333;
    color: #777;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}


.admin-brand-text span {
    display: block;
    color: #d40000;
    margin-bottom: 3px;
}


.admin-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}


.admin-store-link {
    color: #aaa;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    transition: 0.2s ease;
}


.admin-store-link:hover {
    color: #ffffff;
}


.admin-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}


.admin-status span,
.system-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #32c759;
    box-shadow: 0 0 10px rgba(50, 199, 89, 0.7);
}


/* =========================
   LAYOUT
========================= */

.admin-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: calc(100vh - 78px);
}


/* =========================
   SIDEBAR
========================= */

.admin-sidebar {
    padding: 30px 18px;
    background: #080808;
    border-right: 1px solid #202020;
    display: flex;
    flex-direction: column;
}


.admin-sidebar-title {
    padding: 0 12px 18px;
    color: #555;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}


.admin-nav-button {
    position: relative;
    width: 100%;
    min-height: 48px;
    margin-bottom: 5px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid transparent;
    background: transparent;
    color: #777;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s ease;
}


.admin-nav-button span {
    width: 20px;
    color: #666;
    font-size: 16px;
    text-align: center;
}


.admin-nav-button:hover {
    background: #101010;
    color: #ffffff;
}


.admin-nav-button:hover span {
    color: #d40000;
}


.admin-nav-active {
    background: linear-gradient(
        90deg,
        rgba(150, 0, 0, 0.2),
        rgba(150, 0, 0, 0.03)
    );
    border-color: #3a1717;
    color: #ffffff;
}


.admin-nav-active span {
    color: #d40000;
}


.admin-sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #202020;
}


.admin-sidebar-label {
    margin: 0 12px 15px;
    color: #444;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}


.admin-system-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #666;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}


.admin-system-item .system-dot {
    width: 5px;
    height: 5px;
}


/* =========================
   CONTENT
========================= */

.admin-content {
    min-width: 0;
    padding: 42px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.015),
            transparent 30%
        );
}


.admin-section {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
}


.admin-section-active {
    display: block;
}


.admin-page-heading {
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
}


.admin-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #d40000;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 3px;
}


.admin-page-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -1px;
}


.admin-page-heading p {
    margin: 14px 0 0;
    color: #666;
    font-size: 12px;
}


.admin-live-time {
    padding: 11px 15px;
    border: 1px solid #252525;
    background: #0b0b0b;
    color: #777;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.5px;
    white-space: nowrap;
}


.admin-live-time span {
    color: #32c759;
    margin-right: 6px;
}


/* =========================
   STAT CARDS
========================= */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}


.admin-stat-card {
    min-height: 175px;
    padding: 23px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #111111,
            #090909
        );
    border: 1px solid #242424;
}


.admin-stat-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: -45px;
    bottom: -45px;
    border: 1px solid rgba(212, 0, 0, 0.18);
    transform: rotate(45deg);
}


.admin-stat-icon {
    margin-bottom: 24px;
    color: #d40000;
    font-size: 20px;
    font-weight: 900;
}


.admin-stat-label {
    color: #555;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}


.admin-stat-value {
    margin-top: 7px;
    color: #ffffff;
    font-size: 27px;
    font-weight: 950;
}


.admin-stat-note {
    margin-top: 5px;
    color: #555;
    font-size: 9px;
}


/* =========================
   PANELS
========================= */

.admin-panel {
    margin-bottom: 25px;
    padding: 27px;
    background: #0a0a0a;
    border: 1px solid #242424;
}


.admin-panel-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.admin-panel-heading span {
    display: block;
    margin-bottom: 6px;
    color: #d40000;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}


.admin-panel-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.5px;
}


/* =========================
   QUICK ACTIONS
========================= */

.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}


.admin-action-card {
    min-height: 145px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: #0e0e0e;
    border: 1px solid #292929;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: 0.25s ease;
}


.admin-action-card:hover {
    background: #151515;
    border-color: #6b0000;
    transform: translateY(-2px);
}


.admin-action-card strong {
    margin-bottom: 17px;
    color: #d40000;
    font-size: 27px;
}


.admin-action-card span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}


.admin-action-card small {
    margin-top: 7px;
    color: #555;
    font-size: 9px;
}


/* =========================
   SYSTEM
========================= */

.admin-system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}


.admin-system-card {
    padding: 18px;
    background: #0e0e0e;
    border: 1px solid #222;
}


.admin-system-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #666;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}


.admin-system-card strong {
    display: block;
    color: #ffffff;
    font-size: 12px;
}


.admin-system-card small {
    display: block;
    margin-top: 6px;
    color: #444;
    font-size: 9px;
}


/* =========================
   BUTTONS
========================= */

.admin-primary-button {
    min-height: 44px;
    padding: 0 19px;
    border: 1px solid #c00000;
    background: #a00000;
    color: #ffffff;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: 0.2s ease;
}


.admin-primary-button:hover {
    background: #d00000;
}


.admin-secondary-button {
    min-height: 44px;
    padding: 0 19px;
    border: 1px solid #333;
    background: #111;
    color: #aaa;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
}


.admin-secondary-button:hover {
    color: #ffffff;
    border-color: #555;
}


/* =========================
   PRODUCT FORM
========================= */

.admin-product-form {
    display: none;
}


.admin-product-form.admin-form-visible {
    display: block;
}


.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


.admin-field {
    display: flex;
    flex-direction: column;
}


.admin-field-full {
    grid-column: 1 / -1;
}


.admin-field label {
    margin-bottom: 8px;
    color: #777;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.5px;
}


.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #292929;
    outline: none;
    background: #111111;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    transition: 0.2s ease;
}


.admin-field input,
.admin-field select {
    min-height: 46px;
}


.admin-field textarea {
    resize: vertical;
    min-height: 100px;
}


.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: #850000;
    box-shadow: 0 0 0 1px rgba(212, 0, 0, 0.12);
}


.admin-field select option {
    background: #111;
    color: #ffffff;
}


.admin-form-actions {
    margin-top: 23px;
    display: flex;
    gap: 10px;
}


/* =========================
   NOTIFICATION
========================= */

.admin-notification {
    min-height: 0;
    margin-bottom: 15px;
    color: transparent;
    font-size: 11px;
    font-weight: 800;
}


.admin-notification-success {
    padding: 13px 16px;
    background: rgba(30, 130, 55, 0.12);
    border: 1px solid rgba(50, 199, 89, 0.25);
    color: #62d87d;
}


.admin-notification-error {
    padding: 13px 16px;
    background: rgba(160, 0, 0, 0.12);
    border: 1px solid rgba(212, 0, 0, 0.3);
    color: #ff5a5a;
}


/* =========================
   PRODUCT TABLE
========================= */

.admin-product-count {
    color: #666;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}


.admin-products-table-wrap {
    width: 100%;
    overflow-x: auto;
}


.admin-products-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}


.admin-products-table th {
    padding: 13px 12px;
    border-bottom: 1px solid #292929;
    color: #555;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-align: left;
}


.admin-products-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #1b1b1b;
    color: #aaa;
    font-size: 11px;
}


.admin-products-table tbody tr {
    transition: 0.15s ease;
}


.admin-products-table tbody tr:hover {
    background: #0f0f0f;
}


.admin-product-name {
    display: flex;
    align-items: center;
    gap: 12px;
}


.admin-product-mini-image {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            #191919,
            #080808
        );
    border: 1px solid #303030;
    color: #d40000;
    font-size: 17px;
    font-weight: 950;
}


.admin-product-name strong {
    display: block;
    color: #ffffff;
    font-size: 11px;
}


.admin-product-name small {
    display: block;
    margin-top: 4px;
    color: #555;
    font-size: 8px;
}


.admin-category-tag,
.admin-badge {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid #3a2020;
    background: #160b0b;
    color: #d40000;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1px;
}


.admin-badge {
    background: #171010;
    border-color: #422020;
    color: #ff4a4a;
}


.admin-no-badge {
    color: #444;
}


.admin-price {
    color: #ffffff;
    font-size: 12px;
}


.admin-table-actions {
    display: flex;
    gap: 7px;
}


.admin-edit-button,
.admin-delete-button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #333;
    background: #111;
    color: #aaa;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
}


.admin-edit-button:hover {
    border-color: #777;
    color: #ffffff;
}


.admin-delete-button {
    border-color: #451919;
    color: #d75b5b;
}


.admin-delete-button:hover {
    background: #240909;
    border-color: #9a0000;
    color: #ff5555;
}


.admin-table-loading,
.admin-table-error {
    padding: 45px !important;
    color: #555 !important;
    text-align: center;
}


.admin-table-error {
    color: #d75b5b !important;
}


/* =========================
   EMPTY PANELS
========================= */

.admin-empty-panel {
    min-height: 380px;
    padding: 50px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(
            circle,
            rgba(140, 0, 0, 0.08),
            transparent 50%
        ),
        #0a0a0a;
    border: 1px solid #242424;
}


.admin-empty-panel > div {
    margin-bottom: 20px;
    color: #d40000;
    font-size: 42px;
}


.admin-empty-panel h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}


.admin-empty-panel p {
    max-width: 420px;
    margin: 10px 0 0;
    color: #555;
    font-size: 11px;
    line-height: 1.7;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-quick-actions {
        grid-template-columns: 1fr;
    }

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

}


@media (max-width: 850px) {

    .admin-header {
        padding: 0 18px;
    }

    .admin-header-right {
        gap: 12px;
    }

    .admin-store-link {
        display: none;
    }

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

    .admin-sidebar {
        padding: 10px;
        border-right: 0;
        border-bottom: 1px solid #202020;
        flex-direction: row;
        overflow-x: auto;
        gap: 5px;
    }

    .admin-sidebar-title,
    .admin-sidebar-bottom {
        display: none;
    }

    .admin-nav-button {
        width: auto;
        min-width: 115px;
        margin: 0;
        justify-content: center;
        white-space: nowrap;
    }

    .admin-content {
        padding: 25px 18px;
    }

}


@media (max-width: 600px) {

    .admin-header {
        min-height: 65px;
    }

    .admin-logo {
        font-size: 19px;
        letter-spacing: 3px;
    }

    .admin-brand-text {
        display: none;
    }

    .admin-status {
        font-size: 8px;
    }

    .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-live-time {
        align-self: flex-start;
    }

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

    .admin-panel {
        padding: 19px;
    }

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

    .admin-field-full {
        grid-column: auto;
    }

    .admin-form-actions {
        flex-direction: column;
    }

    .admin-form-actions button {
        width: 100%;
    }

    .admin-primary-button {
        width: 100%;
    }

}

.admin-form-feedback {
    margin: 16px 0 0;
    color: #a8ddaa;
    font-size: 12px;
    line-height: 1.5;
}

.admin-form-feedback-error {
    color: #ff7777;
}

.system-dot.system-dot-offline {
    background: #e24d4d;
    box-shadow: 0 0 10px rgba(226, 77, 77, 0.6);
}
/* Language selector shared by storefront and admin. */
.language-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 9px;
    border: 1px solid rgba(128, 128, 128, .36);
    border-radius: 8px;
    color: inherit;
    background: rgba(255, 255, 255, .06);
    white-space: nowrap;
}
.header-actions { align-items: center; }
.language-select {
    width: auto;
    max-width: 100px;
    border: 0;
    outline-offset: 3px;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.language-select option { color: #181818; background: #fff; }
.admin-header-right .language-control { margin-left: 10px; }
@media (max-width: 500px) {
    .language-control { padding: 0 5px; gap: 3px; }
    .language-select { max-width: 76px; font-size: 12px; }
    .language-icon { display: none; }
    .admin-header-right .admin-status { display: none; }
}

.product-photo {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
.product-photo[hidden], .product-icon[hidden], .admin-image-preview[hidden] {
    display: none;
}
.admin-image-hint {
    display: block;
    margin-top: 8px;
    color: #999;
}
.admin-image-preview {
    display: block;
    width: 160px;
    height: 120px;
    object-fit: contain;
    margin-top: 12px;
    border: 1px solid #333;
    background: #111;
}
.admin-product-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr);
    gap: clamp(35px, 7vw, 110px);
    padding: 90px 7%;
    border-top: 1px solid var(--border);
    background: #0a0a0b;
    scroll-margin-top: 90px;
}

.admin-message-count-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border: 2px solid #080808;
    border-radius: 999px;
    background: var(--red-light);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 0 12px rgba(212, 0, 0, .45);
}
.admin-message-count-badge[hidden] { display: none; }
.contact-page .contact-section {
    min-height: calc(100vh - 90px);
    align-content: center;
}
.contact-eyebrow {
    color: var(--red-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}
.contact-copy h2 {
    max-width: 480px;
    margin: 18px 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.05;
}
.contact-copy p {
    max-width: 430px;
    color: var(--gray);
    line-height: 1.7;
}
.contact-form { display: grid; gap: 18px; }
.contact-form label {
    display: grid;
    gap: 8px;
    color: #ddd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #333;
    border-radius: var(--radius-control);
    background: #151515;
    color: #fff;
    font: inherit;
    font-size: 14px;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: 1px solid var(--red);
}
.contact-form button {
    justify-self: start;
    padding: 14px 25px;
    border: 0;
    border-radius: var(--radius-control);
    background: var(--red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.contact-form button:disabled { opacity: .6; cursor: wait; }
.contact-feedback { min-height: 1.3em; color: #d0d0d0; font-size: 13px; }
.admin-messages-list { display: grid; gap: 15px; }
.admin-message-card {
    padding: 20px;
    border: 1px solid #292929;
    background: #111;
    color: #ddd;
}
.admin-message-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.admin-message-heading time, .admin-message-card span { color: #aaa; font-size: 12px; }
.admin-message-card p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 12px; }
.admin-incoming-stack {
    position: fixed;
    z-index: 100000;
    top: 18px;
    left: 50%;
    display: grid;
    gap: 10px;
    width: min(480px, calc(100vw - 28px));
    transform: translateX(-50%);
    pointer-events: none;
}
.admin-message-heading > div { display: flex; align-items: center; gap: 9px; }
.admin-delete-chat {
    width: 28px;
    height: 28px;
    border: 1px solid #542020;
    border-radius: var(--radius-control);
    background: #240d0d;
    color: #ff7777;
    font-size: 19px;
    cursor: pointer;
}
.admin-incoming-message {
    padding: 16px;
    border: 1px solid #6f2525;
    border-radius: 8px;
    background: rgba(20, 10, 10, .98);
    color: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .65);
    animation: admin-message-enter .25s ease-out;
    pointer-events: auto;
}
@keyframes admin-message-enter {
    from { opacity: 0; transform: translateY(-18px); }
}
.admin-incoming-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.admin-incoming-heading div { display: grid; gap: 4px; }
.admin-incoming-heading small { color: #ff6262; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.admin-incoming-heading strong { font-size: 16px; }
.admin-incoming-close {
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
}
.admin-incoming-message > p {
    margin: 12px 0;
    color: #ddd;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.admin-incoming-reply-button,
.admin-incoming-reply button {
    padding: 9px 14px;
    border: 0;
    border-radius: var(--radius-control);
    background: var(--red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.admin-incoming-reply-button[hidden], .admin-incoming-reply[hidden] { display: none; }
.admin-incoming-reply { display: flex; gap: 7px; }
.admin-incoming-reply input {
    min-width: 0;
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    background: #171717;
    color: #fff;
    font: inherit;
}
.admin-incoming-reply button:disabled { opacity: .6; }
@media (max-width: 750px) {
    .contact-section { grid-template-columns: 1fr; padding: 60px 6%; }
}

.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 9000; }
.chat-launch {
    position: relative;
    width: 56px;
    height: 56px;
    border: 1px solid #f44;
    border-radius: 50%;
    background: var(--red);
    color: white;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 10px 30px #000a;
}
.chat-unread {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #55d978;
}
.chat-unread[hidden] { display: none; }
.chat-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: flex;
    flex-direction: column;
    width: min(370px, calc(100vw - 32px));
    height: min(520px, calc(100vh - 110px));
    border: 1px solid #383838;
    border-radius: 10px;
    background: #111;
    color: #fff;
    box-shadow: 0 16px 48px #000d;
    overflow: hidden;
}
.chat-panel[hidden], .chat-start-form[hidden], .chat-conversation[hidden] { display: none; }
.chat-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid #333;
    background: #1a0c0c;
    font-size: 13px;
    letter-spacing: 1px;
}
.chat-panel header > div { display: grid; gap: 4px; }
.chat-panel header small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 9px;
    letter-spacing: 1px;
}
.chat-panel header small i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #55d978;
    box-shadow: 0 0 8px rgba(85, 217, 120, .7);
}
.chat-close { border: 0; background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.chat-start-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    overflow: auto;
    font-size: 13px;
}
.chat-start-form label { display: grid; gap: 5px; font-size: 10px; font-weight: 700; }
.chat-start-form input, .chat-start-form textarea, .chat-start-form select, .chat-send-form input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius-control);
    background: #1e1e1e;
    color: #fff;
    font: inherit;
}
.chat-start-form button, .chat-send-form button {
    border: 0;
    border-radius: var(--radius-control);
    padding: 10px 15px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.chat-start-form button:disabled, .chat-send-form button:disabled { opacity: .6; }
.chat-conversation { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 15px; }
.chat-bubble {
    width: fit-content;
    max-width: 85%;
    padding: 9px 12px;
    margin: 0 0 10px;
    border-radius: 10px;
    background: #292929;
    overflow-wrap: anywhere;
}
.chat-bubble-customer { margin-left: auto; background: #5e1212; }
.chat-bubble small { display: block; margin-bottom: 4px; color: #ddd; font-size: 10px; }
.chat-bubble p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.4; }
.chat-bubble time {
    display: block;
    margin-top: 5px;
    color: #aaa;
    font-size: 9px;
    text-align: right;
}

.phone-number-field {
    display: grid;
    grid-template-columns: minmax(112px, 130px) 1fr;
    gap: 8px;
    align-items: center;
    position: relative;
}

.phone-number-field select {
    min-width: 0;
    cursor: pointer;
}

.phone-country-flags {
    display: flex;
    align-items: center;
    min-width: 30px;
}

.phone-country-flags img {
    width: 28px;
    height: 20px;
    border-radius: var(--radius-control);
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}

.phone-country-flags img + img {
    width: 18px;
    margin-left: -9px;
}

.phone-country-native-select {
    display: none !important;
}

.phone-country-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px !important;
    border: 1px solid #333 !important;
    border-radius: var(--radius-control);
    background: #111 !important;
    color: #fff;
    cursor: pointer;
}

.phone-country-picker strong {
    font-size: 13px;
}

.phone-country-menu[hidden] {
    display: none;
}

.phone-country-menu {
    position: absolute;
    z-index: 10020;
    top: calc(100% + 6px);
    left: 0;
    width: min(330px, 100%);
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius-control);
    background: #101010;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .65);
}

.phone-country-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    justify-self: stretch !important;
    padding: 7px !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius-control) !important;
    background: #181818 !important;
    color: #eee !important;
    cursor: pointer;
}

.phone-country-choice:hover,
.phone-country-choice:focus-visible {
    border-color: var(--red) !important;
    background: #261010 !important;
}

.phone-country-choice .phone-country-flags img {
    width: 24px;
    height: 17px;
}

@media (max-width: 440px) {
    .phone-country-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.chat-message-receipt,
.admin-message-receipt {
    display: inline-block;
    margin-left: 6px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    vertical-align: middle;
}

.chat-message-receipt.is-read,
.admin-message-receipt.is-read {
    color: #27a7ff;
}

.admin-message-receipt {
    margin-top: 5px;
}
.chat-bubble em, .admin-chat-line em {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 9px;
    font-style: normal;
}
.chat-message-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 5px;
}
.chat-message-actions button,
.admin-chat-actions button {
    width: 24px;
    height: 24px;
    border: 1px solid #555;
    border-radius: var(--radius-control);
    background: rgba(0, 0, 0, .25);
    color: #ddd;
    cursor: pointer;
}
.chat-message-actions button:hover,
.admin-chat-actions button:hover { border-color: #e44; color: #fff; }
.chat-send-form { display: flex; gap: 6px; padding: 12px; border-top: 1px solid #333; }
.chat-status { min-height: 15px; margin: 0; padding: 0 12px 8px; color: #ddd; font-size: 11px; }
.admin-chat-thread { display: grid; gap: 8px; margin: 14px 0; }
.admin-chat-line {
    position: relative;
    max-width: 85%;
    padding: 9px 12px;
    border-radius: var(--radius-control);
    background: #252525;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.admin-chat-line p { margin: 0; }
.admin-chat-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 7px;
}
.admin-chat-line-admin { margin-left: auto; background: #491515; }
.admin-chat-line small { display: block; margin-bottom: 4px; color: #bbb; }
.admin-reply-form { display: flex; gap: 8px; }
.admin-reply-form textarea {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid #333;
    background: #191919;
    color: #fff;
    resize: vertical;
}
.admin-reply-form button {
    padding: 8px 16px;
    border: 0;
    background: var(--red);
    color: #fff;
    cursor: pointer;
}
@media (max-width: 500px) {
    .chat-widget { right: 12px; bottom: 12px; }
}


/* Shared rounded shapes across the storefront and admin. */
:where(button, input, select, textarea, .btn-primary, .btn-secondary) {
    border-radius: var(--radius-control);
}
.product-card,
.parts-categories,
.admin-sidebar,
.admin-stat-card,
.admin-panel,
.admin-action-card,
.admin-system-card,
.admin-product-form,
.admin-empty-panel,
.admin-message-card,
.admin-incoming-message,
.chat-panel,
.phone-country-menu,
.shop-notification {
    border-radius: var(--radius-panel);
}
.product-image {
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
}
.cart-panel {
    border-radius: var(--radius-panel) 0 0 var(--radius-panel);
}
.chat-panel > header {
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
}
.admin-store-link,
.admin-live-time,
.admin-notification,
.admin-product-mini-image,
.admin-image-preview,
.admin-products-table-wrap,
.admin-category-tag,
.admin-badge,
.product-badge,
.parts-label,
.catalog-label {
    border-radius: var(--radius-control);
}

/* Typographic model showcase */
.model-showcase {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin-top: 46px;
    padding: 24px 30px 0;
    overflow: hidden;
    border: 1px solid #3b2428;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 65%, #451018 0, #160d10 40%, #0c0c0e 75%);
    box-shadow: 0 24px 70px #0006;
}
.model-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.model-showcase-top, .model-showcase-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; }
.model-showcase-top { color: #c98d94; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.model-caption { color: #aaa; letter-spacing: .4px; }
.model-art { position: relative; display: grid; place-items: center; height: 180px; }
.model-wordmark {
    position: relative;
    z-index: 1;
    font-size: clamp(68px, 12vw, 140px);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.065em;
    line-height: 1;
    padding-right: .12em;
    color: #e9cbd0;
    background: linear-gradient(175deg, #fff 15%, #e6d4d7 38%, #6c424a 57%, #efc7cc 75%, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 12px 22px #0009);
}
.model-orbit { position: absolute; width: 65%; height: 95px; border: 1px solid #bb344b66; border-radius: 50%; transform: rotate(-12deg); }
.model-orbit-two { width: 75%; height: 125px; transform: rotate(12deg); border-color: #ffffff12; }
.model-light { position: absolute; top: 76%; left: 8%; width: 84%; height: 2px; background: linear-gradient(90deg, transparent, #d21f39, #ffc5cb, #d21f39, transparent); box-shadow: 0 0 22px #ef193b; transform: rotate(-5deg); animation: model-light-reveal 1.4s ease-out both; }
.model-showcase-bottom { padding: 10px 0 24px; }
.model-tagline { font-size: clamp(14px, 2vw, 19px); font-weight: 700; line-height: 1.6; }
.model-showcase-bottom a { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; color: #ff9eab; font-size: 12px; text-decoration: none; padding: 10px 14px; border: 1px solid #61313a; border-radius: 12px; transition: background .2s; }
.model-showcase-bottom a:hover { background: #501c28; }
.model-showcase-bottom a:focus-visible { outline: 2px solid #ff9eab; outline-offset: 4px; }
.model-categories { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; padding: 17px 0; border-top: 1px solid #ffffff12; color: #b6a3a6; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; animation: model-text-reveal 1s .2s ease-out both; }
.model-categories i { width: 4px; height: 4px; border-radius: 50%; background: #d64359; box-shadow: 0 0 8px #d6435988; }
@keyframes model-light-reveal { from { opacity: 0; scale: .15 1; } to { opacity: 1; scale: 1; } }
@keyframes model-text-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
    .model-showcase { padding: 20px 18px 0; margin-top: 32px; }
    .model-showcase-top { flex-wrap: wrap; gap: 8px; }
    .model-art { height: 145px; }
    .model-showcase-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .model-categories { gap: 10px; font-size: 9px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
    .model-light, .model-categories { animation: none; }
    .model-showcase-bottom a { transition: none; }
}
.contact-options {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid #43272b;
    border-radius: 24px;
    background: linear-gradient(145deg, #231316, #101012);
    display: grid;
    justify-items: start;
    gap: 20px;
}
.contact-option-icon { color: #ff929e; font-size: 36px; }
.contact-options h2 { font-size: 24px; line-height: 1.4; }
.contact-options p { color: #aaa; line-height: 1.8; }
.contact-chat-link { display: inline-block; padding: 16px 24px; border-radius: 12px; background: var(--red); color: white; text-decoration: none; font-weight: 700; }
.contact-chat-link:hover { background: var(--red-light); }
.contact-chat-link:focus-visible { outline: 2px solid #ff929e; outline-offset: 4px; }
.nav { flex-wrap: wrap; }
.store-social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-social-link { display: flex; align-items: center; gap: 12px; flex: 1 1 180px; min-height: 68px; padding: 14px 16px; border: 1px solid #393036; border-radius: 14px; background: #ffffff04; color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; transition: border-color .2s, background .2s; }
.store-social-link:hover { border-color: #ff939e; background: #ffffff09; }
.store-social-link:focus-visible { outline: 2px solid #ff939e; outline-offset: 3px; }
.store-social-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; }
.store-social-icon-list { background: #fff; border-radius: 9px; }
.store-social-icon img { object-fit: contain; }
.store-social-arrow { margin-left: auto; color: #aaa; font-size: 20px; }
.store-contact-details { display: grid; gap: 24px; margin-top: 32px; font-style: normal; }
.store-contact-row { display: grid; justify-items: start; gap: 12px; padding-top: 20px; border-top: 1px solid #292326; }
.store-contact-label { color: #aaa; font-size: 13px; }
.store-contact-row strong { font-size: 17px; line-height: 1.7; }
.store-contact-row a { color: #fff; font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: 1px; }
.store-contact-row a:hover { color: #ff939e; }
.store-map { align-self: center; min-width: 0; overflow: hidden; border: 1px solid #44262b; border-radius: 24px; background: #151113; }
.store-map iframe { display: block; width: 100%; height: clamp(300px, 38vw, 460px); border: 0; background: #eee; }
.store-map-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; color: #ffb3bb; text-decoration: none; font-size: 14px; font-weight: 700; }
.store-map-link:hover { background: #29171c; }
.store-contact-row a:focus-visible, .store-map-link:focus-visible { outline: 2px solid #ff939e; outline-offset: -2px; }
@media (max-width: 600px) {
    .contact-page .contact-section { grid-template-columns: minmax(0, 1fr); }
    .store-map-link { padding: 18px; }
}
/* Responsive navigation and touch device support. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }
.header { gap: 18px; }
.header .nav { min-width: 0; }
.header-actions { flex-shrink: 0; }
.chat-widget { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.chat-panel { max-height: calc(100dvh - 110px - env(safe-area-inset-bottom)); }
.chat-start-form { min-height: 0; overflow-y: auto; }
.cart-panel { max-height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
.header { -webkit-backdrop-filter: blur(18px); }
@media (max-width: 1100px) {
    .header { height: auto; min-height: 84px; padding: 16px 5%; flex-wrap: wrap; }
    .header .logo { flex: 1; }
    .header .nav {
        display: flex;
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        justify-content: center;
        gap: 4px 16px;
        flex-wrap: wrap;
    }
    .header .nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; padding: 6px 0; text-align: center; }
}
@media (max-width: 600px) {
    .header { gap: 10px; padding: 12px 5%; }
    .header .nav { gap: 4px 14px; }
    .header .nav a { font-size: 12px; }
    .hero h1 { font-size: clamp(28px, 8vw, 38px); overflow-wrap: anywhere; }
    .hero-small { font-size: 10px; letter-spacing: 1.5px; }
    .contact-copy h2 { font-size: clamp(28px, 9vw, 42px); overflow-wrap: anywhere; }
    .parts-search-panel { width: 100%; padding: 18px; }
    .parts-categories, .contact-copy, .contact-form { min-width: 0; }
    .chat-start-form input, .chat-start-form textarea, .chat-start-form select,
    .chat-send-form input, .contact-form input, .contact-form textarea,
    .admin-field input, .admin-field select, .admin-field textarea { font-size: 16px; }
    .chat-close { min-width: 44px; min-height: 44px; }
    .chat-send-form button { min-height: 44px; }
}
@media (hover: none) {
    .product-card:hover, .header-actions button:hover { transform: none; }
}
/* iPhone Safari: notch clearance in landscape and readable form controls. */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(5%, env(safe-area-inset-left));
        padding-right: max(5%, env(safe-area-inset-right));
        padding-top: max(12px, env(safe-area-inset-top));
    }
    .hero, .contact-section, .parts-layout {
        padding-left: max(6%, env(safe-area-inset-left));
        padding-right: max(6%, env(safe-area-inset-right));
    }
}
@media (pointer: coarse) {
    input, select, textarea { font-size: 16px; }
    .parts-categories button, .store-map-link, .contact-chat-link { min-height: 44px; }
}
.checkout-form { display: grid; gap: 20px; padding: 24px; overflow-y: auto; }
.checkout-form p { line-height: 1.7; color: #ccc; }
.checkout-form label { display: grid; gap: 10px; }
.checkout-form input { width: 100%; min-width: 0; padding: 15px; font: 16px Arial; background: #171717; color: white; border: 1px solid #555; }
.checkout-form button { padding: 15px; font: bold 16px Arial; color: white; background: #a00016; border: 0; cursor: pointer; }
.checkout-form button:disabled { opacity: .5; cursor: wait; }
.checkout-form .checkout-back { background: #292126; }
.admin-orders-list { display: grid; gap: 20px; }
.admin-bulk-products { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 16px 0; }
.admin-bulk-products label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; }
.admin-bulk-products input[type="checkbox"], [data-select-product] { width: 20px; height: 20px; flex: 0 0 20px; accent-color: #bd183c; cursor: pointer; }
.admin-bulk-products button:disabled { opacity: .45; cursor: not-allowed; }
.admin-inventory-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 20px; padding: 22px; margin-top: 24px; border: 1px solid #30292d; border-radius: 18px; background: linear-gradient(120deg, #20171b, #141416); }
.admin-inventory-tools > label { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: #c5b9bf; font-size: 12px; font-weight: 600; }
.admin-search-control { position: relative; display: flex; align-items: center; }
.admin-search-control svg { position: absolute; left: 16px; width: 21px; height: 21px; color: #ee6c84; pointer-events: none; }
.admin-inventory-tools input, .admin-inventory-tools select { width: 100%; min-width: 0; height: 50px; padding: 0 15px; background: #0f1012; color: #f5f0f2; border: 1px solid #44353e; border-radius: 12px; font: inherit; font-size: 13px; transition: border-color .2s, box-shadow .2s; color-scheme: dark; }
.admin-inventory-tools input { padding-left: 48px; }
.admin-inventory-tools input::placeholder { color: #92858d; font-weight: 400; }
.admin-inventory-tools input:focus, .admin-inventory-tools select:focus { outline: none; border-color: #e45a77; box-shadow: 0 0 0 3px #e45a771f; }
#products .admin-bulk-products { padding: 16px 4px; margin: 0; gap: 12px 20px; border-bottom: 1px solid #30292d; }
#products .admin-bulk-products label { color: #d2c8ce; font-size: 12px; }
#selectedProductsCount { padding: 6px 10px; border-radius: 8px; background: #242025; color: #b9acb4; font-size: 11px; }
#deleteSelectedProducts { margin-left: auto; min-height: 42px; padding: 10px 16px; border: 1px solid #7d3446; background: #321922; color: #ffbccb; border-radius: 10px; font-size: 12px; }
#deleteSelectedProducts:hover:not(:disabled) { background: #572032; border-color: #d55c7a; }
#products .admin-product-count { padding: 8px 12px; background: #242025; border: 1px solid #3c3038; border-radius: 9px; color: #d7c9d1; font-size: 11px; }
#products .admin-products-table th { background: #181518; color: #b2a2ac; padding: 17px 14px; font-size: 10px; letter-spacing: .5px; }
#products .admin-products-table td { padding: 20px 16px; font-size: 14px; }
#products .admin-product-mini-image { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
#products .admin-product-name { gap: 14px; }
#products .admin-image-count { display: inline-block; margin-top: 7px; padding: 4px 9px; border: 1px solid #49313f; border-radius: 7px; background: #291c24; color: #f2c1d3; font-size: 12px; line-height: 1.4; white-space: nowrap; }
#products .admin-product-name strong { font-size: 15px; line-height: 1.5; }
#products .admin-product-name small { font-size: 12px; line-height: 1.5; color: #a99da5; margin-top: 6px; overflow-wrap: anywhere; }
#products .admin-price { font-size: 16px; white-space: nowrap; }
#products .admin-category-tag, #products .admin-badge { font-size: 11px; line-height: 1.5; letter-spacing: .2px; padding: 7px 10px; color: #ff859b; }
#products .admin-table-actions { gap: 10px; }
#products .admin-table-actions button { min-height: 42px; padding: 10px 14px; font-size: 11px; letter-spacing: .3px; }
#products .admin-products-table tbody tr:hover { background: #21191e; }
#bulkDeleteStatus:empty { display: none; }
@media (max-width: 700px) {
    .admin-inventory-tools { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
    #products .admin-bulk-products { gap: 10px; }
    #deleteSelectedProducts { width: 100%; margin-left: 0; }
}
.admin-order-card { padding: 24px; border: 1px solid #493038; border-radius: 20px; background: #141113; }
.admin-order-card header, .admin-order-card li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.admin-order-card time { color: #aaa; font-size: 12px; }
.admin-order-card a { display: inline-block; color: #ffa5b1; margin-top: 14px; }
.admin-order-card ul { list-style: none; margin: 20px 0; padding: 0; }
.admin-order-card li { padding: 12px 0; border-bottom: 1px solid #333; }
/* Order checkout */
.checkout-panel { width: min(540px, 100%); background: radial-gradient(ellipse at 100% 0%, #37151d 0, transparent 42%), #101013; }
.checkout-header { flex-shrink: 0; padding: 26px 28px; border-color: #ffffff0f; }
.checkout-header h2 { font-size: 24px; line-height: 1.4; letter-spacing: -.5px; }
.checkout-header .cart-close { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #ffffff08; }
.checkout-header .cart-close:hover { background: #ffffff18; }
.checkout-panel .checkout-form { display: flex; flex-direction: column; gap: 26px; padding: 28px; min-height: 0; overscroll-behavior: contain; }
.checkout-summary { padding: 20px; border: 1px solid #ffffff12; border-radius: 18px; background: #ffffff04; }
.checkout-form h3 { font-size: 15px; font-weight: 700; }
.checkout-summary h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-summary h3 > span { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: #45222b; color: #ffb6c2; font-size: 12px; }
.checkout-summary ul { list-style: none; margin-top: 12px; padding: 0; max-height: 240px; overflow-y: auto; }
.checkout-summary li { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.checkout-thumbnail { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; background: #eeecec; border-radius: 12px; overflow: hidden; color: #9d001b; }
.checkout-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.checkout-item-copy { flex: 1; min-width: 0; }
.checkout-item-copy strong { display: block; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.checkout-item-copy small { display: block; color: #a8a0a4; font-size: 11px; margin-top: 5px; }
.checkout-summary li > b { font-size: 13px; white-space: nowrap; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 18px; margin-top: 8px; border-top: 1px solid #ffffff12; }
.checkout-total > span { color: #c3bbc0; font-size: 13px; }
.checkout-total > strong { font-size: clamp(20px, 5vw, 28px); letter-spacing: -.8px; }
.checkout-contact { display: grid; gap: 18px; }
.checkout-contact > p { font-size: 13px; margin-top: -8px; color: #99939a; }
.checkout-contact label { gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: .6px; color: #c7c0c5; }
.checkout-contact input { border: 1px solid #ffffff20; border-radius: 12px; background: #ffffff04; min-height: 52px; transition: border-color .2s, background .2s; }
.checkout-contact input:focus { outline: 2px solid #e34764; outline-offset: 2px; border-color: transparent; background: #25171d; }
.checkout-contact input::placeholder { color: #6f6972; }
.checkout-actions { display: grid; gap: 8px; }
.checkout-actions button[type=submit] { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; text-align: left; background: linear-gradient(110deg, #af001e, #d5193a); border: 1px solid #ee456050; box-shadow: 0 8px 24px #a0001826; }
.checkout-actions button[type=submit]:hover { background: #dc1c3e; }
.checkout-panel .checkout-back { color: #aaa1a8; background: transparent; font-size: 13px; min-height: 44px; }
.checkout-panel .checkout-back:hover { color: #fff; background: #ffffff06; }
.checkout-feedback:empty { display: none; }
.checkout-feedback { padding: 14px; border: 1px solid #793442; border-radius: 12px; background: #39151e; font-size: 13px; }
.checkout-panel .checkout-success { margin: auto 0; align-items: center; text-align: center; gap: 22px; }
.checkout-success-icon { display: grid; place-items: center; width: 88px; height: 88px; background: #172f27; color: #8be0b4; border: 1px solid #37624d; box-shadow: 0 0 0 12px #234b2e18; border-radius: 50%; font-size: 38px; }
.checkout-success-brand { margin-top: 12px; font-size: 11px; letter-spacing: 3px; color: #b197a0; }
.checkout-success h2 { font-size: 27px; line-height: 1.5; }
.checkout-success p { max-width: 320px; font-size: 14px; }
.checkout-order-number { color: #ffadbc; padding: 12px 20px; border: 1px dashed #69404a; border-radius: 12px; letter-spacing: 2px; }
.checkout-success button { width: 100%; margin-top: 16px; }
@media (max-width: 420px) {
    .checkout-header { padding: 20px; }
    .checkout-header h2 { font-size: 21px; }
    .checkout-panel .checkout-form { padding: 20px; gap: 22px; }
    .checkout-summary { padding: 16px; }
    .checkout-summary li { gap: 8px; }
    .checkout-thumbnail { width: 42px; height: 42px; }
    .checkout-summary li > b { font-size: 11px; }
}
/* Shared customer and admin chat attachments. */
.chat-composer-tools { display: grid; gap: 8px; grid-column: 1 / -1; width: 100%; min-width: 0; }
.chat-composer-tools [hidden] { display: none !important; }
.chat-composer-tools .composer-toolbar { display: flex; gap: 8px; }
.chat-composer-tools .composer-toolbar button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; min-height: 42px; padding: 7px 12px; border: 1px solid #47363f; border-radius: 12px; background: #261c22; color: #f5dfe6; font-size: 20px; cursor: pointer; }
.chat-composer-tools .composer-toolbar span { font: 12px Arial; }
.chat-composer-tools button:focus-visible { outline: 2px solid #fa8da4; outline-offset: 2px; }
.chat-composer-tools button:disabled { opacity: .5; cursor: wait; }
.chat-composer-tools .composer-status { margin: 0; font: 12px/1.6 Arial; color: #ffadb9; }
.composer-status:empty { display: none; }
.composer-preview { display: flex; align-items: flex-start; gap: 12px; padding: 8px; border: 1px solid #543440; border-radius: 12px; background: #20151a; }
.composer-preview img { width: 85px; height: 70px; object-fit: contain; border-radius: 8px; }
.chat-composer-tools .composer-preview button { width: 38px; min-height: 38px; padding: 4px; border: 0; background: #492633; color: white; font-size: 22px; border-radius: 10px; }
.composer-picker { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; padding: 10px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #513440; border-radius: 14px; background: #171318; }
.chat-composer-tools .composer-picker input, .chat-composer-tools .composer-picker select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #51424b; border-radius: 10px; background: #262028; color: white; font: 16px Arial; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 3px; }
.chat-composer-tools .emoji-grid button { width: 100%; height: 42px; padding: 3px; border: 0; border-radius: 8px; background: transparent; color: white; font: 25px "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; cursor: pointer; }
.chat-composer-tools .emoji-grid button:hover { background: #49303c; }
.chat-composer-tools .emoji-more { padding: 10px; border: 1px solid #553643; border-radius: 10px; background: #33202a; color: white; cursor: pointer; }
.chat-send-form, .admin-reply-form, .admin-incoming-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.chat-send-form { max-height: 65%; overflow-y: auto; flex-shrink: 0; }
.chat-send-form > input, .admin-reply-form > textarea, .admin-incoming-reply > input { min-width: 0; width: 100%; }
.chat-send-form .composer-picker { max-height: 220px; }
.chat-image-open { display: block; padding: 0; margin: 8px 0; max-width: 100%; border: 1px solid #ffffff22; border-radius: 12px; background: #1b1518; overflow: hidden; cursor: zoom-in; }
.chat-message-image { display: block; width: 100%; max-width: 320px; max-height: 240px; object-fit: contain; }
.chat-image-dialog { position: fixed; inset: 0; margin: auto; max-width: 95vw; max-height: 90dvh; padding: 48px 12px 12px; border: 1px solid #58404a; border-radius: 18px; background: #151116; color: white; }
.chat-image-dialog::backdrop { background: #000c; }
.chat-image-dialog img { display: block; max-width: 85vw; max-height: 75dvh; object-fit: contain; }
.chat-image-dialog > button { position: absolute; right: 6px; top: 4px; width: 42px; height: 42px; background: transparent; border: 0; color: white; font-size: 30px; cursor: pointer; }

#orderDecisionNotices { position: fixed; top: 90px; right: 16px; width: min(420px, calc(100vw - 32px)); max-height: 65vh; overflow: auto; z-index: 10000; display: grid; gap: 10px; }
.order-decision-notice { background: #271719; border: 1px solid #aa4955; border-radius: 14px; padding: 18px; color: white; box-shadow: 0 8px 28px #0008; }
.order-decision-notice button { display: block; margin-top: 12px; padding: 10px 16px; color: white; background: #a00000; border: 0; cursor: pointer; }

/* Shared tracks keep adjacent product details and purchase controls aligned. */
.products-grid > .product-card {
    display: grid;
    grid-row: span 8;
    grid-template-rows: subgrid;
    row-gap: 0;
    min-width: 0;
}
.products-grid .product-image { grid-row: 1; height: 245px; }
.products-grid .product-info {
    display: grid;
    grid-row: 2 / span 7;
    grid-template-rows: subgrid;
    row-gap: 8px;
    padding: 24px;
}
.products-grid .product-category { grid-row: 1; margin: 0; }
.products-grid .product-info h3 {
    grid-row: 2;
    margin: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.products-grid .availability { grid-row: 3; margin: 0; }
.products-grid .product-part-type { grid-row: 4; }
.products-grid .product-code:not(.product-part-type) { grid-row: 5; }
.products-grid .product-code { margin: 0; line-height: 1.5; }
.products-grid .product-info > p {
    grid-row: 6;
    margin: 0;
    min-height: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
    align-self: start;
}
.products-grid .product-bottom {
    grid-row: 7;
    margin-top: 16px;
    padding-top: 18px;
    align-self: end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.products-grid .product-bottom strong { white-space: nowrap; line-height: 1.3; }
.products-grid .product-bottom button { min-height: 44px; line-height: 1.5; }
@media (max-width: 500px) {
    .products-grid .product-info { padding: 20px; }
    .products-grid .product-bottom { align-items: stretch; }
}
@supports not (grid-template-rows: subgrid) {
    .products-grid > .product-card { display: flex; flex-direction: column; grid-row: auto; }
    .products-grid .product-info { display: flex; flex-direction: column; flex: 1; gap: 8px; }
    .products-grid .product-bottom { margin-top: auto; align-self: stretch; }
}

/* Shared marketplace frame for catalogue primary photos. */
.parts-results .products-grid .catalog-photo-frame {
    container-type: inline-size;
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    background: #fff url('../assets/product-photo-template.png') center / 100% 100% no-repeat;
    border: 0;
    border-bottom: 1px solid #e6e9ed;
    border-radius: 0;
    cursor: zoom-in;
}
.parts-results .catalog-photo-frame::before,
.parts-results .catalog-photo-frame::after { content: none; }
.parts-results .products-grid .catalog-photo-frame .product-photo {
    position: absolute;
    inset: 15% 4% auto 5%;
    width: 91%;
    height: 61%;
    object-fit: contain;
    z-index: 1;
}
.catalog-photo-caption {
    position: absolute;
    inset: 78% 4% auto 5.5%;
    height: 12%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #18222c;
    font-family: Arial, sans-serif;
    font-size: clamp(8px, 3cqw, 17px);
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    overflow-wrap: anywhere;
    z-index: 2;
}
.parts-results .catalog-photo-frame .product-badge { display: none; }

/* Catalogue and zoom share the same frame; cleanup follows the source photo. */
.catalog-source-stage { position:absolute; inset:15% 4% auto 5%; width:91%; height:61%; display:flex; align-items:center; justify-content:center; }
.catalog-source-photo { position:relative; display:block; height:100%; max-width:100%; aspect-ratio:1; overflow:hidden; }
.parts-results .products-grid .catalog-photo-frame .catalog-source-photo .product-photo,
.catalog-zoom-frame .catalog-source-photo .product-photo { position:static; display:block; width:100%; height:100%; max-width:none; max-height:none; object-fit:contain; }
.catalog-source-logo-cover, .catalog-source-list-cover { position:absolute; display:block; background:var(--source-background,#fff); z-index:3; pointer-events:none; }
.catalog-source-list-cover { top:0; right:0; width:17%; height:9%; }
.catalog-photo-caption { display:none; }
.catalog-zoom-frame { position:relative; width:min(78vh,82vw,850px); aspect-ratio:1; background:#fff url('../assets/product-photo-template.png') center/100% 100% no-repeat; }
.product-image-viewer:has(.catalog-zoom-frame) { max-width:96vw; max-height:96dvh; padding:42px 10px 10px; overflow:auto; }
@media(max-width:600px) { .catalog-zoom-frame { width:min(88vw,72dvh); } }

.catalog-source-list-cover { width: 21%; height: 12%; }

.catalog-zoom-frame { container-type:inline-size; }
.catalog-source-photo { flex:0 0 auto; width:min(91cqw,calc(61cqw * var(--source-aspect,1))); height:auto; }

.parts-results .products-grid .catalog-photo-frame .catalog-source-photo .product-photo, .catalog-zoom-frame .catalog-source-photo .product-photo { padding:0; }
.catalog-source-list-cover { right:2%; width:17%; height:10%; }

.product-gallery .product-zoom {padding:0;display:block;width:100%;background:white;}
.product-gallery .product-zoom .catalog-zoom-frame {display:block;width:100%;}

.product-neighbours {display:flex;justify-content:space-between;gap:12px;margin-top:20px;}
.product-neighbours a,.product-neighbours button {display:block;padding:12px 18px;border:1px solid #71333e;border-radius:10px;background:#28171c;color:#fff;text-decoration:none;font:inherit;text-align:center;}
.product-neighbours a:hover {background:#851529;}
.product-neighbours button:disabled {opacity:.4;cursor:default;}
@media(max-width:600px){.product-neighbours a,.product-neighbours button{flex:1;padding:12px 8px;font-size:14px;}}

.product-thumbnails button {width:80px;padding:0;overflow:hidden;flex:0 0 80px;}
.product-thumbnails .catalog-zoom-frame {display:block;width:100%;}
.product-gallery,.product-detail-copy {min-width:0;}

/* Keep category counts aligned beside wrapped labels. */
.parts-categories button { display: flex; align-items: center; justify-content: space-between; gap: 12px; line-height: 1.45; }
.parts-categories button[data-count]::after { float: none; flex: 0 0 auto; margin-left: 0; }

/* Compact the unused caption space in detail gallery frames. */
.catalog-zoom-frame { aspect-ratio: 100 / 86; background-position: center top; background-size: 100% auto; overflow: hidden; }
.catalog-zoom-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10.47%; background: #18232c url('../assets/product-photo-template.png') center bottom / 100% auto no-repeat; pointer-events: none; }
.catalog-zoom-frame .catalog-source-stage { top: 17.44%; height: 70.93%; }
.product-gallery .product-zoom { overflow: hidden; border-radius: 10px; line-height: 0; }
.product-thumbnails { margin-top: 8px; }

/* Unified neutral backdrop across the entire product-photo area. */
.catalog-source-stage { inset:15% 0 auto 1.2%; width:98.8%; height:76%; background:#fff; isolation:isolate; }
.catalog-source-photo { mix-blend-mode:normal; }
.catalog-zoom-frame .catalog-source-stage { top:17.44%; height:72.09%; }

/* Compact promo entry, aligned with the cart's dark red theme. */
.cart-promo{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-bottom:18px;padding:14px;background:linear-gradient(135deg,rgba(139,14,42,.14),rgba(255,255,255,.025));border:1px solid rgba(196,71,94,.22);border-radius:14px}
.cart-promo .promo-label{display:flex;min-width:0;flex-direction:column;gap:8px;margin:0;color:#d8c8cd;font-size:12px;font-weight:600}
.cart-promo input{display:block;width:100%;min-width:0;height:42px;box-sizing:border-box;padding:0 12px;background:rgba(0,0,0,.26);color:#fff;border:1px solid rgba(255,255,255,.13);border-radius:9px;font:inherit;font-size:14px;transition:border-color .2s,box-shadow .2s}
.cart-promo input::placeholder{color:#90848a;font-size:12px}
.cart-promo input:focus{outline:none;border-color:#bc3154;box-shadow:0 0 0 3px rgba(188,49,84,.14)}
.cart-promo button{width:auto;min-height:42px;padding:0 14px;margin:0;border:1px solid #b52b4c;border-radius:9px;background:linear-gradient(135deg,#a61c40,#7f102d);color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer;box-shadow:0 3px 10px rgba(101,9,32,.18);transition:background .2s,opacity .2s}
.cart-promo button:hover{background:#b3294c}
.cart-promo button:focus-visible{outline:2px solid #ed9ab0;outline-offset:3px}
.cart-promo button:disabled{opacity:.55;cursor:wait}
.cart-promo p{grid-column:1/-1;margin:0;color:#e4b8c4;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.cart-promo p:empty{display:none}
@media(max-width:400px){.cart-promo{padding:10px;gap:8px}.cart-promo button{padding:0 10px}}

/* Reviewed product cutouts: one background and consistent framing. */
img[src*="/catalog-"]{background:#d4d4d4}
.catalog-source-stage.is-catalog-clean{background:#d4d4d4!important;overflow:hidden}
.catalog-source-photo.is-catalog-clean{width:100%;height:100%;max-width:100%;aspect-ratio:auto;flex:1 1 auto}
.catalog-source-photo.is-catalog-clean .product-photo{width:100%;height:100%;object-fit:contain}
.catalog-source-photo.is-catalog-clean .catalog-source-list-cover,.catalog-source-photo.is-catalog-clean .catalog-source-logo-cover{display:none}
.cart-product-image:has(img[src*="catalog-"]),.checkout-thumbnail:has(img[src*="catalog-"]){background:#d4d4d4}

@font-face{font-family:'Catalog Armenian';src:url('../assets/fonts/NotoSansArmenian.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
.products-grid .product-category{font-family:'Catalog Armenian','Segoe UI',Arial,sans-serif;font-size:14px;font-weight:600;line-height:1.6;letter-spacing:0;text-transform:none;color:#edb6bf;overflow-wrap:break-word}
@media(max-width:600px){.products-grid .product-category{font-size:13px;line-height:1.5}}
