:root {
    --ink: #17212b;
    --muted: #667085;
    --line: #e6e8ec;
    --surface: #ffffff;
    --soft: #f6f8fb;
    --accent: #0f766e;
    --accent-dark: #115e59;
}

* { letter-spacing: 0; }

body {
    color: var(--ink);
    background: var(--soft);
}

.customer-body {
    padding-bottom: 104px;
}

.customer-body .navbar-brand {
    color: var(--accent-dark);
}

.brand-link,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

.customer-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.customer-auth-page {
    width: min(520px, 100%);
    margin: 0 auto;
}

.view-toggle {
    flex-shrink: 0;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    height: 100%;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-card:hover,
.product-card:focus {
    border-color: rgba(13, 110, 253, .38);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    outline: none;
}

.product-grid.is-list-view > [data-product-col] {
    width: 100%;
}

.product-grid.is-list-view .product-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: stretch;
}

.product-grid.is-list-view .product-card img {
    height: 100%;
    aspect-ratio: auto;
}

.product-grid.is-list-view .product-card .description {
    min-height: 0;
}

.product-grid.is-list-view .product-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 18px;
}

.product-grid.is-list-view .product-title,
.product-grid.is-list-view .description,
.product-grid.is-list-view .product-price {
    grid-column: 1;
}

.product-grid.is-list-view .product-card .qty-control {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 132px;
    grid-template-columns: 38px 40px 38px;
    justify-self: end;
}

.product-card img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    background: #e9eef5;
}

.product-card-body {
    padding: 12px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.product-card .description {
    min-height: 36px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 800;
    line-height: 1.2;
}

.qty-control {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 44px;
    height: 44px;
    font-size: 22px;
    line-height: 1;
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
}

.checkout-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 1030;
    width: min(536px, calc(100% - 28px));
    border: 0;
    background: transparent !important;
    padding: 0;
    text-align: center;
}

.checkout-pill {
    min-height: 62px;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    padding: 0 22px;
    box-shadow: 0 18px 38px rgba(13, 110, 253, .28);
}

.checkout-pill:hover {
    background: #0b5ed7;
    color: #fff;
}

.checkout-pill.disabled {
    pointer-events: none;
    opacity: .65;
}

.checkout-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: #0d6efd;
    font-size: 14px;
    line-height: 1;
}

.checkout-label {
    text-align: center;
    font-size: 18px;
}

.checkout-amount {
    min-width: 86px;
    text-align: right;
    font-size: 14px;
}

.settings-logo-preview {
    width: 120px;
    height: 90px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.product-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .5);
}

.product-modal-overlay.is-open {
    display: flex;
}

.product-modal-dialog {
    width: min(620px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
}

.product-modal {
    background: #fff;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.product-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: start;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line);
}

.product-modal-header h2 {
    margin: 0;
    min-width: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-modal-header .btn-close {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 18px;
}

.product-modal-image {
    width: 100%;
    height: 190px;
    object-fit: contain;
    border-radius: 12px;
    background: #e9eef5;
}

.product-modal-detail {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-modal-detail p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.product-modal-price {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 800;
}

.product-modal-options {
    margin-top: auto;
}

.product-modal-actions {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}

.modal-cart-control {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 10px;
}

.modal-cart-control button {
    width: 52px;
    height: 52px;
    font-size: 22px;
}

.modal-qty {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    font-size: 20px;
    background: #fff;
}

.payment-info-image {
    max-width: 240px;
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.payment-method-thumb {
    width: 90px;
    height: 64px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

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

.settings-workspace {
    display: grid;
    gap: 14px;
}

.settings-tabs {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    margin: -4px 0 0;
    padding: 8px 0 12px;
    background: var(--soft);
    scrollbar-width: thin;
}

.settings-tabs .nav-item {
    flex: 0 0 auto;
}

.settings-tabs .nav-link {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.settings-tabs .nav-link.active {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 110, 253, .18);
}

.settings-tab-content {
    min-width: 0;
}

.settings-stack {
    display: grid;
    gap: 14px;
}

.settings-panel {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.settings-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.settings-panel-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.settings-panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.settings-panel-head .btn {
    flex-shrink: 0;
}

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

.settings-form-grid.two,
.settings-form-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-span-all {
    grid-column: 1 / -1;
}

.settings-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.settings-checkbox-row .form-check {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.settings-checkbox-row .form-check-input {
    margin: 0;
}

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

.settings-method-card {
    display: grid;
    grid-template-columns: minmax(190px, .75fr) minmax(0, 1.6fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.settings-method-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.settings-method-title {
    min-width: 0;
}

.settings-method-title span {
    display: block;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.settings-method-title small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.settings-method-actions {
    align-self: end;
}

.list-page-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.list-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.list-page-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.list-page-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.list-page-head .btn {
    flex-shrink: 0;
}

.admin-list-table {
    margin-bottom: 0;
}

.admin-list-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.list-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.list-item-main strong,
.list-item-main small {
    display: block;
    overflow-wrap: anywhere;
}

.list-item-main small {
    color: var(--muted);
    font-size: 12px;
}

.list-item-thumb {
    width: 58px;
    height: 46px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 8px;
    background: #e9eef5;
}

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

.icon-actions form {
    margin: 0;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #0d6efd;
    font-weight: 800;
    line-height: 1;
}

.icon-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, .08);
}

.icon-btn.danger {
    color: #dc3545;
}

.icon-btn.danger:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, .08);
}

.detail-preview-image {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.delivery-card {
    max-width: 720px;
    margin: 0 auto;
}

.delivery-needed-list {
    display: grid;
    gap: 10px;
}

.delivery-needed-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.delivery-needed-card strong,
.delivery-needed-card div {
    min-width: 0;
}

.delivery-needed-card small {
    display: block;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.delivery-needed-total {
    min-width: 130px;
    text-align: right;
}

.signature-pad {
    width: 100%;
    height: 180px;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    touch-action: none;
}

.cart-list {
    max-height: 320px;
    overflow: auto;
}

.checkout-page {
    width: min(560px, 100%);
    margin: 0 auto;
}

.checkout-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.checkout-kicker {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.checkout-topbar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.checkout-home-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.checkout-panel {
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.checkout-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-panel-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.checkout-panel-head a {
    color: #0d6efd;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.checkout-field {
    display: block;
    margin-bottom: 10px;
}

.checkout-field:last-child {
    margin-bottom: 0;
}

.checkout-field span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
}

.checkout-field .form-control,
.checkout-panel .form-control {
    border-radius: 8px;
    min-height: 42px;
}

.checkout-cart-list {
    max-height: none;
    overflow: visible;
}

.checkout-item-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.checkout-item-row:first-child {
    padding-top: 0;
}

.checkout-item-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.checkout-item-row img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    background: #e9eef5;
}

.checkout-item-main {
    min-width: 0;
}

.checkout-item-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.checkout-item-main small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.checkout-item-main strong,
.checkout-item-side strong {
    font-size: 13px;
}

.checkout-item-qty {
    width: 112px;
    height: 32px;
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.checkout-item-qty button,
.checkout-item-side button {
    border: 0;
    background: #fff;
    color: #0d6efd;
    font-weight: 800;
}

.checkout-item-qty span {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.checkout-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    text-align: right;
}

.checkout-item-side button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--ink);
}

.checkout-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.checkout-option:last-child {
    margin-bottom: 0;
}

.checkout-option input {
    margin-top: 2px;
}

.checkout-option strong {
    display: block;
    font-size: 13px;
}

.checkout-option small,
.checkout-option em {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.checkout-option img {
    width: 72px;
    height: 52px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.checkout-option:has(input:checked) {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
}

.checkout-promo summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.checkout-summary-line,
.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
}

.checkout-summary-line {
    border-bottom: 1px dashed var(--line);
}

.checkout-summary-total {
    padding-top: 12px;
    font-size: 15px;
    font-weight: 800;
}

.checkout-submit {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    min-height: 52px;
    border-radius: 8px;
    font-weight: 800;
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 16px 34px rgba(13, 110, 253, .24);
}

.receipt-page {
    width: min(620px, 100%);
    margin: 0 auto;
}

.receipt-paper {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

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

.receipt-kicker {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.receipt-head h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.receipt-head > strong {
    font-size: 13px;
    text-align: right;
}

.receipt-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    padding: 14px 0;
}

.receipt-meta span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.receipt-meta strong {
    display: block;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}

.receipt-row strong {
    font-size: 13px;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
}

.receipt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.history-list {
    display: grid;
    gap: 8px;
}

.history-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.history-row:hover {
    border-color: rgba(13, 110, 253, .38);
    color: var(--ink);
}

.history-row span:last-child {
    text-align: right;
}

.history-row small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.receipt-download-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
}

@media print {
    .navbar,
    .receipt-actions,
    .table-card,
    .alert {
        display: none !important;
    }

    body {
        background: #fff;
    }

    main.container {
        max-width: none;
        padding: 0 !important;
    }

    .receipt-page {
        width: 100%;
    }

    .receipt-paper {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.admin-sidebar {
    background: #101828;
    color: #fff;
    padding: 18px;
}

.admin-sidebar .brand {
    font-weight: 800;
    margin-bottom: 18px;
}

.admin-sidebar nav {
    display: grid;
    gap: 6px;
}

.admin-sidebar a {
    color: #d0d5dd;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
}

.admin-sidebar a:hover {
    background: #1d2939;
    color: #fff;
}

.admin-content {
    padding: 20px;
    overflow-x: auto;
}

.stat-card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: 16px;
}

.table-card, .form-card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: 16px;
}

.proof-frame {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .brand-logo {
        width: 30px;
        height: 30px;
    }

    .brand-link span {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-nav-actions {
        gap: 6px;
    }

    .customer-nav-actions .btn {
        padding: 6px 9px;
        font-size: 12px;
    }

    .settings-tabs {
        top: 76px;
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .settings-tabs .nav-link {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .settings-panel {
        padding: 12px;
        border-radius: 8px;
    }

    .settings-panel-head {
        display: grid;
        gap: 10px;
    }

    .settings-panel-head h2 {
        font-size: 16px;
    }

    .settings-panel-head .btn {
        width: 100%;
    }

    .settings-form-grid,
    .settings-form-grid.two,
    .settings-form-grid.compact {
        grid-template-columns: 1fr;
    }

    .settings-method-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .settings-method-actions .btn {
        width: 100%;
    }

    .list-page-card {
        padding: 12px;
    }

    .list-page-head {
        display: grid;
        gap: 10px;
    }

    .list-page-head .btn {
        width: 100%;
    }

    .admin-list-table th,
    .admin-list-table td {
        white-space: nowrap;
    }

    .list-item-main {
        min-width: 220px;
    }

    .view-toggle {
        padding: 6px 10px;
        font-size: 12px;
    }

    .product-grid {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 8px;
    }

    .product-card img {
        aspect-ratio: 1 / .72;
    }

    .product-grid.is-list-view .product-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .product-grid.is-list-view .product-card-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .product-grid.is-list-view .product-title,
    .product-grid.is-list-view .description,
    .product-grid.is-list-view .product-price {
        grid-column: 1;
    }

    .product-grid.is-list-view .product-card .qty-control {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        width: 116px;
        grid-template-columns: 34px 36px 34px;
    }

    .product-card-body {
        padding: 8px;
    }

    .product-title {
        font-size: 13px;
        min-height: 32px;
    }

    .product-card .description {
        font-size: 11px;
        min-height: 30px;
        margin-bottom: 6px !important;
    }

    .product-price {
        font-size: 13px;
    }

    .qty-control {
        grid-template-columns: 34px 1fr 34px;
        gap: 6px;
    }

    .qty-control button {
        width: 34px;
        height: 34px;
        padding: 0;
        font-size: 18px;
    }

    .qty-value {
        min-width: 28px;
        font-size: 13px;
    }

    .checkout-bar {
        bottom: 16px;
        width: min(536px, calc(100% - 28px));
    }

    .checkout-pill {
        min-height: 62px;
        grid-template-columns: 34px 1fr auto;
        gap: 10px;
        padding: 0 16px;
    }

    .checkout-count {
        width: 25px;
        height: 25px;
        font-size: 13px;
    }

    .checkout-label {
        font-size: 17px;
    }

    .checkout-amount {
        min-width: 78px;
        font-size: 13px;
    }

    .product-modal-image {
        height: 220px;
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 20;
        padding: 12px;
    }

    .admin-sidebar nav {
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

    .admin-sidebar a {
        white-space: nowrap;
    }

    .admin-content {
        padding: 14px;
    }

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

    .delivery-needed-total {
        min-width: 0;
        text-align: left;
    }

    .product-modal-overlay {
        padding: 12px;
    }

    .product-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .product-modal-header {
        padding: 14px 14px 10px;
    }

    .product-modal-header h2 {
        font-size: 18px;
    }

    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 14px;
    }

    .product-modal-actions {
        padding: 0 14px 14px;
    }

    .checkout-page {
        width: 100%;
    }

    .checkout-panel {
        padding: 12px;
        border-radius: 10px;
    }

    .checkout-item-row {
        grid-template-columns: 56px minmax(0, 1fr) auto;
    }

    .checkout-item-row img {
        width: 56px;
        height: 56px;
    }

    .checkout-option {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .checkout-option img {
        grid-column: 2;
        width: 86px;
        height: 58px;
    }

    .receipt-actions {
        grid-template-columns: 1fr;
    }

    .receipt-meta {
        grid-template-columns: 1fr;
    }

    .history-row {
        display: grid;
    }

    .history-row span:last-child {
        text-align: left;
    }
}
