@charset "utf-8";

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #faf6f8;
    color: #3a2448;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.header {
    background: #fff;
    color: #1b4b9b;
    padding: 14px 5%;
    border-bottom: 4px solid #d4006e;
}

.header-inner {
    max-width: 1480px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-logo {
    display: block;
    height: 78px;
    width: auto;
}

.header h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    color: #1b4b9b;
}

.header p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #d4006e;
}

.container {
    max-width: 1480px;
    margin: auto;
    padding: 0 20px 35px;
}

.page-frame {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-frame .container {
    flex: 1 0 auto;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.footer {
    background: #fff;
    border-top: 4px solid #d4006e;
    padding: 18px 5%;
    text-align: center;
}

.footer a {
    color: #1b4b9b;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: #d4006e;
}

.top-nav {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #ecd5de;
    margin-bottom: 20px;
}

.top-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #6b2a4a;
    font-weight: 600;
    padding: 18px 18px;
    border-bottom: 3px solid transparent;
    transition: .2s;
    white-space: nowrap;
    line-height: 1;
}

.top-nav a:hover,
.top-nav a.active {
    color: #d4006e;
    border-bottom-color: #d4006e;
}

.nav-icon,
.top-nav .lnr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    margin: 0;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.card {
    background: white;
    border: 1px solid #ecd0db;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 700;
    color: #5a1a40;
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.card-icon {
    font-size: 21px;
    color: #d4006e;
}

.card-content {
    padding: 0 20px 20px;
}

.card-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #8b4a62;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.lang-switch img {
    display: block;
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(139, 74, 98, .25);
}

.keyword-card {
    background: #fdf7fa;
    border: none;
}

.keyword-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info {
    color: #8b4a62;
    line-height: 1.5;
}

.info strong {
    color: #5a1a40;
}

.example {
    border-left: 1px solid #f0c8d8;
    padding-left: 25px;
    color: #8b4a62;
}

.search-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.search-row-split {
    flex-wrap: wrap;
    align-items: center;
}

.search-row-split .input-wrapper {
    flex: 1 1 220px;
    min-width: 180px;
}

.search-row-split .btn {
    white-space: nowrap;
}

.card-content > .search-row {
    margin-top: 20px;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #c08098;
    font-size: 18px;
}

input,
select {
    width: 100%;
    height: 40px;
    border: 1px solid #e4b4c6;
    border-radius: 5px;
    background: white;
    color: #5a1a40;
    padding: 0 13px;
    font-size: 14px;
    outline: none;
}

.input-wrapper input {
    padding-left: 42px;
}

input:focus,
select:focus {
    border-color: #d4006e;
    box-shadow: 0 0 0 2px rgba(212, 0, 110, .12);
}

.btn {
    border: none;
    border-radius: 5px;
    background: #d4006e;
    color: white;
    padding: 0 28px;
    height: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.btn:hover {
    background: #b0005c;
}

.manufacturer {
    padding: 5px 20px 20px;
}

.manufacturer-description {
    color: #8b4a62;
    line-height: 1.5;
}

.warning {
    color: #d4006e;
    font-weight: bold;
}

.code-row {
    display: flex;
    width: 540px;
    max-width: 100%;
    gap: 10px;
    margin-top: 14px;
}

.code-row input {
    flex: 1;
}

.brand-section {
    margin-top: 10px;
    background: #fce8f1;
    border: 1px solid #f0c8d8;
    border-radius: 7px;
    overflow: hidden;
}

.brand-title {
    font-size: 17px;
    font-weight: bold;
    padding: 14px 20px;
    color: #5a1a40;
}

.filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 20px 20px;
}

.filter label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #6b2a4a;
}

.machine-search {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 16px 20px;
    align-items: end;
    padding: 0 20px 22px;
}

.machine-search .btn {
    min-width: 120px;
    padding: 0 28px;
}

.machine-search-more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 20px 20px;
    padding-top: 14px;
    border-top: 1px solid #f0dce4;
}

.machine-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.machine-auth-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 120px;
}

.btn-outline {
    background: #fff;
    color: #d4006e;
    border: 1px solid #e4b4c6;
}

.btn-outline:hover {
    background: #fce8f1;
    color: #b0005c;
}

.machine-search-more > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1b4b9b;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: .2s;
}

.machine-search-more > a:hover {
    color: #d4006e;
    background: #fce8f1;
}

.machine-search-more .lnr {
    font-size: 16px;
    line-height: 1;
}

.advanced-search {
    padding: 0 20px 22px;
}

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

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

.filter-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #6b2a4a;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    min-height: 40px;
    align-items: center;
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5a1a40;
    font-weight: 600;
    cursor: pointer;
}

.choice input,
.option-chip input {
    width: auto;
    height: auto;
    margin: 0;
    accent-color: #d4006e;
}

.range-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.range-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #8b5a70;
}

.advanced-options {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0dce4;
}

.advanced-options-title {
    font-weight: 700;
    color: #8b1a4a;
    margin-bottom: 12px;
}

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

.option-chip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fdf7fa;
    border: 1px solid #f0dce4;
    border-radius: 5px;
    color: #5a1a40;
    cursor: pointer;
}

.option-chip span {
    line-height: 1.35;
}

.option-chip:hover {
    border-color: #e4b4c6;
    background: #fceef4;
}

.option-chip-static {
    cursor: default;
}

.option-chip-static .lnr {
    color: #d4006e;
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
}

.machine-options,
.machine-contact {
    padding-left: 20px;
    padding-right: 20px;
}

.machine-gallery-videos {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #f0dce4;
}

.machine-gallery-videos h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #8b1a4a;
}

.machine-video-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.machine-video-list a,
.machine-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1b4b9b;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #f0dce4;
    border-radius: 5px;
    background: #fdf7fa;
    cursor: pointer;
    font: inherit;
}

.machine-video-list a:hover,
.machine-video-btn:hover {
    color: #d4006e;
    border-color: #e4b4c6;
}

.product-datasheet {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0dce4;
}

.product-datasheet-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #f0c8d8;
    border-radius: 7px;
    background: linear-gradient(180deg, #fff, #fdf7fa);
    color: #5a1a40;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(212, 0, 110, .06);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.product-datasheet-btn:hover {
    border-color: #d4006e;
    box-shadow: 0 4px 14px rgba(212, 0, 110, .12);
    transform: translateY(-1px);
}

.product-datasheet-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #d4006e;
    color: #fff;
    font-size: 20px;
}

.product-datasheet-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.25;
}

.product-datasheet-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #8b1a4a;
}

.product-datasheet-text small {
    font-size: 12px;
    font-weight: 500;
    color: #8b4a62;
}

body.video-modal-open {
    overflow: hidden;
}

.video-modal[hidden] {
    display: none !important;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 24, 0.72);
}

.video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    background: #120812;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #5a1a40;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.video-modal-close:hover {
    background: #fff;
    color: #d4006e;
}

.video-modal-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.advanced-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f0dce4;
}

.advanced-actions .small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

.countries {
    background: white;
    border-top: 1px solid #f0dce4;
    padding: 20px;
}

.country-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #5a1a40;
}

.country-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 50px;
}

.country {
    color: #6b2a4a;
}

.country input {
    width: auto;
    height: auto;
    margin-right: 8px;
    accent-color: #d4006e;
}

.search-options {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 17px;
}

.search-options label {
    color: #6b2a4a;
}

.search-options input {
    width: auto;
    height: auto;
    margin-right: 6px;
    accent-color: #d4006e;
}

.small-btn {
    height: 34px;
    padding: 0 17px;
    background: white;
    color: #d4006e;
    border: 1px solid #e4b4c6;
}

.small-btn:hover {
    background: #fce8f1;
}

.group-card {
    background: #fff4e8;
    border: 1px solid #f0d4c0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.group-title {
    font-weight: bold;
    color: #8b3a20;
    white-space: nowrap;
}

.group-card select {
    max-width: 340px;
}

.savoldi {
    background: #e9ffdc;
    border: 1px solid #c5eeb0;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.savoldi-title {
    color: #17652b;
    font-weight: bold;
    white-space: nowrap;
}

.savoldi-description {
    color: #487650;
    white-space: nowrap;
}

.savoldi-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 600px;
}

.savoldi-form input {
    flex: 1;
}

.btn-green {
    background: #168348;
}

.btn-green:hover {
    background: #116b3a;
}

.machine-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    padding: 14px 18px;
    border: 1px solid #c8e6d3;
    border-radius: 8px;
    background: linear-gradient(180deg, #f3fbf6, #eaf7ef);
}

.machine-admin-bar-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.machine-admin-bar-text strong {
    font-size: 15px;
    color: #116b3a;
}

.machine-admin-bar-text span {
    font-size: 13px;
    color: #3d6b50;
}

.machine-vidima-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    white-space: nowrap;
    text-decoration: none;
}

@media (max-width: 700px) {
    .machine-admin-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .machine-vidima-btn {
        width: 100%;
    }
}

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

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

.catalog-table th,
.catalog-table td {
    padding: 10px 12px;
    text-align: left;
    border-top: 1px solid #f0dce4;
    vertical-align: top;
}

.catalog-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fce8f1;
    color: #8b1a4a;
    font-weight: 700;
    border-top: none;
}

.catalog-table th:nth-child(1),
.catalog-table td:nth-child(1) { width: 86px; white-space: nowrap; }
.catalog-table th:nth-child(4),
.catalog-table td:nth-child(4) { width: 86px; text-align: right; white-space: nowrap; }
.catalog-table th:nth-child(5),
.catalog-table td:nth-child(5) { width: 118px; }
.catalog-table th:nth-child(6),
.catalog-table td:nth-child(6) { width: 108px; text-align: center; white-space: nowrap; }
.catalog-table th:nth-child(7),
.catalog-table td:nth-child(7) { width: 30%; }

.search-table th:nth-child(2),
.search-table td:nth-child(2) { width: 90px; text-align: right; white-space: nowrap; }
.search-table th:nth-child(3),
.search-table td:nth-child(3) { width: auto; text-align: left; white-space: normal; }
.search-table th:nth-child(4),
.search-table td:nth-child(4) { width: 1%; text-align: left; white-space: nowrap; }

.photo-thumbs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.photo-thumbs a {
    display: block;
    border: 1px solid #f0c8d8;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
    background: #fdf7fa;
}

.photo-thumbs img {
    display: block;
    height: 72px;
    width: auto;
    max-width: 96px;
    object-fit: cover;
}

.catalog-table tbody tr:nth-child(even) {
    background: #fdf7fa;
}

.catalog-table tbody tr:hover {
    background: #fceef4;
}

.catalog-table.machines-table th,
.catalog-table.machines-table td {
    vertical-align: middle;
}

.catalog-table.machines-table th:nth-child(1),
.catalog-table.machines-table td:nth-child(1) {
    width: 96px;
    text-align: left;
    white-space: nowrap;
}

.catalog-table.machines-table th:nth-child(2),
.catalog-table.machines-table td:nth-child(2) {
    width: 112px;
    text-align: left;
}

.catalog-table.machines-table th:nth-child(3),
.catalog-table.machines-table td:nth-child(3) {
    width: auto;
    text-align: left;
    white-space: normal;
}

.catalog-table.machines-table th:nth-child(4),
.catalog-table.machines-table td:nth-child(4),
.catalog-table.machines-table th:nth-child(5),
.catalog-table.machines-table td:nth-child(5),
.catalog-table.machines-table th:nth-child(6),
.catalog-table.machines-table td:nth-child(6) {
    width: 88px;
    text-align: center;
    white-space: nowrap;
}

.catalog-table.machines-table th:nth-child(7),
.catalog-table.machines-table td:nth-child(7) {
    width: 88px;
    text-align: left;
    white-space: nowrap;
}

.machines-table td a {
    color: #1b4b9b;
    text-decoration: none;
}

.machines-table td a:hover {
    color: #d4006e;
}

.catalog-table.advertisers-table th,
.catalog-table.advertisers-table td {
    vertical-align: middle;
}

.catalog-table.advertisers-table th:nth-child(1),
.catalog-table.advertisers-table td:nth-child(1) {
    width: 18%;
    white-space: normal;
}

.catalog-table.advertisers-table th:nth-child(2),
.catalog-table.advertisers-table td:nth-child(2) {
    width: 14%;
    white-space: normal;
}

.catalog-table.advertisers-table th:nth-child(3),
.catalog-table.advertisers-table td:nth-child(3),
.catalog-table.advertisers-table th:nth-child(4),
.catalog-table.advertisers-table td:nth-child(4) {
    width: 14%;
    text-align: left;
    white-space: nowrap;
}

.catalog-table.advertisers-table th:nth-child(5),
.catalog-table.advertisers-table td:nth-child(5) {
    width: auto;
    white-space: normal;
}

.catalog-table.advertisers-table th:nth-child(6),
.catalog-table.advertisers-table td:nth-child(6) {
    width: 88px;
    text-align: left;
    white-space: nowrap;
}

.catalog-table.advertisers-table th:nth-child(7),
.catalog-table.advertisers-table td:nth-child(7) {
    width: 110px;
    text-align: center;
    white-space: nowrap;
}

.advertisers-table .advertiser-company {
    font-weight: 700;
    color: #1b4b9b;
}

.advertisers-table td a {
    color: #1b4b9b;
    text-decoration: none;
}

.advertisers-table td a:hover {
    color: #d4006e;
}

.advertisers-table .small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 64px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
}

.advertisers-table .small-btn .lnr {
    font-size: 14px;
    line-height: 1;
}
}

.machine-name {
    display: inline-block;
    font-weight: 700;
    line-height: 1.35;
    color: #5a1a40;
}

.machine-model {
    display: block;
    margin-top: 2px;
    font-weight: 600;
    color: #8b4a62;
}

.machines-table td a:hover .machine-name,
.machines-table td a:hover .machine-model {
    color: #d4006e;
}

.th-sort {
    display: inline-flex;
    align-items: center;
    color: #8b1a4a;
    text-decoration: none;
}

.th-sort:hover {
    color: #d4006e;
}

.sort-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    margin-left: 7px;
    width: 8px;
}

.sort-icon span {
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.sort-icon .up { border-bottom: 5px solid #d4a0b4; }
.sort-icon .down { border-top: 5px solid #d4a0b4; }
.sort-icon.asc .up { border-bottom-color: #d4006e; }
.sort-icon.desc .down { border-top-color: #d4006e; }

.code {
    font-weight: 700;
    color: #1b4b9b;
    white-space: nowrap;
}

.muted { color: #a07a88; }

.original-codes {
    color: #5a1a40;
}

.code-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 4.6em;
    overflow: auto;
}

.code-chip {
    display: inline-block;
    background: #fce8f1;
    border: 1px solid #f0c8d8;
    color: #5a1a40;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.empty {
    padding: 36px 20px;
    text-align: center;
    color: #8b4a62;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px 20px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn,
.page-ellipsis {
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #e4b4c6;
    background: white;
    color: #8b1a4a;
    text-decoration: none;
    font-weight: 600;
}

.page-btn:hover {
    background: #fce8f1;
}

.page-btn.active {
    background: #d4006e;
    border-color: #d4006e;
    color: white;
}

.page-btn.disabled {
    pointer-events: none;
    opacity: .45;
}

.page-ellipsis {
    border: none;
    background: transparent;
    color: #a07a88;
}

.order-content {
    padding: 0 20px 22px;
    color: #5a1a40;
    line-height: 1.65;
}

.order-min {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #fdf7fa;
    border: 1px solid #f0c8d8;
    border-radius: 6px;
    color: #d4006e;
    font-weight: 700;
    font-size: 15px;
}

.order-content p,
.order-notes p,
.pay-block p {
    margin: 0 0 12px;
}

.order-list {
    margin: 4px 0 16px;
    padding-left: 22px;
}

.order-list li {
    margin-bottom: 12px;
}

.order-privacy {
    margin: 8px 0 0;
    padding: 12px 14px;
    background: #fdf7fa;
    border: 1px solid #f0c8d8;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.5;
    text-transform: uppercase;
}

.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px 20px;
}

.pay-block {
    border: 1px solid #f0c8d8;
    border-radius: 7px;
    padding: 16px 18px;
    background: #fdf7fa;
}

.pay-block:first-child {
    grid-column: 1 / -1;
}

.pay-block p:last-child {
    margin-bottom: 0;
}

.pay-block h3 {
    margin: 0 0 12px;
    color: #d4006e;
    font-size: 16px;
}

.pay-address {
    margin: 0 0 12px;
    line-height: 1.5;
}

.iban {
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
    color: #1b4b9b;
    letter-spacing: .02em;
    word-break: break-all;
}

.paypal-logo {
    display: block;
    height: 48px;
    width: auto;
    margin: 8px 0 12px;
}

.order-notes {
    padding: 0 20px 20px;
    color: #5a1a40;
    line-height: 1.65;
}

.order-content a,
.pay-block a {
    color: #1b4b9b;
    font-weight: 700;
}

.order-content a:hover,
.pay-block a:hover {
    color: #d4006e;
}

.courier-logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 20px 20px;
}

.courier-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 88px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #f0c8d8;
    border-radius: 7px;
}

.courier-logos img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

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

.shipping-table th,
.shipping-table td {
    padding: 11px 12px;
    text-align: center;
    border-top: 1px solid #f0dce4;
    vertical-align: middle;
}

.shipping-table thead th {
    background: #fce8f1;
    color: #8b1a4a;
    font-weight: 700;
    border-top: none;
}

.shipping-table th:first-child,
.shipping-table td:first-child {
    text-align: left;
    white-space: nowrap;
}

.shipping-table .unit-row td {
    color: #8b4a62;
    font-size: 13px;
    font-weight: 600;
    background: #fdf7fa;
}

.shipping-table .price {
    color: #d4006e;
    font-weight: 700;
    font-size: 16px;
}

.shipping-table tbody tr:hover {
    background: #fceef4;
}

.vat-note {
    margin: 0 20px 18px;
    padding: 12px 14px;
    background: #fdf7fa;
    border: 1px solid #f0c8d8;
    border-radius: 6px;
    color: #d4006e;
    font-weight: 700;
}

.track-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px 20px;
}

.track-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border: 1px solid #f0c8d8;
    border-radius: 7px;
    background: #fdf7fa;
    color: #1b4b9b;
    font-weight: 700;
    text-decoration: none;
}

.track-list a:hover {
    color: #d4006e;
    background: #fce8f1;
}

.surcharge-list {
    margin: 0;
    padding: 0 20px 20px 42px;
    color: #5a1a40;
    line-height: 1.65;
}

.surcharge-list li {
    margin-bottom: 8px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    gap: 28px;
    align-items: start;
    padding: 0 20px 24px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-main-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 16px;
    background: #fdf7fa;
    border: 1px solid #f0c8d8;
    border-radius: 7px;
}

.product-main-photo img {
    display: block;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: #fdf7fa;
    border: 1px dashed #f0c8d8;
    border-radius: 7px;
    color: #a07a88;
    font-weight: 600;
}

.product-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-thumbs a {
    display: block;
    border: 2px solid #f0c8d8;
    border-radius: 5px;
    overflow: hidden;
    line-height: 0;
    background: white;
}

.product-thumbs a:hover,
.product-thumbs a.active {
    border-color: #d4006e;
}

.product-thumbs img {
    display: block;
    width: 88px;
    height: 68px;
    object-fit: cover;
}

.spec-list {
    display: grid;
    grid-template-columns: 210px 1fr;
    margin: 0;
    border: 1px solid #f0dce4;
    border-radius: 7px;
    overflow: hidden;
}

.spec-list dt,
.spec-list dd {
    margin: 0;
    padding: 11px 14px;
    border-top: 1px solid #f0dce4;
}

.spec-list > :nth-child(-n+2) {
    border-top: none;
}

.spec-list dt {
    font-weight: 600;
    color: #6b2a4a;
    background: #fdf7fa;
}

.spec-list dd {
    color: #5a1a40;
}

.spec-list dd a {
    color: #d4006e;
    font-weight: 600;
    text-decoration: underline;
}

.spec-list dd a:hover {
    color: #a30054;
}

.spec-list .code-list {
    max-height: none;
    overflow: visible;
}

.spec-list .code {
    font-size: 28px;
    font-weight: 700;
    color: #d4006e;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.spec-list dt:has(+ dd.code) {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.product-price-box {
    margin-top: 16px;
    padding: 16px 18px;
    background: #fdf7fa;
    border: 1px solid #f0c8d8;
    border-radius: 7px;
}

.product-price-label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #8b4a62;
}

.product-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #d4006e;
    line-height: 1.2;
}

.product-price-amount a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 5px;
    background: #d4006e;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.product-price-amount a:hover {
    background: #b0005c;
}

.product-price-unavailable {
    font-size: 15px;
    font-weight: 700;
    color: #d4006e;
    line-height: 1.45;
}

.product-section {
    padding: 0 20px 22px;
}

.product-section h2 {
    margin: 0 0 12px;
    font-size: 17px;
    color: #5a1a40;
}

.compat-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fdf7fa;
    border: 1px solid #f0c8d8;
    border-radius: 6px;
    color: #8b4a62;
    line-height: 1.55;
}

.related-note {
    margin: 0 20px 16px;
}

.compat-table th:nth-child(n),
.compat-table td:nth-child(n) {
    width: auto;
    text-align: left;
    white-space: nowrap;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 0 20px 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fdf7fa;
    border: 1px solid #f0c8d8;
    border-radius: 7px;
    color: inherit;
    text-decoration: none;
    transition: .2s;
}

.related-card:hover {
    background: #fce8f1;
    border-color: #d4006e;
}

.related-card-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 10px;
    background: white;
    border-bottom: 1px solid #f0dce4;
}

.related-card-photo img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.related-card-empty {
    color: #a07a88;
    font-size: 13px;
    font-weight: 600;
}

.related-card-body {
    padding: 12px 14px 14px;
}

.related-card-code {
    font-size: 13px;
    font-weight: 700;
    color: #1b4b9b;
}

.related-card-name {
    margin-top: 4px;
    color: #5a1a40;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .top-nav { overflow-x: auto; }
    .top-nav a { white-space: nowrap; padding: 14px 15px; }
    .card-header { flex-wrap: wrap; }
    .product-layout { grid-template-columns: minmax(220px, 38%) 1fr; gap: 18px; }
    .spec-list { grid-template-columns: 150px 1fr; }
    .product-main-photo { min-height: 240px; }
    .pay-grid { grid-template-columns: 1fr; }
    .track-list { grid-template-columns: 1fr; }
    .shipping-table th:first-child,
    .shipping-table td:first-child { white-space: normal; }
    .header-logo { height: 64px; }
    .keyword-top { grid-template-columns: 1fr; }
    .example {
        border-left: none;
        border-top: 1px solid #f0c8d8;
        padding: 15px 0 0;
    }
    .filters { grid-template-columns: repeat(2, 1fr); }
    .country-grid { grid-template-columns: repeat(2, 1fr); }
    .advanced-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .advanced-span-2 {
        grid-column: span 2;
    }
    .options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .group-card,
    .savoldi {
        flex-wrap: wrap;
        gap: 10px;
    }
    .savoldi-description { white-space: normal; }
}

@media (max-width: 600px) {
    .header { padding: 14px 20px; }
    .header-inner { gap: 14px; }
    .header-logo { height: 52px; }
    .header h1 { font-size: 21px; }
    .header p { font-size: 14px; }
    .pagination { justify-content: center; }
    .filters {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .country-grid { grid-template-columns: 1fr; }
    .search-row { flex-direction: column; }
    .search-row .btn { width: 100%; }
    .machine-search {
        grid-template-columns: 1fr;
    }
    .machine-search .btn { width: 100%; }
    .machine-search-more {
        justify-content: center;
        flex-direction: column;
        margin-left: 16px;
        margin-right: 16px;
    }
    .machine-auth-actions {
        width: 100%;
    }
    .machine-auth-actions .btn {
        flex: 1 1 0;
    }
    .register-grid {
        grid-template-columns: 1fr;
    }
    .register-span-2 {
        grid-column: auto;
    }
    .register-actions .btn {
        width: 100%;
    }
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    .advanced-span-2 {
        grid-column: auto;
    }
    .range-row {
        grid-template-columns: 1fr;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
    .advanced-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .advanced-actions .btn,
    .advanced-actions .small-btn {
        width: 100%;
    }
    .code-row { flex-direction: column; }
    .group-card,
    .savoldi {
        align-items: stretch;
        flex-direction: column;
    }
    .group-card select { max-width: none; }
    .savoldi-form {
        max-width: none;
        flex-direction: column;
    }
    .product-layout {
        grid-template-columns: 1fr;
    }
    .spec-list {
        grid-template-columns: 1fr;
    }
    .spec-list dt {
        padding-bottom: 2px;
    }
    .spec-list dd {
        padding-top: 4px;
        border-top: none;
    }
    .home-btn { min-width: 0; width: 100%; max-width: 360px; }
    .compat-table th:nth-child(n),
    .compat-table td:nth-child(n) {
        white-space: normal;
    }
}

.home-page .header-inner > div {
    min-width: 0;
}

.home-page .header h1 {
    line-height: 1.2;
}

.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-hero {
    position: relative;
    flex: 1;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3a2448 url("../img/hero-embroidery.png") center / cover no-repeat;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 13, 22, .18) 0%, rgba(26, 13, 22, .42) 100%);
    pointer-events: none;
}

.home-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 320px;
    height: 56px;
    padding: 0 28px;
    border-radius: 5px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 10px 24px rgba(26, 13, 22, .28);
    transition: .2s;
}

.home-btn-flag {
    display: block;
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}

.home-btn-machines {
    background: #1b4b9b;
    color: #fff;
}

.home-btn-machines:hover {
    background: #163f82;
}

.home-btn-parts {
    background: #d4006e;
    color: #fff;
}

.home-btn-parts:hover {
    background: #b0005c;
}

.home-footer {
    padding: 20px 5%;
}

.home-footer-inner {
    max-width: 1480px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.home-company {
    width: 100%;
    max-width: 820px;
    color: #6b2a4a;
    line-height: 1.6;
}

.home-company strong {
    display: block;
    margin-bottom: 4px;
    color: #1b4b9b;
    font-size: 16px;
}

.login-wrap {
    min-height: 46vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #ecd0db;
    border-radius: 8px;
    padding: 32px 28px 26px;
    text-align: center;
}

.login-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fce8f1;
    color: #d4006e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.login-card h2 {
    margin: 0;
    font-size: 22px;
    color: #1b4b9b;
}

.login-card > p {
    margin: 8px 0 18px;
    color: #8b4a62;
    line-height: 1.45;
}

.login-error {
    margin: 0 0 14px;
    color: #d4006e;
    font-weight: 700;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.login-card label {
    font-weight: 600;
    color: #6b2a4a;
}

.login-card .btn {
    margin-top: 6px;
    width: 100%;
}

.register-card .card-header {
    margin-bottom: 0;
}

.mine-table-wrap {
    padding: 0 12px 18px;
}

.mine-table th,
.mine-table td {
    vertical-align: middle;
}

.mine-table th:nth-child(1),
.mine-table td:nth-child(1) {
    width: 88px;
    white-space: nowrap;
}

.mine-table th:nth-child(2),
.mine-table td:nth-child(2) {
    width: 96px;
}

.mine-table th:nth-child(3),
.mine-table td:nth-child(3) {
    width: auto;
}

.mine-table th:nth-child(4),
.mine-table td:nth-child(4),
.mine-table th:nth-child(5),
.mine-table td:nth-child(5) {
    width: 72px;
    white-space: nowrap;
    text-align: center;
}

.mine-table th:nth-child(6),
.mine-table td:nth-child(6) {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}

.mine-code,
.mine-title {
    color: #1b4b9b;
    font-weight: 700;
    text-decoration: none;
}

.mine-code:hover,
.mine-title:hover {
    color: #d4006e;
}

.mine-thumb {
    display: inline-flex;
    width: 72px;
    height: 54px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ecd0db;
    background: #f8f0f4;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mine-thumb-empty {
    color: #c08098;
    font-size: 20px;
}

.mine-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.mine-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    border: 1px solid #ecd0db;
    background: #fff;
    color: #1b4b9b;
    text-decoration: none;
    font-size: 16px;
}

.mine-action:hover {
    border-color: #d4006e;
    color: #d4006e;
    background: #fff7fb;
}

.mine-action-danger {
    color: #9b1848;
}

.mine-action-danger:hover {
    color: #fff;
    background: #d4006e;
    border-color: #d4006e;
}

.mine-action-muted {
    color: #c08098;
    cursor: default;
}

.mine-action-muted:hover {
    border-color: #ecd0db;
    color: #c08098;
    background: #fff;
}

.mine-empty {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 8px 20px 22px;
    padding: 18px 16px;
    border: 1px dashed #e4b4c6;
    border-radius: 8px;
    background: #fffafc;
    color: #6b2a4a;
}

.mine-empty > .lnr {
    font-size: 28px;
    color: #d4006e;
    line-height: 1;
    margin-top: 2px;
}

.mine-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #1b4b9b;
}

.mine-empty p {
    margin: 0 0 14px;
    line-height: 1.45;
}

.user-dash {
    padding: 4px 20px 22px;
}

.user-dash-intro {
    margin-bottom: 18px;
}

.user-dash-company {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1b4b9b;
}

.user-dash-meta {
    margin: 0;
    color: #8b4a62;
    font-size: 14px;
    line-height: 1.45;
}

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

.user-dash-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 16px 15px;
    border: 1px solid #ecd0db;
    border-radius: 8px;
    background: #fffafc;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.user-dash-item:hover {
    border-color: #d4006e;
    background: #fff;
    transform: translateY(-1px);
}

.user-dash-item-muted {
    background: #fff;
}

.user-dash-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fce8f1;
    color: #d4006e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-dash-item-muted .user-dash-icon {
    background: #f4f0f2;
    color: #8b4a62;
}

.user-dash-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.user-dash-text strong {
    color: #1b4b9b;
    font-size: 15px;
}

.user-dash-text span {
    color: #8b4a62;
    font-size: 13px;
    line-height: 1.4;
}

.user-dash-item:hover .user-dash-text strong {
    color: #d4006e;
}

@media (max-width: 700px) {
    .user-dash-grid {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 700px) {
    .mine-table th:nth-child(4),
    .mine-table td:nth-child(4),
    .mine-table th:nth-child(5),
    .mine-table td:nth-child(5) {
        display: none;
    }
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 20px 18px;
    padding: 14px 16px;
    border-radius: 6px;
    line-height: 1.45;
}

.flash .lnr {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

.flash p {
    margin: 4px 0 0;
}

.flash-error {
    background: #fff1f5;
    border: 1px solid #f0b8cb;
    color: #9b1848;
}

.flash-success {
    background: #eefaf1;
    border: 1px solid #b7e0c2;
    color: #1f6b3a;
}

.register-form {
    padding: 0 20px 22px;
}

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

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

.register-consent {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f0dce4;
}

.register-consent .choice {
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.45;
}

.register-consent a {
    color: #1b4b9b;
}

.register-consent a:hover {
    color: #d4006e;
}

.register-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.register-actions .small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

.register-actions .btn {
    min-width: 160px;
}

.insert-machine-form .insert-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0dce4;
}

.insert-machine-form .insert-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.insert-section-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1b4b9b;
}

.insert-section-title span {
    font-weight: 500;
    color: #8b4a62;
    font-size: 13px;
}

.insert-section-help {
    margin: -6px 0 14px;
    color: #8b4a62;
    font-size: 13px;
    line-height: 1.4;
}

.insert-hint-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1b4b9b;
    text-decoration: none;
}

.insert-hint-link:hover {
    color: #d4006e;
}

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

.insert-options .choice {
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.35;
}

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

.insert-photo-slot input[type="file"] {
    width: 100%;
    font-size: 13px;
}

.edit-photo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.edit-photo-preview img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ecd0db;
    display: block;
}

.insert-machine-form textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    box-sizing: border-box;
}

.insert-machine-form .register-actions {
    margin-top: 8px;
    padding-top: 6px;
}

@media (max-width: 700px) {
    .insert-options,
    .insert-photos {
        grid-template-columns: 1fr;
    }
}

.brand-title .card-icon {
    margin-right: 8px;
}

.admin-search {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
    gap: 16px 20px;
    align-items: end;
    padding: 0 20px 22px;
}

.admin-search .btn {
    min-width: 120px;
    padding: 0 28px;
}

.admin-heading {
    margin: 28px 0 14px;
    font-size: 18px;
    color: #5a1a40;
}

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

.admin-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #ecd0db;
    border-radius: 8px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: .2s;
}

.admin-tile:hover {
    border-color: #d4006e;
    box-shadow: 0 8px 18px rgba(212, 0, 110, .1);
}

.admin-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fce8f1;
    color: #d4006e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.admin-tile strong {
    display: block;
    margin-bottom: 4px;
    color: #5a1a40;
    font-size: 16px;
}

.admin-tile span span {
    display: block;
    color: #8b4a62;
    font-size: 13px;
    line-height: 1.4;
}

.orario-form .filter {
    margin-bottom: 14px;
}

.orario-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    font: inherit;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .admin-search { grid-template-columns: 1fr 1fr; }
    .admin-search .btn { grid-column: 1 / -1; }
    .admin-grid { grid-template-columns: 1fr 1fr; }
}

.admin-narrow {
    max-width: 760px;
}

.import-form .part-save {
    margin-top: 18px;
}

.file-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px dashed #e0a8c0;
    border-radius: 8px;
    background: #fffafc;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.file-picker:hover,
.file-picker:focus-within {
    border-color: #d4006e;
    background: #fff5f9;
    box-shadow: 0 0 0 3px rgba(212, 0, 110, .08);
}

.file-picker.has-file {
    border-style: solid;
    border-color: #d4006e;
    background: #fff;
}

.file-picker input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.file-picker-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fce8f1;
    color: #d4006e;
    font-size: 20px;
}

.file-picker-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-picker-title {
    font-size: 14px;
    font-weight: 700;
    color: #5a1a40;
}

.file-picker-name {
    font-size: 13px;
    font-weight: 600;
    color: #8b4a62;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-picker.has-file .file-picker-name {
    color: #d4006e;
}

.file-picker-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 5px;
    background: #d4006e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

.file-picker-hint {
    display: block;
    margin: 10px 0 0;
}

.admin-note {
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid #b7e0c6;
    border-radius: 6px;
    background: #e8f6ee;
    color: #116b3a;
    font-weight: 700;
}

.add-marca {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
    padding: 0 20px 22px;
}

.add-marca .btn {
    min-width: 120px;
}

.marca-table th,
.marca-table td {
    vertical-align: middle;
}

.marca-table th:nth-child(1),
.marca-table td:nth-child(1) {
    width: 72px;
    color: #8b4a62;
    font-weight: 700;
}

.marca-table th:nth-child(2),
.marca-table td:nth-child(2) {
    width: auto;
}

.marca-table th:nth-child(3),
.marca-table td:nth-child(3),
.marca-table th:nth-child(4),
.marca-table td:nth-child(4),
.marca-table th:nth-child(5),
.marca-table td:nth-child(5),
.marca-table th:nth-child(6),
.marca-table td:nth-child(6),
.marca-table th:nth-child(7),
.marca-table td:nth-child(7) {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

.marca-save {
    padding: 16px 20px 20px;
}

.marca-save .btn {
    width: auto;
    min-width: 180px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    color: #d4006e;
    text-decoration: none;
    font-size: 18px;
}

.icon-btn:hover {
    background: #fce8f1;
}

.icon-btn-ok {
    color: #1a7a3c;
}

.icon-btn-ok:hover {
    background: #e6f6ec;
}

.vidima-table th:nth-child(1),
.vidima-table td:nth-child(1) {
    width: 90px;
    white-space: nowrap;
}

.vidima-table th:nth-child(4),
.vidima-table td:nth-child(4) {
    width: 110px;
    white-space: nowrap;
}

.vidima-table th:nth-child(5),
.vidima-table td:nth-child(5) {
    width: 140px;
    text-align: right;
    white-space: nowrap;
}

.vidima-table .actions {
    display: inline-flex;
    gap: 6px;
    justify-content: flex-end;
}

.inserzionisti-admin-table th:nth-child(5),
.inserzionisti-admin-table td:nth-child(5),
.inserzionisti-admin-table th:nth-child(6),
.inserzionisti-admin-table td:nth-child(6),
.inserzionisti-admin-table th:nth-child(7),
.inserzionisti-admin-table td:nth-child(7) {
    width: 100px;
    white-space: nowrap;
    text-align: center;
}

.inserzionisti-admin-table th:nth-child(8),
.inserzionisti-admin-table td:nth-child(8) {
    width: 70px;
    text-align: right;
    white-space: nowrap;
}

.inserzionisti-admin-table .actions {
    display: inline-flex;
    gap: 6px;
    justify-content: flex-end;
}

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.status-pill-ok {
    background: #e6f6ec;
    color: #1a7a3c;
}

.status-pill-no {
    background: #fde8f0;
    color: #d4006e;
}

.macchine-admin-table th:nth-child(1),
.macchine-admin-table td:nth-child(1) {
    width: 90px;
    white-space: nowrap;
}

.macchine-admin-table th:nth-child(4),
.macchine-admin-table td:nth-child(4) {
    width: 120px;
    white-space: nowrap;
    text-align: center;
}

.macchine-admin-table th:nth-child(5),
.macchine-admin-table td:nth-child(5) {
    width: 140px;
    white-space: nowrap;
}

.macchine-admin-table th:nth-child(6),
.macchine-admin-table td:nth-child(6) {
    width: 70px;
    text-align: center;
    white-space: nowrap;
}

.macchine-admin-table th:nth-child(7),
.macchine-admin-table td:nth-child(7) {
    width: 100px;
    text-align: right;
    white-space: nowrap;
}

.macchine-admin-table .actions {
    display: inline-flex;
    gap: 6px;
    justify-content: flex-end;
}

.admin-wide {
    max-width: 980px;
}

.add-modello {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    padding: 0 20px 22px;
}

.add-modello select[multiple] {
    height: auto;
    min-height: 220px;
    padding: 8px;
}

.add-modello .field-hint {
    font-weight: 500;
    font-size: 12px;
    color: #8b4a62;
}

.add-modello .btn {
    min-width: 120px;
}

.modello-table th,
.modello-table td {
    vertical-align: middle;
}

.modello-table th:nth-child(1),
.modello-table td:nth-child(1),
.modello-table th:nth-child(2),
.modello-table td:nth-child(2) {
    width: 50%;
}

.zona-table th,
.zona-table td,
.set-table th,
.set-table td {
    vertical-align: middle;
}

.zona-table th:nth-child(1),
.zona-table td:nth-child(1),
.set-table th:nth-child(1),
.set-table td:nth-child(1) {
    width: 72px;
    color: #8b4a62;
    font-weight: 700;
}

.zona-table th:nth-child(2),
.zona-table td:nth-child(2),
.zona-table th:nth-child(3),
.zona-table td:nth-child(3),
.set-table th:nth-child(2),
.set-table td:nth-child(2),
.set-table th:nth-child(3),
.set-table td:nth-child(3) {
    width: auto;
}

.zona-table th:nth-child(4),
.zona-table td:nth-child(4),
.zona-table th:nth-child(5),
.zona-table td:nth-child(5),
.zona-table th:nth-child(6),
.zona-table td:nth-child(6),
.zona-table th:nth-child(7),
.zona-table td:nth-child(7),
.set-table th:nth-child(4),
.set-table td:nth-child(4),
.set-table th:nth-child(5),
.set-table td:nth-child(5),
.set-table th:nth-child(6),
.set-table td:nth-child(6),
.set-table th:nth-child(7),
.set-table td:nth-child(7) {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

.modello-table th:nth-child(3),
.modello-table td:nth-child(3),
.modello-table th:nth-child(4),
.modello-table td:nth-child(4),
.modello-table th:nth-child(5),
.modello-table td:nth-child(5),
.modello-table th:nth-child(6),
.modello-table td:nth-child(6),
.modello-table th:nth-child(7),
.modello-table td:nth-child(7) {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

.set-table th:nth-child(4),
.set-table td:nth-child(4) {
    width: 130px;
}

.comp-table th,
.comp-table td {
    vertical-align: middle;
}

.comp-table th:nth-child(1),
.comp-table td:nth-child(1) {
    width: 140px;
    white-space: nowrap;
    font-weight: 700;
    color: #5a1a40;
}

.comp-table th:nth-child(2),
.comp-table td:nth-child(2) {
    width: 120px;
}

.comp-table th:nth-child(3),
.comp-table td:nth-child(3) {
    width: auto;
}

.comp-table th:nth-child(4),
.comp-table td:nth-child(4),
.comp-table th:nth-child(5),
.comp-table td:nth-child(5),
.comp-table th:nth-child(6),
.comp-table td:nth-child(6),
.comp-table th:nth-child(7),
.comp-table td:nth-child(7) {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

.comp-thumb {
    display: block;
    width: 96px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #f0c8d8;
    border-radius: 4px;
}

.add-status {
    display: grid;
    grid-template-columns: 140px 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    padding: 0 20px 22px;
}

.add-status .btn {
    min-width: 120px;
}

.status-table th,
.status-table td {
    vertical-align: middle;
}

.status-table th:nth-child(1),
.status-table td:nth-child(1) {
    width: 120px;
}

.status-table th:nth-child(2),
.status-table td:nth-child(2),
.status-table th:nth-child(3),
.status-table td:nth-child(3) {
    width: auto;
}

.status-table th:nth-child(4),
.status-table td:nth-child(4),
.status-table th:nth-child(5),
.status-table td:nth-child(5),
.status-table th:nth-child(6),
.status-table td:nth-child(6),
.status-table th:nth-child(7),
.status-table td:nth-child(7) {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .add-status { grid-template-columns: 1fr 1fr; }
    .add-status .btn { grid-column: 1 / -1; }
}

.codici-table th,
.codici-table td {
    vertical-align: middle;
}

.codici-table th:nth-child(1),
.codici-table td:nth-child(1) {
    width: auto;
    font-weight: 700;
    color: #5a1a40;
}

.codici-table th:nth-child(2),
.codici-table td:nth-child(2),
.codici-table th:nth-child(3),
.codici-table td:nth-child(3),
.codici-table th:nth-child(4),
.codici-table td:nth-child(4),
.codici-table th:nth-child(5),
.codici-table td:nth-child(5),
.codici-table th:nth-child(6),
.codici-table td:nth-child(6),
.codici-table th:nth-child(7),
.codici-table td:nth-child(7) {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

.pezzo-comp-table th,
.pezzo-comp-table td {
    vertical-align: middle;
}

.pezzo-comp-table th.check-col,
.pezzo-comp-table td.check-col {
    width: 36px;
    text-align: center;
    white-space: nowrap;
}

.pezzo-comp-table th:nth-child(2),
.pezzo-comp-table td:nth-child(2),
.pezzo-comp-table th:nth-child(3),
.pezzo-comp-table td:nth-child(3),
.pezzo-comp-table th:nth-child(4),
.pezzo-comp-table td:nth-child(4) {
    width: auto;
}

.pezzo-comp-table th:nth-child(5),
.pezzo-comp-table td:nth-child(5) {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

.comp-bulk-actions {
    display: flex;
    justify-content: flex-start;
    padding: 14px 16px 16px;
    border-top: 1px solid #f0dce4;
}

.comp-bulk-actions .btn {
    width: auto;
}

.pezzo-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.pezzo-search {
    display: flex;
    flex: 1 1 320px;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.pezzo-toolbar .input-wrapper {
    flex: 1;
}

.pezzo-search-btn {
    width: auto;
    padding: 0 22px;
    white-space: nowrap;
}

.pezzo-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0 22px;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 12px;
}

.pezzo-admin-table th,
.pezzo-admin-table td {
    vertical-align: middle;
}

.pezzo-admin-table th:nth-child(1),
.pezzo-admin-table td:nth-child(1) {
    width: 110px;
    white-space: nowrap;
    font-weight: 700;
    color: #5a1a40;
}

.pezzo-admin-table th:nth-child(2),
.pezzo-admin-table td:nth-child(2) {
    width: auto;
}

.pezzo-admin-table th:nth-child(3),
.pezzo-admin-table td:nth-child(3) {
    width: 100px;
    text-align: center;
}

.pezzo-admin-table th:nth-child(4),
.pezzo-admin-table td:nth-child(4) {
    width: 90px;
    text-align: center;
}

.pezzo-admin-table th:nth-child(5),
.pezzo-admin-table td:nth-child(5) {
    width: 130px;
    text-align: center;
}

.pezzo-admin-table th:nth-child(6),
.pezzo-admin-table td:nth-child(6),
.pezzo-admin-table th:nth-child(7),
.pezzo-admin-table td:nth-child(7) {
    width: 56px;
    text-align: center;
    white-space: nowrap;
}

.pezzo-empty {
    display: none;
    margin: 0;
    padding: 16px 20px 20px;
}

.pezzo-empty.is-visible {
    display: block;
}

.part-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    padding-top: 4px;
}

.part-fields .wide {
    grid-column: 1 / -1;
}

.photo-field .comp-thumb {
    margin-bottom: 0;
}

.photo-current {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.photo-current .icon-btn {
    flex-shrink: 0;
}

input[readonly] {
    background: #fdf7fa;
    color: #8b4a62;
}

.part-save {
    margin: 0 0 8px;
}

.part-save .btn {
    width: auto;
    min-width: 160px;
}

.part-fields input[type="file"] {
    height: auto;
    padding: 8px 10px;
}

.photo-hint {
    margin: 0 0 14px;
}

.form-error {
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid #f0b4c8;
    border-radius: 6px;
    background: #fde8f0;
    color: #d4006e;
    font-weight: 700;
}

@media (max-width: 600px) {
    .admin-search { grid-template-columns: 1fr; }
    .admin-search .btn { width: 100%; }
    .admin-grid { grid-template-columns: 1fr; }
    .add-marca,
    .add-modello,
    .add-status { grid-template-columns: 1fr; }
    .add-marca .btn,
    .add-modello .btn,
    .add-status .btn { width: 100%; }
    .pezzo-toolbar { flex-direction: column; align-items: stretch; }
    .pezzo-search { flex-direction: column; align-items: stretch; }
    .pezzo-search-btn,
    .pezzo-add { width: 100%; margin-left: 0; margin-right: 0; }
    .part-fields { grid-template-columns: 1fr; }
    .part-save .btn { width: 100%; }
}
