:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --ink: #0a0d12;
    --muted: #667085;
    --line: #d9e2ef;
    --blue: #1246a0;
    --cyan: #25aee4;
    --amber: #f2a014;
    --green: #148a59;
    --red: #cf2e2e;
    --dark: #05070a;
    --panel: #111927;
    --shadow: 0 20px 60px rgba(10, 13, 18, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

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

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

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

button {
    cursor: pointer;
}

button:disabled,
.disabled {
    opacity: .55;
    pointer-events: none;
}

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

.narrow {
    width: min(820px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(217, 226, 239, .9);
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(10, 13, 18, .08);
}

.topbar {
    background: var(--dark);
    color: #d7e2f0;
    font-size: .85rem;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 142px;
    height: 58px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 10px 18px rgba(10, 13, 18, .16));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.main-nav > a,
.nav-dropdown > a,
.link-muted,
.cart-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 6px;
    font-weight: 700;
    color: #243041;
}

.main-nav > a:hover,
.nav-dropdown:hover > a,
.link-muted:hover {
    background: #eef4fb;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #243041;
    font-weight: 700;
}

.dropdown-panel a:hover {
    background: #eef4fb;
}

.nav-dropdown:hover .dropdown-panel {
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.cart-link {
    background: var(--dark);
    color: #fff;
}

.cart-link span {
    min-width: 24px;
    height: 24px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--cyan);
    color: var(--dark);
    font-weight: 900;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.hero {
    min-height: 640px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(5, 7, 10, .96) 0%, rgba(9, 18, 32, .94) 56%, rgba(7, 33, 49, .95) 100%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 18px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: 48px;
    padding: 72px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .78rem;
}

.hero h1 {
    margin: 0;
    font-size: 4.4rem;
    line-height: .94;
    font-weight: 900;
}

.hero-lead {
    max-width: 620px;
    margin: 24px 0 0;
    color: #d7e2f0;
    font-size: 1.16rem;
}

.hero-actions,
.form-actions,
.cart-actions,
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 18px;
}

.hero-search {
    max-width: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(215, 226, 240, .20);
    backdrop-filter: blur(14px);
}

.hero-search input {
    min-height: 48px;
    border: 0;
    background: #fff;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215, 226, 240, .24);
    border-radius: 8px;
    background: #07101a;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.hero-logo {
    position: relative;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

.hero-logo-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: none;
}

.moto-banner {
    margin-top: -38px;
    position: relative;
    z-index: 4;
}

.moto-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 26px;
    align-items: center;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.moto-banner-inner img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
}

.moto-banner-inner h2 {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.1;
}

.moto-banner-inner p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 900;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.btn-primary {
    color: #041018;
    background: linear-gradient(135deg, var(--cyan), #7fe0ff);
    box-shadow: 0 12px 28px rgba(37, 174, 228, .28);
}

.btn-dark {
    color: #fff;
    background: var(--dark);
}

.btn-danger {
    color: #fff;
    background: var(--red);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .06);
}

.btn-ghost.dark {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.btn-full {
    width: 100%;
}

.section {
    padding: 78px 0;
}

.section-soft {
    background: #eaf1f8;
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-heading,
.split-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.split-heading h2,
.service-band h2,
.panel-card h2,
.form-panel h2,
.summary-box h2,
.contact-card h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.12;
}

.split-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.compact-heading {
    margin-bottom: 18px;
}

.compact-heading h2 {
    font-size: 1.35rem;
}

.text-link {
    color: var(--blue);
    font-weight: 900;
}

.text-link.light {
    color: #8addff;
}

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

.category-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 12px;
    box-shadow: 0 18px 48px rgba(10, 13, 18, .08);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.category-card:hover {
    border-color: rgba(37, 174, 228, .75);
    transform: translateY(-2px);
    box-shadow: 0 24px 62px rgba(10, 13, 18, .12);
}

.category-card img {
    width: 100%;
    aspect-ratio: 1 / 1.05;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-card span {
    font-size: 1.15rem;
    font-weight: 900;
    padding: 0 6px;
}

.category-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .92rem;
    padding: 0 6px 8px;
}

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

.product-card,
.news-card,
.panel-card,
.form-panel,
.summary-box,
.contact-card,
.metric-card,
.message-card,
.empty-state {
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 16px 44px rgba(10, 13, 18, .06);
}

.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-media {
    aspect-ratio: 1 / .78;
    position: relative;
    display: block;
    background: #dfe8f3;
    overflow: hidden;
}

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

.product-card:hover .product-media img {
    transform: scale(1.035);
}

.stock-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #e9fff5;
    color: var(--green);
    font-size: .78rem;
    font-weight: 900;
}

.stock-empty {
    background: #ffecec;
    color: var(--red);
}

.favorite-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.favorite-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    background: rgba(5, 7, 10, .74);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.favorite-btn.is-liked {
    background: #fff;
    color: var(--red);
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-category {
    color: var(--blue);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-body h3 {
    min-height: 54px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.28;
}

.product-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
}

.product-meta strong,
.detail-price strong {
    font-size: 1.35rem;
    font-weight: 900;
}

.product-meta span,
.detail-price span {
    color: var(--muted);
    text-decoration: line-through;
}

.service-band {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 36px;
    align-items: start;
    padding: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.service-list {
    display: grid;
    gap: 14px;
}

.service-list div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-left: 4px solid var(--cyan);
    background: #f5f9fd;
    border-radius: 8px;
}

.service-list strong {
    font-size: 1.05rem;
}

.service-list span {
    color: var(--muted);
}

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

.news-card {
    background: #101722;
    border-color: rgba(215, 226, 240, .16);
    padding: 22px;
}

.news-card span,
.article-row span {
    color: var(--cyan);
    font-weight: 900;
    font-size: .84rem;
}

.news-card h3,
.article-row h2 {
    margin: 10px 0;
    line-height: 1.2;
}

.news-card p {
    color: #c5d2e2;
}

.page-hero {
    color: #fff;
    background:
        linear-gradient(120deg, rgba(5, 7, 10, .96), rgba(13, 31, 49, .94)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 18px);
}

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

.page-hero h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1.05;
}

.page-hero p:last-child {
    max-width: 720px;
    color: #d7e2f0;
}

.admin-hero {
    background:
        linear-gradient(120deg, rgba(5, 7, 10, .96), rgba(19, 28, 41, .95)),
        repeating-linear-gradient(135deg, rgba(242,160,20,.18) 0 1px, transparent 1px 18px);
}

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

.filters {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 16px;
}

.filters h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.filters a {
    padding: 10px 12px;
    border-radius: 6px;
    color: #344054;
    font-weight: 800;
}

.filters a.active,
.filters a:hover {
    background: #eaf4ff;
    color: var(--blue);
}

.shop-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-weight: 800;
}

label span {
    font-size: .9rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd7e6;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(37, 174, 228, .16);
}

label em {
    color: var(--red);
    font-size: .84rem;
    font-style: normal;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: 34px;
    align-items: start;
}

.detail-media {
    border-radius: 8px;
    overflow: hidden;
    background: #dfe8f3;
    border: 1px solid var(--line);
}

.detail-media img {
    width: 100%;
    aspect-ratio: 1 / .78;
    object-fit: cover;
}

.detail-copy {
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 26px;
}

.detail-copy h1 {
    margin: 8px 0 12px;
    font-size: 2.35rem;
    line-height: 1.05;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.detail-facts div {
    padding: 12px;
    border-radius: 8px;
    background: #f3f7fb;
}

.detail-facts dt {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.detail-facts dd {
    margin: 3px 0 0;
    font-weight: 900;
}

.detail-description {
    color: #344054;
}

.add-cart-panel {
    display: grid;
    grid-template-columns: 120px minmax(180px, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.detail-favorite {
    margin-top: 12px;
}

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

.cart-list,
.summary-box,
.form-panel,
.contact-card {
    min-width: 0;
}

.cart-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 110px 120px auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 12px;
}

.cart-row img {
    width: 92px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-title {
    display: block;
    font-weight: 900;
}

.cart-row span {
    color: var(--muted);
    font-size: .9rem;
}

.icon-action,
.row-actions button,
.inline-status button {
    border: 0;
    background: transparent;
    color: var(--red);
    font-weight: 900;
    padding: 6px;
}

.summary-box,
.form-panel,
.contact-card {
    padding: 22px;
}

.summary-box {
    position: sticky;
    top: 118px;
}

.checkout-pro-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
}

.checkout-form {
    gap: 18px;
    padding: 0;
    overflow: hidden;
}

.checkout-step {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.checkout-step:last-child {
    border-bottom: 0;
}

.checkout-step-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.checkout-step-head > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--cyan);
    color: #07111f;
    font-weight: 950;
    flex: 0 0 auto;
}

.checkout-step-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.checkout-step-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-weight: 700;
}

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

.choice-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.choice-card:hover {
    border-color: rgba(37, 174, 228, .65);
    box-shadow: 0 14px 34px rgba(10, 13, 18, .08);
    transform: translateY(-1px);
}

.choice-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--cyan);
}

.choice-card input:checked + span strong {
    color: var(--blue);
}

.choice-card:has(input:checked) {
    border-color: var(--cyan);
    box-shadow: 0 16px 38px rgba(37, 174, 228, .16);
}

.choice-card strong,
.choice-card small,
.choice-card em {
    display: block;
}

.choice-card strong {
    font-size: 1rem;
}

.choice-card small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 700;
}

.choice-card em {
    margin-top: 8px;
    color: #02749e;
    font-size: .82rem;
    font-style: normal;
    font-weight: 900;
}

.choice-card b {
    align-self: center;
    white-space: nowrap;
    font-size: .96rem;
}

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

.invoice-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.conditional-fields {
    display: none;
}

.conditional-fields.is-visible {
    display: block;
}

.field-error {
    color: var(--red);
    font-size: .88rem;
    font-style: normal;
    font-weight: 800;
}

.checkout-summary {
    display: grid;
    gap: 8px;
}

.summary-products {
    display: grid;
    gap: 6px;
    padding: 4px 0 10px;
    border-bottom: 1px solid var(--line);
}

.checkout-item small {
    color: var(--muted);
    font-weight: 800;
}

.vat-breakdown {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.vat-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: .94rem;
    font-weight: 800;
}

.vat-breakdown strong {
    color: #172033;
}

.checkout-secure-note {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.5;
}

.summary-row,
.summary-total,
.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.summary-total {
    border-bottom: 0;
    margin: 6px 0 12px;
    font-size: 1.15rem;
}

.form-panel {
    display: grid;
    gap: 16px;
}

.form-panel.slim {
    max-width: 560px;
}

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

.span-2 {
    grid-column: span 2;
}

.check-line {
    display: flex;
    grid-template-columns: auto 1fr;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.check-line input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.auth-page {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 48px 16px;
    background:
        linear-gradient(120deg, rgba(5, 7, 10, .96), rgba(7, 33, 49, .93)),
        repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 18px);
}

.auth-card {
    width: min(460px, 100%);
    border-radius: 8px;
    border: 1px solid rgba(215, 226, 240, .22);
    background: #fff;
    padding: 28px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
    display: grid;
    gap: 16px;
}

.auth-card img {
    width: 172px;
    margin: 0 auto 4px;
    border-radius: 6px;
}

.auth-card h1 {
    margin: 0;
    font-size: 2rem;
    text-align: center;
}

.auth-card p {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.auth-card form {
    display: grid;
    gap: 18px;
}

.auth-card form .btn {
    margin-top: 10px;
}

.alert {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: #344054;
    font-weight: 800;
}

.alert-success {
    border-color: rgba(20, 138, 89, .28);
    background: #eafff5;
    color: var(--green);
}

.alert-error {
    border-color: rgba(207, 46, 46, .24);
    background: #fff0f0;
    color: var(--red);
}

.alert-warning {
    border-color: rgba(242, 160, 20, .30);
    background: #fff8e8;
    color: #9a6200;
}

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

.panel-sidebar {
    position: sticky;
    top: 118px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 16px;
    display: grid;
    gap: 8px;
}

.panel-sidebar h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.panel-sidebar a {
    padding: 11px 12px;
    border-radius: 6px;
    color: #344054;
    font-weight: 900;
}

.panel-sidebar a.active,
.panel-sidebar a:hover {
    background: #eaf4ff;
    color: var(--blue);
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: #fff4dc;
    color: #875600;
}

.panel-content {
    min-width: 0;
    display: grid;
    gap: 18px;
}

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

.metric-card {
    padding: 18px;
}

.metric-card span {
    color: var(--muted);
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.8rem;
}

.panel-card {
    padding: 22px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    color: #475467;
    font-size: .86rem;
    text-transform: uppercase;
}

td small {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #eef2f7;
    color: #344054;
    font-weight: 900;
    font-size: .82rem;
}

.badge-blue { background: #e8f1ff; color: var(--blue); }
.badge-cyan { background: #e8faff; color: #02749e; }
.badge-orange { background: #fff4dc; color: #9a6200; }
.badge-green { background: #eafff5; color: var(--green); }
.badge-red { background: #fff0f0; color: var(--red); }

.order-head {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.order-head-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -6px;
}

.order-head div,
.delivery-box {
    padding: 16px;
    border-radius: 8px;
    background: #f5f9fd;
    border: 1px solid var(--line);
}

.order-head span {
    color: var(--muted);
    font-weight: 800;
}

.order-head strong {
    display: block;
    margin-top: 5px;
}

.delivery-box {
    margin-top: 18px;
}

.delivery-box h2 {
    margin-top: 0;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.table-product img {
    width: 54px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-actions a {
    color: var(--blue);
    font-weight: 900;
}

.row-actions form {
    margin: 0;
}

td.row-actions {
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
}

td.row-actions a,
td.row-actions form {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

td.row-actions a {
    min-height: 36px;
    margin-right: 14px;
}

td.row-actions button {
    min-height: 36px;
}

.inline-status,
.status-filter,
.order-admin-form {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
}

.user-search {
    margin: 0 0 18px;
}

.user-search label {
    min-width: min(420px, 100%);
}

.form-hint {
    margin: -4px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.inline-status select {
    min-width: 150px;
    padding: 8px 10px;
}

.current-image {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f5f9fd;
}

.current-image img {
    width: 92px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}

.message-list {
    display: grid;
    gap: 12px;
}

.message-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    align-items: center;
    padding: 18px;
}

.message-card > div,
.message-card > p,
.message-card > small {
    grid-column: 1;
}

.message-card > div {
    align-items: center;
}

.message-card > p {
    margin: 0;
    font-size: 1.02rem;
}

.message-card > small {
    line-height: 1.6;
}

.message-card > .btn {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    white-space: nowrap;
}

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

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

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

.review-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 20px;
    box-shadow: 0 14px 36px rgba(10, 13, 18, .06);
}

.review-card strong {
    color: var(--amber);
    font-size: 1.15rem;
}

.review-card p {
    margin: 0;
    color: #344054;
}

.review-card span {
    margin-top: auto;
    color: var(--muted);
    font-weight: 800;
    font-size: .9rem;
}

.review-form {
    position: sticky;
    top: 118px;
}

.message-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.message-card span,
.message-card small {
    color: var(--muted);
}

.message-card .badge-orange { color: #9a6200; }
.message-card .badge-green { color: var(--green); }
.message-card .badge-red { color: var(--red); }

.chat-panel {
    display: grid;
    gap: 18px;
}

.chat-thread {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #f7fbff, #eef5fc),
        repeating-linear-gradient(135deg, rgba(18, 70, 160, .05) 0 1px, transparent 1px 18px);
    border: 1px solid var(--line);
}

.chat-bubble {
    max-width: min(720px, 92%);
    padding: 14px 16px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 28px rgba(10, 13, 18, .06);
}

.chat-bubble.admin {
    justify-self: end;
    background: linear-gradient(135deg, #0b1726, #12345f);
    border-color: rgba(37, 174, 228, .34);
    color: #fff;
}

.chat-bubble.customer {
    justify-self: start;
    border-left: 4px solid var(--cyan);
}

.chat-bubble strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.chat-bubble strong::after {
    content: "Klient";
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef4fb;
    color: #344054;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.chat-bubble.admin strong::after {
    content: "Obsługa";
    background: rgba(37, 174, 228, .18);
    color: #8addff;
}

.chat-bubble p {
    margin: 0;
    color: #344054;
}

.chat-bubble.admin p {
    color: #eaf4ff;
}

.chat-bubble span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.chat-bubble.admin span {
    color: #b9d8f8;
}

.chat-reply-form {
    display: grid;
    gap: 12px;
}

.product-admin-form .form-section {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.form-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-section-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.dynamic-rows {
    display: grid;
    gap: 10px;
}

.dynamic-row {
    display: grid;
    gap: 10px;
}

.parameter-row {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) auto;
}

.variant-row {
    grid-template-columns: minmax(150px, 1fr) minmax(120px, .7fr) 110px 90px minmax(170px, .8fr) 72px;
    align-items: end;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.variant-file {
    gap: 5px;
}

.variant-preview {
    width: 64px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.dynamic-row-remove {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ffd3d3;
    border-radius: 8px;
    background: #fff3f3;
    color: var(--red);
    font-weight: 900;
    cursor: pointer;
}

.chat-attachment {
    display: inline-grid;
    gap: 6px;
    max-width: 260px;
    color: inherit;
    text-decoration: none;
}

.chat-attachment img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(16, 24, 40, .14);
}

.chat-bubble.admin .chat-attachment img {
    border-color: rgba(255, 255, 255, .18);
}

.chat-attachment span {
    margin: 0;
    font-size: .8rem;
    font-weight: 900;
    color: var(--blue);
}

.chat-bubble.admin .chat-attachment span {
    color: #8addff;
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.detail-thumbs img {
    width: 100%;
    aspect-ratio: 1 / .78;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -4px 0 14px;
    color: var(--muted);
    font-weight: 800;
}

.rating-summary strong {
    color: var(--amber);
    letter-spacing: 1px;
}

.product-extra {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.product-extra section {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f7fbff;
}

.product-extra h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.product-extra ul {
    margin: 0;
    padding-left: 20px;
}

.product-extra dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.product-extra dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.product-extra dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-extra dt {
    color: var(--muted);
    font-weight: 800;
}

.product-extra dd {
    margin: 0;
    font-weight: 900;
    text-align: right;
}

.variant-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-chips span {
    padding: 8px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
    color: #344054;
}

.contact-layout {
    grid-template-columns: .8fr 1.2fr;
}

.opening-hours {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 8px;
    background: #f5f9fd;
    border: 1px solid var(--line);
}

.opening-hours strong {
    font-size: 1.05rem;
}

.opening-hours span {
    color: #344054;
    font-weight: 800;
}

.map-box {
    min-height: 260px;
    margin-top: 24px;
    border-radius: 8px;
    color: #fff;
    background: #0b1018;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.google-map iframe {
    width: 100%;
    height: 290px;
    border: 0;
    display: block;
    filter: saturate(.95) contrast(1.05);
}

.google-map a {
    position: absolute;
    inset: auto 16px 16px 16px;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 8px;
    background: rgba(5, 7, 10, .86);
    color: #fff;
    backdrop-filter: blur(10px);
}

.map-box span {
    display: block;
    font-size: 1rem;
    font-weight: 900;
}

.map-box small {
    display: block;
    color: #d7e2f0;
}

.news-list {
    display: grid;
    gap: 16px;
}

.article-row {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 24px;
}

.article-row p {
    color: var(--muted);
}

.article-page {
    padding: 70px 0;
    background: #fff;
}

.article-page h1 {
    margin: 12px 0;
    font-size: 3rem;
    line-height: 1.05;
}

.article-lead {
    color: var(--muted);
    font-size: 1.15rem;
}

.article-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin: 28px 0;
}

.article-content {
    color: #344054;
    font-size: 1.05rem;
}

.empty-state {
    padding: 30px;
    text-align: center;
}

.empty-state.wide {
    grid-column: 1 / -1;
}

.empty-state.dark {
    background: #101722;
    border-color: rgba(215, 226, 240, .16);
    color: #fff;
}

.empty-state h1,
.empty-state h2,
.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 18px;
    color: var(--muted);
}

.empty-state.dark p {
    color: #c5d2e2;
}

.site-footer {
    background: #05070a;
    color: #d7e2f0;
    padding: 58px 0 24px;
}

.site-header,
.hero,
.moto-banner,
.category-card,
.product-card,
.service-band,
.news-card,
.panel-sidebar,
.btn,
.cart-link,
.site-footer {
    user-select: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.footer-logo {
    width: 170px;
    margin-bottom: 16px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d7e2f0;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(215, 226, 240, .16);
    color: #fff;
    transition: transform .18s ease, background .18s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    background: var(--blue);
}

.social-links svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(215, 226, 240, .16);
    color: #98a8ba;
}

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

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

    .hero h1 {
        font-size: 3.4rem;
    }

    .hero-grid,
    .moto-banner-inner,
    .service-band,
    .product-detail-grid,
    .cart-layout,
    .checkout-layout,
    .contact-layout,
    .reviews-layout {
        grid-template-columns: 1fr;
    }

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

    .option-grid,
    .invoice-options {
        grid-template-columns: 1fr;
    }

    .summary-box,
    .filters,
    .panel-sidebar,
    .review-form {
        position: static;
    }
}

@media (max-width: 860px) {
    .topbar {
        display: none;
    }

    .nav-wrap {
        min-height: 72px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        order: 3;
        width: 100%;
        display: none;
        align-items: stretch;
        flex-direction: column;
        margin-left: 0;
        padding-bottom: 12px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .dropdown-panel {
        position: static;
        display: block;
        box-shadow: none;
        border: 0;
        padding-left: 18px;
        background: #f5f9fd;
    }

    .nav-actions {
        margin-left: 0;
    }

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

    .message-card {
        grid-template-columns: 1fr;
    }

    .message-card > .btn {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }

    .variant-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .cart-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .cart-row label,
    .cart-row strong,
    .cart-row button {
        grid-column: 2;
    }

    .cart-row img {
        width: 78px;
        height: 70px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        padding: 48px 0;
        gap: 28px;
    }

    .hero h1,
    .page-hero h1,
    .article-page h1 {
        font-size: 2.35rem;
    }

    .hero-search,
    .category-grid,
    .product-grid,
    .news-grid,
    .reviews-grid,
    .product-reviews-grid,
    .metric-grid,
    .form-grid,
    .detail-facts,
    .order-head,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .parameter-row,
    .variant-row {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 280px;
    }

    .moto-banner {
        margin-top: 0;
    }

    .section {
        padding: 52px 0;
    }

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

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

    .auth-card,
    .form-panel,
    .panel-card,
    .summary-box,
    .contact-card {
        padding: 18px;
    }
}

.thread-card {
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.message-card.thread-card {
    gap: 0;
}

.message-card .thread-main {
    display: grid;
    gap: 12px;
    padding: 18px;
    min-width: 0;
}

.message-card .thread-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.thread-topline strong {
    font-size: 1.05rem;
}

.thread-card p {
    margin: 0;
    color: #172033;
}

.thread-card small {
    color: var(--muted);
    font-weight: 700;
}

.message-card .thread-actions {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 18px;
    border-left: 1px solid var(--line);
    background: #f8fbff;
}

.message-card .thread-actions .btn {
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
    white-space: nowrap;
}

.message-card .thread-actions form {
    margin: 0;
}

.message-card .thread-actions form .btn {
    border: 0;
}

.chat-panel-modern {
    padding: 0;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #ffffff, #f5faff);
}

.chat-header h2 {
    margin: 4px 0;
}

.chat-header p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.chat-kicker {
    color: var(--cyan);
    font-weight: 900;
    font-size: .78rem;
    text-transform: uppercase;
}

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

.chat-header-actions form {
    margin: 0;
}

.chat-panel-modern .chat-thread {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 24px;
    min-height: 280px;
    background:
        linear-gradient(180deg, rgba(245, 250, 255, .96), rgba(235, 244, 252, .96)),
        repeating-linear-gradient(135deg, rgba(18, 70, 160, .055) 0 1px, transparent 1px 18px);
}

.chat-panel-modern .chat-bubble {
    position: relative;
    display: grid;
    gap: 8px;
    max-width: min(680px, 84%);
    padding: 14px 16px;
    border-radius: 8px;
}

.chat-panel-modern .chat-bubble.customer {
    justify-self: start;
    background: #fff;
    border: 1px solid #cdd9e8;
    border-left: 5px solid var(--cyan);
}

.chat-panel-modern .chat-bubble.admin {
    justify-self: end;
    background: #07111f;
    border: 1px solid rgba(37, 174, 228, .25);
    color: #fff;
}

.chat-author-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.chat-author-line strong {
    margin: 0;
}

.chat-author-line strong::after {
    display: none;
}

.chat-panel-modern .chat-bubble strong::after {
    content: none;
    display: none;
}

.chat-author-line em {
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4fb;
    color: #344054;
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.chat-bubble.admin .chat-author-line em {
    background: rgba(37, 174, 228, .18);
    color: #8addff;
}

.chat-panel-modern .chat-bubble p {
    margin: 0;
}

.chat-panel-modern .chat-bubble.customer p {
    color: #1d2939;
}

.chat-panel-modern .chat-bubble.admin p {
    color: #eaf4ff;
}

.chat-panel-modern .chat-bubble span {
    margin-top: 0;
    color: var(--muted);
}

.chat-panel-modern .chat-bubble.admin span {
    color: #a9c7e8;
}

.chat-panel-modern .chat-reply-form,
.chat-panel-modern .chat-actions {
    padding: 18px 22px 22px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.chat-panel-modern .chat-reply-form textarea {
    min-height: 122px;
}

.chat-panel-modern .chat-attachment {
    display: inline-grid;
    gap: 6px;
}

.chat-panel-modern .chat-attachment span {
    margin: 0;
    font-size: .8rem;
    font-weight: 900;
    color: var(--blue);
}

.chat-panel-modern .chat-bubble.admin .chat-attachment span {
    color: #8addff;
}

@media (max-width: 860px) {
    .thread-card {
        grid-template-columns: 1fr;
    }

    .message-card .thread-actions {
        border-left: 0;
        border-top: 1px solid var(--line);
        grid-template-columns: 1fr 1fr;
    }

    .chat-header {
        flex-direction: column;
    }

    .chat-header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .message-card .thread-actions {
        grid-template-columns: 1fr;
    }

    .chat-panel-modern .chat-bubble {
        max-width: 100%;
    }
}
