@font-face {
    font-family: "Almarai";
    src: url("../fonts/Almarai-Light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Almarai";
    src: url("../fonts/Almarai-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Almarai";
    src: url("../fonts/Almarai-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Almarai";
    src: url("../fonts/Almarai-ExtraBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --night: #0b111b;
    --night-soft: #111a28;
    --night-line: #253044;
    --blue: #1463ff;
    --blue-hover: #0d51db;
    --blue-soft: #eaf1ff;
    --ink: #121722;
    --muted: #687386;
    --muted-light: #9aa5b5;
    --canvas: #f4f6f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line: #e3e8ef;
    --line-strong: #d5dce6;
    --success: #087a55;
    --success-soft: #e7f7f0;
    --danger: #b42318;
    --danger-soft: #fff0ef;
    --warning: #a86209;
    --warning-soft: #fff6e8;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 8px 24px rgba(10, 20, 38, .06);
    --shadow: 0 20px 55px rgba(10, 20, 38, .10);
    font-family: "Almarai", Tahoma, Arial, sans-serif;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #8994a5 #eef1f5;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Almarai", Tahoma, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

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

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

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.container {
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
}

.narrow {
    max-width: 880px;
}

.section {
    padding: 82px 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    inset: 12px auto auto 12px;
    padding: 11px 18px;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

.announcement {
    color: #dce4f0;
    background: #070b12;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.announcement-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    font-size: 11px;
}

.announcement-inner span {
    position: relative;
}

.announcement-inner span + span::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -18px;
    width: 3px;
    height: 3px;
    background: #728098;
    border-radius: 50%;
}

.site-header {
    position: sticky;
    z-index: 70;
    top: 0;
    color: #fff;
    background: rgba(11, 17, 27, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}

.header-row {
    min-height: 104px;
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) minmax(240px, 400px) auto;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand > img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: invert(1);
}

.brand-copy,
.footer-brand > span {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    white-space: nowrap;
}

.brand-copy strong {
    font-size: 15px;
    letter-spacing: .01em;
}

.brand-copy small {
    color: #8995a8;
    font-size: 9px;
}

.main-navigation {
    display: flex;
    align-items: stretch;
    justify-content: center;
    align-self: stretch;
    gap: 28px;
}

.main-navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #c5cedc;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .18s ease;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform .18s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #fff;
}

.main-navigation a.active::after {
    transform: scaleX(1);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 46px 10px 16px;
    color: #fff;
    background: #101824;
    border: 1px solid #3c4657;
    border-radius: 999px;
    outline: 0;
}

.header-search input::placeholder {
    color: #8792a3;
}

.header-search input:focus {
    border-color: #6b92de;
    box-shadow: 0 0 0 3px rgba(20, 99, 255, .18);
}

.header-search button {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
}

.header-search button img {
    filter: invert(1);
    opacity: .82;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.header-action {
    position: relative;
    min-width: 54px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #c8d1de;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.header-action img {
    filter: invert(1);
}

.header-action:hover {
    color: #fff;
}

.cart-link b {
    position: absolute;
    top: -5px;
    right: 3px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #fff;
    background: var(--blue);
    border: 2px solid var(--night);
    border-radius: 999px;
    font-size: 9px;
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 10px;
}

.menu-button {
    display: none;
    color: #fff;
}

.menu-button img {
    filter: invert(1);
}

.flash-stack {
    position: fixed;
    z-index: 100;
    top: 128px;
    left: 50%;
    transform: translateX(-50%);
}

.flash {
    max-width: 720px;
    padding: 14px 18px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
}

.flash-success {
    color: var(--success);
    border-color: #9dddc3;
}

.flash-warning {
    color: #8a5a00;
    border-color: #efcf86;
    background: #fffaf0;
}

.flash-error {
    color: var(--danger);
    border-color: #f4b5ae;
}

.home-hero {
    color: #fff;
    background: var(--night);
}

.home-hero-grid {
    min-height: 461px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    align-items: stretch;
    gap: 0;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 0 54px 54px;
}

.eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.eyebrow-light {
    color: #9db7ea;
}

.hero-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.hero-copy > p {
    max-width: 520px;
    margin: 22px 0 0;
    color: #aab5c5;
    font-size: 17px;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 31px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 21px;
    color: var(--ink);
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
    color: #717988;
    background: #e9edf3;
    border-color: #d8dde6;
    cursor: not-allowed;
    opacity: .78;
    transform: none;
}

.button img {
    flex: 0 0 auto;
}

.button-primary,
button.button-primary {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.button-primary:hover,
button.button-primary:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
}

.button-primary img {
    filter: invert(1);
}

.button-secondary {
    color: #194aa0;
    background: var(--blue-soft);
    border-color: #d9e5ff;
}

.button-light {
    color: var(--night);
    background: #fff;
}

.button-outline-light {
    color: #fff;
    background: transparent;
    border-color: #5c6676;
}

.button-small {
    min-height: 39px;
    padding: 8px 13px;
    font-size: 11px;
}

.button-large {
    min-height: 52px;
    padding: 12px 25px;
}

.button-block {
    width: 100%;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    color: #d0d8e4;
    border-bottom: 1px solid #566073;
    font-size: 12px;
    font-weight: 700;
}

.hero-link:hover {
    color: #fff;
}

.hero-media {
    min-width: 0;
    min-height: 461px;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-benefits {
    min-height: 102px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--night-line);
}

.hero-benefits > div {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 19px 24px;
    border-inline-start: 1px solid var(--night-line);
}

.hero-benefits > div:first-child {
    border-inline-start: 0;
}

.hero-benefits img {
    filter: invert(1);
    opacity: .88;
}

.hero-benefits span,
.hero-benefits strong,
.hero-benefits small {
    display: block;
}

.hero-benefits strong {
    color: #eef3fa;
    font-size: 12px;
}

.hero-benefits small {
    margin-top: 2px;
    color: #7f8a9c;
    font-size: 9px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.35;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.centered-heading > div {
    text-align: right;
}

.text-link,
.product-details-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #27559c;
    font-size: 12px;
    font-weight: 800;
}

.text-link:hover,
.product-details-link:hover {
    color: var(--blue);
}

.products-section {
    background: #fff;
}

.products-section.section {
    padding-top: 0;
}

.products-section .section-heading h2 {
    font-size: clamp(27px, 3vw, 36px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: stretch;
    background: #fff;
    border-inline-start: 1px solid var(--line);
    direction: ltr;
    transition: background-color .18s ease;
}

.product-card:first-child {
    border-inline-start: 0;
}

.product-card:hover {
    background: #fbfcfe;
}

.product-image {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f1f3f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #8b96a7;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    direction: rtl;
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #fff;
    background: var(--blue);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
}

.product-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    direction: rtl;
    text-align: right;
}

.product-category {
    color: #7a8799;
    font-size: 10px;
    font-weight: 700;
}

.product-card h3 {
    min-height: 49px;
    margin: 7px 0 10px;
    font-size: 14px;
    line-height: 1.8;
}

.product-card h3 a:hover {
    color: var(--blue);
}

.price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.price strong {
    color: #0f4fcf;
    font-size: 16px;
    font-weight: 800;
}

.price del {
    color: #9ba4b2;
    font-size: 10px;
}

.product-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.product-card-actions form {
    margin: 0;
}

.categories-section {
    background: var(--surface-soft);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.category-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 22px;
    background: transparent;
    border-inline-start: 1px solid var(--line-strong);
}

.category-card:first-child {
    border-inline-start: 0;
}

.category-card:hover {
    background: #fff;
}

.category-card > img:first-child {
    width: 34px;
    height: 34px;
    opacity: .72;
}

.category-card span,
.category-card strong,
.category-card small {
    display: block;
}

.category-card strong {
    font-size: 13px;
}

.category-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.category-arrow {
    opacity: .45;
}

.invoice-cta {
    color: #fff;
    background: var(--night-soft);
}

.invoice-cta-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
}

.invoice-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    background: #172235;
    border: 1px solid #314058;
    border-radius: 16px;
}

.invoice-icon img {
    filter: invert(1);
}

.invoice-cta h2 {
    margin: 0;
    color: #fff;
    font-size: 34px;
}

.invoice-cta p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #9ca8b8;
}

.page-hero {
    padding: 65px 0;
    color: #fff;
    background: var(--night);
    border-bottom: 1px solid var(--night-line);
}

.page-hero.compact {
    padding: 50px 0;
}

.page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.35;
}

.page-hero p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #9ca7b7;
    font-size: 13px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.filter-card,
.form-card,
.table-card,
.content-card,
.cart-table-card,
.order-summary,
.product-long-description {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.filter-card {
    position: sticky;
    top: 132px;
}

.filter-card h2,
.form-card h2,
.order-summary h2 {
    margin: 0 0 20px;
    color: var(--ink);
    font-size: 20px;
}

.filter-card label,
.form-card label,
.add-to-cart label,
.invoice-form label,
.admin-form label {
    display: block;
    margin-bottom: 17px;
    color: #404b5c;
    font-size: 11px;
    font-weight: 700;
}

.filter-card input,
.filter-card select,
.form-card input,
.form-card select,
.form-card textarea,
.add-to-cart input,
.add-to-cart select,
.installer-panel input {
    width: 100%;
    min-height: 47px;
    margin-top: 7px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: 0;
}

.form-card textarea {
    min-height: 112px;
    resize: vertical;
}

.filter-card input:focus,
.filter-card select:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.add-to-cart input:focus,
.add-to-cart select:focus,
.installer-panel input:focus {
    border-color: #6d94df;
    box-shadow: 0 0 0 3px rgba(20, 99, 255, .10);
}

.results-head {
    min-height: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.results-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 34px;
}

.pagination a {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: #576376;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.pagination a.active {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.product-page {
    background: #fff;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.main-product-image {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f0f2f5;
    border-radius: var(--radius);
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow: auto;
}

.thumbnail {
    width: 78px;
    height: 78px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 9px;
}

.thumbnail:hover,
.thumbnail:focus {
    border-color: var(--blue);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 11px;
}

.breadcrumb a {
    color: #285da9;
}

.product-summary {
    padding-top: 15px;
}

.product-summary h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.45;
}

.product-price {
    margin-top: 16px;
}

.product-price strong {
    font-size: 28px;
}

.product-description {
    margin: 24px 0;
    color: var(--muted);
}

.add-to-cart {
    display: grid;
    grid-template-columns: minmax(170px, 1.5fr) minmax(90px, .45fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 27px;
    padding-top: 27px;
    border-top: 1px solid var(--line);
}

.add-to-cart label {
    margin: 0;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 25px 0 0;
    padding: 0;
    color: var(--muted);
    list-style: none;
    font-size: 10px;
}

.trust-list li {
    position: relative;
    padding-right: 15px;
}

.trust-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.product-long-description {
    margin-top: 64px;
    box-shadow: none;
}

.product-long-description h2 {
    margin-top: 0;
}

.empty-state {
    padding: 72px 26px;
    text-align: center;
    background: #fff;
    border: 1px dashed #bdc7d5;
    border-radius: var(--radius);
}

.empty-state.small {
    padding: 38px 24px;
}

.empty-state h2 {
    margin: 0;
}

.empty-state p {
    color: var(--muted);
}

.panel-icon {
    margin: 0 auto 18px;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 26px;
    align-items: start;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 92px 115px auto;
    align-items: center;
    gap: 17px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.cart-image {
    width: 88px;
    height: 88px;
    overflow: hidden;
    background: #eef1f4;
    border-radius: 10px;
}

.cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.cart-item small {
    color: var(--muted);
    font-size: 9px;
}

.quantity-label {
    color: var(--muted);
    font-size: 9px;
}

.quantity-label input {
    width: 72px;
    display: block;
    min-height: 38px;
    margin-top: 4px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.link-danger {
    padding: 0;
    color: var(--danger);
    background: transparent;
    border: 0;
    font-size: 11px;
}

.order-summary {
    position: sticky;
    top: 132px;
}

.order-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.order-summary p {
    color: var(--muted);
    font-size: 10px;
}

.checkout-form {
    display: grid;
    gap: 19px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 17px;
}

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

.radio-stack {
    margin-bottom: 18px;
}

.radio-stack label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.radio-stack label:has(input:checked) {
    background: #f5f8ff;
    border-color: #9eb9ed;
}

.radio-stack input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.radio-stack span,
.radio-stack strong,
.radio-stack small {
    display: block;
}

.radio-stack small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.summary-total {
    font-size: 14px !important;
}

.success-panel {
    max-width: 760px;
    padding: 70px 32px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.success-panel > span {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    color: #fff;
    background: var(--success);
    border-radius: 50%;
    font-size: 28px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.account-head,
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.account-addresses {
    padding-top: 0;
}

.address-list {
    display: grid;
    gap: 10px;
}

.address-list article {
    padding: 15px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.address-list p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.responsive-table {
    width: 100%;
    overflow: auto;
}

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

th,
td {
    padding: 14px 13px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    color: var(--muted);
    background: #f8fafc;
    font-size: 10px;
    font-weight: 800;
}

td {
    font-size: 11px;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #536174;
    background: #eef1f5;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.status-completed {
    color: var(--success);
    background: var(--success-soft);
}

.status-cancelled,
.status-failed,
.status-refunded {
    color: var(--danger);
    background: var(--danger-soft);
}

.status-processing,
.status-confirmed,
.status-shipped,
.status-ready {
    color: #1957b5;
    background: var(--blue-soft);
}

.totals {
    max-width: 370px;
    margin: 25px 0 0 auto;
}

.totals > div {
    display: flex;
    justify-content: space-between;
    padding: 11px;
    border-bottom: 1px solid var(--line);
}

.upload-field input {
    padding: 27px;
    background: var(--surface-soft);
    border: 2px dashed #b8c3d2;
}

.upload-field small,
.admin-form small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
}

.prose {
    max-width: 980px;
}

.prose img {
    height: auto;
}

.prose a {
    color: var(--blue);
    text-decoration: underline;
}

.site-footer {
    color: #a3afbf;
    background: #070b12;
}

.footer-primary {
    display: grid;
    grid-template-columns: 1.55fr repeat(3, 1fr);
    gap: 48px;
    padding-top: 66px;
    padding-bottom: 52px;
}

.footer-about p {
    max-width: 390px;
    color: #7f8b9d;
    font-size: 12px;
}

.footer-brand {
    color: #fff;
}

.footer-brand > img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    filter: invert(1);
}

.footer-brand small {
    color: #7d899b;
    font-size: 9px;
}

.footer-primary h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 13px;
}

.footer-primary > div > a:not(.footer-brand) {
    display: block;
    margin: 9px 0;
    color: #919daf;
    font-size: 11px;
}

.footer-primary > div > a:hover {
    color: #fff;
}

.footer-bottom {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #6f7b8c;
    border-top: 1px solid #202938;
    font-size: 9px;
}

.installer-body {
    min-height: 100vh;
    background: var(--canvas);
}

.installer-shell {
    width: min(980px, calc(100% - 30px));
    margin: auto;
    padding: 38px 0;
}

.installer-panel {
    padding: 45px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.installer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--night);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
}

.installer-brand strong,
.installer-brand small {
    display: block;
}

.installer-brand small {
    color: var(--muted);
    font-size: 9px;
}

.installer-heading {
    margin: 35px 0;
}

.installer-heading h1 {
    margin: 0;
}

.installer-heading p {
    color: var(--muted);
}

.installer-panel fieldset {
    margin: 0 0 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.installer-panel legend {
    padding: 0 8px;
    color: #2258a5;
    font-weight: 800;
}

.installer-panel label span,
.installer-panel label small {
    display: block;
}

.installer-panel label span {
    font-size: 11px;
    font-weight: 700;
}

.installer-panel label small {
    color: var(--muted);
    font-size: 9px;
}

.alert {
    padding: 14px 17px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.alert-error {
    color: var(--danger);
    background: var(--danger-soft);
}

.install-result {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
}

.privacy-note {
    color: var(--muted);
    font-size: 9px;
}

.error-page {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 80px 20px;
    text-align: center;
}

.error-code {
    color: #d8e2f2;
    font-size: 118px;
    font-weight: 800;
    line-height: 1;
}

.error-page h1 {
    margin: 0;
}

@media (max-width: 1180px) {
    .header-row {
        grid-template-columns: auto 1fr minmax(210px, 330px) auto;
        gap: 18px;
    }

    .brand-copy {
        display: none;
    }

    .main-navigation {
        gap: 20px;
    }

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

    .product-card:nth-child(odd) {
        border-inline-start: 0;
    }

    .product-card:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

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

    .category-card:nth-child(odd) {
        border-inline-start: 0;
    }

    .category-card:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

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

    .shop-layout .product-card {
        border-inline-start: 0;
        border-top: 1px solid var(--line);
    }

    .shop-layout .product-card:first-child {
        border-top: 0;
    }
}

@media (max-width: 980px) {
    .container {
        width: min(100% - 32px, 1320px);
    }

    .header-row {
        min-height: 82px;
        grid-template-columns: auto 1fr auto auto;
    }

    .brand > img {
        width: 49px;
        height: 49px;
    }

    .menu-button {
        display: inline-grid;
        grid-column: 4;
        grid-row: 1;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
    }

    .header-search {
        grid-column: 2;
        grid-row: 1;
    }

    .main-navigation {
        position: fixed;
        z-index: 90;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 86vw);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 105px 24px 28px;
        background: #0b111b;
        border-left: 1px solid #273247;
        box-shadow: -25px 0 60px rgba(0, 0, 0, .28);
        transform: translateX(105%);
        transition: transform .22s ease;
    }

    .main-navigation.open {
        transform: translateX(0);
    }

    .main-navigation a {
        min-height: 54px;
        justify-content: flex-start;
        border-bottom: 1px solid #252f40;
    }

    .main-navigation a::after {
        right: 0;
        top: 17px;
        bottom: 17px;
        left: auto;
        width: 3px;
        height: auto;
        transform: scaleY(0);
    }

    .main-navigation a.active::after {
        transform: scaleY(1);
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 62px 0 42px;
        text-align: center;
    }

    .hero-copy > p {
        margin-inline: auto;
    }

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

    .hero-media {
        min-height: 390px;
    }

    .hero-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .hero-benefits > div:nth-child(3) {
        border-inline-start: 0;
    }

    .hero-benefits > div:nth-child(n + 3) {
        border-top: 1px solid var(--night-line);
    }

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

    .filter-card {
        position: static;
    }

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

    .shop-layout .product-card:nth-child(even) {
        border-inline-start: 1px solid var(--line);
    }

    .shop-layout .product-card:nth-child(2) {
        border-top: 0;
    }

    .product-detail {
        gap: 38px;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .invoice-cta-inner {
        grid-template-columns: auto 1fr;
    }

    .invoice-cta-inner > .button {
        grid-column: 2;
        justify-self: start;
    }

    .footer-primary {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-primary > div:last-child {
        grid-column: 2;
    }

    .add-to-cart {
        grid-template-columns: 1fr 1fr;
    }

    .add-to-cart .button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .announcement-inner {
        min-height: 32px;
        gap: 0;
        font-size: 9px;
    }

    .announcement-inner span {
        display: none;
    }

    .announcement-inner span:first-child {
        display: block;
    }

    .announcement-inner span + span::before {
        display: none;
    }

    .header-row {
        min-height: 74px;
        grid-template-columns: auto 1fr auto;
        gap: 9px;
    }

    .menu-button {
        grid-column: 3;
    }

    .header-actions {
        grid-column: 2;
        justify-self: end;
    }

    .header-action span {
        display: none;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-bottom: 12px;
    }

    .header-search input {
        min-height: 42px;
    }

    .main-navigation {
        padding-top: 90px;
    }

    .section {
        padding: 58px 0;
    }

    .hero-copy {
        padding-top: 52px;
    }

    .hero-copy h1 {
        font-size: 46px;
        white-space: normal;
    }

    .hero-copy > p {
        font-size: 14px;
    }

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

    .hero-media {
        min-height: 270px;
        margin-inline: -16px;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
    }

    .hero-benefits > div,
    .hero-benefits > div:nth-child(3) {
        justify-content: flex-start;
        padding-inline: 24px;
        border-inline-start: 0;
        border-top: 1px solid var(--night-line);
    }

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

    .section-heading h2 {
        font-size: 30px;
    }

    .product-grid,
    .shop-layout .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card,
    .shop-layout .product-card,
    .shop-layout .product-card:nth-child(even) {
        grid-template-columns: 43% 57%;
        border-inline-start: 0;
        border-top: 1px solid var(--line);
    }

    .product-card:first-child,
    .shop-layout .product-card:first-child {
        border-top: 0;
    }

    .product-image {
        min-height: 218px;
    }

    .product-card-body {
        padding: 17px;
    }

    .product-card h3 {
        min-height: auto;
        font-size: 12px;
    }

    .product-card-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .category-card:nth-child(odd) {
        border-inline-start: 0;
        border-top: 1px solid var(--line-strong);
    }

    .category-card:first-child {
        border-top: 0;
    }

    .invoice-cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .invoice-icon {
        margin: auto;
    }

    .invoice-cta h2 {
        font-size: 29px;
    }

    .invoice-cta-inner > .button {
        grid-column: auto;
        justify-self: center;
    }

    .page-hero.compact {
        padding: 40px 0;
    }

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

    .product-summary h1 {
        font-size: 31px;
    }

    .add-to-cart {
        grid-template-columns: 1fr;
    }

    .add-to-cart .button {
        grid-column: auto;
    }

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

    .cart-image {
        width: 68px;
        height: 68px;
    }

    .cart-item .quantity-label {
        grid-column: 2;
    }

    .cart-item > strong {
        grid-column: 3;
        grid-row: 1;
    }

    .cart-item .link-danger {
        grid-column: 3;
        grid-row: 2;
    }

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

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

    .account-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-primary {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-primary > div:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }

    .installer-panel {
        padding: 24px 17px;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(100% - 22px, 1320px);
    }

    .brand > img {
        width: 44px;
        height: 44px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-action {
        min-width: 42px;
    }

    .hero-copy h1 {
        font-size: 39px;
    }

    .product-card,
    .shop-layout .product-card,
    .shop-layout .product-card:nth-child(even) {
        grid-template-columns: 40% 60%;
    }

    .product-image {
        min-height: 205px;
    }

    .button-small {
        padding-inline: 10px;
    }

    .footer-primary {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-primary > div:last-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Tara refinement pass: content pages, warranty, catalog and mobile rhythm. */
.products-section.section {
    padding-top: 86px;
}

.product-grid {
    gap: 22px;
    border: 0;
}

.product-card,
.shop-layout .product-card,
.shop-layout .product-card:nth-child(even) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    direction: rtl;
    box-shadow: 0 12px 35px rgba(18, 29, 45, .055);
}

.product-card:first-child,
.shop-layout .product-card:first-child {
    border: 1px solid var(--line);
}

.product-card:hover {
    border-color: #c9d7ef;
    box-shadow: 0 18px 44px rgba(18, 29, 45, .1);
    transform: translateY(-3px);
}

.product-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.product-card-body {
    flex: 1;
    justify-content: flex-start;
    padding: 24px;
}

.product-card h3 {
    min-height: 58px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.8;
}

.product-card-excerpt {
    min-height: 45px;
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.product-card .price {
    margin-top: auto;
}

.product-card-actions {
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #edf0f4;
}

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

.car-brands-section {
    background: var(--surface-soft);
}

.car-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.car-brand-card {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 20px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 25, 40, .035);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.car-brand-card:hover {
    color: var(--blue);
    border-color: #bfd0ed;
    box-shadow: 0 13px 30px rgba(15, 25, 40, .08);
    transform: translateY(-3px);
}

.car-brand-logo {
    width: 86px;
    height: 52px;
    display: grid;
    place-items: center;
}

.car-brand-logo img {
    width: 72px;
    max-height: 44px;
    object-fit: contain;
}

.car-brand-card strong {
    font-size: 12px;
}

.variation-picker {
    min-width: 0;
    grid-column: 1 / -1;
    padding: 0;
    margin: 0;
    border: 0;
}

.variation-picker legend {
    width: 100%;
    padding: 0;
    margin-bottom: 11px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.variation-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.variation-choice {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.variation-choice > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.variation-choice-card {
    min-height: 70px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 11px;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.variation-choice:hover .variation-choice-card {
    border-color: #8eabe0;
}

.variation-choice > input:focus-visible + .variation-choice-card {
    outline: 3px solid rgba(20, 99, 255, .2);
    outline-offset: 2px;
}

.variation-choice > input:checked + .variation-choice-card {
    background: #f3f7ff;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(20, 99, 255, .1);
}

.variation-swatch {
    width: 30px;
    height: 30px;
    display: block;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cbd2dc;
}

.variation-choice-copy,
.variation-choice-copy strong,
.variation-choice-copy small {
    display: block;
}

.variation-choice-copy strong {
    color: var(--ink);
    font-size: 12px;
}

.variation-choice-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.variation-check {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #ccd4df;
    border-radius: 50%;
    opacity: .45;
}

.variation-check img {
    width: 14px;
    height: 14px;
    opacity: 0;
}

.variation-choice > input:checked + .variation-choice-card .variation-check {
    background: var(--blue);
    border-color: var(--blue);
    opacity: 1;
}

.variation-choice > input:checked + .variation-choice-card .variation-check img {
    filter: invert(1);
    opacity: 1;
}

.variation-choice.unavailable {
    cursor: not-allowed;
}

.variation-choice.unavailable .variation-choice-card {
    opacity: .48;
    background: #f5f6f8;
}

.about-hero,
.contact-hero,
.warranty-hero {
    color: #fff;
    background: var(--night);
    border-bottom: 1px solid var(--night-line);
}

.about-hero-grid {
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 70px;
}

.about-hero-copy h1,
.contact-hero h1,
.warranty-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(39px, 5vw, 64px);
    line-height: 1.3;
    letter-spacing: -.035em;
}

.about-hero-copy > p,
.contact-hero p,
.warranty-hero p {
    max-width: 680px;
    margin: 19px 0 0;
    color: #aab5c5;
    font-size: 16px;
    line-height: 2;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.about-hero-media {
    position: relative;
    min-width: 0;
}

.about-hero-media > img {
    width: 100%;
    height: 500px;
    min-height: 420px;
    display: block;
    object-fit: cover;
    border: 1px solid #28364a;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.about-floating-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    max-width: calc(100% - 48px);
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    color: #fff;
    background: rgba(10, 17, 28, .92);
    border: 1px solid #3a485c;
    border-radius: 13px;
    backdrop-filter: blur(10px);
}

.about-floating-card > img {
    filter: invert(1);
}

.about-floating-card span,
.about-floating-card strong,
.about-floating-card small {
    display: block;
}

.about-floating-card strong {
    font-size: 12px;
}

.about-floating-card small {
    margin-top: 3px;
    color: #96a4b8;
    font-size: 9px;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: 80px;
    align-items: start;
}

.about-story-intro h2,
.contact-copy h2,
.warranty-guide h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.45;
}

.about-story-copy {
    padding-right: 30px;
    border-right: 3px solid var(--blue);
}

.about-story-copy p {
    margin: 0 0 18px;
    color: #4f5c6d;
    font-size: 16px;
    line-height: 2.2;
}

.about-story-copy p:last-child {
    margin-bottom: 0;
}

.about-values-section {
    background: var(--surface-soft);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.about-values-grid article {
    min-height: 270px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(18, 29, 45, .04);
}

.about-value-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    background: var(--blue-soft);
    border-radius: 14px;
}

.about-value-icon img {
    filter: invert(33%) sepia(95%) saturate(4672%) hue-rotate(218deg) brightness(101%) contrast(101%);
}

.about-values-grid h3 {
    margin: 0 0 11px;
    color: var(--ink);
    font-size: 18px;
}

.about-values-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

.about-vision-section {
    color: #fff;
    background: #12203a;
}

.about-vision {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.about-vision h2 {
    max-width: 800px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1.45;
}

.about-vision p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #9aa8bb;
    line-height: 2;
}

.contact-hero {
    padding: 90px 0 104px;
}

.contact-hero-inner {
    max-width: 900px;
    text-align: center;
}

.contact-hero-inner .eyebrow {
    text-align: center;
}

.contact-hero p {
    margin-inline: auto;
}

.contact-channels-section {
    padding-top: 0;
    margin-top: -42px;
}

.contact-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.contact-channel-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 24px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 15px 36px rgba(12, 22, 38, .1);
}

.contact-channel-card > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: var(--blue-soft);
    border-radius: 13px;
}

.contact-channel-card > span img {
    filter: invert(33%) sepia(95%) saturate(4672%) hue-rotate(218deg) brightness(101%) contrast(101%);
}

.contact-channel-card strong,
.contact-channel-card small {
    display: block;
}

.contact-channel-card strong {
    font-size: 14px;
}

.contact-channel-card small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.75;
}

.channel-arrow {
    opacity: .42;
}

.contact-channel-card:hover {
    color: var(--blue);
    border-color: #b8cbed;
}

.contact-form-section {
    padding-top: 46px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 55px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 120px;
    padding-top: 24px;
}

.contact-copy > p,
.warranty-guide > p {
    margin: 15px 0 0;
    color: var(--muted);
    line-height: 2;
}

.contact-promises {
    display: grid;
    gap: 13px;
    padding: 24px 0 0;
    margin: 24px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.contact-promises li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4f5d70;
    font-size: 12px;
}

.contact-promises img {
    width: 22px;
    height: 22px;
    padding: 4px;
    background: var(--success-soft);
    border-radius: 50%;
}

.contact-form {
    padding: 34px;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(17, 28, 45, .08);
}

.contact-form textarea {
    min-height: 150px;
}

.warranty-hero {
    padding: 74px 0;
}

.warranty-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 70px;
}

.warranty-hero-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: #141f30;
    border: 1px solid #344158;
    border-radius: 16px;
}

.warranty-hero-badge > img {
    filter: invert(1);
}

.warranty-hero-badge span,
.warranty-hero-badge strong,
.warranty-hero-badge small {
    display: block;
}

.warranty-hero-badge strong {
    color: #fff;
    font-size: 13px;
}

.warranty-hero-badge small {
    margin-top: 5px;
    color: #96a4b8;
    font-size: 9px;
    line-height: 1.8;
}

.warranty-section {
    background: var(--surface-soft);
}

.warranty-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 50px;
    align-items: start;
}

.warranty-guide {
    padding-top: 28px;
}

.warranty-steps {
    display: grid;
    gap: 0;
    padding: 22px 0 0;
    margin: 25px 0 0;
    border-top: 1px solid var(--line-strong);
    list-style: none;
}

.warranty-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.warranty-steps li > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
}

.warranty-steps strong,
.warranty-steps small {
    display: block;
}

.warranty-steps strong {
    color: var(--ink);
    font-size: 12px;
}

.warranty-steps small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.8;
}

.warranty-form {
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(17, 28, 45, .08);
}

.warranty-form-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 23px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.warranty-form-head > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--blue-soft);
    border-radius: 12px;
}

.warranty-form-head h2,
.warranty-form-head p {
    margin: 0;
}

.warranty-form-head h2 {
    color: var(--ink);
    font-size: 19px;
}

.warranty-form-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.warranty-upload {
    padding: 20px;
    background: #f8faff;
    border: 1px dashed #9db5dc;
    border-radius: 12px;
}

.upload-copy,
.upload-copy strong,
.upload-copy small {
    display: block;
}

.upload-copy strong {
    color: var(--ink);
}

.upload-copy small {
    margin: 4px 0 12px;
    color: var(--muted);
    font-weight: 400;
}

@media (max-width: 1180px) {
    .car-brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 980px) {
    .about-hero-grid,
    .about-story-grid,
    .contact-layout,
    .warranty-layout,
    .warranty-hero-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-grid {
        padding: 65px 0;
    }

    .about-story-grid {
        gap: 30px;
    }

    .contact-copy {
        position: static;
    }

    .contact-channel-grid {
        grid-template-columns: 1fr;
    }

    .warranty-hero-grid {
        gap: 28px;
    }

    .warranty-hero-badge {
        max-width: 500px;
    }
}

@media (max-width: 720px) {
    .products-section.section {
        padding-top: 66px;
    }

    .hero-media {
        width: calc(100% + 32px);
        min-height: 0;
        aspect-ratio: 16 / 10;
        justify-self: center;
        margin-inline: -16px;
    }

    .hero-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .hero-benefits > div,
    .hero-benefits > div:nth-child(3) {
        justify-content: flex-start;
        padding: 17px 13px;
        border-top: 0;
    }

    .hero-benefits > div:nth-child(odd) {
        border-inline-start: 0;
    }

    .hero-benefits > div:nth-child(even) {
        border-inline-start: 1px solid var(--night-line);
    }

    .hero-benefits > div:nth-child(n + 3) {
        border-top: 1px solid var(--night-line);
    }

    .hero-benefits strong {
        font-size: 11px;
    }

    .hero-benefits small {
        font-size: 8px;
        line-height: 1.7;
    }

    .product-grid,
    .shop-layout .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card,
    .shop-layout .product-card,
    .shop-layout .product-card:nth-child(even) {
        display: flex;
        border: 1px solid var(--line);
    }

    .product-image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .product-card-body {
        padding: 21px;
    }

    .product-card h3 {
        min-height: auto;
        font-size: 16px;
    }

    .product-card-actions {
        align-items: center;
        flex-direction: row;
    }

    .car-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .car-brand-card {
        min-height: 116px;
        padding: 16px 10px;
    }

    .variation-choices {
        grid-template-columns: 1fr;
    }

    .about-hero-grid {
        gap: 38px;
        padding: 54px 0;
    }

    .about-hero-copy h1,
    .contact-hero h1,
    .warranty-hero h1 {
        font-size: 38px;
    }

    .about-hero-media > img {
        height: 300px;
        min-height: 280px;
    }

    .about-story-copy {
        padding: 20px 0 0;
        border-top: 3px solid var(--blue);
        border-right: 0;
    }

    .about-story-copy p {
        font-size: 14px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-values-grid article {
        min-height: 0;
    }

    .about-vision {
        grid-template-columns: 1fr;
    }

    .about-vision .button {
        justify-self: start;
    }

    .contact-hero {
        padding: 66px 0 82px;
    }

    .contact-channel-card {
        min-height: 116px;
        padding: 19px;
    }

    .contact-form,
    .warranty-form {
        padding: 22px;
    }

    .warranty-hero {
        padding: 58px 0;
    }
}

@media (max-width: 430px) {
    .hero-benefits img {
        width: 23px;
        height: 23px;
    }

    .hero-benefits > div {
        gap: 9px;
    }

    .about-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .about-hero-actions .button {
        width: 100%;
    }

    .about-floating-card {
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
    }

    .contact-channel-card {
        grid-template-columns: auto 1fr;
    }

    .channel-arrow {
        display: none;
    }
}

/* Product detail images remain fully visible; catalog cards deliberately fill their square. */
.main-product-image img,
.thumbnail img {
    padding: 10px;
    object-fit: contain;
    object-position: center;
    background: #f4f6f9;
}

.main-product-image img {
    padding: 18px;
}

.thumbnail img {
    padding: 4px;
}

.product-image {
    overflow: hidden;
    background: #f4f6f9;
    border-radius: 14px 14px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
    background: transparent;
    border-radius: inherit;
}

.formatted-product-copy {
    line-height: 2;
}

.formatted-product-copy p {
    margin: 0 0 18px;
}

.formatted-product-copy p:last-child {
    margin-bottom: 0;
}

.product-long-description.formatted-product-copy {
    color: #4f5c70;
}

.product-long-description > h2 {
    margin-bottom: 24px;
    font-size: clamp(25px, 3vw, 34px);
}

.formatted-product-copy .product-copy-lead {
    color: var(--ink);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 800;
    line-height: 1.9;
}

.formatted-product-copy .product-copy-paragraph {
    color: #59667a;
    font-size: 13px;
}

.product-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.product-feature-list li {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 13px 48px 13px 16px;
    color: #354257;
    background: #f5f8fc;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.8;
}

.product-feature-list li::before {
    content: "✓";
    position: absolute;
    right: 15px;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--success);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
}

.formatted-product-copy .product-copy-cta {
    padding: 15px 18px;
    color: #174d9e;
    background: #eef5ff;
    border-right: 4px solid var(--blue);
    border-radius: 10px;
    font-weight: 800;
}

.variation-swatch {
    flex: 0 0 30px;
}

/* Final mobile hero guard: exact viewport width with no left-side gap. */
.home-hero {
    overflow: hidden;
}

@media (max-width: 720px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .home-hero-grid {
        width: 100%;
        max-width: none;
    }

    .home-hero-grid .hero-copy {
        width: calc(100% - 32px);
        margin-inline: auto;
        padding-inline: 0;
    }

    .home-hero-grid .hero-media {
        width: 100vw;
        max-width: none;
        aspect-ratio: 16 / 10;
        margin-inline: calc(50% - 50vw);
        justify-self: center;
    }

    .home-hero .hero-benefits {
        width: calc(100% - 32px);
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row;
        margin-inline: auto;
    }

    .home-hero .hero-benefits > div {
        width: auto !important;
        min-width: 0;
        display: flex;
        float: none;
    }
}

@media (max-width: 390px) {
    .hero-benefits {
        width: calc(100% - 20px);
    }

    .hero-benefits > div,
    .hero-benefits > div:nth-child(3) {
        gap: 7px;
        padding-inline: 9px;
    }

    .hero-benefits strong {
        font-size: 10px;
    }

    .hero-benefits small {
        font-size: 7.5px;
    }
}

.category-logo-placeholder {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #1d4f9f;
    background: #eaf1ff;
    border-radius: 50%;
    font-size: 21px;
    font-weight: 900;
}

/* Catalog geometry: square photos, five homepage cards, three shop cards. */
.product-image {
    aspect-ratio: 1 / 1;
}

@media (min-width: 1181px) {
    .home-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }

    .home-product-grid .product-card-body,
    .shop-layout .product-card-body {
        padding: 18px;
    }

    .home-product-grid .product-card h3,
    .shop-layout .product-card h3 {
        min-height: 52px;
        font-size: 14px;
    }

    .home-product-grid .product-card-actions,
    .shop-layout .product-card-actions {
        gap: 8px;
    }

    .shop-layout .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 721px) and (max-width: 1180px) {
    .shop-layout .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .product-feature-list {
        grid-template-columns: 1fr;
    }
}

/* Product detail containment: grid children must be allowed to shrink instead of
   forcing the complete mobile page beyond the viewport. */
.product-detail > *,
.product-gallery,
.product-summary,
.add-to-cart > *,
.variation-picker,
.variation-choices,
.variation-choice,
.variation-choice-card,
.variation-choice-copy {
    min-width: 0;
    max-width: 100%;
}

.product-gallery,
.main-product-image,
.thumbnail-row,
.add-to-cart,
.variation-picker,
.variation-choices {
    width: 100%;
}

.variation-choice-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.variation-choice-copy strong,
.variation-choice-copy small {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 720px) {
    .product-page {
        overflow-x: clip;
        padding: 34px 0 52px;
    }

    .product-page .container {
        max-width: calc(100% - 24px);
    }

    .product-detail {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .product-gallery,
    .product-summary {
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
    }

    .main-product-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }

    .main-product-image img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        padding: 10px;
        object-fit: contain;
        object-position: center;
    }

    .thumbnail-row {
        max-width: 100%;
        padding: 2px 1px 7px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .thumbnail {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
    }

    .product-summary {
        padding-top: 0;
    }

    .product-summary .breadcrumb {
        margin-bottom: 10px;
        white-space: normal;
    }

    .product-summary h1 {
        font-size: clamp(26px, 8vw, 32px);
        line-height: 1.5;
    }

    .product-price {
        margin-top: 10px;
    }

    .product-price strong {
        font-size: 24px;
    }

    .product-description {
        margin: 18px 0;
    }

    .add-to-cart {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .variation-picker,
    .variation-choices,
    .variation-choice,
    .variation-choice-card,
    .quantity-field,
    .add-to-cart .button {
        width: 100%;
        max-width: 100%;
    }

    .variation-choices {
        grid-template-columns: minmax(0, 1fr);
    }

    .variation-choice-card {
        grid-template-columns: 30px minmax(0, 1fr) 23px;
        gap: 10px;
        padding: 11px 12px;
    }

    .add-to-cart .button {
        min-width: 0;
        grid-column: auto;
        justify-content: center;
        white-space: normal;
    }

    .trust-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-top: 20px;
    }

    .product-long-description {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        margin-top: 38px;
        padding: 20px 16px;
    }
}

@media (max-width: 390px) {
    .product-page .container {
        max-width: calc(100% - 20px);
    }

    .variation-choice-card {
        grid-template-columns: 27px minmax(0, 1fr) 21px;
        gap: 8px;
        padding-inline: 10px;
    }

    .variation-swatch {
        width: 27px;
        height: 27px;
    }

    .variation-check {
        width: 21px;
        height: 21px;
    }

    .product-long-description {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}
