/* =========================
   STRONA PRODUKTÓW
========================= */

.products-page {
    background: #f8f7f4;
}

.nav-product-link {
    color: #1d1d1f !important;
    font-weight: 700;
}

.products-hero {
    min-height: 460px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    align-items: center;
    gap: 60px;
    padding: 76px 9%;
    background: #f1eee8;
}

.products-hero-content {
    max-width: 680px;
}

.products-hero h1 {
    max-width: 680px;
    margin: 14px 0 18px;
    color: #1d1d1f;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.products-hero p {
    max-width: 540px;
    color: #777;
    font-size: 16px;
    line-height: 1.7;
}

.products-hero-tag {
    justify-self: center;
    transform: rotate(5deg);
}

.products-catalog {
    max-width: 1320px;
    margin: 0 auto;
    padding: 82px 32px 96px;
}

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

.products-section-heading h2 {
    margin-top: 10px;
    font-size: 36px;
}

.products-section-heading p {
    max-width: 360px;
    color: #777;
    font-size: 14px;
}

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

.product-card {
    min-height: 420px;
    overflow: hidden;
    border: 1px solid #e7e3dc;
    border-radius: 22px;
    background: white;
    box-shadow: 0 14px 32px rgba(29, 29, 31, 0.05);
}

.product-card-featured {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr);
}

.product-visual {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    background: #e9e1d2;
    color: #1d1d1f;
}

.product-visual-tag {
    background: #e9e1d2;
}

.product-visual-tag .dog-tag {
    width: 190px;
    height: 235px;
    padding-top: 48px;
}

.product-visual-tag .tag-paw {
    font-size: 48px;
    margin-bottom: 8px;
}

.product-visual-tag .tag-name {
    font-size: 17px;
}

.product-visual-tag .tag-nfc {
    margin-top: 22px;
}

.product-card-content {
    display: flex;
    flex-direction: column;
    padding: 34px;
}

.product-card-label {
    color: #8b806d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.product-card h3 {
    margin: 12px 0 10px;
    font-size: 25px;
    line-height: 1.2;
}

.product-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.65;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 28px;
}

.product-price {
    color: #1d1d1f;
    font-size: 18px;
}

.product-card .button[disabled] {
    opacity: 0.55;
    cursor: default;
}

.product-card-empty {
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 34px;
    text-align: center;
}

.product-empty-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #e9e1d2;
    color: #81745f;
    font-size: 27px;
}

.product-card-empty h3 {
    margin-top: 0;
}

.products-cta {
    padding: 84px 24px;
    background: #1d1d1f;
    color: white;
    text-align: center;
}

.products-cta .cta-paw {
    display: block;
    margin-bottom: 12px;
    font-size: 32px;
}

.products-cta h2 {
    margin-bottom: 8px;
    font-size: 32px;
}

.products-cta p {
    margin-bottom: 25px;
    color: #c7c3bd;
}

.products-cta .button.primary {
    background: white;
    color: #1d1d1f;
}

@media (max-width: 760px) {
    .products-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 56px 24px 72px;
    }

    .products-hero h1 {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .products-hero-tag {
        transform: scale(0.9) rotate(5deg);
    }

    .products-catalog {
        padding: 58px 18px 70px;
    }

    .products-section-heading {
        display: block;
    }

    .products-section-heading h2 {
        font-size: 30px;
        margin-bottom: 12px;
    }

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

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

    .product-visual {
        min-height: 230px;
    }

    .product-card-content {
        padding: 26px;
    }

    .products-cta h2 {
        font-size: 27px;
    }
}
/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

/* ==========================================
   PANEL PRODUCENTA
========================================== */

.manufacturer-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #f1eee8 0%, #f8f7f4 42%, #f1eee8 100%);
}

.manufacturer-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 5vw;
    border-bottom: 1px solid rgba(216, 208, 194, 0.75);
    background: rgba(255, 255, 255, 0.72);
}

.manufacturer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.manufacturer-brand-paw {
    font-size: 22px;
}

.manufacturer-navbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.manufacturer-navbar-label {
    color: #8b806d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.manufacturer-logout-button {
    padding: 9px 13px;
    border: 1px solid #e5bcbc;
    border-radius: 9px;
    background: #fff8f8;
    color: #a85a5a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.manufacturer-logout-button:hover {
    background: #fbe5e5;
    border-color: #d99b9b;
}

.manufacturer-shell {
    width: 100%;
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 42px 5vw 64px;
}

.manufacturer-shell:has(.manufacturer-content:not([hidden])) {
    display: block;
    min-height: 0;
}

.manufacturer-shell > .manufacturer-card {
    width: min(100%, 520px);
}

.manufacturer-shell > .manufacturer-content {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.manufacturer-content .manufacturer-heading,
.manufacturer-content .manufacturer-tabs,
.manufacturer-content .manufacturer-views {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.manufacturer-content .manufacturer-heading {
    padding: 26px 0 8px;
}

.manufacturer-content .manufacturer-heading h1 {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
}

.manufacturer-content .manufacturer-tabs {
    margin-top: 30px;
}

.manufacturer-content .manufacturer-view {
    min-height: 420px;
    border: 1px solid #e7e3dc;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(29, 29, 31, 0.06);
}

.manufacturer-content .manufacturer-view h2 {
    font-size: 28px;
}

/* Ekran logowania zachowuje kompaktową kartę na środku strony. */
.manufacturer-gate-spacer {
    display: none;
}

/* Oryginalne tło strony pozostaje wspólne z resztą aplikacji. */
.manufacturer-page > .manufacturer-shell {
    background: transparent;
}

.manufacturer-shell {
    width: 100%;
}

.manufacturer-card {
    padding: 42px 34px;
    border: 1px solid #e7e3dc;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(29, 29, 31, 0.08);
    text-align: center;
}

.manufacturer-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e9e1d2;
    font-size: 30px;
}

.manufacturer-eyebrow {
    color: #8b806d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.manufacturer-card h1 {
    margin: 10px 0 8px;
    color: #1d1d1f;
    font-size: 34px;
}

.manufacturer-card > p {
    color: #777;
    font-size: 14px;
}

.manufacturer-login-form {
    display: grid;
    gap: 9px;
    margin-top: 26px;
    text-align: left;
}

.manufacturer-login-form label {
    color: #4e473d;
    font-size: 13px;
    font-weight: 700;
}

.manufacturer-login-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ddd9d0;
    border-radius: 11px;
    background: white;
    color: #1d1d1f;
    font: inherit;
}

.manufacturer-login-form input:focus {
    outline: 3px solid rgba(129, 116, 95, 0.2);
    border-color: #9c927f;
}

.manufacturer-login-form button {
    margin-top: 6px;
    padding: 13px 16px;
    border: 0;
    border-radius: 11px;
    background: #1d1d1f;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.manufacturer-login-form button:hover {
    background: #3c3c3f;
}

.manufacturer-message {
    min-height: 18px;
    margin: 3px 0 0;
    color: #a85a5a;
    font-size: 12px;
}

.manufacturer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
}

.manufacturer-heading h1 {
    margin-bottom: 0;
}

.manufacturer-heading-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e9e1d2;
    font-size: 20px;
}

.manufacturer-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 28px;
    padding: 5px;
    border: 1px solid #e7e3dc;
    border-radius: 13px;
    background: #f8f7f4;
}

.manufacturer-tab {
    min-width: 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #777;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.manufacturer-tab:hover {
    color: #1d1d1f;
}

.manufacturer-tab.active {
    background: #1d1d1f;
    color: white;
    box-shadow: 0 4px 10px rgba(29, 29, 31, 0.14);
}

.manufacturer-views {
    min-height: 280px;
    margin-top: 18px;
}

.manufacturer-view {
    min-height: 280px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 28px;
    border: 1px dashed #d8d0c2;
    border-radius: 16px;
    background: #f8f7f4;
    text-align: center;
}

.manufacturer-view[hidden] {
    display: none;
}

.manufacturer-data-view {
    display: block;
    text-align: left;
}

.manufacturer-content .manufacturer-data-view {
    display: block;
    min-height: 0;
}

.manufacturer-content .manufacturer-data-view[hidden] {
    display: none;
}

.manufacturer-view-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 24px 26px;
    border: 1px solid #e7e3dc;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(29, 29, 31, 0.04);
}

.manufacturer-view-header h2 {
    margin: 8px 0 7px;
    color: #1d1d1f;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.1;
}

.manufacturer-view-header p {
    max-width: 680px;
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.55;
}

.manufacturer-section-label {
    color: #8b806d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.manufacturer-stat-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.manufacturer-stat-card {
    display: grid;
    gap: 8px;
    min-height: 190px;
    padding: 22px;
    border: 1px solid #e7e3dc;
    border-radius: 16px;
    background: #fff;
}

.manufacturer-stat-card span,
.manufacturer-stat-card small {
    color: #777;
    font-size: 12px;
}

.manufacturer-stat-card strong {
    color: #1d1d1f;
    font-size: 44px;
    line-height: 1;
}

.manufacturer-table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #e7e3dc;
    border-radius: 16px;
    background: white;
}

.manufacturer-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    text-align: left;
}

.manufacturer-table th,
.manufacturer-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eeeae3;
    color: #4e4a44;
    font-size: 12px;
    vertical-align: middle;
}

.manufacturer-table-input {
    width: 150px;
    padding: 9px 10px;
    border: 1px solid #ddd9d0;
    border-radius: 8px;
    background: white;
    color: #333;
    font: inherit;
    font-size: 12px;
}

.manufacturer-link-cell {
    display: grid;
    gap: 7px;
    min-width: 360px;
}

.manufacturer-link-cell code {
    max-width: none;
    overflow: visible;
    color: #6e665a;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: normal;
}

.manufacturer-link-cell .manufacturer-copy-button {
    justify-self: start;
}

.manufacturer-qr-cell {
    display: grid;
    justify-items: start;
    gap: 7px;
    min-width: 90px;
}

.manufacturer-qr-cell svg {
    width: 72px;
    height: 72px;
    display: block;
}

.manufacturer-qr-unavailable {
    color: #a85a5a;
    font-size: 10px;
}

.manufacturer-table th {
    background: #f8f7f4;
    color: #777;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.manufacturer-empty-cell {
    padding: 38px !important;
    color: #999 !important;
    text-align: center;
}

.manufacturer-status-select,
.manufacturer-search,
.manufacturer-form-grid input,
.manufacturer-product-form input {
    padding: 10px 11px;
    border: 1px solid #ddd9d0;
    border-radius: 9px;
    background: white;
    color: #333;
    font: inherit;
    font-size: 12px;
}

.manufacturer-status-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 7px;
    background: #eef7ee;
    color: #4b8050;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.manufacturer-search {
    width: min(100%, 280px);
}

.manufacturer-note-cell {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: end;
    gap: 6px;
    width: 100%;
    min-width: 360px;
}

.manufacturer-tag-note {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 8px 9px;
    border: 1px solid #ddd9d0;
    border-radius: 8px;
    background: white;
    color: #333;
    font: inherit;
    font-size: 12px;
    resize: vertical;
}

.manufacturer-note-save-button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d8d0c2;
    border-radius: 7px;
    background: #f8f7f4;
    color: #4b8050;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.manufacturer-note-save-button:hover {
    background: #eef7ee;
    border-color: #a9c7ab;
}

.manufacturer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 24px;
}

.manufacturer-form-grid label {
    display: grid;
    gap: 7px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
}

.manufacturer-order-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #e7e3dc;
    border-radius: 16px;
    background: #f8f7f4;
}

.manufacturer-order-modal[hidden] {
    display: none;
}

.manufacturer-order-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 18px;
}

.manufacturer-order-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(29, 29, 31, 0.42);
}

.manufacturer-order-modal .manufacturer-order-form {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    background: white;
    box-shadow: 0 24px 70px rgba(29, 29, 31, 0.2);
}

.manufacturer-order-form-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.manufacturer-order-form-header h3 {
    color: #1d1d1f;
    font-size: 22px;
}

.manufacturer-modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1eee8;
    color: #444;
    font-size: 22px;
    cursor: pointer;
}

.manufacturer-order-form input,
.manufacturer-order-form select {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #ddd9d0;
    border-radius: 9px;
    background: white;
    color: #333;
    font: inherit;
    font-size: 12px;
}

.manufacturer-order-form button {
    align-self: stretch;
}

.manufacturer-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.manufacturer-delete-row-button {
    padding: 9px 12px;
    border: 1px solid #e5bcbc;
    border-radius: 9px;
    background: #fff8f8;
    color: #a85a5a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.manufacturer-delete-row-button:hover {
    background: #fbe5e5;
    border-color: #d99b9b;
}

.manufacturer-primary-button,
.manufacturer-secondary-button,
.manufacturer-row-button,
.manufacturer-copy-button {
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.manufacturer-primary-button {
    align-self: center;
    padding: 12px 17px;
    background: #1d1d1f;
    color: white;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(29, 29, 31, 0.12);
}

.manufacturer-primary-button:hover {
    background: #3c3c3f;
}

.manufacturer-secondary-button,
.manufacturer-row-button,
.manufacturer-copy-button {
    padding: 9px 12px;
    border: 1px solid #ddd9d0;
    background: #f8f7f4;
    color: #4e473d;
}

.manufacturer-row-button:hover,
.manufacturer-copy-button:hover,
.manufacturer-secondary-button:hover {
    background: #eeeae3;
}

.manufacturer-created-tag {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #d8d0c2;
    border-radius: 14px;
    background: #f8f7f4;
}

.manufacturer-created-tag > div {
    display: grid;
    gap: 5px;
}

.manufacturer-created-tag span {
    color: #888;
    font-size: 11px;
}

.manufacturer-created-tag strong,
.manufacturer-created-tag code {
    color: #1d1d1f;
    font-size: 13px;
}

.manufacturer-profile-link-row {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center;
}

.manufacturer-profile-link-row code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manufacturer-created-tag > .manufacturer-secondary-button {
    justify-self: start;
}

.manufacturer-product-form {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1.5fr auto;
    gap: 10px;
    margin-bottom: 22px;
}

.manufacturer-product-form[hidden] {
    display: none;
}

.manufacturer-product-editor {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid #e7e3dc;
    border-radius: 18px;
    background: #f8f7f4;
}

.manufacturer-product-editor[hidden] {
    display: none;
}

.manufacturer-product-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.manufacturer-product-editor-header h3 {
    margin: 7px 0 5px;
    color: #1d1d1f;
    font-size: 25px;
}

.manufacturer-product-editor-header p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.manufacturer-product-preview-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    min-height: 260px;
    overflow: hidden;
    border: 1px solid #e7e3dc;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 24px rgba(29, 29, 31, 0.05);
}

.manufacturer-product-preview-image {
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e9e1d2;
    color: #81745f;
    font-size: 48px;
}

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

.manufacturer-product-preview-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
}

.manufacturer-product-preview-content h3 {
    margin: 12px 0 10px;
    color: #1d1d1f;
    font-size: 28px;
    line-height: 1.2;
}

.manufacturer-product-preview-content p {
    margin-bottom: 24px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.manufacturer-product-preview-content .product-price {
    margin-top: auto;
    font-size: 20px;
}

.manufacturer-view-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #e9e1d2;
    color: #81745f;
    font-size: 24px;
}

.manufacturer-view h2 {
    margin-bottom: 8px;
    color: #1d1d1f;
    font-size: 20px;
}

.manufacturer-view p {
    max-width: 330px;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .manufacturer-navbar {
        min-height: 64px;
        padding: 0 18px;
    }

    .manufacturer-brand {
        font-size: 15px;
    }

    .manufacturer-navbar-actions {
        gap: 7px;
    }

    .manufacturer-navbar-label {
        display: none;
    }

    .manufacturer-logout-button {
        padding: 8px 10px;
        font-size: 11px;
    }

    .manufacturer-shell {
        min-height: calc(100vh - 64px);
        padding: 26px 18px 42px;
    }

    .manufacturer-card {
        padding: 34px 22px;
    }

    .manufacturer-shell > .manufacturer-content {
        min-height: calc(100vh - 116px);
    }

    .manufacturer-content .manufacturer-heading {
        padding-top: 8px;
    }

    .manufacturer-content .manufacturer-heading h1 {
        font-size: 38px;
    }

    .manufacturer-content .manufacturer-view {
        min-height: 390px;
    }

    .manufacturer-card h1 {
        font-size: 29px;
    }

    .manufacturer-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .manufacturer-tab {
        padding: 10px 4px;
        font-size: 11px;
    }

    .manufacturer-view,
    .manufacturer-views {
        min-height: 250px;
    }

    .manufacturer-view-header,
    .manufacturer-view-header-row {
        display: grid;
        gap: 16px;
        padding: 20px;
    }

    .manufacturer-search {
        width: 100%;
    }

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

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

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

    .manufacturer-order-form-header {
        grid-column: auto;
    }

    .manufacturer-product-editor {
        padding: 18px;
    }

    .manufacturer-product-editor-header {
        display: grid;
    }

    .manufacturer-product-preview-card {
        grid-template-columns: 1fr;
    }

    .manufacturer-product-preview-image {
        min-height: 190px;
    }

    .manufacturer-product-preview-content {
        padding: 24px;
    }

    .manufacturer-created-tag {
        grid-template-columns: 1fr;
    }

    .manufacturer-profile-link-row {
        grid-column: auto;
        grid-template-columns: 1fr !important;
    }

    .manufacturer-profile-link-row code {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f7f4;
    color: #1d1d1f;
    line-height: 1.6;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    height: 76px;

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

    padding: 0 7%;

    background: rgba(248, 247, 244, 0.95);

    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid #e7e5df;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 21px;
    font-weight: 700;
}

.logo-paw {
    font-size: 25px;
}

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

    gap: 32px;
}

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

    min-height: 40px;

    color: #555;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}

.navbar nav a:hover {
    color: #111;
}


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

.hero {
    min-height: 680px;

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

    padding: 80px 10%;

    gap: 80px;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;

    padding: 7px 14px;

    border-radius: 50px;

    background: #eae7df;

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

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 78px);

    line-height: 1.02;

    letter-spacing: -3px;

    margin-bottom: 28px;
}

.hero h1 span {
    color: #81745f;
}

.hero-description {
    max-width: 520px;

    font-size: 18px;

    color: #686868;

    margin-bottom: 35px;
}


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

.hero-buttons {
    display: flex;
    gap: 13px;
}

.button {
    display: inline-block;

    padding: 13px 22px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}

.button.primary {
    background: #1d1d1f;
    color: white;
}

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

.button.secondary {
    border: 1px solid #d8d5ce;
    color: #333;
    background: white;
}

.button.secondary:hover {
    background: #f0eee9;
}


/* =========================
   DOG TAG
========================= */

.tag-preview {
    width: 350px;
    height: 420px;

    position: relative;

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

.dog-tag {
    width: 230px;
    height: 285px;

    background: #e9e1d2;

    border-radius: 45% 45% 50% 50%;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 65px;

    transform: rotate(5deg);

    box-shadow:
        20px 25px 45px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.tag-hole {
    position: absolute;

    top: 22px;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: #f8f7f4;

    box-shadow: inset 0 0 0 5px #d5ccb9;
}

.tag-paw {
    font-size: 58px;

    margin-bottom: 15px;
}

.tag-name {
    font-size: 20px;
    font-weight: 800;

    letter-spacing: 3px;
}

.tag-nfc {
    margin-top: 30px;

    font-size: 11px;

    letter-spacing: 2px;

    color: #777;

    display: flex;
    gap: 6px;
    align-items: center;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 10%;

    background: white;
}

.section-header {
    max-width: 650px;

    margin: 0 auto 65px;

    text-align: center;
}

.section-label {
    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 700;

    color: #8b806d;
}

.section-header h2,
.security-card h2,
.cta h2 {
    font-size: 42px;

    line-height: 1.15;

    letter-spacing: -1.5px;

    margin-top: 12px;

    margin-bottom: 18px;
}

.section-header p {
    color: #777;

    font-size: 16px;
}


/* =========================
   STEPS
========================= */

.steps {
    max-width: 1000px;

    margin: auto;

    display: grid;

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

    gap: 30px;
}

.step {
    position: relative;

    padding: 35px;

    border: 1px solid #e7e5df;

    border-radius: 18px;

    background: #faf9f6;
}

.step-number {
    font-size: 12px;

    color: #999;

    margin-bottom: 25px;
}

.step-icon {
    font-size: 38px;

    margin-bottom: 20px;
}

.step h3 {
    font-size: 21px;

    margin-bottom: 10px;
}

.step p {
    color: #777;

    font-size: 14px;
}


/* =========================
   SECURITY
========================= */

.security-section {
    padding: 90px 10%;

    background: #f1eee8;
}

.security-card {
    max-width: 1000px;

    margin: auto;

    display: flex;

    gap: 35px;

    align-items: flex-start;

    padding: 55px;

    border-radius: 25px;

    background: #fff;
}

.security-icon {
    font-size: 45px;
}

.security-card p {
    max-width: 650px;

    color: #777;
}


/* =========================
   CTA
========================= */

.cta {
    text-align: center;

    padding: 120px 20px;
}

.cta-paw {
    display: block;

    font-size: 42px;

    margin-bottom: 20px;
}

.cta p {
    color: #777;

    font-size: 17px;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 45px 10%;

    background: #1d1d1f;

    color: white;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 30px;
}

.footer-content p {
    color: #aaa;

    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid #333;

    padding-top: 25px;

    color: #777;

    font-size: 12px;
}


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

@media (max-width: 800px) {

    .navbar {
        position: static;
        width: 100%;
        height: 76px;
        margin: 0;
        padding: 0 5%;

        background: white;
        border-radius: 0;
        border-bottom: 0;
    }

    .navbar nav {
        display: none;
    }

    .hero {
        flex-direction: column;

        padding: 70px 7%;

        text-align: center;

        gap: 50px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;

        flex-wrap: wrap;
    }

    .tag-preview {
        transform: scale(0.85);
    }

    .section {
        padding: 80px 7%;
    }

    .section-header h2,
    .security-card h2,
    .cta h2 {
        font-size: 34px;
    }

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

    .security-card {
        flex-direction: column;

        padding: 35px;
    }

    .footer-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }
}


/* =========================
   DOG PROFILE
========================= */

.profile-page {
    min-height: calc(100vh - 76px);

    padding: 70px 20px;

    display: flex;
    justify-content: center;

    background: #f1eee8;
}

.profile-card {
    width: 100%;
    max-width: 520px;

    background: white;

    border-radius: 28px;

    padding: 35px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);

    text-align: center;
}


/* STATUS */

.profile-status {
    display: inline-block;

    padding: 8px 14px;

    border-radius: 50px;

    background: #eef7ee;

    color: #4b8050;

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 25px;
}


/* DOG PHOTO */

.dog-photo-stage {
    position: relative;
    width: 270px;
    height: 180px;
    margin: 0 auto 25px;
}

.dog-photo {
    width: 150px;
    height: 150px;

    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    margin: 0;
    transform: translateX(-50%);

    border-radius: 50%;

    background: #e9e1d2;

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

    font-size: 75px;

}

.dog-photo .dog-profile-image {
    cursor: zoom-in;
}

.dog-photo-gallery {
    position: absolute;
    top: 34px;
    left: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 0 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dog-photo-gallery[hidden] {
    display: none;
}

.dog-photo-gallery-item {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    padding: 0;
    overflow: hidden;
    border: 3px solid white;
    border-radius: 50%;
    background: #e9e1d2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    cursor: zoom-in;
}

.dog-photo-gallery-item:hover {
    transform: translateY(-2px);
}

.dog-photo-gallery-item .dog-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-card h1 {
    font-size: 42px;

    letter-spacing: -1px;

    margin-bottom: 5px;
}

.dog-description {
    color: #777;

    margin-bottom: 30px;
}


/* INFO BOX */

.info-box {
    background: #f8f7f4;

    border-radius: 18px;

    padding: 20px;

    text-align: left;

    margin-bottom: 30px;
}

.info-item {
    display: flex;

    align-items: center;

    gap: 15px;
}

.info-item + .info-item {
    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #e4e1da;
}

.info-icon {
    width: 42px;
    height: 42px;

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

    background: white;

    border-radius: 12px;

    font-size: 20px;
}

.info-label {
    display: block;

    color: #999;

    font-size: 11px;

    margin-bottom: 2px;
}

.info-item strong {
    font-size: 15px;
}


/* CONTACT */

.contact-section {
    padding-top: 5px;
}

.contact-section h2 {
    font-size: 22px;

    margin-bottom: 5px;
}

.contact-section p {
    color: #777;

    font-size: 14px;

    margin-bottom: 20px;
}


/* CALL BUTTON */

.call-button {
    display: block;

    width: 100%;

    padding: 15px;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    border: none;

    cursor: pointer;

    transition: 0.2s;
}

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

.owner-phone-list {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    align-items: center;
    justify-content: center;
    place-items: center;
    padding: 12px;
    background: rgba(29, 29, 31, 0.38);
}

.owner-phone-list[hidden] {
    display: none;
}

.owner-phone-modal {
    position: relative;
    width: min(480px, calc(100vw - 24px));
    max-width: 100%;
    min-width: 0;
    padding: 28px 22px 22px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.owner-phone-modal h3 {
    max-width: calc(100% - 30px);
    margin-bottom: 16px;
    font-size: 20px;
    overflow-wrap: break-word;
}

.owner-phone-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1eee8;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.owner-phone-options {
    display: grid;
    gap: 8px;
}

.owner-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid #e2ded6;
    border-radius: 10px;
    background: #f8f7f4;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.owner-phone-link:hover {
    background: #f1eee8;
}

.phone-modal-open {
    overflow: hidden;
}

.location-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgba(29, 29, 31, 0.42);
}

.location-consent-modal[hidden] {
    display: none;
}

.location-consent-card {
    width: min(480px, calc(100vw - 24px));
    padding: 28px 22px 22px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.location-consent-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.location-consent-card p {
    margin-bottom: 22px;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

.location-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.location-consent-actions button {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.location-consent-cancel {
    border: 1px solid #ddd9d0;
    background: white;
    color: #333;
}

.location-consent-confirm {
    border: 1px solid #1d1d1f;
    background: #1d1d1f;
    color: white;
}

.location-consent-cancel:hover {
    background: #f5f3ef;
}

.location-consent-confirm:hover {
    opacity: 0.9;
}

.location-consent-open {
    overflow: hidden;
}


/* LOCATION BUTTON */

.location-button {
    width: 100%;

    margin-top: 10px;

    padding: 14px;

    border-radius: 12px;

    background: white;

    border: 1px solid #ddd9d0;

    color: #333;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.location-button:hover {
    background: #f5f3ef;
}


/* NFC INFO */

.nfc-info {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid #eee;

    text-align: left;
}

.nfc-info span {
    font-size: 24px;
}

.nfc-info p {
    color: #999;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================
   ACTIVATION PAGE
========================= */

.activation-page {
    min-height: calc(100vh - 76px);

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

    padding: 60px 20px;

    background: #f1eee8;
}

.activation-card {
    width: 100%;
    max-width: 480px;

    padding: 45px;

    background: white;

    border-radius: 28px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.activation-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 25px;

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

    border-radius: 50%;

    background: #e9e1d2;

    font-size: 38px;
}

.activation-card h1 {
    font-size: 36px;

    line-height: 1.15;

    letter-spacing: -1px;

    margin-top: 10px;

    margin-bottom: 15px;
}

.activation-description {
    color: #777;

    font-size: 14px;

    margin-bottom: 30px;
}

#activationForm {
    text-align: left;
}

#activationForm label {
    display: block;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 8px;
}

#activationCode {
    width: 100%;

    padding: 15px;

    border: 1px solid #ddd9d0;

    border-radius: 12px;

    font-size: 18px;

    letter-spacing: 2px;

    text-align: center;

    outline: none;
}

#activationCode:focus {
    border-color: #9c927f;
}

.activation-button {
    width: 100%;

    margin-top: 15px;

    padding: 15px;

    border: none;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;
}

.activation-message {
    margin-top: 20px;

    font-size: 14px;
}

.activation-message.error {
    color: #c04b4b;
}

.activation-message.loading {
    color: #888;
}


/* =========================
   SETUP PAGE
========================= */

.setup-page {
    min-height: calc(100vh - 76px);

    padding: 60px 20px;

    display: flex;
    justify-content: center;

    background: #f1eee8;
}

.setup-card {
    width: 100%;
    max-width: 620px;

    background: white;

    padding: 45px;

    border-radius: 28px;

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

.setup-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

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

    border-radius: 50%;

    background: #e9e1d2;

    font-size: 38px;
}

.setup-card > .section-label {
    display: block;
    text-align: center;
}

.setup-card h1 {
    text-align: center;

    font-size: 38px;

    line-height: 1.15;

    margin-top: 10px;
    margin-bottom: 15px;
}

.setup-description {
    text-align: center;

    color: #777;

    font-size: 14px;

    margin-bottom: 40px;
}

.form-section {
    padding: 25px 0;

    border-top: 1px solid #eee;
}

.form-section h2 {
    font-size: 20px;

    margin-bottom: 22px;
}

.form-section label {
    display: block;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 7px;
}

.form-section input,
.form-section textarea {
    width: 100%;

    padding: 14px;

    margin-bottom: 18px;

    border: 1px solid #ddd9d0;

    border-radius: 11px;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    resize: vertical;
}

.form-section input:focus,
.form-section textarea:focus {
    border-color: #9c927f;
}

.photo-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    padding: 0;
    margin-bottom: 18px;

    border: 0;
    background: transparent;
}

.setup-photo-carousel {
    position: relative;
    width: min(100%, 720px);
}

.setup-photo-carousel .photo-preview {
    width: 100%;
}

.setup-photo-carousel .photo-carousel-arrow {
    z-index: 4;
}

.photo-preview {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 120px;
    height: 120px;

    border-radius: 20px;
    background: linear-gradient(135deg, #f1ebdf 0%, #e8e0d1 100%);

    font-size: 42px;
    line-height: 1;
    color: #1d1d1f;
    overflow: hidden;
}

.photo-preview.photo-gallery-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 14px;
    border: 0;
    box-shadow: none;
    background: white;
    padding-left: 0;
    padding-right: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.18) 10%,
        black 25%,
        black 75%,
        rgba(0, 0, 0, 0.18) 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.18) 10%,
        black 25%,
        black 75%,
        rgba(0, 0, 0, 0.18) 90%,
        transparent 100%
    );
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.photo-upload-box .photo-preview.photo-gallery-preview {
    width: min(100%, 720px);
    height: 230px;
}

.photo-preview.photo-gallery-preview::-webkit-scrollbar {
    display: none;
}

.photo-gallery-item {
    position: relative;
    flex: 0 0 calc(100% - 35px);
    width: calc(100% - 35px);
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    padding: 5px;
    border: 1px solid #e7e3dc;
    border-radius: 16px;
    background: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    cursor: grab;
}

.photo-gallery-item:active {
    cursor: grabbing;
}

.photo-gallery-spacer {
    flex: 0 0 calc((100% - (100% - 35px)) / 2);
    width: calc((100% - (100% - 35px)) / 2);
    height: 1px;
    pointer-events: none;
}

.photo-preview.photo-gallery-preview .photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: white;
}

.photo-gallery-remove {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 29, 31, 0.78);
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.photo-gallery-remove:hover {
    background: #a85a5a;
}

.photo-gallery-main-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(29, 29, 31, 0.78);
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.photo-gallery-controls {
    position: absolute;
    right: 7px;
    bottom: 7px;
    display: flex;
    gap: 4px;
}

.photo-gallery-move {
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 50%;
    background: rgba(29, 29, 31, 0.78);
    color: white;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.photo-gallery-move:disabled {
    opacity: 0.35;
    cursor: default;
}

.photo-gallery-main-button {
    font-size: 17px;
}

.photo-carousel {
    position: relative;
    width: 280px;
    height: 280px;
    max-width: 100%;
}

.photo-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 26px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: rgba(29, 29, 31, 0.38);
    color: rgba(255, 255, 255, 0.82);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.72;
    transform: translateY(-50%);
}

.photo-carousel-arrow.previous {
    left: -14px;
}

.photo-carousel-arrow.next {
    right: -14px;
}

.photo-carousel-arrow:hover {
    background: rgba(29, 29, 31, 0.78);
    opacity: 1;
}

.photo-carousel-arrow[hidden] {
    display: none;
}

@media (max-width: 600px) {

    .photo-upload-box .photo-preview.photo-gallery-preview {
        height: 190px;
    }

    .photo-preview.photo-gallery-preview {
        width: 100%;
        height: 100%;
    }

    .photo-gallery-item {
        flex-basis: calc(100% - 95px);
        width: calc(100% - 95px);
    }

    .photo-gallery-spacer {
        flex-basis: 47.5px;
        width: 47.5px;
    }

    .photo-carousel {
        width: 100%;
        height: 190px;
    }

}

@media (min-width: 601px) {

    .photo-carousel {
        width: 1100px;
        height: 230px;
    }

    .photo-preview.photo-gallery-preview {
        scroll-snap-type: none;
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.18) 12%,
            black 22%,
            black 78%,
            rgba(0, 0, 0, 0.18) 88%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.18) 12%,
            black 22%,
            black 78%,
            rgba(0, 0, 0, 0.18) 88%,
            transparent 100%
        );
        padding-left: 0;
        padding-right: 0;
    }

    .photo-gallery-item {
        flex-basis: 200px;
        width: 200px;
        height: 220px;
        scroll-snap-align: start;
    }

    .photo-gallery-spacer {
        flex-basis: 450px;
        width: 450px;
    }

}

.photo-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    border-radius: 12px;
    border: 1px solid #ddd9d0;
    background: white;

    color: #1d1d1f;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-upload-label:hover {
    background: #f4efe7;
}

#dogPhotoFile {
    display: none;
}

.photo-upload-info {
    color: #7b7b7b;
    font-size: 12px;
    text-align: center;
}

.file-upload-name {
    display: inline-block;
    color: #525252;
    font-size: 12px;
    text-align: center;
    min-height: 18px;
}

.form-section small {
    display: block;

    color: #999;

    font-size: 11px;

    margin-top: -10px;

    margin-bottom: 5px;
}

.checkbox-row {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin: 25px 0;

    font-size: 12px;

    color: #666;

    cursor: pointer;
}

.checkbox-row input {
    margin-top: 3px;
}

.setup-button {
    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;
}

.setup-message {
    text-align: center;

    margin-top: 20px;

    font-size: 14px;
}

.setup-message.error {
    color: #c04b4b;
}

.setup-message.loading {
    color: #888;
}


/* =========================
   PROFILE IMAGE
========================= */

.dog-profile-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 70px;
    background: rgba(29, 29, 31, 0.9);
}

.lightbox-image {
    max-width: min(900px, 90vw);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-navigation {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.lightbox-close {
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.lightbox-navigation {
    top: 50%;
    width: 44px;
    height: 54px;
    border-radius: 10px;
    transform: translateY(-50%);
    font-size: 38px;
    line-height: 1;
}

.lightbox-navigation.previous {
    left: 18px;
}

.lightbox-navigation.next {
    right: 18px;
}

.lightbox-close:hover,
.lightbox-navigation:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-open {
    overflow: hidden;
}


/* =========================
   SUCCESS PAGE
========================= */

.success-page {
    min-height: calc(100vh - 76px);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 60px 20px;

    background: #f1eee8;
}

.success-card {
    width: 100%;

    max-width: 520px;

    padding: 50px 40px;

    background: white;

    border-radius: 28px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.success-icon {
    width: 80px;

    height: 80px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e8f3e8;

    color: #4f8b55;

    font-size: 42px;

    font-weight: bold;
}

.success-card h1 {
    font-size: 36px;

    line-height: 1.15;

    letter-spacing: -1px;

    margin-top: 10px;

    margin-bottom: 15px;
}

.success-card > p {
    color: #777;

    font-size: 15px;

    margin-bottom: 30px;
}


/* =========================
   MANAGEMENT CODE
========================= */

.management-box {
    padding: 22px;

    margin-bottom: 20px;

    border-radius: 18px;

    background: #f8f7f4;

    border: 1px solid #e7e3da;
}

.management-box span {
    display: block;

    color: #8b806d;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.management-box strong {
    display: block;

    font-size: 30px;

    letter-spacing: 4px;

    margin-bottom: 12px;
}

.management-box small {
    display: block;

    color: #999;

    font-size: 11px;

    line-height: 1.5;
}


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

.success-button {
    display: block;

    width: 100%;

    padding: 15px;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    margin-bottom: 10px;
}

.copy-button {
    width: 100%;

    padding: 14px;

    border-radius: 12px;

    border: 1px solid #ddd9d0;

    background: white;

    color: #333;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;
}

.copy-button:hover {
    background: #f5f3ef;
}


/* =========================
   MANAGEMENT LOGIN
========================= */

.manage-login-page {
    min-height: calc(100vh - 76px);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 60px 20px;

    background: #f1eee8;
}

.manage-login-card {
    width: 100%;

    max-width: 480px;

    padding: 45px;

    background: white;

    border-radius: 28px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.manage-icon {
    width: 75px;

    height: 75px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e9e1d2;

    font-size: 35px;
}

.manage-login-card h1 {
    font-size: 36px;

    line-height: 1.15;

    letter-spacing: -1px;

    margin-top: 10px;

    margin-bottom: 15px;
}

.manage-login-card > p {
    color: #777;

    font-size: 14px;

    margin-bottom: 30px;
}

#manageLoginForm {
    text-align: left;
}

#manageLoginForm label {
    display: block;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 8px;
}

#managementCode {
    width: 100%;

    padding: 15px;

    border: 1px solid #ddd9d0;

    border-radius: 12px;

    outline: none;

    font-size: 18px;

    letter-spacing: 3px;

    text-align: center;

    text-transform: uppercase;
}

#managementCode:focus {
    border-color: #9c927f;
}

.manage-login-button {
    width: 100%;

    margin-top: 15px;

    padding: 15px;

    border: none;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;
}

.manage-login-message {
    margin-top: 20px;

    font-size: 14px;
}

.manage-login-message.error {
    color: #c04b4b;
}

.manage-login-message.loading {
    color: #888;
}

.manage-help {
    display: flex;

    gap: 10px;

    align-items: flex-start;

    margin-top: 30px;

    padding: 18px;

    background: #f8f7f4;

    border-radius: 15px;

    text-align: left;
}

.manage-help span {
    font-size: 20px;
}

.manage-help p {
    margin: 0;

    color: #888;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-page {
    min-height: calc(100vh - 76px);

    padding: 60px 20px;

    background: #f1eee8;
}

.dashboard-container {
    width: 100%;

    max-width: 720px;

    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header h1 {
    font-size: 40px;

    line-height: 1.15;

    letter-spacing: -1px;

    margin-top: 8px;

    margin-bottom: 10px;
}

.dashboard-header p {
    color: #777;

    font-size: 14px;
}


/* STATUS */

.dashboard-status {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px 20px;

    margin-bottom: 25px;

    background: white;

    border-radius: 16px;

    border: 1px solid #e7e3dc;
}

.status-dot {
    width: 11px;

    height: 11px;

    border-radius: 50%;

    background: #5fb467;
}

.dashboard-status strong {
    display: block;

    font-size: 14px;
}

.dashboard-status span {
    display: block;

    color: #999;

    font-size: 11px;

    margin-top: 2px;
}


/* FORM */

.dashboard-section {
    background: white;

    padding: 30px;

    margin-bottom: 20px;

    border-radius: 20px;

    border: 1px solid #e7e3dc;
}

.dashboard-section h2 {
    font-size: 21px;

    margin-bottom: 25px;
}

.dashboard-section label {
    display: block;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 7px;
}

.dashboard-section input,
.dashboard-section textarea {
    width: 100%;

    padding: 14px;

    margin-bottom: 20px;

    border: 1px solid #ddd9d0;

    border-radius: 11px;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    resize: vertical;
}

.dashboard-section input:focus,
.dashboard-section textarea:focus {
    border-color: #9c927f;
}


/* SAVE */

.dashboard-save-button {
    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;
}

.dashboard-message {
    text-align: center;

    margin: 18px 0;

    font-size: 14px;
}

.dashboard-message.error {
    color: #c04b4b;
}

.dashboard-message.loading {
    color: #888;
}

.dashboard-message.success {
    color: #4f8b55;
}


/* PREVIEW */

.dashboard-preview-button {
    display: block;

    width: 100%;

    padding: 15px;

    margin-top: 10px;

    border: 1px solid #ddd9d0;

    border-radius: 12px;

    background: white;

    color: #333;

    text-decoration: none;

    text-align: center;

    font-size: 14px;

    font-weight: 600;
}


/* LOGOUT */

.logout-button {
    border: 1px solid #ddd9d0;

    background: white;

    padding: 9px 15px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;
}

.logout-button:hover {
    background: #f3f1ed;
}


/* =========================
   PAWTAG LOGO LINK
========================= */

.logo {
    color: inherit;
    text-decoration: none;
}

.logo-paw {
    width: 34px;
    height: 34px;
    object-fit: contain;
    vertical-align: middle;
}


/* =========================
   LOGIN BUTTON IN NAVBAR
========================= */

.navbar nav .nav-login {
    min-height: auto;

    padding: 10px 16px;

    border-radius: 10px;

    background: #1d1d1f;

    color: white;

    font-weight: 600;
}

.navbar nav .nav-login:hover {
    color: white;

    background: #333;

    transform: translateY(-1px);
}


/* =========================
   FOOTER LOGO
========================= */

.footer-logo {
    color: white;
    text-decoration: none;
}


/* =========================
   CTA LOGIN BUTTON
========================= */

.cta .button {
    margin-top: 25px;
}


/* =========================
   PROFILE LOGIN BUTTON
========================= */

.profile-login-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 18px;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;

}


.profile-login-button:hover {

    transform:
        translateY(-1px);

    opacity: 0.9;

}


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

@media (
    max-width: 600px
) {

    .profile-login-button {

        padding:
            9px 14px;

        font-size:
            12px;

    }

}

/* =========================
   OSTATNIA LOKALIZACJA
========================= */

.last-location-section {
    background: white;

    padding: 30px;

    margin-bottom: 20px;

    border-radius: 20px;

    border: 1px solid #e7e3dc;
}

.last-location-section h2 {
    font-size: 21px;

    margin-bottom: 6px;
}

.last-location-description {
    color: #999;

    font-size: 12px;

    margin-bottom: 20px;
}

.last-location-content {
    min-height: 70px;
}

.last-location-empty {
    padding: 20px;

    border-radius: 14px;

    background: #f8f7f4;

    color: #999;

    font-size: 13px;

    text-align: center;
}

.last-location-card {
    padding: 20px;

    border-radius: 16px;

    background: #f8f7f4;
}

.last-location-date {
    display: block;

    margin-bottom: 12px;

    color: #777;

    font-size: 12px;
}

.last-location-link {
    display: block;

    width: 100%;

    padding: 14px;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    text-align: center;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;
}

.last-location-link:hover {
    transform: translateY(-1px);
}

/* ==========================================
   PAWTAG — PANEL WŁAŚCICIELA
========================================== */

html {
    scroll-behavior: smooth;
}


/* ==========================================
   STRONA DASHBOARDU
========================================== */

.dashboard-page {
    min-height: calc(100vh - 76px);

    padding: 55px 32px 70px;

    background: #f1eee8;
}


/* ==========================================
   GŁÓWNY KONTENER
========================================== */

.dashboard-container {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;
}


/* ==========================================
   NAGŁÓWEK
========================================== */

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header h1 {
    font-size: 42px;

    line-height: 1.15;

    letter-spacing: -1.2px;

    margin-top: 8px;

    margin-bottom: 10px;
}

.dashboard-header p {
    color: #777;

    font-size: 14px;
}


/* ==========================================
   STATUS ZAWIESZKI
========================================== */

.dashboard-status {
    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 18px 20px;

    margin-bottom: 25px;

    background: white;

    border-radius: 16px;

    border: 1px solid #e7e3dc;
}

.status-dot {
    width: 11px;

    height: 11px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #5fb467;
}

.dashboard-status strong {
    display: block;

    font-size: 14px;
}

.dashboard-status span {
    display: block;

    color: #999;

    font-size: 11px;

    margin-top: 2px;
}


/* ==========================================
   GŁÓWNY UKŁAD
========================================== */

.dashboard-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        250px
        minmax(0, 1fr);

    gap: 32px;

    align-items: start;
}


/* ==========================================
   ZAWARTOŚĆ PO PRAWEJ
========================================== */

.dashboard-main {
    min-width: 0;
}


/* ==========================================
   BOCZNA NAWIGACJA
========================================== */

.dashboard-sidebar {
    position: sticky;

    top: 96px;

    align-self: start;

    width: 100%;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


.dashboard-sidebar-nav {
    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 16px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #e7e3dc;

    border-radius: 22px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.04);
}


.dashboard-sidebar-title {
    padding:
        7px
        10px
        15px;

    margin-bottom: 4px;

    color: #999;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.12em;
}


/* ==========================================
   LINKI W NAWIGACJI
========================================== */

.dashboard-sidebar-link {
    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 50px;

    padding:
        0
        16px;

    overflow: hidden;

    border-radius: 14px;

    color: #666;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Tło animowane */

.dashboard-sidebar-link::before {
    content: "";

    position: absolute;

    inset: 0;

    background: #f3f1ec;

    opacity: 0;

    transform: scale(0.94);

    border-radius: inherit;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.dashboard-sidebar-link span,
.dashboard-sidebar-link:not(:has(span)) {
    position: relative;

    z-index: 1;
}


/* Hover */

.dashboard-sidebar-link:hover {
    color: #1d1d1f;

    transform: translateX(4px);
}

.dashboard-sidebar-link:hover::before {
    opacity: 1;

    transform: scale(1);
}


/* Aktywna zakładka */

.dashboard-sidebar-link.active {
    color: white;

    background: #1d1d1f;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.14);

    transform: translateX(5px);
}

.dashboard-sidebar-link.active::before {
    opacity: 0;
}


/* ==========================================
   SEKCJE
========================================== */

.dashboard-anchor-section,
.dashboard-section,
.location-section,
.notifications-section,
.scan-stats {
    scroll-margin-top: 105px;
}


/* Animacja pojawiania się kafelków */

.dashboard-section,
.location-section,
.notifications-section,
.scan-stats {
    animation:
        dashboardCardAppear
        0.45s
        ease
        both;
}


@keyframes dashboardCardAppear {
    from {
        opacity: 0;

        transform:
            translateY(16px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* ==========================================
   ZWYKŁE SEKCJE
========================================== */

.dashboard-section {
    width: 100%;

    background: white;

    padding: 32px;

    margin-bottom: 22px;

    border-radius: 22px;

    border: 1px solid #e7e3dc;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.dashboard-section:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.035);
}


.dashboard-section h2 {
    font-size: 22px;

    margin-bottom: 25px;
}


.dashboard-section label {
    display: block;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 7px;
}


.dashboard-section input,
.dashboard-section textarea {
    width: 100%;

    padding: 14px;

    margin-bottom: 20px;

    border: 1px solid #ddd9d0;

    border-radius: 11px;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    resize: vertical;

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


.dashboard-section input:focus,
.dashboard-section textarea:focus {
    border-color: #9c927f;

    box-shadow:
        0 0 0 3px
        rgba(156, 146, 127, 0.1);
}


/* ==========================================
   ZAPIS
========================================== */

.dashboard-save-button {
    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 12px;

    background: #1d1d1f;

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.dashboard-save-button:hover {
    transform: translateY(-2px);

    opacity: 0.94;
}


.dashboard-message {
    text-align: center;

    margin: 18px 0;

    font-size: 14px;
}

.dashboard-message.error {
    color: #c04b4b;
}

.dashboard-message.loading {
    color: #888;
}

.dashboard-message.success {
    color: #4f8b55;
}


/* ==========================================
   PODGLĄD
========================================== */

.dashboard-preview-button {
    display: block;

    width: 100%;

    padding: 15px;

    margin-top: 10px;

    border: 1px solid #ddd9d0;

    border-radius: 12px;

    background: white;

    color: #333;

    text-decoration: none;

    text-align: center;

    font-size: 14px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.dashboard-preview-button:hover {
    background: #f5f3ef;

    transform: translateY(-1px);
}


/* ==========================================
   LOKALIZACJA
========================================== */

.location-section {
    width: 100%;

    background: white;

    padding: 32px;

    margin-bottom: 22px;

    border: 1px solid #e7e3dc;

    border-radius: 22px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.location-section:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.035);
}


.location-title-wrapper {
    display: flex;

    align-items: flex-start;

    gap: 14px;
}


.location-icon {
    width: 44px;

    height: 44px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background: #f1eee8;

    font-size: 20px;
}


.location-section h2 {
    margin: 0;

    font-size: 22px;
}


.location-section p {
    margin:
        5px
        0
        0;

    color: #999;

    font-size: 12px;
}


.location-content {
    margin-top: 24px;

    padding: 20px;

    border-radius: 16px;

    background: #f8f7f4;

    color: #777;

    font-size: 13px;
}


.location-coordinates {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.location-coordinates-main {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


.location-coordinates-main strong {
    color: #333;

    font-size: 14px;
}


.location-coordinates-main span {
    color: #777;

    font-size: 13px;
}


.location-coordinates-main small {
    color: #999;

    font-size: 11px;
}


.location-map-button {
    flex-shrink: 0;

    padding:
        12px
        17px;

    border-radius: 11px;

    background: #1d1d1f;

    color: white;

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.location-map-button:hover {
    transform: translateY(-2px);

    opacity: 0.94;
}


/* ==========================================
   POWIADOMIENIA
========================================== */

.notifications-section {
    width: 100%;

    background: white;

    padding: 32px;

    margin-bottom: 22px;

    border-radius: 22px;

    border: 1px solid #e7e3dc;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.notifications-section:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, 0.035);
}


.notifications-list {
    display: flex;

    flex-direction: column;
}


/* ZWINIĘTE — POKAZUJEMY TYLKO 2 */

.notifications-section.collapsed
.notification-item:nth-child(n + 3) {
    display: none;
}


/* ROZWINIĘTE */

.notifications-section.expanded
.notification-item {
    display: flex;

    animation:
        notificationAppear
        0.3s
        ease
        both;
}


@keyframes notificationAppear {
    from {
        opacity: 0;

        transform:
            translateY(-8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* ==========================================
   PRZYCISK ROZWIJANIA POWIADOMIEŃ
========================================== */

.notifications-toggle-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 20px;

    padding:
        9px
        14px;

    border: 1px solid #ddd9d0;

    border-radius: 10px;

    background: #f8f7f4;

    color: #555;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.notifications-toggle-button:hover {
    background: #f1eee8;

    border-color: #ccc6bb;

    transform: translateX(2px);
}


.notifications-toggle-button.hidden {
    display: none;
}


/* Strzałka */

.notifications-toggle-button .toggle-arrow {
    display: inline-block;

    transition:
        transform 0.3s ease;
}


.notifications-section.expanded
.toggle-arrow {
    transform:
        rotate(180deg);
}


/* ==========================================
   LICZNIK POWIADOMIEŃ
========================================== */

#notificationCount {
    flex-shrink: 0;
}


/* ==========================================
   STATYSTYKI
========================================== */

.scan-stats {
    display: grid;

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

    gap: 20px;

    margin-bottom: 22px;
}


/* ==========================================
   WYLOGOWANIE
========================================== */

.logout-button {
    border: 1px solid #ddd9d0;

    background: white;

    padding: 9px 15px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.logout-button:hover {
    background: #f3f1ed;

    transform: translateY(-1px);
}


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

@media (max-width: 1050px) {

    .dashboard-page {
        padding:
            45px
            24px
            60px;
    }

    .dashboard-layout {
        grid-template-columns:
            220px
            minmax(0, 1fr);

        gap: 24px;
    }

}


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

@media (max-width: 850px) {

    .dashboard-page {
        padding:
            35px
            18px
            50px;
    }


    .dashboard-layout {
        display: block;
    }


    .dashboard-sidebar {
        position: static;

        width: 100%;

        margin-bottom: 25px;
    }


    .dashboard-sidebar-nav {
        flex-direction: row;

        overflow-x: auto;

        padding: 10px;

        border-radius: 18px;

        scrollbar-width: none;
    }


    .dashboard-sidebar-nav::-webkit-scrollbar {
        display: none;
    }


    .dashboard-sidebar-title {
        display: none;
    }


    .dashboard-sidebar-link {
        flex-shrink: 0;

        min-height: 44px;

        padding:
            0
            14px;
    }


    .dashboard-sidebar-link:hover {
        transform: none;
    }


    .dashboard-sidebar-link.active {
        transform: none;
    }

}


/* ==========================================
   TELEFON
========================================== */

@media (max-width: 550px) {

    .dashboard-page {
        padding:
            28px
            14px
            40px;
    }


    .dashboard-header h1 {
        font-size: 34px;
    }


    .dashboard-section,
    .location-section,
    .notifications-section {
        padding: 22px;

        border-radius: 18px;
    }


    .dashboard-status {
        padding: 16px;
    }


    .location-coordinates {
        flex-direction: column;

        align-items: stretch;
    }


    .location-map-button {
        width: 100%;

        text-align: center;
    }


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


    .dashboard-sidebar-nav {
        border-radius: 15px;
    }


    .dashboard-sidebar-link {
        font-size: 12px;

        min-height: 42px;
    }


    .notifications-toggle-button {
        margin-top: 16px;
    }

}

/* ==========================================
   AKTYWNA NAWIGACJA PODCZAS PRZEWIJANIA
========================================== */

.dashboard-sidebar-link {
    position: relative;

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


/* Delikatny wskaźnik po lewej */

.dashboard-sidebar-link::before {
    content: "";

    position: absolute;

    left: 0;

    top: 50%;

    width: 4px;
    height: 0;

    border-radius: 0 6px 6px 0;

    background: #1d1d1f;

    transform: translateY(-50%);

    transition:
        height 0.35s ease,
        opacity 0.35s ease;

    opacity: 0;
}


/* Aktywny kafelek */

.dashboard-sidebar-link.active {
    background: #1d1d1f;

    color: white;

    transform: translateX(4px);

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.14);
}


/* Animowany pasek */

.dashboard-sidebar-link.active::before {
    height: 26px;

    opacity: 1;
}


/* Hover */

.dashboard-sidebar-link:hover:not(.active) {
    background: #f4f2ed;

    color: #1d1d1f;

    transform: translateX(3px);
}


/* Ładne przejście między sekcjami */

.dashboard-anchor-section {
    scroll-margin-top: 100px;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


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

@media (max-width: 950px) {

    .dashboard-sidebar-link.active {
        transform: translateY(-2px);
    }

    .dashboard-sidebar-link::before {
        display: none;
    }

}

/* ==========================================
   PAWTAG — GÓRNY PANEL WŁAŚCICIELA
========================================== */

/* PRAWA STRONA NAVBARA */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* MINIATURA PSA W NAVBARZE */

.navbar-dog-avatar {
    display: flex;
    align-items: center;
    gap: 10px;

    width: auto;
    height: auto;

    flex-shrink: 0;

    padding: 4px 8px 4px 14px;

    border-radius: 30px;

    overflow: visible;

    background: white;

    border: 1px solid #e3ded5;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.10);

    cursor: pointer;
}


.navbar-dog-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ==========================================
   HERO PANELU
========================================== */

.dashboard-owner-hero {
    position: relative;

    min-height: 190px;

    margin-bottom: 25px;

    padding:
        20px
        20px
        25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #f1eee8 0%,
            #f1eee8 100%
        );

    border-radius: 0 0 28px 28px;
}


/* MAŁY NAPIS NAD TYTUŁEM */

.dashboard-owner-label {
    margin-bottom: 6px;

    color: #8b806d;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.18em;
}


/* GŁÓWNY TYTUŁ */

.dashboard-owner-title {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin: 0;

    color: #1d1d1f;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;
}


/* ŁAPKA PRZY TYTULE */

.dashboard-owner-title-paw {
    font-size: 0.65em;

    transform: rotate(-8deg);

    opacity: 0.9;
}


/* OPIS */

.dashboard-owner-description {
    max-width: 560px;

    margin-top: 8px;

    color: #777;

    font-size: 15px;

    line-height: 1.6;
}

.dashboard-edit-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 17px;
    border: 1px solid #d8d0c2;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.7);
    color: #4e473d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(91, 79, 60, 0.06);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dashboard-edit-info-button:hover {
    border-color: #b8aa95;
    background: white;
    color: #1d1d1f;
    transform: translateY(-2px);
}

.dashboard-edit-info-button:focus-visible {
    outline: 3px solid rgba(129, 116, 95, 0.28);
    outline-offset: 3px;
}


/* ==========================================
   ANIMACJA AKTYWNEJ NAWIGACJI
========================================== */

.dashboard-sidebar-link {
    position: relative;

    overflow: hidden;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.dashboard-sidebar-link.active {
    background: #1d1d1f;

    color: white;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.14);

    transform: translateX(2px);
}


/* MAŁY WSKAŹNIK AKTYWNEJ SEKCJI */

.dashboard-sidebar-link.active::before {
    content: "";

    position: absolute;

    left: 0;

    top: 50%;

    width: 3px;

    height: 60%;

    border-radius: 0 5px 5px 0;

    background: #cfc4ae;

    transform: translateY(-50%);

    animation:
        navigationIndicator
        0.25s
        ease;
}


@keyframes navigationIndicator {

    from {
        height: 20%;
        opacity: 0;
    }

    to {
        height: 60%;
        opacity: 1;
    }

}


/* ==========================================
   RESPONSYWNOŚĆ
========================================== */

@media (max-width: 950px) {

    .dashboard-owner-hero {
        min-height: 210px;

        margin-bottom: 25px;

        padding:
            30px
            20px
            40px;
    }


    .dashboard-sidebar-link.active {
        transform: none;
    }

}


@media (max-width: 600px) {

    .navbar-actions {
        gap: 8px;
    }

    .navbar-actions .logout-button {
        appearance: none;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .logout-button {
        padding:
            8px
            12px;
    }

    .dashboard-owner-hero {
        min-height: auto;

        padding:
            16px
            15px
            22px;

        border-radius: 0 0 22px 22px;
    }

    .dashboard-owner-title {
        gap: 8px;

        font-size: 42px;

        letter-spacing: -1.5px;
    }

    .dashboard-owner-label {
        margin-bottom: 4px;
    }

    .dashboard-title-divider {
        margin-top: 8px;
        margin-bottom: 0;
    }

    .dashboard-owner-description {
        margin-top: 6px;

        font-size: 13px;
    }

    .dashboard-edit-info-button {
        width: 100%;
        max-width: 260px;
        margin-top: 12px;
    }

}

/* ==========================================
   OZDOBNY SEPARATOR POD TYTUŁEM
========================================== */

.dashboard-title-divider {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    margin-top: 10px;

    margin-bottom: 4px;
}


/* KRESKI */

.dashboard-title-divider > span:not(
    .dashboard-title-divider-paw
) {
    width: 82px;

    height: 2px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #cfc5b4
        );
}


/* PRAWA KRESKA */

.dashboard-title-divider > span:last-child {
    background:
        linear-gradient(
            90deg,
            #cfc5b4,
            transparent
        );
}


/* ŁAPKA POŚRODKU */

.dashboard-title-divider-paw {
    display: flex;

    align-items: center;

    justify-content: center;

    color: #a89d8b;

    font-size: 17px;

    line-height: 1;

    transform:
        translateY(1px);
}


/* TELEFON */

@media (max-width: 600px) {

    .dashboard-title-divider {
        gap: 10px;

        margin-top: 14px;
    }


    .dashboard-title-divider > span:not(
        .dashboard-title-divider-paw
    ) {
        width: 55px;
    }


    .dashboard-title-divider-paw {
        font-size: 15px;
    }

}

/* ==========================================
   PAWTAG — MOBILNA NAWIGACJA STICKY
   BEZ BIAŁEGO TŁA WOKÓŁ PASKA
========================================== */

@media (max-width: 950px) {

    /* Układ mobilny */

    .dashboard-layout {
        display: block !important;

        background: transparent !important;
    }


    /* ==========================================
       USUWAMY FIZYCZNE PUDEŁKO SIDEBARA

       To właśnie eliminuje prostokąt wokół
       zaokrąglonego paska.
    ========================================== */

    .dashboard-sidebar {
        display: block !important;

        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;

        width: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: none !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        overflow: visible !important;
    }

    .dashboard-layout,
    .dashboard-sidebar {
        background: transparent !important;
    }


    .dashboard-sidebar::before,
    .dashboard-sidebar::after {
        display: none !important;

        content: none !important;

        background: transparent !important;

        border: none !important;

        box-shadow: none !important;
    }


    /* ==========================================
       STICKY JEST TERAZ BEZPOŚREDNIO NA NAV
    ========================================== */

    .dashboard-sidebar-nav {
        position: static !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;

        gap: 8px !important;

        width: 100% !important;

        margin: 0 0 20px 0 !important;

        padding: 8px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        box-sizing: border-box !important;

        background: white !important;

        border: 1px solid #e7e3dc !important;

        border-radius: 22px !important;

        box-shadow: none !important;

        scrollbar-width: none !important;

        -webkit-overflow-scrolling: touch;
    }


    .dashboard-sidebar-nav::-webkit-scrollbar {
        display: none;
    }


    /* Ukrywamy napis NAWIGACJA */

    .dashboard-sidebar-title {
        display: none !important;
    }


    /* ==========================================
       PRZYCISKI
    ========================================== */

    .dashboard-sidebar-link {
        flex: 0 0 auto !important;

        min-height: 44px !important;

        margin: 0 !important;

        padding: 12px 18px !important;

        white-space: nowrap !important;

        border: none !important;

        border-radius: 16px !important;

        background: transparent !important;

        box-shadow: none !important;

        transform: none !important;
    }


    .dashboard-sidebar-link::before {
        display: none !important;
    }


    .dashboard-sidebar-link.active {
        background: #1d1d1f !important;

        color: white !important;

        transform: translateY(-2px) !important;

        box-shadow: none !important;
    }


    .dashboard-sidebar-link:hover:not(.active) {
        background: #e8e5df !important;

        color: #1d1d1f !important;

        transform: none !important;
    }


    /* Poprawne przewijanie do sekcji */

    .dashboard-anchor-section {
        scroll-margin-top: 85px !important;
    }

}


/* ==========================================
   MAŁE TELEFONY
========================================== */

@media (max-width: 550px) {

    .dashboard-sidebar-nav {
        border-radius: 18px !important;
    }


    .dashboard-sidebar-link {
        min-height: 42px !important;

        padding: 11px 16px !important;

        font-size: 12px !important;
    }

}

.phone-contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.phone-contacts-header label {
    margin-bottom: 0;
}

.add-phone-contact-button {
    padding: 8px 11px;
    border: 1px solid #ddd9d0;
    border-radius: 9px;
    background: #f8f7f4;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.add-phone-contact-button:hover {
    background: #f1eee8;
}

.phone-contact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: 8px;
    align-items: start;
    margin-bottom: 10px;
}

.dashboard-section .phone-contact-row input {
    margin-bottom: 0;
}

.remove-phone-contact-button {
    width: 42px;
    height: 45px;
    border: 1px solid #ead8d8;
    border-radius: 11px;
    background: #fff8f8;
    color: #a85a5a;
    font-size: 18px;
    cursor: pointer;
}

.remove-phone-contact-button:hover {
    background: #f9eeee;
}

@media (max-width: 550px) {

    .dog-photo-stage {
        width: 250px;
    }

    .dog-photo-gallery-item {
        width: 74px;
        height: 74px;
    }

}

/* ==========================================
   MENU PROFILU NAD MOBILNĄ NAWIGACJĄ
========================================== */

@media (max-width: 950px) {

    .navbar {
        position: relative !important;
        z-index: 1100 !important;
    }

    .navbar-actions {
        position: relative;
        z-index: 1101;
    }

    .profile-menu {
        z-index: 1200 !important;
    }

}

/* CZERWONY PRZYCISK WYLOGOWANIA */

#addProfileForm .profile-menu-logout {
    width: 100% !important;

    margin-top: 14px !important;
    padding: 10px !important;

    border: 1px solid #e5bcbc !important;
    border-radius: 10px !important;

    background: #fff1f1 !important;

    color: #b84d4d !important;

    font-size: 12px !important;
    font-weight: 700 !important;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

#addProfileForm .profile-menu-logout:hover {
    background: #fbe0e0 !important;
    border-color: #d99b9b !important;
    color: #9f3838 !important;
}

/* ==========================================
   STRZAŁKA POD ZDJĘCIEM — ZAWSZE NAD MENU
========================================== */

.navbar-dog-avatar {
    position: relative !important;
    z-index: 1201 !important;
}

.navbar-dog-avatar::after {
    z-index: 1202 !important;
}

.profile-menu {
    z-index: 1200 !important;
}

.form-section .phone-contact-row input {
    margin-bottom: 0;
}

@media (min-width: 601px) {
    .manufacturer-shell {
        padding-right: 24px;
        padding-left: 24px;
    }

    .manufacturer-content .manufacturer-data-view {
        min-height: 0;
        align-content: start;
        justify-content: start;
    }
}

/* =========================================================
   ZDJĘCIA PRODUKTÓW — PANEL PRODUCENTA
========================================================= */

.manufacturer-product-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.manufacturer-product-upload label,
.manufacturer-existing-images label {
    font-weight: 600;
}

.manufacturer-product-upload small {
    color: #777;
    font-size: 13px;
}

.manufacturer-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.manufacturer-image-preview-item {
    position: relative;
    width: 150px;
    min-height: 150px;
    border: 1px solid #ddd;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f3ee;
}

.manufacturer-image-preview-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.manufacturer-image-remove {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 0;
    border-radius: 8px;
    padding: 7px 10px;
    background: rgba(20, 20, 20, 0.88);
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.manufacturer-image-remove:hover {
    opacity: 0.9;
}

.manufacturer-existing-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
}

.manufacturer-gallery-preview {
    min-height: 20px;
}

#productMainImageInput,
#productGalleryInput {
    max-width: 100%;
}

/* =========================================================
   DYNAMICZNE PRODUKTY
========================================================= */

.product-card-dynamic {
    cursor: pointer;
}

.product-dynamic-image {
    overflow: hidden;
}

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

.product-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #777;
    background: #ebe6da;
}

.products-loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    grid-column: 1 / -1;
}

/* =========================================================
   SZCZEGÓŁY PRODUKTU
========================================================= */

.product-detail-page {
    background: #f8f7f4;
}

.product-detail-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 62px 32px 90px;
}

.product-detail-loading {
    padding: 90px 20px;
    color: #777;
    text-align: center;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 70px;
    align-items: start;
}

.product-detail-gallery-column {
    position: sticky;
    top: 100px;
}

.product-detail-main-image {
    min-height: 560px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: #e9e1d2;
    color: #81745f;
    font-size: 72px;
}

.product-detail-main-image img {
    width: 100%;
    height: 560px;
    display: block;
    object-fit: cover;
}

.product-detail-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
}

.product-detail-thumbnail {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 11px;
    background: #e9e1d2;
    cursor: pointer;
}

.product-detail-thumbnail.active {
    border-color: #1d1d1f;
}

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

.product-detail-information {
    padding-top: 18px;
}

.product-detail-information h1 {
    max-width: 620px;
    margin: 12px 0 18px;
    color: #1d1d1f;
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.06;
}

.product-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-detail-price-row strong {
    color: #1d1d1f;
    font-size: 25px;
}

.product-detail-price-row span {
    color: #999;
    font-size: 11px;
}

.product-detail-rule {
    width: 100%;
    height: 1px;
    margin: 25px 0;
    background: #e2ded6;
}

.product-detail-description {
    max-width: 560px;
    color: #666;
    font-size: 15px;
    line-height: 1.75;
}

.product-detail-option {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.product-detail-option label {
    color: #4e473d;
    font-size: 12px;
    font-weight: 700;
}

.product-detail-option input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8d0c2;
    border-radius: 10px;
    background: white;
    font: inherit;
}

.product-detail-purchase {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.product-quantity-control {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    border: 1px solid #d8d0c2;
    border-radius: 11px;
    background: white;
}

.product-quantity-control button {
    height: 46px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 20px;
    cursor: pointer;
}

.product-quantity-control output {
    color: #1d1d1f;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.product-add-to-cart {
    min-height: 46px;
    border: 0;
    border-radius: 11px;
    background: #1d1d1f;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.product-add-to-cart:hover {
    background: #3c3c3f;
}

.product-delete-button {
    width: 100%;
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid #e5bcbc;
    border-radius: 10px;
    background: #fff8f8;
    color: #a85a5a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.product-delete-button:hover {
    background: #fbe5e5;
    border-color: #d99b9b;
}

.product-delete-button[hidden] {
    display: none;
}

.product-detail-message {
    min-height: 20px;
    margin-top: 10px;
    color: #4b8050;
    font-size: 12px;
}

.product-detail-trust {
    display: flex;
    gap: 12px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e2ded6;
}

.product-detail-trust > span {
    font-size: 25px;
}

.product-detail-trust strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.product-detail-trust p {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

.product-detail-description-section {
    margin-top: 90px;
    padding: 44px 0 0;
    border-top: 1px solid #e2ded6;
}

.product-detail-description-section h2 {
    margin: 10px 0 12px;
    font-size: 30px;
}

.product-detail-description-section p {
    max-width: 700px;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 850px) {
    .product-detail-main {
        padding: 38px 18px 65px;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-detail-gallery-column {
        position: static;
    }

    .product-detail-main-image,
    .product-detail-main-image img {
        min-height: 360px;
        height: 360px;
    }

    .product-detail-information {
        padding-top: 0;
    }

    .product-detail-information h1 {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .product-detail-purchase {
        grid-template-columns: 1fr;
    }
}

.product-edit-layout {
    align-items: start;
}

.product-edit-information {
    padding-top: 0;
}

.product-edit-name-field {
    width: 100%;
}

.product-edit-field {
    display: grid;
    gap: 7px;
    color: #4e473d;
    font-size: 12px;
    font-weight: 700;
}

.product-edit-field input,
.product-edit-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d8d0c2;
    border-radius: 10px;
    background: white;
    color: #1d1d1f;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    resize: vertical;
}

.product-edit-name-field input {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1d1d1f;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 800;
    line-height: 1.06;
}

.product-edit-name-field input:focus,
.product-edit-field input:focus,
.product-edit-field textarea:focus {
    outline: 3px solid rgba(129, 116, 95, 0.2);
    border-color: #9c927f;
}

.product-edit-name-field input:focus {
    outline-offset: 5px;
}

.product-edit-upload-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.product-edit-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #d8d0c2;
    border-radius: 9px;
    background: white;
    color: #4e473d;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.product-edit-upload-button:hover {
    background: #f8f7f4;
}

.product-edit-upload-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.product-edit-hidden-form {
    display: none;
}

@media (max-width: 850px) {
    .product-edit-name-field input {
        font-size: 40px;
    }

    .product-edit-upload-row {
        flex-wrap: wrap;
    }
}

/* =========================================================
   PODGLĄD I EDYCJA PRODUKTU
========================================================= */

.product-editor-page {
    min-height: 100vh;
    background: #f1eee8;
}

.product-editor-shell {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 58px 32px 80px;
}

.product-editor-loading {
    padding: 80px 20px;
    color: #777;
    text-align: center;
}

.product-editor-heading {
    margin-bottom: 28px;
}

.product-editor-heading h1 {
    margin: 9px 0 8px;
    color: #1d1d1f;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
}

.product-editor-heading p {
    color: #777;
    font-size: 14px;
}

.product-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.product-public-preview {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #e7e3dc;
    border-radius: 22px;
    background: white;
    box-shadow: 0 16px 36px rgba(29, 29, 31, 0.07);
}

.product-public-preview-image {
    min-height: 430px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e9e1d2;
    color: #81745f;
    font-size: 52px;
}

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

.product-public-preview-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px;
}

.product-public-preview-content h2 {
    margin: 14px 0 12px;
    color: #1d1d1f;
    font-size: 34px;
    line-height: 1.15;
}

.product-public-preview-content p {
    margin-bottom: 28px;
    color: #777;
    font-size: 15px;
    line-height: 1.65;
}

.product-public-preview-content .product-price {
    margin-top: auto;
    font-size: 22px;
}

.product-editor-gallery {
    grid-column: 1;
    display: flex;
    gap: 10px;
    margin-top: -10px;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid #e7e3dc;
    border-radius: 14px;
    background: white;
}

.product-editor-gallery[hidden] {
    display: none;
}

.product-editor-gallery img {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 10px;
    object-fit: cover;
}

.product-editor-form {
    display: grid;
    gap: 15px;
    padding: 26px;
    border: 1px solid #e7e3dc;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 24px rgba(29, 29, 31, 0.05);
}

.product-editor-form label {
    display: grid;
    gap: 7px;
    color: #4e473d;
    font-size: 12px;
    font-weight: 700;
}

.product-editor-form input,
.product-editor-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd9d0;
    border-radius: 9px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 13px;
    resize: vertical;
}

.product-editor-form input:focus,
.product-editor-form textarea:focus {
    outline: 3px solid rgba(129, 116, 95, 0.2);
    border-color: #9c927f;
}

.product-editor-message {
    min-height: 18px;
    margin: 0;
    color: #777;
    font-size: 12px;
}

@media (max-width: 850px) {
    .product-editor-shell {
        padding: 42px 18px 60px;
    }

    .product-editor-layout,
    .product-public-preview {
        grid-template-columns: 1fr;
    }

    .product-public-preview-image {
        min-height: 260px;
    }

    .product-public-preview-content {
        padding: 28px;
    }

    .product-editor-gallery {
        grid-column: auto;
    }

    .manufacturer-navbar-actions .manufacturer-secondary-button {
        padding: 8px 10px;
        font-size: 11px;
    }
}