:root {
    --color-ink: #172026;
    --color-muted: #61707a;
    --color-line: #d8e0e5;
    --color-surface: #ffffff;
    --color-page: #f7f7f5;
    --color-primary: #d66a1f;
    --color-primary-dark: #9b4312;
    --color-primary-soft: #fff1e5;
    --color-primary-muted: #f8dfcc;
    --color-danger: #a33a2b;
    --color-danger-soft: #fff0ed;
    --color-success: #17663f;
    --color-success-soft: #e6f5ee;
    --color-info: #245b9e;
    --color-info-soft: #eaf2ff;
    --color-warning: #8a5600;
    --color-warning-soft: #fff4d6;
    --color-disabled: #9aa7aa;
    --color-image-surface: #f6e9dc;
    --color-admin-nav: #f3e3d6;
    --color-header: rgba(255, 255, 255, .92);
    --color-overlay: rgba(255, 255, 255, .9);
    --shadow-soft: 0 16px 38px rgba(23, 32, 38, .08);
    --shadow-panel: 0 18px 40px rgba(23, 32, 38, .08);
    --shadow-hover: 0 12px 28px rgba(23, 32, 38, .1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 44px;
    --focus-ring: 0 0 0 4px rgba(214, 106, 31, .18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-page);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.main-nav a,
.admin-nav a,
.header-cta,
.primary-cta,
.search-panel button,
.load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: var(--color-header);
    border-bottom: 1px solid var(--color-line);
}

.admin-body { background: var(--color-page); }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(18px, 4vw, 56px); background: var(--color-ink); color: var(--color-surface); }
.admin-header .brand { color: var(--color-surface); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 16px; color: var(--color-admin-nav); font-size: 14px; }
.admin-shell { padding-top: 44px; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-title-row h1 { margin-bottom: 0; }
.text-link { color: var(--color-primary-dark); font-weight: 700; }
.admin-login { display: grid; min-height: 70vh; place-items: center; }
.admin-login-box { width: min(100%, 460px); padding: 28px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 8px; box-shadow: var(--shadow-soft); }
.admin-login-box h1 { margin: 8px 0 24px; }
.admin-form { display: grid; gap: 16px; }
.admin-form textarea { width: 100%; border: 1px solid var(--color-line); border-radius: 8px; padding: 12px; font: inherit; resize: vertical; }
.admin-form small { color: var(--color-muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-error, .form-success { padding: 12px 14px; border-radius: 8px; margin: 0 0 18px; }
.form-error { background: var(--color-danger-soft); color: var(--color-danger); }
.form-success { background: var(--color-success-soft); color: var(--color-success); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.admin-stats div { padding: 18px; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); }
.admin-stats span, .admin-stats strong { display: block; }
.admin-stats span { color: var(--color-muted); font-size: 13px; }
.admin-stats strong { margin-top: 8px; font-size: 30px; }
.admin-product-filters { margin-bottom: 12px; }
.admin-product-filters .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-filter-actions,
.filter-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-filter-actions button { justify-self: start; }
.filter-actions { width: 100%; }
.filter-actions button { flex: 1; }
.filter-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.filter-panel-header > label { flex: 1; min-width: 0; }
.filter-panel-header .filter-reset { flex: 0 0 auto; margin-top: 0; }
.search-panel.compact .filter-actions { grid-column: 1 / -1; }
.filter-reset { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: 8px; color: var(--color-muted); background: var(--color-surface); transition: color .18s ease, border-color .18s ease, background .18s ease; }
.filter-reset:hover { border-color: var(--color-primary); color: var(--color-primary-dark); background: var(--color-primary-soft); }
.admin-result-count { margin: 0 0 12px; color: var(--color-muted); font-size: 13px; }
.admin-result-count strong { color: var(--color-ink); }
.admin-empty-state { color: var(--color-muted); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 650px; text-align: left; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-line); }
.admin-table th { color: var(--color-muted); font-size: 12px; text-transform: uppercase; }
.admin-table td a { color: var(--color-primary-dark); font-weight: 700; }
.table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.table-actions form { margin: 0; }
.table-action-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 11px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.table-action-button:hover { transform: translateY(-1px); }
.table-action-button:focus-visible { outline: 3px solid rgba(214, 106, 31, .3); outline-offset: 2px; }
.table-action-edit { border-color: #bfd4f1; background: var(--color-info-soft); color: var(--color-info) !important; }
.table-action-edit:hover { border-color: var(--color-info); background: #dceaff; }
.table-action-deactivate { border-color: #efd28f; background: var(--color-warning-soft); color: var(--color-warning); }
.table-action-deactivate:hover { border-color: var(--color-warning); background: #ffebad; }
.table-action-activate { border-color: #b8e2cc; background: var(--color-success-soft); color: var(--color-success); }
.table-action-activate:hover { border-color: var(--color-success); background: #d5f0e2; }
.table-actions .table-delete-form { margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--color-line); }
.table-action-delete { border-color: #efb7b7; background: var(--color-danger-soft); color: var(--color-danger); }
.table-action-delete:hover { border-color: var(--color-danger); background: #fbd7d7; }
.admin-image-manager { display: grid; gap: 10px; }
.admin-image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-image-item { overflow: hidden; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); }
.admin-image-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-image-item form { padding: 8px; }
.admin-image-item button { width: 100%; border: 0; border-radius: 6px; padding: 8px; background: var(--color-danger-soft); color: var(--color-danger); cursor: pointer; font-weight: 700; }
.admin-image-item.is-cover { border-color: var(--color-primary); }
.cover-label { display: block; padding: 7px 8px 0; color: var(--color-primary-dark); font-size: 12px; font-weight: 800; }
.image-actions { display: flex; gap: 6px; }
.image-actions form { flex: 1; padding: 8px 4px 0; }
.image-actions button { padding: 7px 4px; font-size: 11px; }
.upload-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.upload-preview:empty { display: none; }
.upload-preview div { overflow: hidden; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); }
.upload-preview img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.upload-preview small { display: block; overflow: hidden; padding: 7px; color: var(--color-muted); text-overflow: ellipsis; white-space: nowrap; }
.upload-preview div.is-cover { border-color: var(--color-primary); }
.upload-preview-actions { display: flex; gap: 5px; padding: 0 7px 7px; }
.upload-preview-actions button { flex: 1; min-height: 30px; border: 0; border-radius: 5px; background: var(--color-primary-muted); color: var(--color-primary-dark); cursor: pointer; font-size: 11px; font-weight: 700; }
.upload-preview-actions button:last-child { background: var(--color-danger-soft); color: var(--color-danger); }
.upload-preview-actions button:disabled { background: var(--color-primary); color: var(--color-surface); cursor: default; }
.image-order-help { margin: 0; color: var(--color-muted); font-size: 13px; }
.image-order-status { margin: 0; font-size: 13px; color: var(--color-primary-dark); }
.image-order-status:empty { display: none; }
.product-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.product-image-grid:empty { display: none; }
.product-image-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--color-line); border-radius: 12px; background: var(--color-surface); }
.product-image-card.is-cover { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.product-image-card.is-dragging { opacity: .3; outline: 2px dashed var(--color-primary); outline-offset: 2px; }
.product-image-card__drag { position: relative; cursor: grab; touch-action: none; user-select: none; }
.product-image-card__drag:active { cursor: grabbing; }
.product-image-card__drag:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.product-image-card__preview { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; }
.product-image-card__position { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 6px; background: var(--color-surface); color: var(--color-muted); font-size: 11px; line-height: 1.5; font-weight: 800; pointer-events: none; }
.product-image-card.is-cover .product-image-card__position { background: var(--color-primary-muted); color: var(--color-primary-dark); }
.product-image-card__grip { position: absolute; right: 8px; bottom: 8px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 6px; background: var(--color-surface); color: var(--color-muted); pointer-events: none; }
.product-image-card__name { display: block; overflow: hidden; padding: 9px 10px; color: var(--color-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-image-card__remove { position: absolute; top: 5px; right: 5px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--color-line); border-radius: 50%; padding: 0; background: var(--color-surface); color: var(--color-muted); cursor: pointer; touch-action: manipulation; }
.product-image-card__remove:hover { background: var(--color-danger-soft); color: var(--color-danger); }
.product-image-card__remove:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.product-image-card--ghost { position: fixed; z-index: 10000; pointer-events: none; opacity: .95; transform: translate(-50%, -50%) rotate(3deg); box-shadow: 0 16px 40px rgba(23, 32, 38, .22); }
@media (max-width: 820px) {
    .product-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dictionary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dictionary-panel { padding: 18px; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); }
.dictionary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dictionary-heading h2 { margin: 0; font-size: 20px; }
.dictionary-heading span { color: var(--color-muted); font-size: 12px; }
.dictionary-row form:first-child { display: flex; gap: 8px; }
.dictionary-add-row { margin-top: 10px; padding: 12px 0 0; border-top: 2px dashed var(--color-primary-muted); }
.dictionary-add-row input,
.dictionary-add-row select,
.dictionary-add-row button { min-height: 42px; }
.dictionary-add-row input,
.dictionary-add-row select { background: var(--color-primary-soft); border-color: var(--color-primary-muted); }
.dictionary-add-row button { min-width: 72px; }
.dictionary-add-row button:disabled { background: var(--color-disabled); color: var(--color-surface); cursor: not-allowed; opacity: .72; box-shadow: none; }
.dictionary-add-row button:not(:disabled):hover { background: var(--color-primary-dark); }
.dictionary-row input, .dictionary-row select { min-width: 0; min-height: 38px; padding: 0 9px; border-radius: 6px; }
.dictionary-row input:not([type="hidden"]) { min-width: 150px; flex: 1 1 220px; }
.dictionary-row select { flex: 0 1 180px; }
.dictionary-row input { flex: 1; }
.dictionary-row button { border: 0; border-radius: 6px; padding: 0 10px; background: var(--color-primary); color: var(--color-surface); font-weight: 700; cursor: pointer; }
.dictionary-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--color-line); }
.dictionary-row form:first-child { flex: 1; }
.dictionary-row .inactive { background: var(--color-disabled); }
.muted-text { color: var(--color-muted); font-size: 14px; }
.models-panel { grid-column: 1 / -1; }
.model-accordion { display: grid; gap: 8px; }
.model-group { border-top: 1px solid var(--color-line); }
.model-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; cursor: pointer; font-weight: 800; list-style-position: inside; }
.model-group summary::marker { color: var(--color-primary); }
.model-group summary small { color: var(--color-muted); font-size: 12px; font-weight: 500; }
.model-group-list { padding: 0 0 8px 22px; }
.model-group-list .dictionary-row { border-top: 1px solid var(--color-line); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 18px;
    color: var(--color-muted);
    font-size: 14px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    color: var(--color-ink);
    background: var(--color-surface);
    cursor: pointer;
}

.menu-toggle:hover {
    border-color: var(--color-primary-muted);
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
}

.menu-toggle__icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-cta,
.primary-cta,
.search-panel button,
.load-more {
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-surface);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    font-weight: 700;
}

.hero {
    padding: clamp(36px, 7vw, 88px) clamp(18px, 4vw, 56px);
    background:
        linear-gradient(120deg, var(--color-primary-soft), var(--color-surface)),
        var(--color-surface);
}

.hero-content,
.page-shell,
.product-section {
    max-width: 1180px;
    margin: 0 auto;
}

@media (min-width: 821px) {
    .home-product-section,
    .search-page {
        max-width: 1420px;
    }

    .home-product-section .product-grid,
    .search-page .search-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-product-section .product-card h3,
    .search-page .product-card h3 {
        font-size: 17px;
    }

    .home-product-section .tag,
    .search-page .tag {
        padding: 4px 8px;
        font-size: 10px;
    }
}

.hero h1,
.page-shell h1 {
    max-width: 760px;
    margin: 8px 0 24px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1;
}

.eyebrow {
    margin: 0;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.search-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
}

.search-panel.compact {
    grid-template-columns: 1fr auto;
    align-items: end;
}

label {
    display: grid;
    gap: 7px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--color-ink);
    background: var(--color-surface);
    font: inherit;
}

input:disabled,
select:disabled {
    cursor: not-allowed;
    color: var(--color-disabled);
    background: #f1f3f2;
    border-color: var(--color-line);
    opacity: .8;
}

.filter-help {
    min-height: 18px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
}

.search-panel .filter-grid {
    align-items: start;
}

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

.product-section,
.page-shell {
    padding: 42px clamp(18px, 4vw, 56px);
}

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: 28px;
}

.empty-state {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    padding: 18px;
}

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

.load-more {
    margin-top: 18px;
}

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

.product-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.product-card > div:last-child {
    padding: 0 16px 17px;
}

.product-card h3 {
    margin: 10px 0 7px;
    font-size: 17px;
    line-height: 1.25;
}

.product-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-image-surface);
}

.product-image img,
.gallery-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tag {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--color-image-surface);
    color: var(--color-primary-dark);
    font-size: 11px;
    font-weight: 800;
}

.search-results {
    margin-top: 24px;
}

.search-filters {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-description {
    color: var(--color-muted);
    line-height: 1.65;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
}

.gallery-placeholder {
    min-height: 460px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--color-image-surface);
    color: var(--color-primary-dark);
    font-weight: 800;
    position: relative;
}

.gallery-placeholder img { position: absolute; inset: 0; }
.gallery-placeholder img[data-gallery-main] { cursor: pointer; transition: opacity .18s ease; }
.gallery-placeholder img[data-gallery-main]:hover { opacity: .9; }
.gallery-main-button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-main-button:focus-visible { outline: 4px solid rgba(214, 106, 31, .65); outline-offset: -4px; }
.gallery-arrow { position: relative; z-index: 1; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--color-overlay); color: var(--color-primary-dark); font-size: 30px; cursor: pointer; }
.gallery-prev { position: absolute; left: 14px; }
.gallery-next { position: absolute; right: 14px; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; }
.gallery-thumb { flex: 0 0 86px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--color-image-surface); cursor: pointer; }
.gallery-thumb.is-selected { border-color: var(--color-primary); }
.gallery-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

body.has-open-gallery { overflow: hidden; }
.gallery-lightbox { width: min(94vw, 1180px); height: min(92dvh, 860px); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-lg); background: #101214; color: #fff; box-shadow: 0 28px 90px rgba(0, 0, 0, .42); }
.gallery-lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.gallery-lightbox::backdrop { background: rgba(10, 12, 14, .82); backdrop-filter: blur(6px); }
.gallery-lightbox-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; place-items: center; overflow: hidden; }
.gallery-lightbox-image-button { display: grid; width: 100%; height: 100%; min-width: 0; min-height: 0; place-items: center; overflow: hidden; padding: 0; border: 0; background: transparent; cursor: e-resize; touch-action: pan-y pinch-zoom; }
.gallery-lightbox-image-button:disabled { cursor: default; }
.gallery-lightbox-image-button:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -5px; }
.gallery-lightbox-image-button img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; }
.gallery-lightbox-close,
.gallery-lightbox-arrow { position: absolute; z-index: 2; display: grid; width: 48px; height: 48px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(16, 18, 20, .78); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.gallery-lightbox-arrow[hidden] { display: none; }
.gallery-lightbox-close { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
.gallery-lightbox-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.gallery-lightbox-arrow { top: 50%; transform: translateY(-50%); font-size: 34px; line-height: 1; }
.gallery-lightbox-prev { left: 16px; }
.gallery-lightbox-next { right: 16px; }
.gallery-lightbox-close:hover,
.gallery-lightbox-arrow:hover { background: rgba(214, 106, 31, .9); }
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gallery-lightbox-counter { min-height: 44px; margin: 0; padding: 11px 20px max(11px, env(safe-area-inset-bottom)); text-align: center; color: rgba(255, 255, 255, .82); font-size: 14px; font-variant-numeric: tabular-nums; }

.product-info {
    border-radius: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    padding: 24px;
}

.product-info h1 {
    font-size: 34px;
    line-height: 1.12;
}

dl {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-line);
}

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

dd {
    margin: 0;
    font-weight: 700;
}

.prose {
    max-width: 780px;
}

.prose p {
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.7;
}

.page-intro { max-width: 820px; margin-bottom: 42px; }
.page-intro h1 { max-width: 760px; margin: 10px 0 20px; }
.lead { max-width: 720px; margin: 0; color: var(--color-muted); font-size: 20px; line-height: 1.65; }
.about-story { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 28px; align-items: stretch; margin-bottom: 42px; }
.about-story__main, .about-highlight, .info-card, .contact-card, .contact-action { border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--color-surface); }
.about-story__main { padding: clamp(22px, 4vw, 36px); }
.about-story__main p, .info-card p, .contact-card p, .contact-action p { color: var(--color-muted); line-height: 1.7; }
.about-story__main p:first-child { margin-top: 0; color: var(--color-ink); font-size: 20px; font-weight: 700; }
.about-story__main p:last-child { margin-bottom: 0; }
.about-highlight { display: flex; flex-direction: column; justify-content: end; padding: 28px; background: var(--color-ink); color: var(--color-surface); }
.about-highlight__number { color: var(--color-primary-muted); font-size: 62px; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.about-highlight strong { margin: 18px 0 8px; font-size: 18px; }
.about-highlight > span:last-child { color: #c8d0d3; line-height: 1.55; }
.about-values, .contact-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card, .contact-card { padding: 24px; }
.info-card__icon { color: var(--color-primary); font-size: 13px; font-weight: 800; }
.info-card h2 { margin: 18px 0 8px; font-size: 21px; }
.info-card p { margin-bottom: 0; }
.about-footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 42px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--color-primary-soft); }
.about-footer-cta h2 { margin: 7px 0 0; font-size: 25px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 28px; align-items: start; }
.contact-details { grid-template-columns: 1fr; gap: 14px; }
.contact-card__label { color: var(--color-primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-card h2 { margin: 9px 0 8px; font-size: 21px; overflow-wrap: anywhere; }
.contact-card address { color: var(--color-muted); font-style: normal; line-height: 1.7; }
.contact-card p { margin: 0 0 10px; }
.contact-card .text-link { display: inline-block; margin-top: 12px; }
.contact-action { padding: clamp(24px, 4vw, 36px); background: var(--color-ink); color: var(--color-surface); box-shadow: var(--shadow-panel); }
.contact-action__icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 30px; border-radius: 50%; background: var(--color-primary); color: var(--color-surface); font-size: 27px; }
.contact-action h2 { margin: 8px 0 10px; font-size: 30px; }
.contact-action p { color: #c8d0d3; }
.contact-action .primary-cta { margin: 12px 0 22px; }
.contact-action small { display: block; color: #aeb9bd; line-height: 1.55; }

.site-footer {
    border-top: 1px solid var(--color-line);
    border-bottom: 0;
    color: var(--color-muted);
}

.floating-contact {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 40;
    display: grid;
    gap: 10px;
}

.floating-contact__button {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 2px solid var(--color-surface);
    border-radius: 50%;
    color: var(--color-surface);
    box-shadow: 0 8px 22px rgba(23, 32, 38, .2);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.floating-contact__button:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(.96);
    box-shadow: 0 12px 26px rgba(23, 32, 38, .25);
}

.floating-contact__button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 7px rgba(214, 106, 31, .55), 0 12px 26px rgba(23, 32, 38, .25);
}

.floating-contact__button--whatsapp { background: #25d366; }
.floating-contact__button--phone { background: var(--color-primary); }

.floating-contact__button--whatsapp .floating-contact__icon {
    fill: currentColor;
    stroke: none;
}

.floating-contact__icon {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (max-width: 820px) {
    .site-header {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main-nav {
        display: none;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding-top: 12px;
        border-top: 1px solid var(--color-line);
        overflow: visible;
    }

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

    .main-nav a {
        width: 100%;
        padding: 10px 4px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .filter-grid,
    .product-grid,
    .product-detail,
    .search-panel.compact,
    .about-story,
    .contact-layout,
    .about-values {
        grid-template-columns: 1fr;
    }

    .about-footer-cta { align-items: flex-start; flex-direction: column; }

    .admin-header, .admin-title-row { align-items: flex-start; flex-direction: column; }
    .admin-nav { gap: 12px; }
    .form-grid, .admin-stats { grid-template-columns: 1fr; }
    .admin-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .upload-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dictionary-grid { grid-template-columns: 1fr; }
    .dictionary-row { align-items: stretch; flex-direction: column; }
    .dictionary-row form:first-child { flex-direction: column; }

    .hero h1,
    .page-shell h1 {
        font-size: 42px;
    }

    .gallery-placeholder {
        min-height: 300px;
    }
}

/* Shared polish: consistent spacing, focus states and restrained motion. */
body {
    line-height: 1.5;
}

button,
a,
input,
select,
textarea {
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 0;
    box-shadow: var(--focus-ring);
}

.site-header {
    min-height: 74px;
    padding-block: 14px;
    background: var(--color-header);
}

.site-header .brand,
.admin-header .brand {
    letter-spacing: -.01em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 0;
    box-shadow: none;
}

.main-nav a,
.admin-nav a {
    position: relative;
    padding: 8px 0;
}

.main-nav a:hover,
.admin-nav a:hover {
    color: var(--color-primary);
}

.header-cta,
.primary-cta,
.search-panel button,
.load-more,
.dictionary-row button {
    min-height: 44px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 18px rgba(214, 106, 31, .16);
}

.header-cta:hover,
.primary-cta:hover,
.search-panel button:hover,
.load-more:hover,
.dictionary-row button:not(:disabled):hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.dictionary-row .dictionary-action,
.dictionary-row .dictionary-status-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.dictionary-row .dictionary-action-update {
    border: 1px solid #bfd4f1;
    background: var(--color-info-soft);
    color: var(--color-info);
    box-shadow: none;
}

.dictionary-row .dictionary-action-update:not(:disabled):hover {
    border-color: var(--color-info);
    background: #dceaff;
    color: #17497f;
}

.dictionary-row .dictionary-action-add {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: var(--color-surface);
}

.dictionary-row .dictionary-status-button.is-active {
    border: 1px solid #b8e2cc;
    background: var(--color-success-soft);
    color: var(--color-success);
    box-shadow: none;
}

.dictionary-row .dictionary-status-button.is-active:hover {
    border-color: var(--color-success);
    background: #d5f0e2;
}

.dictionary-row .dictionary-status-button.is-inactive {
    border: 1px solid #efd28f;
    background: var(--color-warning-soft);
    color: var(--color-warning);
    box-shadow: none;
}

.dictionary-row .dictionary-status-button.is-inactive:hover {
    border-color: var(--color-warning);
    background: #ffebad;
}

.hero {
    padding-block: clamp(54px, 8vw, 104px);
    border-bottom: 1px solid var(--color-primary-muted);
}

.hero-content {
    display: grid;
    gap: var(--space-6);
}

.hero h1,
.page-shell h1 {
    letter-spacing: -.04em;
}

.hero h1 {
    max-width: 650px;
    margin: 0;
}

.hero .eyebrow {
    margin-bottom: -18px;
}

.search-panel {
    gap: var(--space-5);
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius-lg);
}

.search-panel label {
    gap: var(--space-1);
}

input,
select,
textarea {
    border-radius: var(--radius-md);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--color-primary-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: var(--focus-ring);
}

.product-section,
.page-shell {
    padding-block: clamp(34px, 5vw, 58px);
}

.section-heading {
    margin-bottom: var(--space-5);
}

.section-heading h2 {
    letter-spacing: -.025em;
}

.empty-state {
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: 0 8px 24px rgba(23, 32, 38, .04);
}

.product-grid {
    gap: var(--space-5);
}

.product-card {
    gap: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(23, 32, 38, .04);
}

.product-card:hover {
    border-color: var(--color-primary-muted);
    box-shadow: 0 16px 32px rgba(23, 32, 38, .11);
}

.product-card > div:last-child {
    padding: var(--space-4) var(--space-5) var(--space-5);
}

.product-card h3 {
    margin-top: var(--space-2);
    letter-spacing: -.015em;
}

.product-image {
    border-bottom: 1px solid var(--color-line);
}

.tag {
    border-radius: 999px;
    padding: 5px 10px;
}

.breadcrumb {
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
}

.product-detail {
    gap: clamp(24px, 4vw, 48px);
}

.gallery-placeholder,
.product-info {
    border-radius: var(--radius-lg);
}

.product-info {
    padding: clamp(22px, 4vw, 34px);
    box-shadow: 0 10px 28px rgba(23, 32, 38, .05);
}

.product-info h1 {
    margin-top: 8px;
    letter-spacing: -.03em;
}

/* Admin workspace */
.admin-header {
    min-height: 74px;
    border-bottom: 0;
    box-shadow: 0 8px 24px rgba(23, 32, 38, .12);
}

.admin-nav {
    align-items: center;
    gap: 8px;
}

.admin-nav a {
    border-radius: var(--radius-md);
    padding: 8px 11px;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--color-surface);
}

.admin-shell {
    padding-top: clamp(32px, 5vw, 58px);
}

.admin-title-row {
    margin-bottom: var(--space-6);
}

.admin-title-row h1 {
    margin-top: 8px;
    letter-spacing: -.035em;
}

.admin-stats {
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.admin-stats div {
    position: relative;
    min-height: 124px;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(23, 32, 38, .04);
}

.admin-stats div::after {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--color-primary);
    font-size: 24px;
    opacity: .75;
}

.admin-stats div:nth-child(1)::after { content: "▦"; }
.admin-stats div:nth-child(2)::after { content: "◈"; }
.admin-stats div:nth-child(3)::after { content: "⌁"; }

.admin-table-wrap {
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(23, 32, 38, .04);
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: var(--color-primary-soft);
}

.admin-product-row {
    cursor: pointer;
}

.admin-product-row:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: -3px;
}

.admin-login-box,
.dictionary-panel,
.admin-image-item,
.upload-preview div {
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(23, 32, 38, .04);
}

.dictionary-grid {
    gap: var(--space-5);
}

.dictionary-panel {
    padding: var(--space-5);
}

.dictionary-heading {
    margin-bottom: var(--space-5);
}

.dictionary-row {
    padding: 12px 0;
}

.admin-image-grid,
.upload-preview {
    gap: var(--space-3);
}

@media (max-width: 820px) {
    .site-header,
    .admin-header {
        padding-block: 14px;
    }

    .hero .eyebrow {
        margin-bottom: -10px;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-nav a {
        padding-inline: 8px;
    }
}

/* Homepage part search guidance */
.part-finder-note {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(18px, 3vw, 28px);
    color: #ffffff;
    background: #9b4312;
    border-left: 6px solid #f6ba78;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.part-finder-note__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.part-finder-note strong {
    display: block;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.25;
}

.part-finder-note p {
    margin: 8px 0 0;
    line-height: 1.6;
}

/* Product detail responsive layout */
.product-page .breadcrumb > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-page .product-detail {
    align-items: start;
    row-gap: clamp(16px, 2.2vw, 24px);
}

.product-page .gallery-placeholder {
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-page .product-info {
    min-width: 0;
}

.product-page .product-oem-code {
    font-size: 16px;
    font-weight: 900;
}

.product-page .product-detail > .product-detail-title {
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    color: var(--public-ink, var(--color-ink));
    font-size: clamp(28px, 3.1vw, 35px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.product-page .gallery-empty-label {
    position: relative;
    z-index: 1;
}

.product-page dl div {
    grid-template-columns: minmax(86px, .42fr) minmax(0, .58fr);
    align-items: start;
}

.product-page dd {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.product-page .primary-cta {
    width: 100%;
    text-align: center;
}

@media (max-width: 960px) and (min-width: 821px) {
    .product-page .product-detail {
        grid-template-columns: minmax(0, 1fr) minmax(290px, .86fr);
        gap: 24px;
    }

    .product-page .product-info {
        padding: 24px;
    }
}

@media (max-width: 820px) {
    .product-page .breadcrumb {
        align-items: flex-start;
        line-height: 1.45;
    }

    .product-page .gallery-placeholder {
        aspect-ratio: 4 / 3;
    }

    .product-page .product-info {
        padding: clamp(20px, 5vw, 28px);
    }

    .product-page .product-detail > .product-detail-title {
        font-size: clamp(26px, 6vw, 32px);
    }

    .product-page dl div {
        grid-template-columns: minmax(76px, .38fr) minmax(0, .62fr);
        gap: 12px;
    }

    .product-page .gallery-arrow {
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox {
        width: 100vw;
        height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .gallery-lightbox-prev { left: max(8px, env(safe-area-inset-left)); }
    .gallery-lightbox-next { right: max(8px, env(safe-area-inset-right)); }
}

@media (max-width: 420px) {
    .product-page .breadcrumb {
        gap: 6px;
        font-size: 12px;
    }

    .product-page .gallery-thumbs {
        gap: 8px;
    }

    .product-page .gallery-thumb {
        flex-basis: 72px;
    }

    .product-page .product-detail > .product-detail-title {
        font-size: clamp(24px, 6.5vw, 28px);
    }

    .product-page dl {
        gap: 10px;
        margin-block: 20px;
    }

    .product-page dl div {
        grid-template-columns: 1fr;
        gap: 3px;
        padding-bottom: 9px;
    }

    .product-page dd {
        text-align: left;
    }
}

/* Public premium refresh */
body:not(.admin-body) {
    --public-ink: #17120d;
    --public-ink-soft: #3b3129;
    --public-muted: #74685c;
    --public-line: #ded1c0;
    --public-line-strong: #c8ad91;
    --public-page: #f4efe7;
    --public-surface: rgba(252, 248, 241, .88);
    --public-surface-solid: #fcf8f1;
    --public-gold: #c7651a;
    --public-gold-dark: #8f3a12;
    --public-gold-soft: #f3d7bc;
    --public-charcoal: #201711;
    --public-charcoal-2: #32241a;
    --public-warm-accent: #d49a45;
    --public-light-text: #fff4e3;
    --public-shadow: 0 22px 60px rgba(40, 28, 18, .13);
    --public-shadow-hover: 0 24px 58px rgba(40, 28, 18, .2);
    --focus-ring: 0 0 0 4px rgba(199, 101, 26, .22);
    color: var(--public-ink);
    background:
        linear-gradient(180deg, #fbf6ed 0%, var(--public-page) 42%, #eee3d5 100%);
    font-family: Nunito, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}

body:not(.admin-body) main {
    overflow: hidden;
}

body:not(.admin-body) h1,
body:not(.admin-body) h2,
body:not(.admin-body) h3,
body:not(.admin-body) .brand strong {
    color: var(--public-ink);
    font-family: Nunito, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

body:not(.admin-body) h1,
body:not(.admin-body) .page-shell h1 {
    font-size: clamp(42px, 6.5vw, 78px);
    line-height: .94;
}

body:not(.admin-body) h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.02;
}

body:not(.admin-body) h3 {
    font-size: 22px;
    line-height: 1.12;
}

body:not(.admin-body) .site-header {
    min-height: 82px;
    padding: 14px clamp(18px, 4vw, 58px);
    border-bottom: 1px solid rgba(200, 173, 145, .55);
    background: rgba(252, 248, 241, .8);
    box-shadow: 0 12px 34px rgba(40, 28, 18, .07);
    backdrop-filter: blur(18px) saturate(1.2);
}

body:not(.admin-body) .brand {
    gap: 12px;
}

body:not(.admin-body) .site-header .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 0;
    box-shadow: none;
}

body:not(.admin-body) .main-nav,
body:not(.admin-body) .header-cta,
body:not(.admin-body) .primary-cta,
body:not(.admin-body) .search-panel button,
body:not(.admin-body) .load-more,
body:not(.admin-body) label,
body:not(.admin-body) .eyebrow,
body:not(.admin-body) .tag,
body:not(.admin-body) .brand-ticker {
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
}

body:not(.admin-body) .brand-copy {
    display: grid;
    gap: 2px;
}

body:not(.admin-body) .brand-copy strong {
    font-size: clamp(20px, 2vw, 25px);
    line-height: .95;
}

body:not(.admin-body) .brand-copy small {
    color: var(--public-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body:not(.admin-body) .main-nav {
    align-items: center;
    gap: 6px;
    color: var(--public-muted);
    font-size: 13px;
    font-weight: 700;
}

body:not(.admin-body) .main-nav a {
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 999px;
}

body:not(.admin-body) .main-nav a:hover,
body:not(.admin-body) .main-nav a.is-active {
    color: var(--public-ink);
    background: rgba(199, 101, 26, .11);
}

body:not(.admin-body) .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.admin-body) .header-instagram {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border: 1px solid rgba(214, 41, 118, .28);
    border-radius: 12px;
    background: #fff;
    color: var(--public-ink);
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(150, 47, 191, .14);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body:not(.admin-body) .header-instagram:hover {
    border-color: #d62976;
    box-shadow: 0 10px 23px rgba(150, 47, 191, .22);
    transform: translateY(-1px);
}

body:not(.admin-body) .header-instagram:focus-visible {
    outline: 3px solid rgba(214, 41, 118, .38);
    outline-offset: 3px;
}

body:not(.admin-body) .header-instagram__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    filter: drop-shadow(0 2px 4px rgba(150, 47, 191, .2));
}

body:not(.admin-body) .header-instagram__handle {
    line-height: 1;
}

body:not(.admin-body) .header-actions .menu-toggle {
    margin-left: 0;
}

body:not(.admin-body) .brand-ticker {
    position: relative;
    z-index: 19;
    overflow: hidden;
    border-bottom: 1px solid rgba(200, 173, 145, .5);
    background:
        linear-gradient(90deg, #fbf1e2 0%, rgba(251, 241, 226, .74) 16%, rgba(251, 241, 226, .74) 84%, #fbf1e2 100%),
        #fbf1e2;
    box-shadow: 0 10px 26px rgba(40, 28, 18, .05);
}

body:not(.admin-body) .brand-ticker::before,
body:not(.admin-body) .brand-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: clamp(46px, 10vw, 140px);
    pointer-events: none;
}

body:not(.admin-body) .brand-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #fbf1e2, transparent);
}

body:not(.admin-body) .brand-ticker::after {
    right: 0;
    background: linear-gradient(270deg, #fbf1e2, transparent);
}

body:not(.admin-body) .brand-ticker__track {
    display: flex;
    width: max-content;
    min-width: 200%;
    gap: 10px;
    padding: 11px 0;
    animation: brand-ticker-scroll 38s linear infinite;
}

body:not(.admin-body) .brand-ticker:hover .brand-ticker__track {
    animation-play-state: paused;
}

body:not(.admin-body) .brand-ticker__item {
    --brand-logo-scale: 1.14;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    min-height: 40px;
    padding: 7px 15px;
    border: 1px solid rgba(200, 173, 145, .72);
    border-radius: 999px;
    background: rgba(252, 248, 241, .84);
    color: var(--public-ink-soft);
    box-shadow: 0 8px 18px rgba(40, 28, 18, .05);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

body:not(.admin-body) .brand-ticker__item--suzuki,
body:not(.admin-body) .brand-ticker__item--proton,
body:not(.admin-body) .brand-ticker__item--mitsubishi,
body:not(.admin-body) .brand-ticker__item--honda {
    --brand-logo-scale: 1;
}

body:not(.admin-body) .brand-ticker__item--rover {
    --brand-logo-scale: .85;
}

body:not(.admin-body) .brand-ticker__item:hover {
    border-color: rgba(199, 101, 26, .45);
    color: var(--public-ink);
    background: var(--public-surface-solid);
    transform: translateY(-1px);
}

body:not(.admin-body) .brand-ticker__icon {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    overflow: visible;
    color: var(--public-charcoal);
    font-size: 11px;
    line-height: 1;
}

body:not(.admin-body) .brand-ticker__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(var(--brand-logo-scale));
}

body:not(.admin-body) .brand-ticker__logo:not([hidden]) + .brand-ticker__initial {
    display: none;
}

body:not(.admin-body) .brand-ticker__initial {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--public-gold-soft), #ead1b5);
    color: var(--public-gold-dark);
    font-size: 11px;
    font-weight: 800;
}

@keyframes brand-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.admin-body) .brand-ticker__track {
        width: auto;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: center;
        padding-inline: 14px;
        animation: none;
    }
}

body:not(.admin-body) .header-cta,
body:not(.admin-body) .primary-cta,
body:not(.admin-body) .search-panel button,
body:not(.admin-body) .load-more {
    border: 1px solid rgba(143, 58, 18, .2);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--public-gold), var(--public-gold-dark));
    color: var(--public-light-text);
    box-shadow: 0 14px 30px rgba(143, 58, 18, .2);
    font-size: 13px;
    font-weight: 800;
}

body:not(.admin-body) .header-cta:hover,
body:not(.admin-body) .primary-cta:hover,
body:not(.admin-body) .search-panel button:hover,
body:not(.admin-body) .load-more:hover {
    background: linear-gradient(135deg, var(--public-gold-dark), #6f2b0d);
    box-shadow: 0 18px 38px rgba(143, 58, 18, .28);
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.catalog-pagination .load-more {
    margin: 0;
    min-height: 44px;
}

.catalog-pagination > a:not(.load-more) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.related-products {
    margin-top: 48px;
}

body:not(.admin-body) .product-page .whatsapp-cta {
    border-color: rgba(8, 116, 102, .32);
    background: linear-gradient(135deg, #108347, #087466);
    color: #fff;
    box-shadow: 0 14px 30px rgba(7, 94, 84, .24);
}

body:not(.admin-body) .product-page .whatsapp-cta:hover {
    background: linear-gradient(135deg, #0c763f, #066158);
    box-shadow: 0 18px 38px rgba(7, 94, 84, .32);
}

body:not(.admin-body) .product-page .whatsapp-cta:focus-visible {
    outline: 3px solid rgba(16, 131, 71, .34);
    outline-offset: 3px;
}

body:not(.admin-body) .product-page .share-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    border: 1px solid var(--public-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--public-ink-soft);
    cursor: pointer;
    font: 700 13px Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
}

body:not(.admin-body) .product-page .share-cta:hover {
    border-color: var(--public-gold);
    background: var(--public-surface-solid);
    color: var(--public-gold-dark);
}

body:not(.admin-body) .product-page .share-cta:focus-visible {
    outline: 3px solid rgba(199, 101, 26, .3);
    outline-offset: 3px;
}

body:not(.admin-body) .header-cta--whatsapp {
    border-color: rgba(8, 116, 102, .32);
    background: linear-gradient(135deg, #108347, #087466);
    color: #fff;
    box-shadow: 0 14px 30px rgba(7, 94, 84, .24);
}

body:not(.admin-body) .header-cta--whatsapp:hover {
    background: linear-gradient(135deg, #0c763f, #066158);
    box-shadow: 0 18px 38px rgba(7, 94, 84, .32);
}

body:not(.admin-body) .header-cta--whatsapp:focus-visible {
    outline: 3px solid rgba(16, 131, 71, .34);
    outline-offset: 3px;
}

body:not(.admin-body) .hero {
    position: relative;
    padding-block: clamp(30px, 5vw, 68px) clamp(52px, 8vw, 104px);
    border-bottom: 1px solid rgba(200, 173, 145, .5);
    background:
        radial-gradient(circle at 78% 16%, rgba(199, 101, 26, .14), transparent 34%),
        linear-gradient(135deg, #fbf6ed 0%, var(--public-page) 52%, #eee3d5 100%);
    background-position: center;
    background-size: cover;
    color: var(--public-ink);
}

body:not(.admin-body) .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(252, 248, 241, .62) 0%, transparent 68%),
        linear-gradient(180deg, transparent 0%, rgba(200, 173, 145, .16) 100%);
    pointer-events: none;
}

body:not(.admin-body) .hero::after {
    content: "";
    position: absolute;
    inset: auto clamp(18px, 4vw, 56px) 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(199, 101, 26, .36), transparent);
}

body:not(.admin-body) .hero-content {
    position: relative;
    z-index: 1;
    gap: clamp(22px, 4vw, 38px);
}

body:not(.admin-body) .hero h1,
body:not(.admin-body) .hero .eyebrow {
    color: var(--public-ink);
}

body:not(.admin-body) .hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    text-wrap: balance;
}

@media (min-width: 821px) {
    body:not(.admin-body) .hero h1 {
        max-width: none;
        font-size: clamp(38px, 4.6vw, 64px);
        white-space: nowrap;
    }
}

body:not(.admin-body) .eyebrow {
    color: var(--public-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

body:not(.admin-body) .hero .eyebrow {
    color: var(--public-gold);
}

body:not(.admin-body) .part-finder-note {
    max-width: 760px;
    border: 1px solid rgba(199, 101, 26, .22);
    border-left: 6px solid var(--public-gold);
    background: rgba(252, 248, 241, .78);
    color: var(--public-ink);
    box-shadow: 0 16px 36px rgba(40, 28, 18, .08);
    backdrop-filter: blur(16px);
}

body:not(.admin-body) .part-finder-note__icon {
    border-color: rgba(199, 101, 26, .28);
    background: var(--public-gold-soft);
    color: var(--public-gold-dark);
}

body:not(.admin-body) .part-finder-note strong {
    color: var(--public-ink);
}

body:not(.admin-body) .part-finder-note p {
    color: var(--public-muted);
}

body:not(.admin-body) .part-finder-note__icon .icon {
    width: 22px;
    height: 22px;
}

body:not(.admin-body) .search-panel {
    border: 1px solid rgba(200, 173, 145, .58);
    background: var(--public-surface);
    box-shadow: var(--public-shadow);
    backdrop-filter: blur(18px);
}

body:not(.admin-body) .hero .search-panel {
    background: rgba(252, 248, 241, .94);
}

body:not(.admin-body) label {
    color: var(--public-muted);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body:not(.admin-body) input,
body:not(.admin-body) select {
    min-height: 50px;
    border-color: var(--public-line);
    background: rgba(252, 248, 241, .9);
    color: var(--public-ink);
}

/* Keep single-select arrows centered and inset consistently across browsers. */
select:not([multiple]):not([size]),
select[size="1"]:not([multiple]) {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371685e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
}

body:not(.admin-body) input:hover,
body:not(.admin-body) select:hover,
body:not(.admin-body) input:focus,
body:not(.admin-body) select:focus {
    border-color: var(--public-line-strong);
}

body:not(.admin-body) .product-section,
body:not(.admin-body) .page-shell {
    padding-block: clamp(48px, 7vw, 86px);
}

body:not(.admin-body) .section-heading {
    display: grid;
    gap: 8px;
}

body:not(.admin-body) .section-heading h2,
body:not(.admin-body) .page-intro h1 {
    margin-top: 0;
    text-wrap: balance;
}

@media (min-width: 821px) {
    body:not(.admin-body) .about-page .page-intro {
        max-width: 1100px;
    }

    body:not(.admin-body) .about-page .page-intro h1 {
        max-width: none;
        font-size: clamp(32px, 3.6vw, 44px);
    }

    body:not(.admin-body) .about-page .page-intro .lead {
        max-width: none;
    }

    body:not(.admin-body) .contact-page .page-intro {
        max-width: none;
    }

    body:not(.admin-body) .contact-page .page-intro h1 {
        max-width: none;
        font-size: clamp(40px, 5vw, 64px);
    }

    body:not(.admin-body) .contact-page .page-intro .lead {
        max-width: none;
    }

    body:not(.admin-body) .about-values .info-card h2 {
        font-size: clamp(28px, 2.3vw, 36px);
    }
}

@media (min-width: 960px) {
    body:not(.admin-body) .about-values .info-card__title--single-line {
        white-space: nowrap;
    }
}

body:not(.admin-body) .product-card,
body:not(.admin-body) .empty-state,
body:not(.admin-body) .product-info,
body:not(.admin-body) .about-story__main,
body:not(.admin-body) .about-highlight,
body:not(.admin-body) .info-card,
body:not(.admin-body) .contact-card,
body:not(.admin-body) .contact-action {
    border-color: rgba(200, 173, 145, .62);
    background: var(--public-surface-solid);
    box-shadow: 0 14px 38px rgba(40, 28, 18, .07);
}

body:not(.admin-body) .product-card {
    border-radius: 10px;
}

body:not(.admin-body) .product-card:hover {
    border-color: rgba(199, 101, 26, .48);
    box-shadow: var(--public-shadow-hover);
}

body:not(.admin-body) .product-card h3 {
    margin-bottom: 10px;
}

body:not(.admin-body) .product-card p,
body:not(.admin-body) .lead,
body:not(.admin-body) .product-description,
body:not(.admin-body) .prose p,
body:not(.admin-body) .about-story__main p,
body:not(.admin-body) .info-card p,
body:not(.admin-body) .contact-card p,
body:not(.admin-body) .contact-card address {
    color: var(--public-muted);
}

body:not(.admin-body) .product-image,
body:not(.admin-body) .gallery-placeholder {
    background:
        linear-gradient(135deg, rgba(243, 215, 188, .82), rgba(252, 248, 241, .72)),
        #ead9c5;
}

body:not(.admin-body) .tag {
    border: 1px solid rgba(199, 101, 26, .2);
    background: var(--public-gold-soft);
    color: var(--public-gold-dark);
    letter-spacing: .04em;
    text-transform: uppercase;
}

body:not(.admin-body) .breadcrumb,
body:not(.admin-body) .filter-help,
body:not(.admin-body) dt {
    color: var(--public-muted);
}

body:not(.admin-body) .filter-help {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
}

body:not(.admin-body) dd,
body:not(.admin-body) .text-link {
    color: var(--public-ink);
}

body:not(.admin-body) .product-info h1 {
    font-size: clamp(36px, 4.6vw, 54px);
}

body:not(.admin-body) .about-highlight,
body:not(.admin-body) .contact-action {
    background:
        linear-gradient(135deg, rgba(243, 215, 188, .5), rgba(252, 248, 241, .92));
    color: var(--public-ink);
}

body:not(.admin-body) .contact-action {
    padding: clamp(28px, 3vw, 44px);
}

body:not(.admin-body) .about-highlight strong,
body:not(.admin-body) .contact-action h2,
body:not(.admin-body) .contact-action .eyebrow {
    color: var(--public-ink);
}

body:not(.admin-body) .about-highlight > span:last-child {
    color: var(--public-muted);
}

body:not(.admin-body) .contact-action__icon {
    margin-bottom: 32px;
    background: var(--public-gold);
    color: var(--public-light-text);
}

body:not(.admin-body) .contact-action .eyebrow {
    margin: 0 0 14px;
}

body:not(.admin-body) .contact-action h2 {
    margin: 0;
    font-size: clamp(30px, 2.6vw, 40px);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
}

body:not(.admin-body) .contact-action p:not(.eyebrow) {
    margin: 22px 0 0;
    color: var(--public-muted);
    line-height: 1.65;
}

body:not(.admin-body) .contact-action .primary-cta {
    margin: 28px 0 24px;
}

body:not(.admin-body) .contact-action small {
    color: var(--public-muted);
    font-size: 14px;
    line-height: 1.6;
}

body:not(.admin-body) .about-highlight__number,
body:not(.admin-body) .info-card__icon,
body:not(.admin-body) .contact-card__label {
    color: var(--public-gold);
}

body:not(.admin-body) .about-footer-cta {
    border: 1px solid rgba(200, 173, 145, .68);
    background:
        linear-gradient(135deg, rgba(252, 248, 241, .92), rgba(243, 215, 188, .68));
    box-shadow: var(--public-shadow);
}

body:not(.admin-body) .site-footer {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(150px, .45fr) minmax(220px, .55fr);
    align-items: start;
    gap: clamp(26px, 5vw, 62px);
    padding: clamp(34px, 6vw, 70px) clamp(18px, 4vw, 56px);
    border-top: 1px solid rgba(200, 173, 145, .6);
    background:
        linear-gradient(135deg, rgba(252, 248, 241, .94), rgba(243, 215, 188, .5));
    color: var(--public-muted);
}

body:not(.admin-body) .site-footer .brand strong,
body:not(.admin-body) .site-footer h2,
body:not(.admin-body) .site-footer a {
    color: var(--public-ink);
}

body:not(.admin-body) .site-footer .brand-mark {
    width: 48px;
    height: 48px;
}

body:not(.admin-body) .site-footer .brand-copy small,
body:not(.admin-body) .site-footer p,
body:not(.admin-body) .site-footer span {
    color: var(--public-muted);
}

body:not(.admin-body) .footer-brand {
    display: grid;
    gap: 18px;
    max-width: 520px;
}

body:not(.admin-body) .footer-brand p {
    margin: 0;
    line-height: 1.7;
}

body:not(.admin-body) .footer-social-link {
    display: inline-flex;
    width: fit-content;
    min-height: 56px;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 10px;
    border: 1px solid rgba(214, 41, 118, .3);
    border-radius: 14px;
    background: #fff;
    color: var(--public-ink);
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(150, 47, 191, .14);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body:not(.admin-body) .footer-social-link:hover {
    border-color: #d62976;
    background: #fff;
    color: var(--public-ink);
    box-shadow: 0 12px 28px rgba(150, 47, 191, .22);
    transform: translateY(-2px);
}

body:not(.admin-body) .footer-social-link:focus-visible {
    outline: 3px solid rgba(214, 41, 118, .38);
    outline-offset: 3px;
}

body:not(.admin-body) .footer-social-link__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    filter: drop-shadow(0 3px 6px rgba(150, 47, 191, .22));
}

body:not(.admin-body) .footer-social-link__copy {
    display: grid;
    gap: 1px;
    line-height: 1.15;
}

body:not(.admin-body) .footer-social-link__copy small {
    color: #a52a79;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body:not(.admin-body) .footer-social-link__copy strong {
    color: var(--public-ink);
    font-size: 14px;
    font-weight: 800;
}

body:not(.admin-body) .footer-links,
body:not(.admin-body) .footer-contact {
    display: grid;
    gap: 12px;
}

body:not(.admin-body) .footer-links a,
body:not(.admin-body) .footer-contact a {
    width: fit-content;
    color: var(--public-ink);
    font-weight: 700;
}

body:not(.admin-body) .footer-links a:hover,
body:not(.admin-body) .footer-contact a:hover {
    color: var(--public-gold);
}

body:not(.admin-body) .footer-contact {
    justify-items: end;
    text-align: right;
}

body:not(.admin-body) .footer-contact address {
    color: var(--public-muted);
    font-style: normal;
    line-height: 1.6;
}

body:not(.admin-body) .floating-contact__button--phone {
    background: linear-gradient(135deg, var(--public-gold), var(--public-gold-dark));
}

@media (max-width: 980px) {
    body:not(.admin-body) .header-cta {
        display: none;
    }

    body:not(.admin-body) .site-footer {
        grid-template-columns: 1fr 1fr;
    }

    body:not(.admin-body) .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    body:not(.admin-body) .site-header {
        min-height: 74px;
        gap: 8px;
    }

    body:not(.admin-body) .site-header > .brand { order: 1; }
    body:not(.admin-body) .header-actions { order: 2; margin-left: auto; gap: 8px; }
    body:not(.admin-body) .main-nav { order: 3; }

    body:not(.admin-body) .header-instagram {
        width: 44px;
        padding: 6px;
        justify-content: center;
    }

    body:not(.admin-body) .header-instagram__handle {
        display: none;
    }

    body:not(.admin-body) .brand-copy small {
        display: none;
    }

    body:not(.admin-body) .main-nav {
        margin-top: 10px;
        padding-top: 14px;
    }

    body:not(.admin-body) .main-nav a {
        border-radius: 10px;
        padding-inline: 12px;
    }

    body:not(.admin-body) .hero h1,
    body:not(.admin-body) .page-shell h1 {
        font-size: clamp(38px, 11vw, 52px);
    }

    body:not(.admin-body) .search-panel.compact {
        align-items: stretch;
    }

    body:not(.admin-body) .site-footer {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .footer-contact {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    body:not(.admin-body) .site-header {
        padding-inline: 14px;
    }

    body:not(.admin-body) .site-header .brand-mark {
        width: 46px;
        height: 46px;
    }

    body:not(.admin-body) .brand-copy strong {
        font-size: 19px;
    }

    body:not(.admin-body) .part-finder-note {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    body:not(.admin-body) .site-header .brand-mark {
        display: none;
    }

    body:not(.admin-body) .brand-copy strong {
        font-size: 17px;
    }
}
