:root {
    --bg: #eef3f8;
    --surface: #ffffff;
    --ink: #17212b;
    --muted: #5f6b7a;
    --line: #d4dde8;
    --primary: #0f766e;
    --primary-strong: #0a5f59;
    --primary-soft: #e4f7f3;
    --blue: #2563eb;
    --blue-soft: #eef6ff;
    --violet: #6d28d9;
    --rose: #be123c;
    --amber: #b7791f;
    --amber-soft: #fff7ed;
    --success-soft: #ecfdf3;
    --danger-soft: #fff1f2;
    --sidebar: #151d29;
    --warning: #b7791f;
    --shadow-sm: 0 10px 26px rgba(15, 23, 42, .07);
    --shadow-md: 0 18px 42px rgba(15, 23, 42, .12);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, .18);
    --focus-ring: 0 0 0 .22rem rgba(15, 118, 110, .16);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fbfd 0%, var(--bg) 42%, #eaf0f6 100%);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
}

img,
svg,
canvas,
video,
table,
input,
select,
textarea,
button {
    max-width: 100%;
}

textarea {
    resize: vertical;
}

.login-body {
    min-height: 100vh;
    background: #eef3f7;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.login-panel {
    width: min(100%, 420px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(31, 41, 51, .12);
    padding: 26px;
}

.login-brand {
    color: var(--ink);
    padding: 0 0 20px;
}

.login-brand:hover {
    color: var(--ink);
}

.login-panel h1 {
    font-size: 1.55rem;
    font-weight: 760;
    margin: 0 0 18px;
}

.text-end {
    text-align: right;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 700;
}

.text-bg-success {
    color: #fff;
    background: #14855f;
}

.text-bg-secondary {
    color: #fff;
    background: #667085;
}

.text-bg-danger {
    color: #fff;
    background: #b42318;
}

.app-shell {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.app-sidebar {
    width: 268px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--sidebar);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    box-shadow: 16px 0 40px rgba(15, 23, 42, .18);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 10px 12px 18px;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary);
}

.app-nav {
    gap: 4px;
}

.app-nav .nav-link {
    color: rgba(255, 255, 255, .78);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .95rem;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.app-nav .nav-link:hover,
.app-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.app-nav .nav-link.active {
    box-shadow: inset 3px 0 0 #4ade80;
}

.nav-submenu {
    display: grid;
    gap: 3px;
    margin: -1px 0 6px 22px;
    padding-left: 11px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 7px;
    color: rgba(255, 255, 255, .68);
    font-size: .85rem;
    line-height: 1.2;
}

.nav-sublink:hover,
.nav-sublink:focus,
.nav-sublink.active {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.app-nav .bi {
    width: 20px;
    text-align: center;
}

.app-main {
    flex: 1;
    min-width: 0;
    height: 100vh;
    margin-left: 268px;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: calc(100% - 268px);
}

.app-topbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    padding: 18px clamp(16px, 3vw, 34px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-topbar h1,
.page-toolbar h2,
.section-heading h2 {
    margin: 0;
    line-height: 1.15;
}

.app-topbar h1 {
    font-size: 1.55rem;
    font-weight: 750;
}

.topbar-kicker {
    color: var(--muted);
    font-size: .86rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}

.topbar-user span {
    display: grid;
    text-align: right;
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-strong);
    background: var(--primary-soft);
    font-weight: 800;
    text-align: center !important;
}

.topbar-user small {
    color: var(--muted);
}

.stock-alert-bell {
    position: relative;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475467;
    background: #fff;
    transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.stock-alert-bell:hover,
.stock-alert-bell:focus {
    color: #92400e;
    border-color: #f59e0b;
    background: #fffbeb;
}

.stock-alert-bell.has-alert {
    color: #991b1b;
    border-color: #fecaca;
    background: #fff1f2;
}

.stock-alert-text {
    display: inline-flex !important;
    align-items: center;
    color: inherit;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    text-align: left !important;
    white-space: nowrap;
}

.stock-alert-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #b42318;
    font-size: .67rem;
    font-weight: 800;
    line-height: 1;
    text-align: center !important;
}

.app-content {
    padding: clamp(16px, 3vw, 34px);
    min-width: 0;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-strong);
    --bs-btn-hover-border-color: var(--primary-strong);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-sections {
    display: grid;
    gap: 18px;
}

.admin-dashboard,
.dashboard-block {
    display: grid;
    gap: 18px;
}

.dashboard-block {
    margin-bottom: 6px;
}

.admin-metrics {
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
}

.dashboard-split,
.dashboard-charts {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-split {
    align-items: start;
}

.dashboard-split .surface:first-child {
    min-width: 0;
}

.chart-surface {
    min-height: 330px;
}

.chart-frame {
    position: relative;
    width: 100%;
    min-height: 250px;
    margin-top: 12px;
}

.chart-frame canvas {
    display: block;
    width: 100%;
    height: 250px;
}

.low-stock-heading {
    margin-bottom: 12px;
}

.low-stock-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.low-stock-action strong {
    min-width: 42px;
    color: #b42318;
    font-size: 1.25rem;
    text-align: right;
}

.metric,
.surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.metric {
    min-height: 126px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.metric span {
    color: var(--muted);
    font-size: .86rem;
}

.metric strong {
    display: block;
    font-size: 1.65rem;
    margin-top: 10px;
}

.metric .bi {
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-size: 1.8rem;
    color: rgba(15, 118, 110, .22);
}

.metric.accent .bi {
    color: rgba(183, 121, 31, .25);
}

.report-kicker {
    display: inline-flex;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.reports-toolbar {
    align-items: flex-end;
    flex-wrap: wrap;
}

.reports-toolbar > div:first-child {
    flex: 1 1 280px;
    min-width: 0;
}

.reports-toolbar .toolbar-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.reports-toolbar .toolbar-actions .btn {
    max-width: 100%;
    white-space: nowrap;
}

.reports-metrics {
    margin-bottom: 18px;
}

.reports-filter-surface {
    padding: 16px;
    margin-bottom: 18px;
}

.reports-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
    align-items: end;
}

.reports-filter-form .filter-field {
    min-width: 0;
}

.reports-search {
    min-width: 0;
}

.reports-filter-actions {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.reports-filter-actions .btn {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: nowrap;
}

.reports-sections {
    display: grid;
    gap: 18px;
}

.report-section {
    padding: 16px;
}

.report-section .section-heading h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.report-section .section-heading .bi {
    color: var(--primary);
}

.report-count {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}

.surface {
    padding: 16px;
    min-width: 0;
}

.section-heading,
.page-toolbar,
.table-meta,
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-toolbar {
    margin-bottom: 14px;
}

.stock-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
}

.stock-toolbar > div:first-child {
    flex: 1 1 260px;
    min-width: 0;
}

.stock-toolbar .toolbar-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.stock-toolbar .toolbar-subtitle {
    overflow-wrap: anywhere;
}

.page-toolbar h2,
.section-heading h2 {
    font-size: 1.25rem;
    font-weight: 750;
}

.page-toolbar h2 > .bi,
.section-heading h2 > .bi {
    margin-right: 8px;
}

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

.table-controls {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.surface.is-loading {
    position: relative;
}

.surface.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(15,118,110,.05), rgba(255,255,255,0));
    animation: surface-loading 1.1s ease-in-out infinite;
}

.loading-inline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(15, 118, 110, .35);
    animation: loading-pulse 1s ease-out infinite;
}

.search-box {
    position: relative;
    min-width: min(360px, 100%);
    flex: 1 1 280px;
}

.search-box .bi {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-box .form-control {
    padding-left: 38px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    flex: 2 1 420px;
}

.filter-field {
    min-width: 0;
}

.filter-field span,
.table-meta span {
    color: var(--muted);
    font-size: .82rem;
}

.table-meta {
    margin-bottom: 10px;
}

.table-meta label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fix-price-modal {
    overflow-y: auto;
}

.fix-price-dialog {
    max-width: min(920px, calc(100vw - 24px));
}

.fix-price-modal .modal-content {
    max-height: calc(100dvh - 56px);
}

.fix-price-modal form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
}

.fix-price-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.fix-price-trigger {
    white-space: nowrap;
}

.table-responsive::-webkit-scrollbar,
.stock-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-thumb,
.stock-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c8d2dd;
}

.table-responsive::-webkit-scrollbar-track,
.stock-table-wrap::-webkit-scrollbar-track {
    background: #eef2f6;
}

.app-table {
    min-width: 880px;
    margin: 0;
}

.exchange-history-table {
    min-width: 720px;
}

.static-table {
    min-width: 720px;
}

.app-table th {
    color: #475467;
    font-size: .82rem;
    font-weight: 700;
    background: #f8fafc;
    white-space: nowrap;
}

.app-table td {
    vertical-align: middle;
}

.app-table th[data-sort-key] {
    cursor: pointer;
    user-select: none;
}

.sort-icon {
    color: #98a2b3;
    font-size: .8rem;
    margin-left: 4px;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 148px;
}

.table-actions .btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-actions-compact {
    min-width: 40px;
}

.banque-section {
    scroll-margin-top: 154px;
    margin-bottom: 18px;
}

.banque-section-toolbar {
    scroll-margin-top: 154px;
}

.banque-section-toolbar h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.metric-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(31, 41, 51, .06);
}

.metric-card p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: .86rem;
}

.metric-card strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1.25rem;
    line-height: 1.18;
}

.metric-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary-strong);
    background: #edf7f5;
    font-size: 1.2rem;
}

.banque-quick-links {
    display: grid;
    gap: 14px;
}

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

.quick-link-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #f8fafc;
    font-weight: 700;
}

.quick-link-card:hover,
.quick-link-card:focus {
    border-color: rgba(15, 118, 110, .28);
    color: var(--primary-strong);
    background: #edf7f5;
}

.table-pagination {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
}

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

.table-pagination span,
.stock-pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    color: var(--muted);
}

.form-surface {
    max-width: 1080px;
}

.form-section-heading {
    padding-top: 8px;
    border-bottom: 1px solid var(--line);
}

.form-section-heading h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: .95rem;
    font-weight: 800;
}

.entry-calculation-explanation {
    color: var(--muted);
    font-weight: 650;
}

.stock-initial-form-surface {
    max-width: none;
}

.stock-initial-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.stock-initial-table th,
.stock-initial-table td {
    min-width: 0;
    padding-inline: 8px;
}

.stock-initial-table th,
.stock-initial-sale-price-table th {
    white-space: normal;
    line-height: 1.2;
}

.stock-initial-table th:nth-child(1),
.stock-initial-table td:nth-child(1) {
    width: 21%;
}

.stock-initial-table th:nth-child(2),
.stock-initial-table td:nth-child(2) {
    width: 23%;
}

.stock-initial-table th:nth-child(3),
.stock-initial-table td:nth-child(3) {
    width: 9%;
}

.stock-initial-table th:nth-child(6),
.stock-initial-table td:nth-child(6) {
    width: 10%;
}

.stock-initial-table th:nth-child(4),
.stock-initial-table td:nth-child(4) {
    width: 12%;
}

.stock-initial-table th:nth-child(5),
.stock-initial-table td:nth-child(5) {
    width: 17%;
}

.stock-initial-table th:nth-child(7),
.stock-initial-table td:nth-child(7) {
    width: 48px;
}

.stock-initial-table .form-control,
.stock-initial-table .form-select,
.stock-initial-table .searchable-select-trigger,
.stock-initial-table .readonly-value {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
}

.stock-initial-table .readonly-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.stock-initial-table .small {
    line-height: 1.3;
}

.stock-initial-table td:nth-child(6) .form-select,
.stock-initial-sale-price-table td:nth-child(4) .form-select {
    padding-inline: 10px 28px;
}

.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-line] > td {
    padding-block: 14px 10px;
    border-top: 1px solid #d8e0ea;
    border-bottom: 0;
    background: #fff;
    vertical-align: top;
}

.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-line] > td:first-child {
    padding-left: 12px;
    border-left: 1px solid #d8e0ea;
    border-top-left-radius: 8px;
}

.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-line] > td:last-child {
    padding-right: 12px;
    border-right: 1px solid #d8e0ea;
    border-top-right-radius: 8px;
}

.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-prices-panel] > td {
    padding: 0 12px 14px;
    border-right: 1px solid #d8e0ea;
    border-bottom: 1px solid #d8e0ea;
    border-left: 1px solid #d8e0ea;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #fff;
}

.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-prices-panel] + tr[data-stock-initial-line] > td {
    border-top-color: #cbd5e1;
}

.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-line]:hover > td,
.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-prices-panel]:hover > td {
    background: #fff;
}

.stock-initial-table tbody[data-stock-initial-lines] > tr.stock-initial-add-row > td {
    padding: 12px;
    border: 1px dashed #b6c3d1;
    border-radius: 8px;
    background: #f8fafc;
}

.stock-initial-lines-footer {
    display: flex;
    justify-content: flex-end;
}

.stock-initial-add-line-button,
.stock-initial-sale-price-add-button {
    white-space: nowrap;
}

.stock-initial-add-line-button {
    min-width: 214px;
}

.stock-initial-add-line-button.is-confirmed {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-line].stock-initial-line-added > td,
.stock-initial-table tbody[data-stock-initial-lines] > tr[data-stock-initial-prices-panel].stock-initial-line-added > td {
    background: #f0fdf4;
    border-color: #86efac;
}

.stock-initial-config-block {
    border: 1px solid #bfdbfe;
    border-left: 3px solid #2563eb;
    border-radius: 8px;
    padding: 7px 8px;
    background: #f8fbff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .08);
}

.stock-initial-config-block.is-invalid {
    border-color: #dc3545;
    background: #fff8f8;
}

.stock-initial-config-block .min-w-0 {
    flex: 1 1 118px;
    min-width: 0;
}

.stock-initial-config-block .d-flex {
    flex-wrap: wrap;
    gap: 6px !important;
}

.stock-initial-config-block [data-stock-initial-config-summary]:empty {
    display: none;
}

.stock-initial-config-open {
    flex: 1 0 96px;
    justify-content: center;
    min-height: 32px;
    padding-block: 4px;
    white-space: nowrap;
}

.stock-initial-conditionnement-modal .modal-dialog {
    max-width: min(560px, calc(100vw - 24px));
}

.stock-initial-sale-prices {
    margin-top: 4px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #94a3b8;
    border-radius: 8px;
    background: #fbfcfe;
}

.stock-initial-sale-price-add-button {
    color: #334155;
    border-color: #cbd5e1;
    background: #fff;
}

.stock-initial-sale-price-add-button:hover,
.stock-initial-sale-price-add-button:focus {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f1f5f9;
}

.stock-initial-sale-price-remove-button {
    color: #9a3412;
    border-color: #fed7aa;
    background: #fff7ed;
}

.stock-initial-sale-price-remove-button:hover,
.stock-initial-sale-price-remove-button:focus {
    color: #fff;
    border-color: #ea580c;
    background: #ea580c;
}

.stock-initial-sale-price-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.stock-initial-sale-price-table th:nth-child(1),
.stock-initial-sale-price-table td:nth-child(1) {
    width: 38%;
}

.stock-initial-sale-price-table th:nth-child(2),
.stock-initial-sale-price-table td:nth-child(2) {
    width: 18%;
}

.stock-initial-sale-price-table th:nth-child(3),
.stock-initial-sale-price-table td:nth-child(3) {
    width: 18%;
}

.stock-initial-sale-price-table th:nth-child(4),
.stock-initial-sale-price-table td:nth-child(4) {
    width: 16%;
}

.stock-initial-sale-price-table th:nth-child(5),
.stock-initial-sale-price-table td:nth-child(5) {
    width: 48px;
}

.stock-initial-sale-price-config {
    border: 1px solid #cfe0f3;
    border-radius: 8px;
    padding: 8px;
    background: #f8fbff;
}

.form-control,
.form-select,
.btn {
    border-radius: 8px;
}

.form-control,
.form-select {
    min-height: 40px;
}

.password-input {
    position: relative;
}

.password-input .form-control {
    padding-right: 48px;
}

.password-input .form-control.is-invalid {
    padding-right: 78px;
    background-position: right 44px center;
}

.password-toggle {
    position: absolute;
    top: 3px;
    right: 6px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--primary-strong);
    background: var(--primary-soft);
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 650;
}

.btn.is-loading {
    pointer-events: none;
    opacity: .78;
}

.btn.is-loading::before {
    content: "";
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.searchable-select {
    position: relative;
}

.searchable-select-native {
    display: none;
}

.searchable-select-trigger {
    min-height: 42px;
    text-align: left;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select-trigger.is-placeholder {
    color: var(--muted);
}

.searchable-select-trigger.is-invalid {
    border-color: #dc3545;
}

.searchable-select-trigger:disabled {
    color: var(--muted);
    background: #f8fafc;
    cursor: not-allowed;
}

.searchable-select-panel {
    position: fixed;
    z-index: 2050;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: 0 14px 28px rgba(31, 41, 51, .14);
    overflow: hidden;
}

.searchable-select-search {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.searchable-select-input {
    min-height: 38px;
}

.searchable-select-options {
    flex: 1 1 auto;
    min-height: 0;
    max-height: inherit;
    overflow-y: auto;
}

.searchable-select-option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 8px 10px;
    text-align: left;
    color: var(--ink);
}

.searchable-select-option:hover,
.searchable-select-option:focus {
    background: #edf7f5;
    outline: 0;
}

.searchable-select-empty {
    padding: 8px 10px;
    color: var(--muted);
}

.form-actions {
    justify-content: flex-end;
    margin-top: 22px;
}

.readonly-value {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    font-weight: 650;
}

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

.form-summary div {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.form-summary dt {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: .8rem;
}

.form-summary dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.vente-surface {
    max-width: 1180px;
    margin: 0 auto;
}

.sale-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, .06);
    margin-bottom: 18px;
    overflow: hidden;
}

.sale-recap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.sale-recap-header h3,
.cart-editor-heading h3 {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 750;
}

.sale-recap-header span,
.cart-editor-heading {
    color: var(--muted);
}

.sale-recap-header strong {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-strong);
    font-size: 1.15rem;
    white-space: nowrap;
}

.sale-recap-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.sale-summary-table {
    min-width: 760px;
}

.sale-summary-table .summary-product {
    font-weight: 700;
}

.sale-totals {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(280px, 1fr);
    gap: 16px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.sale-discount-field span,
.sale-totals dt {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: 5px;
}

.sale-totals dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.sale-totals dl > div {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.sale-totals dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.sale-total-final {
    border-color: rgba(15, 118, 110, .32) !important;
    background: #ecfdf3 !important;
    color: var(--primary-strong);
}

.sale-payment-card .card-header h3 {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 750;
}

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

.sale-payment-summary > div {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.sale-payment-summary > div.payment-active {
    background: #eef6ff;
    border-color: rgba(37, 99, 235, .28);
}

.sale-payment-summary > div.payment-warning {
    background: #fff7ed;
    border-color: rgba(194, 65, 12, .34);
}

.sale-payment-summary > div.payment-success {
    background: #ecfdf3;
    border-color: rgba(22, 101, 52, .32);
}

.sale-payment-summary dt {
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: 5px;
}

.sale-payment-summary dd {
    font-weight: 800;
    margin: 0;
    text-align: right;
}

.sale-payment-summary > div.payment-warning dd {
    color: #9a3412;
}

.sale-payment-summary > div.payment-success dd {
    color: #166534;
}

.payment-field {
    transition: opacity .18s ease, transform .18s ease;
}

.invoice-payment {
    margin-top: 22px;
}

.invoice-payment h2,
.invoice-payment h3 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 12px;
}

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

.summary-actions .btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.cart-row-focus {
    outline: 2px solid rgba(15, 118, 110, .35);
    outline-offset: -2px;
    background: #f0fdfa;
    transition: background .2s ease, outline-color .2s ease;
}

.cart-table {
    min-width: 920px;
}

.cart-table select {
    min-width: 220px;
}

.cart-table th,
.sale-summary-table th {
    vertical-align: middle;
}

.cart-table td,
.sale-summary-table td {
    padding: 12px;
}

.cart-table [data-cart-stock],
.cart-table [data-cart-price],
.cart-table [data-cart-subtotal] {
    font-weight: 700;
    white-space: nowrap;
}

.cart-table [data-cart-subtotal],
.sale-summary-table td:nth-child(5) {
    color: var(--primary-strong);
}

.sale-status-badge {
    min-width: 74px;
    justify-content: center;
}

.invoice-status-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.invoice-total-box {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ecfdf3;
    color: var(--primary-strong);
    font-weight: 800;
}

.invoice-total-box span {
    color: #475467;
    font-size: .85rem;
    font-weight: 700;
}

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

.detail-grid div {
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

.detail-grid dt {
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: 4px;
}

.detail-grid dd {
    margin: 0;
    font-weight: 600;
}

.receipt-surface {
    max-width: 980px;
    margin-inline: auto;
}

.receipt-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-bottom: 18px;
}

.receipt-header h2 {
    margin: 0;
}

.receipt-header p {
    color: var(--muted);
    margin: 4px 0 0;
}

.signature-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
}

.signature-grid div {
    border-top: 1px solid var(--ink);
    color: var(--muted);
    padding-top: 10px;
    text-align: center;
}

.print-body,
.invoice-body {
    background: #fff;
    color: #111827;
}

.print-header,
.invoice-header,
.invoice-parties {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.print-header {
    padding: 28px 28px 12px;
}

.print-header h1,
.invoice h1 {
    margin: 0;
}

.print-table,
.invoice-table {
    width: calc(100% - 56px);
    margin: 16px 28px;
    border-collapse: collapse;
}

.print-table th,
.print-table td,
.invoice-table th,
.invoice-table td {
    border: 1px solid #d0d5dd;
    padding: 9px 10px;
}

.print-table th,
.invoice-table th {
    background: #f2f4f7;
    text-align: left;
}

.invoice {
    max-width: 900px;
    margin: 28px auto;
    padding: 28px;
    border: 1px solid #d0d5dd;
}

.invoice-kicker,
.invoice-parties span {
    color: var(--muted);
    font-size: .85rem;
}

.invoice-cancelled {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    color: #fff;
    background: #b42318;
    border-radius: 6px;
}

.invoice-parties {
    margin: 24px 0;
}

.invoice-parties > div {
    width: 48%;
}

.invoice-parties p {
    margin: 4px 0 0;
    color: var(--muted);
}

.print-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.invoice-table {
    width: 100%;
    margin: 0;
}

.invoice-table td span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
}

.thermal-body {
    background: #f5f5f5;
    color: #000;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.22;
    margin: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.thermal-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px auto;
    max-width: 320px;
}

.thermal-print-button,
.thermal-print-link {
    background: #fff;
    border: 1px solid #111;
    border-radius: 6px;
    color: #111;
    cursor: pointer;
    font: 700 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 8px 10px;
    text-decoration: none;
}

.thermal-receipt {
    background: #fff;
    box-sizing: border-box;
    margin: 0 auto 24px;
    padding: 4mm 3mm;
    width: var(--receipt-width, 80mm);
}

.thermal-paper-58 .thermal-receipt {
    font-size: 12px;
    line-height: 1.24;
    padding-left: 1.4mm;
    padding-right: 1.4mm;
}

.thermal-receipt h1 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 3px 0;
    text-align: center;
}

.thermal-paper-58 .thermal-receipt h1 {
    font-size: 16px;
}

.thermal-separator,
.thermal-rule {
    color: #000;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
}

.thermal-separator {
    text-align: center;
}

.thermal-rule {
    border-top: 1px dashed #000;
    height: 0;
    margin: 7px 0 5px;
}

.thermal-meta {
    margin: 8px 0 0;
}

.thermal-meta p {
    margin: 0 0 3px;
    overflow-wrap: anywhere;
}

.thermal-lines {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.thermal-lines th,
.thermal-lines td {
    border: 0;
    padding: 2px 0;
    vertical-align: top;
    word-break: normal;
}

.thermal-lines th {
    font-weight: 800;
    text-align: left;
}

.thermal-product {
    overflow-wrap: break-word;
    padding-right: 4px !important;
    width: auto;
}

.thermal-qty {
    text-align: right !important;
    white-space: nowrap;
    width: 17mm;
}

.thermal-money {
    text-align: right !important;
    white-space: nowrap;
    width: 23mm;
}

.thermal-paper-58 .thermal-qty {
    width: 14mm;
}

.thermal-paper-58 .thermal-money {
    width: 18mm;
}

.thermal-total {
    align-items: baseline;
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr auto;
    font-size: 13px;
    font-weight: 800;
    margin: 8px 0;
}

.thermal-paper-58 .thermal-total {
    font-size: 14px;
}

.thermal-total strong {
    text-align: right;
    white-space: nowrap;
}

.thermal-thanks {
    font-weight: 800;
    letter-spacing: 0;
    margin: 5px 0;
    text-align: center;
}

.toolbar-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.stock-sheet {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.stock-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    min-width: 0;
}

.stock-metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, .05);
    min-width: 0;
}

.stock-metric.warning {
    border-left-color: #b7791f;
}

.stock-metric.danger {
    border-left-color: #b42318;
}

.stock-metric span,
.stock-metric small {
    color: var(--muted);
    font-size: .82rem;
}

.stock-metric strong {
    display: block;
    margin: 6px 0 2px;
    font-size: 1.38rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, .06);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.stock-filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.stock-search {
    grid-column: span 2;
    position: relative;
    min-width: 0;
}

.stock-search .bi {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.stock-search input {
    padding-left: 36px;
}

.stock-filter {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.stock-search .form-control,
.stock-filter .form-control,
.stock-filter .form-select {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.stock-filter span,
.stock-table-meta span {
    color: var(--muted);
    font-size: .8rem;
}

.stock-table-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.stock-table-meta label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.stock-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.stock-table {
    margin: 0;
    width: max(100%, 1180px);
    min-width: 1180px;
    table-layout: fixed;
}

.stock-table thead th {
    white-space: normal;
    font-size: .8rem;
    color: var(--muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    cursor: default;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.stock-table thead th[data-stock-sort]:not([data-stock-sort=""]) {
    cursor: pointer;
}

.stock-table tbody td {
    vertical-align: top;
    font-size: .88rem;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.stock-badge,
.stock-state {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}

.stock-badge.depot {
    color: #075985;
    background: #e0f2fe;
}

.stock-badge.boutique {
    color: #166534;
    background: #dcfce7;
}

.stock-state {
    margin-left: 6px;
}

.stock-condition {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.stock-state.warning {
    color: #92400e;
    background: #fef3c7;
}

.stock-state.ok {
    color: #166534;
    background: #dcfce7;
}

.stock-state.danger {
    color: #991b1b;
    background: #fee2e2;
}

.stock-row-low td {
    background: #fffbeb;
}

.stock-row-out td {
    background: #fef2f2;
}

.stock-condition {
    display: inline-block;
    max-width: 280px;
    white-space: normal;
    color: var(--muted);
    line-height: 1.35;
}

.stock-pagination {
    padding: 12px 14px;
}

.cash-metric {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.cash-metric span {
    color: var(--muted);
    font-size: .85rem;
}

.cash-metric strong {
    color: var(--ink);
    font-size: 1.12rem;
}

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

.cash-metric small {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
}

.cash-metric-compact {
    min-width: 0;
}

.cash-metric-primary {
    background: #eef6ff;
    border-color: rgba(37, 99, 235, .28);
}

.cash-metric-success {
    background: #ecfdf3;
    border-color: rgba(22, 101, 52, .32);
}

.cash-metric-danger {
    background: #fff7ed;
    border-color: rgba(194, 65, 12, .34);
}

.cash-metric-success strong {
    color: #166534;
}

.cash-metric-danger strong {
    color: #9a3412;
}

.bon-lines-table {
    min-width: 960px;
}

.bon-lines-table .form-select,
.bon-lines-table .form-control {
    min-width: 140px;
}

.bon-lines-table [data-label="Produit"] .form-select,
.bon-lines-table [data-label="Lot"] .form-select {
    min-width: 220px;
}

.bon-line-summary {
    line-height: 1.35;
    min-height: 1.2rem;
    overflow-wrap: anywhere;
}

.bon-lines-table [data-label="Disponible"] .form-control {
    min-width: 150px;
}

.bon-print-sheet {
    max-width: 960px;
    margin: 0 auto;
}

.bon-print-header,
.bon-print-parties,
.bon-print-signatures {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.bon-print-header {
    align-items: flex-start;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.bon-print-kicker,
.bon-print-parties span,
.bon-print-observation > span,
.bon-print-signatures span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bon-print-header h1 {
    margin: 4px 0 0;
    font-size: 2rem;
    font-weight: 850;
}

.bon-print-status {
    display: grid;
    gap: 4px;
    text-align: right;
}

.bon-print-status strong {
    color: var(--primary-strong);
    font-size: 1rem;
}

.bon-print-parties {
    margin-bottom: 22px;
}

.bon-print-parties > div,
.bon-print-observation,
.bon-print-signatures > div {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.bon-print-parties strong {
    display: block;
    margin-top: 6px;
    font-size: 1.05rem;
}

.bon-print-observation {
    margin-bottom: 22px;
}

.bon-print-observation strong {
    display: block;
    margin-top: 6px;
    font-size: .95rem;
    min-height: 22px;
}

.bon-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 34px;
}

.bon-print-table th,
.bon-print-table td {
    border: 1px solid #d0d5dd;
    padding: 10px;
}

.bon-print-table th {
    background: #f2f4f7;
    color: #475467;
    font-size: .82rem;
}

.bon-print-signatures {
    margin-top: 42px;
}

.bon-print-signatures strong {
    display: block;
    min-height: 56px;
    margin-top: 10px;
    color: var(--muted);
}

.published-product-thumb,
.published-product-preview {
    display: block;
    width: 72px;
    height: 58px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef2f6;
}

.published-product-preview {
    width: min(100%, 240px);
    height: 150px;
}

.published-product-preview-box {
    display: inline-flex;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

/* ==========================================================================
   PUBLIC CATALOGUE STOREFRONT (VITRINE) AESTHETICS
   ========================================================================== */

/* Design Tokens & Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --store-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --store-font-title: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Elegant Color Scheme (Emerald & Luxe Gold with Obsidian Accents) */
    --store-primary: #0f766e;        /* Dark Emerald */
    --store-primary-hover: #115e59;  /* Deep Emerald */
    --store-primary-soft: #f0fdf4;   /* Very Light Emerald */
    
    --store-accent: #b45309;         /* Luxe Bronze Gold */
    --store-accent-hover: #92400e;   /* Deep Gold */
    --store-accent-soft: #fef3c7;    /* Light Gold */
    
    --store-bg: #f8fafc;             /* Neutral warm slate */
    --store-surface: #ffffff;
    --store-text: #0f172a;           /* Obsidian Slate */
    --store-text-muted: #64748b;     /* Muted Grey */
    --store-border: #e2e8f0;         /* Soft Border */
    --store-ring: rgba(15, 118, 110, 0.15);
    
    --store-success: #10b981;
    --store-warning: #f59e0b;
    --store-info: #3b82f6;
    --store-danger: #ef4444;

    /* Shadows & Transitions */
    --store-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --store-shadow-md: 0 12px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --store-shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
    --store-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.public-products-body {
    font-family: var(--store-font-sans);
    color: var(--store-text);
    background-color: var(--store-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphic Sticky Header */
.public-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(16px, 6vw, 80px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02);
}

.public-navbar-row {
    display: contents;
}

.public-nav-backdrop {
    display: none;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--store-text);
    transition: var(--store-transition);
}

.public-brand:hover {
    color: var(--store-primary);
    opacity: 0.95;
}

.public-brand .brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.28);
    transition: var(--store-transition);
    overflow: hidden;
}

.public-brand .brand-mark::after {
    content: "";
    position: absolute;
    inset: 5px 5px auto auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, .22);
}

.public-brand .brand-mark i {
    position: relative;
    z-index: 1;
}

.public-brand:hover .brand-mark {
    transform: rotate(6deg) scale(1.05);
}

.public-brand span {
    font-family: var(--store-font-title);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--store-text) 30%, var(--store-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.public-nav-link {
    font-family: var(--store-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--store-text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--store-transition);
}

.public-nav-link:hover,
.public-nav-link.active {
    color: var(--store-primary);
    background-color: var(--store-primary-soft);
}

.public-nav .btn-primary {
    font-family: var(--store-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--store-primary) 0%, var(--store-primary-hover) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    transition: var(--store-transition);
}

.public-nav .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
    background: linear-gradient(135deg, var(--store-primary-hover) 0%, #0d5c56 100%);
}

/* Beautiful Hero & Filtering Block */
.public-products-main {
    flex: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 32px);
}

.public-hero-section {
    position: relative;
    text-align: center;
    margin-bottom: clamp(32px, 6vw, 60px);
    padding: clamp(40px, 8vw, 80px) 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    box-shadow: var(--store-shadow-md);
    overflow: hidden;
    color: #ffffff;
}

.public-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 30s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.public-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.public-hero-badge {
    font-family: var(--store-font-sans);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.public-hero-badge span.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.public-hero-content h1 {
    font-family: var(--store-font-title);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 40%, #e2e8f0 70%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.public-hero-content p {
    font-family: var(--store-font-sans);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* Beautiful Interactive Search & Filter Controls */
.store-controls {
    margin-top: 32px;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-search-bar {
    position: relative;
    width: 100%;
}

.store-search-bar input {
    width: 100%;
    height: 52px;
    padding: 12px 48px 12px 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--store-font-sans);
    font-size: 0.98rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    transition: var(--store-transition);
}

.store-search-bar input:focus {
    outline: none;
    border-color: var(--store-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.3), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.store-search-bar input::placeholder {
    color: #64748b;
}

.store-search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: #94a3b8;
    transition: var(--store-transition);
    pointer-events: none;
    z-index: 1;
}

.store-search-bar input:focus ~ i,
.store-search-bar:focus-within i {
    color: var(--store-success);
}

.store-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.store-filter-pills button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 99px;
    font-family: var(--store-font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--store-transition);
}

.store-filter-pills button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.store-filter-pills button.active {
    background: var(--store-primary);
    border-color: var(--store-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

/* Premium Products Grid */
.public-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Stunning Product Card */
.public-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    background-color: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--store-shadow-sm);
    transition: var(--store-transition);
    position: relative;
    cursor: pointer;
}

.public-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--store-shadow-lg);
    border-color: rgba(15, 118, 110, 0.2);
}

.public-product-media {
    position: relative;
    aspect-ratio: 1.1 / 1;
    width: 100%;
    background-color: #f1f5f9;
    overflow: hidden;
    border-bottom: 1px solid var(--store-border);
}

.public-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Fallback gradient styling when image is missing */
.public-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    gap: 12px;
    font-family: var(--store-font-sans);
    font-size: 0.85rem;
    font-weight: 500;
}

.public-image-placeholder i {
    font-size: 2.5rem;
    color: #cbd5e1;
    transition: var(--store-transition);
}

.public-product-card:hover .public-image-placeholder i {
    transform: scale(1.1);
    color: var(--store-primary);
}

/* Float Badge on Image */
.public-card-badge-container {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

/* Main Content Area */
.public-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
    gap: 12px;
}

.public-product-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.public-product-header h2 {
    font-family: var(--store-font-title);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--store-text);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: var(--store-transition);
}

.public-product-card:hover .public-product-header h2 {
    color: var(--store-primary);
}

.public-product-content p {
    font-family: var(--store-font-sans);
    font-size: 0.9rem;
    color: var(--store-text-muted);
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

/* Footer Section of the Card */
.public-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.public-product-footer .price-wrapper {
    display: flex;
    flex-direction: column;
}

.public-product-footer .price-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--store-text-muted);
    font-weight: 600;
}

.public-product-footer strong {
    font-family: var(--store-font-title);
    color: var(--store-primary);
    font-size: 1.3rem;
    font-weight: 800;
}

/* Beautiful micro status badges */
.public-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    font-family: var(--store-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.public-stock-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Badges states */
.public-stock-badge {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}
.public-stock-badge::before {
    background-color: var(--store-success);
    box-shadow: 0 0 6px var(--store-success);
}

.public-stock-badge.status-limited {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fef3c7;
}
.public-stock-badge.status-limited::before {
    background-color: var(--store-warning);
    box-shadow: 0 0 6px var(--store-warning);
}

.public-stock-badge.status-order {
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}
.public-stock-badge.status-order::before {
    background-color: var(--store-info);
    box-shadow: 0 0 6px var(--store-info);
}

.public-stock-badge.is-unavailable,
.public-stock-badge.status-unavailable {
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}
.public-stock-badge.is-unavailable::before,
.public-stock-badge.status-unavailable::before {
    background-color: var(--store-danger);
    box-shadow: 0 0 6px var(--store-danger);
}

/* Elegant Details/CTA Button */
.public-product-footer .btn-store-details {
    font-family: var(--store-font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    background-color: var(--store-primary-soft);
    color: var(--store-primary);
    border: 1px solid rgba(15, 118, 110, 0.15);
    padding: 8px 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--store-transition);
}

.public-product-card:hover .btn-store-details {
    background-color: var(--store-primary);
    color: #ffffff;
    border-color: var(--store-primary);
    transform: translateX(2px);
}

/* Beautiful Interactive Modal for Product Details */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: inherit;
}

.custom-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background-color: var(--store-surface);
    border-radius: 24px;
    box-shadow: var(--store-shadow-lg);
    border: 1px solid var(--store-border);
    overflow: hidden;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.custom-modal.active .custom-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.custom-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    color: var(--store-text);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--store-transition);
}

.custom-modal-close:hover {
    background: var(--store-danger);
    color: #ffffff;
    transform: rotate(90deg);
}

.custom-modal-body {
    overflow-y: auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .custom-modal-body {
        grid-template-columns: 1.1fr 1.2fr;
    }
}

.modal-media-pane {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--store-border);
    position: relative;
    aspect-ratio: 1.1 / 1;
}

@media (min-width: 768px) {
    .modal-media-pane {
        border-bottom: none;
        border-right: 1px solid var(--store-border);
        height: 100%;
        min-height: 420px;
        aspect-ratio: auto;
    }
}

.modal-media-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details-pane {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.modal-details-pane h2 {
    font-family: var(--store-font-title);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--store-text);
    margin: 0;
    line-height: 1.25;
}

.modal-price-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-price {
    font-family: var(--store-font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--store-primary);
}

.modal-desc-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--store-text-muted);
}

.modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    white-space: pre-line;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom Scrollbar for Details pane and Description */
.modal-details-pane::-webkit-scrollbar,
.modal-desc::-webkit-scrollbar {
    width: 6px;
}
.modal-details-pane::-webkit-scrollbar-track,
.modal-desc::-webkit-scrollbar-track {
    background: transparent;
}
.modal-details-pane::-webkit-scrollbar-thumb,
.modal-desc::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Action CTA inside modal */
.modal-actions {
    margin-top: auto;
    padding-top: 10px;
}

.modal-actions .btn-whatsapp {
    width: 100%;
    height: 52px;
    background-color: #25d366;
    color: #ffffff;
    font-family: var(--store-font-sans);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    text-decoration: none;
    transition: var(--store-transition);
}

.modal-actions .btn-whatsapp:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transform: translateY(-1px);
}

/* Empty State aesthetics */
.public-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 380px;
    background-color: var(--store-surface);
    border: 2px dashed var(--store-border);
    border-radius: 24px;
    padding: 40px;
    gap: 16px;
    max-width: 600px;
    margin: 40px auto;
}

.public-empty-state i {
    font-size: 3.5rem;
    color: #cbd5e1;
    background: #f8fafc;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.public-empty-state h2 {
    font-family: var(--store-font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--store-text);
    margin: 0;
}

.public-empty-state p {
    font-size: 0.95rem;
    color: var(--store-text-muted);
    max-width: 360px;
    margin: 0;
    line-height: 1.5;
}

/* Footer of the Vitrine */
.public-footer {
    border-top: 1px solid var(--store-border);
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 24px;
    text-align: center;
    font-family: var(--store-font-sans);
}

.public-footer-brand {
    font-family: var(--store-font-title);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.public-footer-text {
    font-size: 0.88rem;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.public-footer-copyright {
    font-size: 0.8rem;
    color: #475569;
}

/* Modern homepage refresh */
.public-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--store-text);
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--store-shadow-sm);
}

.public-hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
    text-align: left;
    padding: clamp(36px, 7vw, 76px);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(17, 94, 89, .92)),
        linear-gradient(45deg, rgba(180, 83, 9, .24), transparent 55%);
}

.public-hero-section::after {
    content: "";
    position: absolute;
    inset: auto 8% -22% auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .13);
    pointer-events: none;
}

.public-hero-content {
    align-items: flex-start;
    max-width: 680px;
    margin: 0;
}

.public-hero-content h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
}

.public-hero-content p {
    max-width: 620px;
    color: #d1d5db;
}

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

.public-hero-actions .btn {
    min-height: 46px;
    border-radius: 12px;
    padding-inline: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
}

.public-hero-actions .btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--store-primary), #059669);
}

.public-hero-actions .btn-light {
    color: var(--store-text);
    border: 0;
}

.public-hero-actions .btn:hover,
.public-back-to-top:hover {
    transform: translateY(-2px);
}

.public-hero-visual {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-product-frame {
    width: min(100%, 370px);
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    padding: 10px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 32px 80px rgba(0, 0, 0, .28);
    transform: rotate(2deg);
    overflow: hidden;
}

.hero-product-frame img,
.hero-product-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.hero-product-frame img {
    object-fit: cover;
    display: block;
}

.hero-product-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e0f2fe, #dcfce7);
    color: var(--store-primary);
    font-size: 4rem;
}

.hero-floating-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
    font-weight: 800;
    font-size: .88rem;
}

.hero-card-top {
    top: 38px;
    left: 0;
}

.hero-card-bottom {
    right: 0;
    bottom: 44px;
}

.public-benefits-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: clamp(30px, 5vw, 52px);
}

.public-benefit-card {
    background: #ffffff;
    border: 1px solid var(--store-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--store-shadow-sm);
    transition: var(--store-transition);
}

.public-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-shadow-md);
    border-color: rgba(15, 118, 110, .22);
}

.public-benefit-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--store-primary), #14b8a6);
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.public-benefit-card h2,
.public-benefit-card h3,
.public-section-heading h2 {
    font-family: var(--store-font-title);
    color: var(--store-text);
}

.public-benefit-card h2,
.public-benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.public-benefit-card p {
    color: var(--store-text-muted);
    margin: 0;
    line-height: 1.55;
    font-size: .92rem;
}

.public-section-heading {
    margin-bottom: 20px;
}

.public-section-heading span {
    color: var(--store-primary);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}

.public-section-heading h2 {
    margin: 6px 0 0;
    font-size: 2.15rem;
    font-weight: 850;
}

.public-product-card {
    opacity: 0;
    transform: translateY(18px);
}

.public-product-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--animation-order, 0) * 35ms);
}

.public-product-footer {
    justify-content: flex-end;
}

.public-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--store-primary), var(--store-primary-hover));
    box-shadow: 0 14px 32px rgba(15, 118, 110, .28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: var(--store-transition);
}

.public-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .public-hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-hero-content {
        align-items: center;
        margin: 0 auto;
    }

    .public-hero-visual {
        min-height: 310px;
    }

    .hero-product-frame {
        width: min(82vw, 300px);
    }

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

@media (max-width: 767.98px) {
    .public-navbar {
        align-items: center;
        padding: 16px;
        flex-wrap: wrap;
    }

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

    .public-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 10px;
    }

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

    .public-nav-link,
    .public-nav .btn-primary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .public-nav .btn-primary {
        padding: 10px 16px;
    }

    .public-products-main {
        padding: 18px 14px 42px;
    }

    .public-hero-section {
        padding: 32px 16px;
        border-radius: 20px;
        gap: 22px;
    }

    .public-hero-actions {
        width: 100%;
    }

    .public-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .store-controls {
        margin-top: 18px;
    }

    .store-filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .store-filter-pills button {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .hero-floating-card {
        font-size: .78rem;
        padding: 8px 10px;
    }

    .hero-card-top {
        left: 8px;
        top: 24px;
    }

    .hero-card-bottom {
        right: 8px;
        bottom: 28px;
    }

    .public-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .public-product-content {
        padding: 18px;
    }

    .custom-modal {
        padding: 10px;
    }

    .custom-modal-content {
        max-height: 94vh;
        border-radius: 18px;
    }

    .modal-details-pane {
        padding: 22px;
    }
}

@media (max-width: 420px) {
    .public-brand span {
        font-size: 1.05rem;
    }

    .public-brand .brand-mark {
        width: 38px;
        height: 38px;
    }

    .public-hero-content h1 {
        font-size: 2.35rem;
    }
}

/* Complete OMR SHOP home refresh. */
.public-products-body {
    background:
        radial-gradient(circle at 8% 8%, rgba(20, 184, 166, .13), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(37, 99, 235, .12), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #eef6f7 44%, #f8fafc 100%);
}

.public-navbar {
    padding: 14px clamp(18px, 5vw, 82px);
}

.public-brand span,
.public-hero-content h1 {
    letter-spacing: 0;
}

.public-brand .brand-mark {
    border-radius: 14px;
}

.public-nav {
    gap: 8px;
}

.public-nav-link {
    position: relative;
    padding: 10px 14px;
    border: 1px solid transparent;
}

.public-nav-link.active {
    border-color: rgba(15, 118, 110, .18);
    box-shadow: inset 0 -2px 0 var(--store-primary);
}

.public-products-main {
    max-width: 1480px;
    padding: 28px clamp(16px, 4vw, 58px) 58px;
}

.public-hero-section {
    min-height: 480px;
    margin-bottom: 38px;
    border-radius: 22px;
    isolation: isolate;
    padding: 48px clamp(34px, 5vw, 64px);
}

.public-hero-content,
.public-hero-visual {
    min-width: 0;
    width: 100%;
}

.public-hero-section::before {
    animation-duration: 42s;
}

.public-hero-content h1 {
    font-size: 4.25rem;
}

.public-hero-content p {
    font-size: 1.12rem;
}

.public-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.public-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .08);
    font-size: .84rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.public-hero-badges i {
    color: #5eead4;
}

.store-controls {
    max-width: 760px;
}

.hero-product-frame {
    width: min(100%, 320px);
}

.public-benefits-section {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.public-benefit-card {
    min-height: 210px;
    border-radius: 14px;
}

.public-benefit-card:nth-child(2) i,
.public-benefit-card:nth-child(5) i {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.public-benefit-card:nth-child(3) i {
    background: linear-gradient(135deg, #b7791f, #f59e0b);
}

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

.public-product-card {
    border-radius: 14px;
    outline: none;
}

.public-product-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .16), var(--store-shadow-lg);
}

.public-product-media {
    aspect-ratio: 4 / 3;
}

.public-product-category {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.2;
}

.public-product-footer .btn-store-details {
    min-height: 38px;
    border-radius: 9px;
}

.public-reveal,
.public-benefit-card,
.public-section-heading {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease, box-shadow .3s ease, border-color .3s ease;
}

.public-reveal.is-visible,
.public-benefit-card.is-visible,
.public-section-heading.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.public-product-card.is-filtered-out {
    pointer-events: none;
}

.modal-desc {
    white-space: pre-line;
}

.public-footer {
    padding: 0;
    text-align: left;
    background:
        linear-gradient(135deg, #0f172a 0%, #123836 62%, #0f172a 100%);
}

.public-footer-inner {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 36px clamp(18px, 4vw, 58px);
    display: grid;
    grid-template-columns: 1fr 1.35fr 1.3fr auto;
    gap: 22px;
    align-items: center;
}

.public-footer-brand {
    justify-content: flex-start;
    margin: 0;
}

.public-footer-brand i {
    color: #10b981;
}

.public-footer-text {
    max-width: 620px;
    margin: 0;
}

.public-footer-contact {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #cbd5e1;
    font-size: .9rem;
    line-height: 1.5;
}

.public-footer-contact span,
.public-footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.public-footer-contact i {
    color: #10b981;
    margin-top: 2px;
}

.public-footer-contact a {
    color: #ffffff;
    font-weight: 700;
}

.public-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.public-footer-links a {
    color: #cbd5e1;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
}

.public-footer-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
}

.public-footer-copyright {
    grid-column: 1 / -1;
    margin: 0;
    width: 100%;
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 1199.98px) {
    .public-hero-content h1 {
        font-size: 3.7rem;
    }

    .public-benefits-section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .public-section-heading h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 991.98px) {
    .public-hero-section {
        min-height: auto;
    }

    .public-benefits-section,
    .public-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-footer-brand,
    .public-footer-links {
        justify-content: center;
    }

    .public-footer-text {
        margin: 0 auto;
    }

    .public-footer-contact {
        justify-items: center;
    }

    .public-footer-contact span,
    .public-footer-contact a {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .public-navbar {
        position: sticky;
        padding: 12px 14px;
    }

    .public-nav {
        display: flex;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-top: 0;
        transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
    }

    .public-nav.is-open {
        max-height: 320px;
        opacity: 1;
        padding-top: 10px;
    }

    .public-menu-lock {
        overflow: hidden;
    }

    .public-hero-content h1 {
        font-size: 2.15rem;
    }

    .public-hero-content p {
        max-width: 100%;
        font-size: .9rem;
        line-height: 1.5;
    }

    .public-hero-badge {
        max-width: 100%;
        font-size: .68rem;
        letter-spacing: .08em;
        overflow: hidden;
    }

    .public-hero-badge span:not(.pulse-dot) {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-hero-actions {
        width: 100%;
    }

    .public-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .public-hero-badges {
        display: none;
    }

    .store-controls,
    .store-filter-pills {
        width: 100%;
    }

    .public-hero-visual {
        display: none;
    }

    .store-filter-pills {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .public-benefits-section,
    .public-products-grid {
        grid-template-columns: 1fr;
    }

    .public-section-heading h2 {
        font-size: 1.55rem;
    }
}

/* Presentation polish layer for all business screens. */
.login-body {
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 48%, #e8f7f2 100%);
}

.login-panel {
    position: relative;
    overflow: hidden;
    border-color: rgba(148, 163, 184, .45);
    box-shadow: var(--shadow-lg);
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--blue), var(--amber));
}

.login-panel .form-label,
.form-label {
    color: #344054;
    font-size: .88rem;
    font-weight: 720;
}

.app-sidebar {
    background: linear-gradient(180deg, #111827 0%, #1f2937 56%, #172554 100%);
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.brand {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand-mark {
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    box-shadow: 0 10px 22px rgba(20, 184, 166, .28);
}

.nav-section-label {
    margin: 18px 12px 7px;
    color: rgba(255, 255, 255, .48);
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.app-nav .nav-link {
    min-height: 42px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, .76);
}

.app-nav .nav-link:hover {
    border-color: rgba(255, 255, 255, .08);
    color: #fff;
    background: rgba(255, 255, 255, .10);
}

.app-nav .nav-link.active {
    border-color: rgba(94, 234, 212, .22);
    color: #fff;
    background: rgba(15, 118, 110, .28);
    box-shadow: inset 3px 0 0 #5eead4;
}

.app-nav .nav-link i,
.nav-sublink i {
    opacity: .9;
}

.app-topbar {
    border-bottom-color: rgba(148, 163, 184, .35);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}

.app-topbar h1 {
    color: #111827;
}

.topbar-kicker {
    color: #64748b;
    font-weight: 680;
}

.topbar-avatar {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    box-shadow: 0 10px 20px rgba(37, 99, 235, .20);
}

.metric,
.metric-card,
.surface,
.stock-panel,
.sale-card,
.cash-metric,
.stock-metric,
.public-product-card {
    border-color: rgba(148, 163, 184, .42);
    box-shadow: var(--shadow-sm);
}

.surface,
.stock-panel,
.sale-card {
    background: rgba(255, 255, 255, .96);
}

.metric,
.metric-card,
.cash-metric,
.stock-metric {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.metric {
    border-top: 3px solid rgba(15, 118, 110, .72);
}

.metric:nth-child(3n + 2) {
    border-top-color: rgba(37, 99, 235, .70);
}

.metric:nth-child(3n + 3) {
    border-top-color: rgba(183, 121, 31, .72);
}

.metric strong,
.metric-card strong,
.stock-metric strong,
.cash-metric strong {
    color: #111827;
}

.metric .bi,
.metric-icon {
    color: rgba(15, 118, 110, .78);
}

.metric:nth-child(3n + 2) .bi {
    color: rgba(37, 99, 235, .36);
}

.metric:nth-child(3n + 3) .bi {
    color: rgba(183, 121, 31, .36);
}

.section-heading,
.page-toolbar {
    align-items: flex-end;
}

.page-toolbar h2,
.section-heading h2 {
    color: #111827;
    font-size: 1.35rem;
}

.toolbar-actions {
    align-items: center;
}

.btn {
    min-height: 39px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .11);
}

.btn:active {
    transform: translateY(0);
}

.btn.btn-sm {
    min-height: 32px;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-strong);
    --bs-btn-hover-border-color: var(--primary-strong);
    --bs-btn-focus-shadow-rgb: 15, 118, 110;
}

.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #cbd5e1;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-border-color: #94a3b8;
    --bs-btn-hover-color: #1f2937;
}

.form-control,
.form-select {
    border-color: #cbd5e1;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .035);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.readonly-value {
    border-color: #d7e0ea;
    background: #f8fafc;
}

.table-controls {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 8px;
    background: #f8fafc;
}

.search-box .bi,
.stock-search .bi {
    color: #64748b;
}

.table-meta,
.stock-table-meta {
    color: #475569;
}

.app-table,
.stock-table {
    border-collapse: separate;
    border-spacing: 0;
}

.app-table th,
.stock-table thead th {
    border-bottom: 1px solid #dbe4ef;
    color: #475569;
    background: #f6f8fb;
}

.app-table td,
.stock-table tbody td {
    border-bottom: 1px solid #edf1f6;
}

.app-table tbody tr,
.stock-table tbody tr {
    transition: background-color .14s ease;
}

.app-table tbody tr:hover td,
.stock-table tbody tr:hover td {
    background: #fbfdff;
}

.table-actions .btn,
.summary-actions .btn {
    min-height: 32px;
    border-radius: 8px;
    box-shadow: none;
}

.badge,
.stock-badge,
.stock-state,
.sale-status-badge {
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.alert {
    border-radius: 8px;
    border-color: rgba(148, 163, 184, .36);
    box-shadow: var(--shadow-sm);
}

.quick-link-card {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.quick-link-card:hover,
.quick-link-card:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .10);
}

.chart-frame {
    border: 1px solid rgba(148, 163, 184, .30);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.detail-grid div:nth-child(4n + 1),
.detail-grid div:nth-child(4n + 2) {
    background: #fbfdff;
}

.sale-payment-summary > div,
.sale-totals dl > div,
.form-summary div {
    border-color: rgba(148, 163, 184, .36);
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.invoice,
.bon-print-sheet {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* Overridden in public-products-body primary stylesheet block */

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

@keyframes surface-loading {
    0% {
        transform: translateX(-18%);
    }
    50% {
        transform: translateX(18%);
    }
    100% {
        transform: translateX(-18%);
    }
}

@keyframes loading-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 118, 110, .35);
    }
    100% {
        box-shadow: 0 0 0 9px rgba(15, 118, 110, 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .dashboard-split,
    .dashboard-charts {
        grid-template-columns: 1fr;
    }

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

    .metric-card {
        grid-column: span 3;
    }

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

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

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

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

    .reports-filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .sidebar-lock {
        overflow: hidden;
    }

    .app-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .app-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform .18s ease;
        height: 100vh;
        height: 100dvh;
        bottom: auto;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        max-width: min(86vw, 312px);
    }

    .app-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .app-main {
        height: auto;
        min-height: 100vh;
        margin-left: 0;
        overflow-y: visible;
        width: 100%;
    }

    .app-topbar {
        min-height: 72px;
    }

    .topbar-user > span:not(.topbar-avatar) {
        display: none;
    }
}

@media (max-width: 767.98px) {
    /* Overridden by the new public storefront responsive rules */

    .page-toolbar h2,
    .section-heading h2 {
        font-size: 1.18rem;
    }

    .dashboard-grid,
    .admin-metrics,
    .detail-grid,
    .form-summary {
        grid-template-columns: 1fr;
    }

    .page-toolbar,
    .section-heading,
    .table-meta,
    .form-actions,
    .invoice-header,
    .invoice-parties,
    .sale-recap-header {
        align-items: stretch;
        flex-direction: column;
    }

    .low-stock-action {
        justify-content: space-between;
        margin-left: 0;
        width: 100%;
    }

    .invoice-status-line {
        justify-content: flex-start;
    }

    .sale-recap-status {
        justify-content: space-between;
        width: 100%;
    }

    .sale-totals,
    .sale-totals dl {
        grid-template-columns: 1fr;
    }

    .toolbar-actions {
        width: 100%;
    }

    .toolbar-actions .btn,
    .page-toolbar .btn,
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .page-toolbar > div,
    .form-surface form,
    .form-surface .row > [class*="col-"] {
        min-width: 0;
        width: 100%;
    }

    .form-surface {
        max-width: none;
    }

    .form-surface .row > [class*="col-"].d-flex {
        display: block !important;
    }

    .form-surface .row > [class*="col-"].d-flex .btn {
        width: 100%;
    }

    .app-content {
        padding: 14px;
    }

    .app-topbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 12px 14px;
        gap: 10px;
    }

    .app-topbar h1 {
        max-width: 100%;
        overflow: hidden;
        font-size: 1.12rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-topbar > div:not(.topbar-user) {
        min-width: 0;
    }

    .topbar-user {
        gap: 6px;
    }

    .topbar-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: .9rem;
    }

    .stock-alert-bell {
        min-width: 34px;
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        padding: 0;
    }

    .stock-alert-text {
        display: none !important;
    }

    .topbar-user form .btn {
        width: 34px;
        height: 34px;
        padding: 0;
    }

    .topbar-kicker {
        display: none;
    }

    .metric-card {
        grid-column: span 1;
    }

    .quick-link-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid,
    .filter-field,
    .stock-search,
    .stock-filter,
    .invoice-parties > div {
        width: 100%;
    }

    .stock-metrics,
    .cash-overview,
    .stock-filter-bar,
    .reports-filter-form {
        grid-template-columns: 1fr;
    }

    .reports-filter-actions {
        flex-direction: column;
    }

    .reports-filter-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .stock-search {
        grid-column: span 1;
    }

    .stock-table-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .table-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-basis: auto;
        min-width: 0;
        width: 100%;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .table-responsive {
        overflow-x: visible;
    }

    .fix-price-dialog {
        width: auto;
        max-width: none;
        margin: 10px;
    }

    .fix-price-modal .modal-content {
        max-height: calc(100dvh - 20px);
    }

    .fix-price-modal .modal-header,
    .fix-price-modal .modal-footer {
        flex: 0 0 auto;
    }

    .fix-price-modal .modal-header {
        align-items: flex-start;
        gap: 10px;
    }

    .fix-price-modal .modal-title {
        font-size: 1rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .fix-price-modal .modal-body {
        padding: 14px;
    }

    .fix-price-modal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .fix-price-modal .modal-footer .btn,
    .fix-price-trigger {
        width: 100%;
    }

    .exchange-history-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .exchange-history-table {
        min-width: 720px;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines),
    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) thead,
    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) tbody,
    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) tr,
    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) th,
    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) thead {
        display: none;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) tbody tr {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) tbody td {
        display: grid;
        grid-template-columns: minmax(118px, 40%) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        border: 0;
        border-bottom: 1px solid #eef2f6;
        padding: 10px 12px;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) tbody td:last-child {
        border-bottom: 0;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .78rem;
        font-weight: 750;
        text-align: left;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) .table-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
        max-width: 100%;
        min-width: 0;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) .table-actions form {
        display: inline-flex !important;
        flex: 0 0 auto;
        max-width: 32px;
    }

    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) .table-actions .btn {
        flex: 0 0 32px;
    }

    .bon-lines-table {
        min-width: 0 !important;
        width: 100%;
    }

    .bon-lines-table .form-select,
    .bon-lines-table .form-control,
    .bon-lines-table [data-label="Produit"] .form-select,
    .bon-lines-table [data-label="Lot"] .form-select,
    .bon-lines-table [data-label="Disponible"] .form-control {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .bon-lines-table tbody td {
        grid-template-columns: minmax(104px, 36%) minmax(0, 1fr) !important;
    }

    .bon-lines-table tbody td[data-label="Action"] {
        align-items: center;
    }

    .vente-surface {
        max-width: none;
        width: 100%;
    }

    .sale-card {
        margin-bottom: 14px;
    }

    .cart-editor-heading,
    .sale-recap-header {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table tfoot,
    .cart-table tr,
    .cart-table th,
    .cart-table td,
    .sale-summary-table,
    .sale-summary-table thead,
    .sale-summary-table tbody,
    .sale-summary-table tr,
    .sale-summary-table th,
    .sale-summary-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .cart-table,
    .sale-summary-table {
        border-collapse: separate;
        border-spacing: 0 10px;
        min-width: 0;
    }

    .cart-table thead,
    .cart-table tfoot,
    .sale-summary-table thead {
        display: none;
    }

    .cart-table tbody tr,
    .sale-summary-table tbody tr {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .cart-table tbody td,
    .sale-summary-table tbody td {
        display: grid;
        grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        border: 0;
        border-bottom: 1px solid #eef2f6;
        padding: 10px 12px;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .cart-table tbody td:last-child,
    .sale-summary-table tbody td:last-child {
        border-bottom: 0;
    }

    .cart-table tbody td::before,
    .sale-summary-table tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .78rem;
        font-weight: 750;
        text-align: left;
    }

    .sale-summary-table [data-summary-empty] td {
        display: block;
        text-align: center !important;
    }

    .sale-summary-table [data-summary-empty] td::before {
        content: none;
    }

    .cart-table .form-select,
    .cart-table .form-control,
    .cart-table select {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .cart-table [data-cart-stock],
    .cart-table [data-cart-subtotal],
    .sale-summary-table td:nth-child(5) {
        white-space: normal;
    }

    .summary-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        min-width: 0;
    }

    .sale-totals,
    .sale-totals dl,
    .sale-payment-summary {
        grid-template-columns: 1fr;
    }

    .sale-totals dd,
    .sale-payment-summary dd {
        text-align: left;
    }

    .invoice {
        padding: 16px;
    }

    .invoice-container {
        overflow: hidden;
    }

    .invoice-table,
    .invoice-table thead,
    .invoice-table tbody,
    .invoice-table tfoot,
    .invoice-table tr,
    .invoice-table th,
    .invoice-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .invoice-table {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .invoice-table thead {
        display: none;
    }

    .invoice-table tbody tr {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .invoice-table tbody td {
        display: grid;
        grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        border: 0;
        border-bottom: 1px solid #eef2f6;
        padding: 10px 12px;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

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

    .invoice-table tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .78rem;
        font-weight: 750;
    }

    .invoice-table tfoot tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        border-top: 1px solid var(--line);
        padding: 8px 0;
    }

    .invoice-table tfoot th {
        border: 0;
        padding: 2px 0;
        text-align: left !important;
    }

    .invoice-table tfoot th[colspan] {
        color: var(--muted);
        font-size: .82rem;
    }

    .invoice-total-box {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .surface,
    .sale-card,
    .metric,
    .quick-link-card,
    .cash-metric,
    .form-control,
    .form-select {
        min-width: 0;
    }

    .stock-table-wrap {
        overflow-x: visible;
    }

    .stock-table,
    .stock-table thead,
    .stock-table tbody,
    .stock-table tr,
    .stock-table th,
    .stock-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .stock-table {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .stock-table thead {
        display: none;
    }

    .stock-table tbody tr {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .stock-table tbody td {
        display: grid;
        grid-template-columns: minmax(120px, 42%) minmax(0, 1fr);
        gap: 10px;
        border: 0;
        border-bottom: 1px solid #eef2f6;
        padding: 10px 12px;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

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

    .stock-table tbody td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .78rem;
        font-weight: 750;
    }

    .table-pagination {
        justify-content: center;
    }

    .invoice {
        margin: 0;
        border: 0;
        padding: 18px;
    }
}

@media (max-width: 420px) {
    .app-table:not(.cart-table):not(.sale-summary-table):not(.invoice-table):not(.print-table):not(.thermal-lines) tbody td,
    .stock-table tbody td,
    .bon-lines-table tbody td,
    .cart-table tbody td,
    .sale-summary-table tbody td,
    .invoice-table tbody td {
        grid-template-columns: 1fr !important;
        gap: 4px;
    }

    .app-content {
        padding: 10px;
    }

    .surface,
    .sale-card {
        border-radius: 6px;
    }
}

/* ==========================================================================
   PREMIUM STOREFRONT & LOGIN — V2 REFRESH
   ========================================================================== */

/* Navbar scroll state */
.public-navbar.is-scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.public-nav-cta {
    margin-left: 4px;
}

.public-section-lead {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--store-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.public-section-heading {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 36px);
}

.public-section-heading .public-section-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Hero stats */
.public-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.public-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 110px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.public-hero-stat strong {
    font-family: var(--store-font-title);
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.public-hero-stat span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Product card overlay */
.public-product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.public-product-card:hover .public-product-overlay {
    opacity: 1;
}

.public-product-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--store-text);
    font-size: 0.88rem;
    font-weight: 700;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.public-product-card:hover .public-product-overlay-btn {
    transform: translateY(0);
}

/* Testimonials */
.public-testimonials-section {
    margin: clamp(40px, 6vw, 64px) 0;
    padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 32px);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--store-border);
    box-shadow: var(--store-shadow-sm);
}

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

.public-testimonial-card {
    margin: 0;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--store-border);
    box-shadow: var(--store-shadow-sm);
    transition: var(--store-transition);
}

.public-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-shadow-md);
    border-color: rgba(15, 118, 110, 0.2);
}

.public-testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.public-testimonial-card p {
    margin: 0 0 18px;
    color: var(--store-text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    font-style: italic;
}

.public-testimonial-card footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-testimonial-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--store-primary), #14b8a6);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.public-testimonial-card footer strong {
    display: block;
    font-size: 0.92rem;
    color: var(--store-text);
}

.public-testimonial-card footer span {
    display: block;
    font-size: 0.8rem;
    color: var(--store-text-muted);
}

/* FAQ */
.public-faq-section {
    margin: clamp(32px, 5vw, 48px) 0;
}

.public-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.public-faq-item {
    border: 1px solid var(--store-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--store-shadow-sm);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.public-faq-item[open] {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: var(--store-shadow-md);
}

.public-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    font-family: var(--store-font-title);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--store-text);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.public-faq-item summary::-webkit-details-marker {
    display: none;
}

.public-faq-item summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 1rem;
    color: var(--store-primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.public-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.public-faq-item summary:hover {
    color: var(--store-primary);
}

.public-faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--store-text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.public-faq-item p a {
    color: var(--store-primary);
    font-weight: 700;
}

/* CTA Banner */
.public-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: clamp(32px, 5vw, 48px);
    padding: clamp(28px, 5vw, 40px) clamp(24px, 5vw, 48px);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--store-primary) 0%, #115e59 55%, #0f766e 100%);
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 118, 110, 0.25);
}

.public-cta-banner h2 {
    font-family: var(--store-font-title);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 6px;
}

.public-cta-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.public-cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-cta-banner-actions .btn {
    min-height: 46px;
    padding-inline: 20px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.public-cta-banner-actions .btn-light {
    color: var(--store-text);
    border: 0;
}

.public-cta-banner-actions .btn-primary {
    background: #ffffff;
    color: var(--store-primary);
    border: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.public-cta-banner-actions .btn-primary:hover {
    background: #f0fdf4;
    color: var(--store-primary-hover);
}

/* Footer V2 */
.public-footer-inner {
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 32px;
    align-items: start;
    padding: 48px clamp(18px, 4vw, 58px) 28px;
}

.public-footer-col {
    min-width: 0;
}

.public-footer-about .public-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--store-font-title);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.public-footer-about .public-footer-brand .brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--store-primary), #14b8a6);
    color: #ffffff;
    font-size: 1.1rem;
}

.public-footer-heading {
    font-family: var(--store-font-title);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin: 0 0 16px;
}

.public-footer-nav {
    display: grid;
    gap: 8px;
}

.public-footer-nav a {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.public-footer-nav a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.public-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.public-footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.1rem;
    transition: var(--store-transition);
}

.public-footer-social a:hover {
    background: var(--store-primary);
    border-color: var(--store-primary);
    transform: translateY(-2px);
}

.public-footer-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.public-footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #94a3b8;
}

.public-footer-hours li strong {
    color: #ffffff;
    font-weight: 700;
}

.public-footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.public-footer-copyright {
    margin: 0;
    width: 100%;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.public-footer-tagline {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Reveal animations for new sections */
.public-testimonial-card,
.public-faq-section,
.public-cta-banner {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.public-testimonial-card.is-visible,
.public-faq-section.is-visible,
.public-cta-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   PREMIUM LOGIN — TWO-COLUMN LAYOUT
   ========================================================================== */

.login-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--store-font-sans, 'Inter', system-ui, sans-serif);
    background-color: #0b0f19;
    background-image:
        radial-gradient(at 0% 0%, rgba(15, 118, 110, 0.2) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(180, 83, 9, 0.15) 0, transparent 50%);
    overflow-x: hidden;
    position: relative;
}

.login-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.login-glow-1 {
    width: 360px;
    height: 360px;
    background: #0f766e;
    opacity: 0.2;
    top: 10%;
    left: 15%;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.login-glow-2 {
    width: 300px;
    height: 300px;
    background: #b45309;
    opacity: 0.15;
    bottom: 10%;
    right: 15%;
    animation: floatGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.08); }
}

.login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

.login-showcase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 6vw, 64px);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.15) 0%, transparent 50%),
        linear-gradient(225deg, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-showcase-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.login-showcase-brand .brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #115e59);
    font-size: 1.3rem;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.35);
}

.login-showcase-brand span:last-child {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.login-showcase-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.login-showcase-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.login-showcase-content p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 28px;
}

.login-showcase-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.login-showcase-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.login-showcase-features i {
    color: #34d399;
    font-size: 1rem;
}

.login-showcase-visual {
    position: absolute;
    right: 10%;
    bottom: 15%;
    display: flex;
    gap: 16px;
    z-index: 0;
    opacity: 0.7;
}

.login-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.login-showcase-card i {
    font-size: 1.8rem;
    color: #5eead4;
}

.login-showcase-card-accent {
    animation-delay: -4s;
}

.login-showcase-card-accent i {
    color: #fbbf24;
}

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.login-panel {
    width: 100%;
    max-width: 420px;
    background: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    padding: clamp(28px, 5vw, 40px);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardAppear {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0f766e, #b45309, #0f766e);
}

.login-brand-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    text-decoration: none;
    color: #ffffff;
}

.login-brand-mobile .brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #115e59);
    font-size: 1.3rem;
}

.login-brand-mobile span:last-child {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
}

.login-panel-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-panel-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #ffffff;
}

.login-subtitle {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.login-panel .form-label {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.login-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-group > i:first-child {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.login-input-group .form-control {
    padding-left: 42px !important;
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    min-height: 48px;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
}

.login-input-group .form-control:focus {
    background: rgba(15, 23, 42, 0.7) !important;
    border-color: #0f766e !important;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.25) !important;
}

.login-input-group .form-control.is-invalid {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.2) !important;
}

.login-password-field .form-control {
    padding-right: 48px !important;
}

.login-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    z-index: 2;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.login-password-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.login-panel .invalid-feedback {
    color: #fca5a5 !important;
    font-size: 0.82rem;
    margin-top: 6px;
}

.login-panel .alert {
    border-radius: 12px;
    font-size: 0.88rem;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.login-panel .alert-danger {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.25);
    color: #fca5a5;
}

.login-panel .alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.login-panel .btn-primary {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e, #115e59) !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
    transition: all 0.3s ease;
}

.login-panel .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

.login-panel .btn-primary:disabled {
    opacity: 0.8;
    transform: none;
    cursor: wait;
}

.login-panel .btn-outline-secondary {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    background: transparent;
    font-weight: 600;
    transition: all 0.25s ease;
}

.login-panel .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.login-submit-spinner {
    width: 1rem;
    height: 1rem;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loginSpin 0.75s linear infinite;
}

.login-form.is-submitting .login-submit-spinner {
    display: inline-block;
}

.login-form.is-submitting .login-submit-icon {
    display: none;
}

.login-connection-status {
    min-height: 1.25rem;
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 0.82rem;
    text-align: center;
}

.login-connection-status.is-warning {
    color: #fcd34d;
}

@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

/* Premium responsive */
@media (max-width: 1199.98px) {
    .public-testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991.98px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        display: none;
    }

    .login-brand-mobile {
        display: flex;
    }

    .login-form-section {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .public-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .public-cta-banner {
        flex-direction: column;
        text-align: center;
    }

    .public-cta-banner-actions {
        justify-content: center;
        width: 100%;
    }

    .public-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-footer-about .public-footer-brand,
    .public-footer-social {
        justify-content: center;
    }

    .public-footer-nav {
        justify-items: center;
    }

    .public-footer-contact span,
    .public-footer-contact a {
        justify-content: center;
    }

    .public-footer-hours li {
        justify-content: center;
        gap: 24px;
    }

    .public-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .public-hero-stats {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .public-nav.is-open {
        max-height: 420px;
    }

    .public-hero-stats {
        width: 100%;
    }

    .public-hero-stat {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .public-cta-banner-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .login-glow {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .public-hero-stat {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   MOBILE PROFESSIONAL POLISH — overrides consolidés
   ========================================================================== */

@media (max-width: 767.98px) {
    .public-products-body {
        -webkit-tap-highlight-color: transparent;
    }

    /* Header mobile */
    .public-navbar {
        position: sticky;
        top: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 14px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
        flex-wrap: nowrap;
    }

    .public-navbar-row {
        position: relative;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .public-brand .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
        border-radius: 12px;
    }

    .public-brand .brand-text,
    .public-brand span:not(.brand-mark) {
        font-size: 1.1rem;
    }

    .public-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .public-nav-backdrop {
        position: fixed;
        inset: var(--public-navbar-height, 64px) 0 0;
        z-index: 1;
        display: block;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        animation: mobileFadeIn 0.2s ease;
    }

    .public-nav-backdrop[hidden] {
        display: none !important;
    }

    @keyframes mobileFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .public-nav {
        display: flex;
        position: fixed;
        top: calc(var(--public-navbar-height, 64px) + 8px);
        left: 12px;
        right: 12px;
        z-index: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        margin: 0;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid var(--store-border);
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
        transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, padding 0.22s ease;
        pointer-events: none;
    }

    .public-nav.is-open {
        max-height: min(76dvh, calc(100dvh - var(--public-navbar-height, 64px) - env(safe-area-inset-bottom, 0px) - 18px));
        opacity: 1;
        padding: 12px;
        pointer-events: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .public-nav-link {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 13px 16px;
        border-radius: 12px;
        font-size: 0.96rem;
        border: 0;
        box-shadow: none;
    }

    .public-nav-link.active {
        background: var(--store-primary-soft);
        color: var(--store-primary);
        box-shadow: none;
    }

    .public-nav .btn-primary,
    .public-nav-cta {
        min-height: 50px;
        width: 100%;
        margin-top: 6px;
        border-radius: 12px;
        justify-content: center;
    }

    .public-menu-lock {
        overflow: hidden;
        touch-action: none;
    }

    /* Main layout */
    .public-products-main {
        padding: 14px 12px 36px;
        padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
    }

    /* Hero mobile */
    .public-hero-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-height: auto;
        margin-bottom: 24px;
        padding: 20px 16px;
        border-radius: 18px;
        text-align: left;
    }

    .public-hero-content {
        align-items: flex-start;
        gap: 12px;
        max-width: none;
        order: 1;
    }

    .public-hero-visual {
        display: none;
    }

    .hero-product-frame {
        width: 100%;
        max-width: 280px;
        aspect-ratio: 16 / 10;
        transform: none;
        border-radius: 16px;
        padding: 6px;
    }

    .hero-product-frame img,
    .hero-product-placeholder {
        border-radius: 12px;
    }

    .hero-product-placeholder {
        font-size: 2.5rem;
    }

    .hero-floating-card {
        display: none;
    }

    .public-hero-badge {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
        padding: 5px 12px;
        max-width: 100%;
    }

    .public-hero-content h1 {
        font-size: clamp(1.65rem, 7vw, 2rem);
        line-height: 1.15;
        text-align: left;
    }

    .public-hero-content p {
        font-size: 0.88rem;
        line-height: 1.55;
        color: #cbd5e1;
        text-align: left;
    }

    .public-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .public-hero-actions .btn {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.82rem;
        border-radius: 11px;
    }

    .public-hero-actions .btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .public-hero-stat {
        min-width: 0;
        padding: 10px 8px;
        border-radius: 12px;
        text-align: center;
        align-items: center;
    }

    .public-hero-stat strong {
        font-size: 1.15rem;
    }

    .public-hero-stat span {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .public-hero-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .public-hero-badges span {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 0.72rem;
        justify-content: center;
        text-align: center;
    }

    /* Search & filters */
    .store-controls {
        margin-top: 8px;
        max-width: none;
    }

    .store-search-bar input {
        height: 46px;
        font-size: 0.9rem;
        border-radius: 12px;
        padding-left: 42px;
    }

    .store-filter-pills {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding: 2px 2px 8px;
        margin: 0 -2px;
        scrollbar-width: none;
        mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    }

    .store-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .store-filter-pills button {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-height: 36px;
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    /* Section headings */
    .public-section-heading {
        text-align: left;
        margin-bottom: 18px;
    }

    .public-section-heading h2 {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .public-section-lead {
        font-size: 0.88rem;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    /* Benefits — défilement horizontal */
    .public-benefits-section {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 4px 2px 12px;
        margin-bottom: 28px;
        scrollbar-width: none;
    }

    .public-benefits-section::-webkit-scrollbar {
        display: none;
    }

    .public-benefit-card {
        flex: 0 0 min(78vw, 260px);
        scroll-snap-align: start;
        min-height: auto;
        padding: 18px;
        border-radius: 16px;
    }

    .public-benefit-card h2,
    .public-benefit-card h3 {
        font-size: 0.98rem;
    }

    .public-benefit-card p {
        font-size: 0.84rem;
    }

    /* Produits — grille 2 colonnes */
    .public-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .public-product-card {
        border-radius: 14px;
    }

    .public-product-media {
        aspect-ratio: 1 / 1;
    }

    .public-product-content {
        padding: 12px;
        gap: 8px;
    }

    .public-product-header h2 {
        font-size: 0.92rem;
        -webkit-line-clamp: 2;
    }

    .public-product-content p {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }

    .public-product-category {
        font-size: 0.68rem;
        padding: 3px 7px;
    }

    .public-stock-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .public-card-badge-container {
        top: 8px;
        right: 8px;
    }

    .public-product-footer {
        padding-top: 8px;
    }

    .public-product-footer .btn-store-details {
        width: 100%;
        justify-content: center;
        min-height: 34px;
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    @media (hover: none) {
        .public-product-overlay {
            opacity: 1;
            background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.55) 100%);
        }

        .public-product-overlay-btn {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.75rem;
            padding: 6px 12px;
        }
    }

    /* Témoignages */
    .public-testimonials-section {
        margin: 28px 0;
        padding: 22px 16px;
        border-radius: 18px;
    }

    .public-testimonial-card {
        padding: 18px;
        border-radius: 14px;
    }

    .public-testimonial-card p {
        font-size: 0.86rem;
    }

    /* FAQ */
    .public-faq-item summary {
        padding: 16px;
        font-size: 0.9rem;
        min-height: 52px;
    }

    .public-faq-item p {
        padding: 0 16px 16px;
        font-size: 0.86rem;
    }

    /* CTA banner */
    .public-cta-banner {
        padding: 22px 18px;
        border-radius: 18px;
        text-align: left;
        gap: 16px;
    }

    .public-cta-banner h2 {
        font-size: 1.25rem;
    }

    .public-cta-banner p {
        font-size: 0.86rem;
    }

    .public-cta-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .public-cta-banner-actions .btn {
        min-height: 44px;
        font-size: 0.82rem;
        padding-inline: 12px;
    }

    /* Footer mobile professionnel */
    .public-footer {
        text-align: left;
    }

    .public-footer-inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 32px 18px 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        text-align: left;
    }

    .public-footer-col {
        padding: 22px 0;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        border-radius: 0;
    }

    .public-footer-about {
        padding-top: 0;
        border-top: 0;
    }

    .public-footer-about .public-footer-brand {
        justify-content: flex-start;
    }

    .public-footer-text {
        margin: 0;
        max-width: 36rem;
    }

    .public-footer-social {
        justify-content: flex-start;
    }

    .public-footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: start;
        column-gap: 18px;
        row-gap: 10px;
    }

    .public-footer-contact {
        justify-items: start;
    }

    .public-footer-contact span,
    .public-footer-contact a {
        justify-content: flex-start;
        text-align: left;
        font-size: 0.86rem;
    }

    .public-footer-hours li {
        justify-content: space-between;
    }

    .public-footer-bottom {
        background: transparent;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0;
        padding: 18px 0 0;
        text-align: left;
        justify-content: flex-start;
    }

    .public-footer-copyright {
        text-align: left;
    }

    /* Modal plein écran mobile */
    .custom-modal {
        padding: 0;
        align-items: flex-end;
    }

    .custom-modal-content {
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        max-width: none;
    }

    .custom-modal-close {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
    }

    .modal-details-pane {
        padding: 18px;
        gap: 14px;
    }

    .modal-details-pane h2 {
        font-size: 1.25rem;
        padding-right: 36px;
    }

    .modal-actions .btn-whatsapp {
        min-height: 48px;
        font-size: 0.92rem;
    }

    /* Bouton retour haut */
    .public-back-to-top {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }

    /* Login mobile */
    .login-form-section {
        padding: 16px;
        padding-top: calc(16px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        align-items: flex-start;
    }

    .login-panel {
        max-width: none;
        border-radius: 20px;
        padding: 24px 18px;
    }

    .login-panel-header h2 {
        font-size: 1.4rem;
    }

    .login-brand-mobile .brand-mark {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 420px) {
    .public-hero-actions {
        grid-template-columns: 1fr;
    }

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

    .public-cta-banner-actions {
        grid-template-columns: 1fr;
    }

    .public-products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .public-product-header h2 {
        font-size: 1rem;
    }

    .public-product-content p {
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 767.98px) and (min-width: 421px) {
    .public-benefit-card {
        flex-basis: min(44vw, 220px);
    }
}

/* ==========================================================================
   CATALOGUE RESPONSIVE HARDENING
   ========================================================================== */

.public-products-body {
    overflow-x: hidden;
}

.public-products-main,
.public-navbar,
.public-footer {
    width: 100%;
}

.public-products-main {
    margin-inline: auto;
}

.public-brand,
.public-nav-link,
.public-nav-cta,
.public-hero-actions .btn,
.store-filter-pills button,
.public-product-footer .btn-store-details,
.modal-actions .btn-whatsapp {
    min-width: 0;
}

.public-brand span,
.public-nav-link,
.public-hero-badge span,
.public-hero-actions .btn span,
.store-filter-pills button,
.public-product-header h2,
.public-product-content p,
.public-footer-nav a,
.public-footer-contact span,
.public-footer-contact a {
    overflow-wrap: anywhere;
}

.public-products-grid {
    align-items: stretch;
}

.public-product-card {
    min-height: 100%;
}

@media (min-width: 1200px) {
    .public-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .public-benefits-section {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .public-products-main {
        padding-inline: clamp(18px, 4vw, 36px);
    }

    .public-hero-section {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 38px 28px;
    }

    .public-hero-content {
        max-width: 780px;
    }

    .public-hero-content h1 {
        font-size: clamp(2.35rem, 6vw, 3.35rem);
    }

    .public-hero-visual {
        display: none;
    }

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

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

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

@media (max-width: 767.98px) {
    html {
        scroll-padding-top: 76px;
    }

    .public-navbar {
        z-index: 120;
        border-radius: 0 0 18px 18px;
    }

    .public-products-main {
        padding: 12px 12px 34px;
    }

    .public-hero-section,
    .public-testimonials-section,
    .public-cta-banner,
    .public-empty-state {
        border-radius: 16px;
    }

    .public-hero-section {
        gap: 16px;
        margin-bottom: 22px;
        padding: 18px 14px;
    }

    .public-hero-content {
        width: 100%;
    }

    .public-hero-badge {
        width: 100%;
        justify-content: flex-start;
    }

    .public-hero-badge span:not(.pulse-dot) {
        white-space: normal;
        text-overflow: clip;
    }

    .public-hero-content h1 {
        max-width: 100%;
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .public-hero-content p {
        max-width: 100%;
        font-size: 0.88rem;
    }

    .public-hero-actions,
    .public-hero-stats,
    .public-hero-badges {
        width: 100%;
    }

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

    .public-hero-actions .btn {
        min-height: 46px;
        padding-inline: 12px;
        white-space: normal;
    }

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

    .public-hero-stat {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-items: start;
        column-gap: 10px;
        text-align: left;
    }

    .public-hero-stat strong {
        font-size: 1.08rem;
    }

    .public-hero-stat span {
        font-size: 0.78rem;
    }

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

    .public-hero-badges span {
        justify-content: flex-start;
        text-align: left;
    }

    .store-controls {
        width: 100%;
    }

    .store-search-bar input {
        height: 48px;
        padding-right: 42px;
    }

    .store-filter-pills {
        mask-image: none;
        margin-inline: -12px;
        padding: 2px 12px 10px;
    }

    .store-filter-pills button {
        min-height: 38px;
        white-space: nowrap;
    }

    .public-section-heading {
        margin-bottom: 16px;
    }

    .public-section-heading h2 {
        font-size: clamp(1.28rem, 6vw, 1.55rem);
    }

    .public-section-lead {
        max-width: 100%;
    }

    .public-benefits-section {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .public-benefit-card {
        flex-basis: min(84vw, 300px);
    }

    .public-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .public-product-card {
        border-radius: 16px;
    }

    .public-product-media {
        aspect-ratio: 16 / 11;
    }

    .public-product-content {
        padding: 14px;
    }

    .public-product-header h2 {
        font-size: 1rem;
        line-height: 1.28;
    }

    .public-product-content p {
        font-size: 0.84rem;
        line-height: 1.55;
        -webkit-line-clamp: 3;
    }

    .public-stock-badge {
        max-width: calc(100vw - 70px);
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .public-product-overlay {
        display: none;
    }

    .public-product-footer .btn-store-details {
        min-height: 42px;
        font-size: 0.86rem;
    }

    .public-testimonials-section {
        margin: 26px 0;
        padding: 18px 14px;
    }

    .public-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .public-testimonial-card footer {
        align-items: flex-start;
    }

    .public-faq-list {
        gap: 8px;
    }

    .public-faq-item {
        border-radius: 12px;
    }

    .public-faq-item summary {
        align-items: flex-start;
        gap: 10px;
        line-height: 1.35;
    }

    .custom-modal {
        z-index: 140;
    }

    .custom-modal-content {
        width: 100%;
        max-height: 94dvh;
    }

    .custom-modal-body {
        max-height: 94dvh;
    }

    .modal-media-pane {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .modal-details-pane {
        padding: 16px;
    }

    .modal-desc {
        max-height: 150px;
    }
}

@media (min-width: 480px) and (max-width: 767.98px) {
    .public-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .public-product-media {
        aspect-ratio: 1 / 1;
    }

    .public-product-content {
        padding: 12px;
    }

    .public-product-header h2 {
        font-size: 0.94rem;
    }

    .public-product-content p {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 374.98px) {
    .public-navbar {
        padding-inline: 10px;
    }

    .public-brand .brand-mark {
        width: 38px;
        height: 38px;
    }

    .public-brand .brand-text,
    .public-brand span:not(.brand-mark) {
        font-size: 1rem;
    }

    .public-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .public-products-main {
        padding-inline: 10px;
    }

    .public-hero-section {
        padding: 16px 12px;
    }

    .store-filter-pills {
        margin-inline: -10px;
        padding-inline: 10px;
    }

    .public-footer-inner {
        padding-inline: 14px;
    }
}

/* Footer container alignment */
.public-footer-inner {
    width: min(100%, 1120px);
    margin-inline: auto;
    grid-template-columns: minmax(260px, 1.35fr) minmax(160px, 0.75fr) minmax(260px, 1fr);
    justify-content: center;
}

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

.public-footer-bottom .public-footer-social {
    justify-content: center;
    margin-top: 10px;
}

@media (max-width: 991.98px) {
    .public-footer-inner {
        width: min(100%, 560px);
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .public-footer-inner {
        width: min(100%, 430px);
        margin-inline: auto;
        text-align: left;
    }
}

/* Fixed public navbar */
html {
    scroll-padding-top: 88px;
}

.public-products-body {
    padding-top: 78px;
}

.public-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

@media (max-width: 767.98px) {
    html {
        scroll-padding-top: calc(var(--public-navbar-height, 64px) + 14px);
    }

    .public-products-body {
        padding-top: var(--public-navbar-height, calc(64px + env(safe-area-inset-top, 0px)));
    }

    .public-navbar {
        position: fixed;
    }

    .public-navbar.is-menu-open {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    }

    .public-navbar-row {
        position: relative;
        z-index: 3;
    }

    .public-nav-backdrop {
        inset: var(--public-navbar-height, 64px) 0 0;
        z-index: 1;
    }

    .public-nav {
        top: calc(var(--public-navbar-height, 64px) + 8px);
        z-index: 2;
    }

    .public-nav.is-open {
        max-height: min(76dvh, calc(100dvh - var(--public-navbar-height, 64px) - env(safe-area-inset-bottom, 0px) - 18px));
    }
}

/* Mobile footer: one natural vertical flow */
@media (max-width: 767.98px) {
    .public-footer {
        text-align: left;
    }

    .public-footer-inner {
        width: min(100%, 430px);
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 0;
        margin-inline: auto;
        text-align: left;
    }

    .public-footer-col {
        width: 100%;
        text-align: left;
    }

    .public-footer-about .public-footer-brand,
    .public-footer-brand,
    .public-footer-social {
        justify-content: flex-start;
    }

    .public-footer-text {
        margin-inline: 0;
    }

    .public-footer-nav {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 7px;
    }

    .public-footer-contact {
        justify-items: start;
    }

    .public-footer-contact span,
    .public-footer-contact a {
        justify-content: flex-start;
        text-align: left;
    }

    .public-footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .public-footer-bottom .public-footer-social {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .public-footer-copyright {
        text-align: center;
    }
}

/* Mobile hero card polish */
@media (max-width: 767.98px) {
    .public-hero-section {
        position: relative;
        overflow: hidden;
        margin-top: 10px;
        padding: 22px 16px 18px;
        border-radius: 22px;
        background: linear-gradient(145deg, #0f172a 0%, #123836 58%, #0f172a 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    }

    .public-hero-section::before {
        inset: 0;
        width: auto;
        height: auto;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), transparent 48%);
        animation: none;
        transform: none;
    }

    .public-hero-content {
        position: relative;
        z-index: 1;
        gap: 14px;
    }

    .public-hero-badge {
        width: auto;
        max-width: 100%;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 11px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #d1fae5;
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: 0;
    }

    .public-hero-badge span:not(.pulse-dot) {
        white-space: normal;
    }

    .public-hero-badge .pulse-dot {
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        background: #34d399;
        box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.16);
    }

    .public-hero-content h1 {
        margin: 0;
        color: #ffffff;
        font-size: clamp(1.68rem, 7.3vw, 2.12rem);
        line-height: 1.12;
    }

    .public-hero-content p {
        margin: 0;
        color: #cbd5e1;
        font-size: 0.91rem;
        line-height: 1.62;
    }

    .public-hero-actions {
        gap: 10px;
    }

    .public-hero-actions .btn {
        min-height: 48px;
        border-radius: 14px;
        font-size: 0.88rem;
        font-weight: 800;
        box-shadow: none;
    }

    .public-hero-actions .btn-light {
        background: rgba(255, 255, 255, 0.94);
        border-color: rgba(255, 255, 255, 0.94);
        color: #0f172a;
    }

    .public-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .public-hero-stat {
        display: flex;
        min-height: 74px;
        padding: 10px 7px;
        justify-content: center;
        text-align: center;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.09);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .public-hero-stat strong {
        color: #ffffff;
        font-size: 1.08rem;
    }

    .public-hero-stat span {
        color: #cbd5e1;
        font-size: 0.66rem;
        line-height: 1.25;
    }

    .public-hero-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .public-hero-badges span {
        width: auto;
        min-height: 30px;
        padding: 6px 10px;
        justify-content: flex-start;
        text-align: left;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.13);
        color: #dbeafe;
        font-size: 0.7rem;
    }
}

@media (max-width: 359.98px) {
    .public-hero-stats {
        grid-template-columns: 1fr;
    }

    .public-hero-stat {
        min-height: 0;
    }
}

@media print {
    @page {
        margin: 0;
    }

    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #fff;
    }

    .app-shell {
        display: block;
        height: auto;
        overflow: visible;
    }

    .app-sidebar,
    .app-topbar {
        display: none !important;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .app-content {
        padding: 0;
    }

    .print-button,
    .no-print,
    .thermal-actions,
    button,
    [role="button"] {
        display: none !important;
    }

    .bon-print-sheet {
        border: 0;
        box-shadow: none;
        max-width: none;
        padding: 18mm;
    }

    .invoice {
        border: 0;
        margin: 0;
        max-width: none;
    }

    .receipt-surface {
        border: 0;
        box-shadow: none;
        max-width: none;
        padding: 18mm;
    }

    .thermal-body {
        background: #fff;
        color: #000;
        font-size: 11px;
        height: auto;
        line-height: 1.18;
        margin: 0 !important;
        padding: 0 !important;
        width: var(--receipt-width, 80mm);
    }

    .thermal-receipt {
        background: #fff;
        border: 0;
        box-sizing: border-box;
        box-shadow: none;
        margin: 0;
        max-width: none;
        min-height: auto;
        overflow: visible;
        padding: 2mm 2mm 4mm;
        page-break-after: auto;
        page-break-before: auto;
        width: var(--receipt-width, 80mm);
    }

    .thermal-paper-58 .thermal-receipt {
        font-size: 12px;
        line-height: 1.2;
        padding: 1mm 1mm 4mm;
    }

    .thermal-receipt h1 {
        font-size: 14px;
        line-height: 1.1;
        margin: 2px 0 3px;
    }

    .thermal-paper-58 .thermal-receipt h1 {
        font-size: 16px;
    }

    .thermal-paper-58 .thermal-meta {
        font-size: 12px;
    }

    .thermal-meta {
        margin: 6px 0 0;
    }

    .thermal-meta p {
        margin: 0 0 2px;
    }

    .thermal-rule {
        margin: 5px 0 4px;
    }

    .thermal-lines {
        font-variant-numeric: tabular-nums;
    }

    .thermal-lines thead {
        display: table-header-group;
    }

    .thermal-lines tr,
    .thermal-total,
    .thermal-thanks {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .thermal-lines th,
    .thermal-lines td {
        padding: 2px 0;
    }

    .thermal-paper-58 .thermal-qty {
        width: 14mm;
    }

    .thermal-paper-58 .thermal-money {
        width: 18mm;
    }

    .thermal-total {
        font-size: 12px;
        gap: 4px;
        margin: 6px 0;
    }

    .thermal-paper-58 .thermal-total {
        font-size: 14px;
    }

    .thermal-separator {
        line-height: 1;
    }

    .thermal-thanks {
        margin: 4px 0;
    }
}
