:root {
    --brand: #0ABAB5;
    --brand-hover: #089E99;
    --brand-soft: #E6F7F6;
    --neutral-dark: #1F2937;
    --neutral-medium: #6B7280;
    --neutral-light: #F9FAFB;
    --accent: #F97316;
    --accent-hover: #EA580C;
    --highlight: #F4D35E;
    --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 12px 36px rgba(15, 23, 42, 0.05);
}


html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Gabarito", sans-serif;
    background: var(--neutral-light);
    color: var(--neutral-dark);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 0;
    background: var(--accent);
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.18);
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    min-height: 3rem;
    touch-action: manipulation;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(10, 186, 181, 0.2);
    background: #fff;
    padding: 0.75rem 1.5rem;
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    min-height: 3rem;
    touch-action: manipulation;
}

.btn-secondary:hover {
    border-color: var(--brand);
    background: rgba(230, 247, 246, 0.6);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.section-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand);
    font-size: 1.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-surface {
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #fff;
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .card-surface:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-soft);
    }
}

.card-surface:active {
    transform: scale(0.995);
}

.subtle-divider {
    width: 2.25rem;
    height: 2px;
    border-radius: 9999px;
    background: var(--brand);
}

.page-section {
    min-height: 100vh;
    background: var(--neutral-light);
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.page-stack {
    display: grid;
    gap: 1.5rem;
}

.home-banner {
    width: 100%;
    min-height: 18rem;
    height: clamp(18rem, 52vw, 40.625rem);
    overflow: hidden;
    background-color: #ffffff;
    background-image: url('/banner-home.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero-actions {
    justify-content: center;
    align-items: stretch;
}

.home-hero-shell {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.home-products-section {
    padding-top: 1.2rem;
    padding-bottom: 0.5rem;
}

.home-section-title {
    gap: 0.55rem;
    font-size: 1.55rem !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    text-transform: none;
}

.home-section-head {
    margin-bottom: 0.9rem;
}

.home-stores-section {
    padding-top: 1.75rem;
    padding-bottom: 2.25rem;
}

.general-store-page {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.general-store-shell {
    display: grid;
    gap: 1.1rem;
}

.general-store-head {
    margin-bottom: 0.15rem;
}

.general-store-title {
    font-size: 1.55rem !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    text-transform: none;
}

.general-store-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    background: #fff;
    padding: 0.8rem 0.95rem;
    box-shadow: var(--shadow-card);
}

.general-store-search i {
    color: var(--neutral-medium);
    font-size: 1rem;
}

.general-store-search input {
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--neutral-dark);
    font-size: 1rem;
    outline: none;
}

.general-store-search-button {
    grid-column: 1 / -1;
}

.general-store-categories {
    overflow: hidden;
}

.general-store-category-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.general-store-category-row::-webkit-scrollbar {
    display: none;
}

.general-store-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 9999px;
    background: #fff;
    padding: 0.55rem 1rem;
    color: var(--neutral-dark);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.general-store-category-pill:hover,
.general-store-category-pill.is-active {
    border-color: rgba(10, 186, 181, 0.35);
    background: var(--brand-soft);
    color: var(--brand);
}

.general-store-products {
    padding-top: 0.35rem;
}

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

.product-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    height: 100%;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    padding: 0.35rem;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-card-head,
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-card-media-shell {
    position: relative;
}

.product-card-head {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    left: 0.65rem;
    z-index: 2;
}

.product-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    border-radius: 9999px;
    background: var(--brand-soft);
    padding: 0.15rem 0.55rem;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.product-card-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-card-favorite:hover {
    color: #dc2626;
}

.product-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.9rem;
    text-decoration: none;
}

.product-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-card-media-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--brand);
}

.product-card-body {
    min-width: 0;
}

.product-card-store {
    margin: 0;
    color: var(--neutral-medium);
    font-size: 0.84rem;
    line-height: 1.3;
}

.product-card-title {
    margin: 0.1rem 0 0;
    color: var(--neutral-dark);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--brand);
}

.product-card-store,
.product-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-store {
    -webkit-line-clamp: 1;
}

.product-card-title {
    min-height: 2.4em;
    -webkit-line-clamp: 2;
}

.product-card-price {
    color: var(--neutral-dark);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.product-card-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    border: 0;
    border-radius: 15px;
    background: var(--accent);
    color: #fff;
    padding: 0.55rem 0.9rem;
    box-shadow: 0 10px 18px rgba(249, 115, 22, 0.22);
    font-size: 0.88rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-card-cart:hover {
    background: var(--accent-hover);
}

.product-card-cart span {
    line-height: 1;
}

.product-card-cart:active,
.product-card-favorite:active {
    transform: scale(0.96);
}

.page-banner {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 2rem;
    background:
        radial-gradient(circle at top right, rgba(230, 247, 246, 0.95), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.page-banner-grid {
    display: grid;
    gap: 1.25rem;
}

.page-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-dashboard-header {
    padding: 0.25rem 0 0.5rem;
}

.store-dashboard-header-grid {
    display: grid;
    gap: 1.25rem;
}

.store-dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-dashboard-actions-desktop {
    display: none;
}

.store-dashboard-mobile-menu {
    width: 100%;
}

.store-dashboard-mobile-menu summary {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    color: var(--neutral-dark);
    cursor: pointer;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    list-style: none;
    padding: 0.875rem 1rem;
}

.store-dashboard-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.store-dashboard-mobile-menu summary i {
    color: var(--brand);
    transition: transform 0.2s ease;
}

.store-dashboard-mobile-menu[open] summary i {
    transform: rotate(180deg);
}

.store-dashboard-mobile-menu-panel {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.75rem;
}

.store-dashboard-card,
[data-store-dashboard-page] .metric-card,
[data-store-products-page] .metric-card,
[data-store-orders-page] .metric-card {
    margin-bottom: 1.5rem;
}

.page-banner-metrics {
    display: grid;
    gap: 1rem;
}

.metric-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.125rem;
}

.metric-link-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.metric-link-card:hover {
    border-color: rgba(10, 186, 181, 0.45);
    transform: translateY(-2px);
}

.metric-label {
    color: var(--neutral-medium);
    font-size: 0.875rem;
}

.metric-value {
    margin-top: 0.5rem;
    color: var(--neutral-dark);
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.1;
}

.page-panel {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 2rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.panel-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-link {
    color: var(--brand);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mini-link:hover {
    color: var(--brand-hover);
}

.alert {
    border-radius: 1rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
}

.alert-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.form-grid {
    display: grid;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neutral-dark);
    font-size: 0.875rem;
    font-weight: 600;
}

.input-field,
.select-field,
.textarea-field,
.file-field {
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 1rem;
    background: #fff;
    padding: 0.875rem 1rem;
    color: var(--neutral-dark);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    min-height: 3.15rem;
}

.file-field {
    padding: 0.55rem;
}

.file-field::file-selector-button {
    margin-right: 1rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--brand);
    padding: 0.65rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.file-field::file-selector-button:hover {
    background: var(--brand-hover);
    cursor: pointer;
}

.textarea-field {
    resize: vertical;
    min-height: 7rem;
}

.rich-text-wrapper {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 1rem;
    background: #fff;
}

.rich-text-wrapper .ql-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 1);
    font-family: inherit;
}

.rich-text-wrapper .ql-container {
    border: 0;
    font-family: inherit;
    font-size: 0.95rem;
}

.rich-text-wrapper .ql-editor {
    height: 12rem;
    min-height: 12rem;
    overflow-y: auto;
    color: var(--neutral-dark);
}

.rich-text-editor {
    min-height: 12rem;
}

.rich-text-editor.ql-container {
    border: 0;
}

.rich-text-wrapper .ql-toolbar.ql-snow + .ql-container.ql-snow {
    border-top: 0;
}

.store-payment-group {
    grid-column: 1 / -1;
    min-width: 0;
}

.store-media-row {
    display: grid;
    grid-column: 1 / -1;
    gap: 1.25rem;
    min-width: 0;
}

.store-media-group {
    min-width: 0;
}

.rich-text-content :where(p, ul, ol) {
    margin-top: 0.5rem;
}

.rich-text-content :first-child {
    margin-top: 0;
}

.rich-text-content ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.rich-text-content ol {
    list-style: decimal;
    padding-left: 1.25rem;
}

.rich-text-content strong,
.rich-text-content b {
    color: var(--neutral-dark);
    font-weight: 700;
}

.input-field:focus,
.select-field:focus,
.textarea-field:focus,
.file-field:focus {
    border-color: rgba(10, 186, 181, 0.65);
    box-shadow: 0 0 0 4px rgba(10, 186, 181, 0.1);
}

.store-form-actions {
    display: flex;
    justify-content: flex-end;
}

.store-image-preview {
    margin-top: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 1rem;
    background: #f8fafc;
}

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

.store-image-preview-logo {
    width: 5rem;
    height: 5rem;
}

.store-image-preview-banner {
    width: min(100%, 18rem);
    aspect-ratio: 16 / 6;
}

.product-image-preview {
    width: min(100%, 14rem);
    aspect-ratio: 4 / 3;
}

.field-note {
    margin-top: 0.5rem;
    color: #dc2626;
    font-size: 0.875rem;
}

.category-inline-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-inline-control .select-field {
    min-width: 0;
    flex: 1;
}

.category-modal-trigger {
    flex: 0 0 auto;
    min-height: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.42);
    padding: 1rem;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-panel {
    width: min(100%, 32rem);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.modal-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.9rem;
    background: #fff;
    color: var(--neutral-dark);
    cursor: pointer;
}

.modal-icon-button:hover {
    border-color: rgba(10, 186, 181, 0.45);
    color: var(--brand);
}

.floating-cart-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border: 0;
    border-radius: 9999px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.28);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.floating-cart-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.floating-cart-button i {
    font-size: 1.15rem;
}

.floating-cart-count {
    position: absolute;
    right: -0.25rem;
    top: -0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #fff;
    border-radius: 9999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0);
    pointer-events: none;
    visibility: hidden;
    transition: background-color 0.22s ease, visibility 0s linear 0.24s;
}

.cart-drawer-backdrop.is-open {
    background: rgba(15, 23, 42, 0.42);
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

.cart-drawer-panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 30rem);
    height: 100%;
    background: #fff;
    box-shadow: none;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.24s ease, box-shadow 0s linear 0.24s;
}

.cart-drawer-backdrop.is-open .cart-drawer-panel {
    box-shadow: -24px 0 70px rgba(15, 23, 42, 0.18);
    transform: translateX(0);
    transition-delay: 0s;
}

.cart-drawer-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    padding: 1.25rem;
}

.cart-drawer-summary {
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    padding: 0.85rem 1.25rem;
    color: var(--neutral-medium);
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.cart-drawer-content .surface-item,
.cart-drawer-content .page-panel {
    border-radius: 1rem;
    box-shadow: none;
}

.cart-drawer-content .btn-primary,
.cart-drawer-content .btn-secondary {
    padding-left: 1rem;
    padding-right: 1rem;
}

.modal-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
}

.surface-item {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1.5rem;
    background: #fff;
    padding: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.product-list-card {
    display: grid;
    gap: 1rem;
}

.product-list-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    background: #f8fafc;
}

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

.product-list-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    height: 100%;
    color: var(--neutral-medium);
    font-size: 0.875rem;
    font-weight: 600;
}

.product-list-image-placeholder i {
    font-size: 1.5rem;
}

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

.product-list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-table-wrap {
    overflow: hidden;
}

.admin-table-wrap .dataTables_wrapper {
    color: var(--neutral-medium);
    font-family: inherit;
}

.admin-table-wrap .dataTables_length,
.admin-table-wrap .dataTables_filter,
.admin-table-wrap .dataTables_info,
.admin-table-wrap .dataTables_paginate {
    font-size: 0.9rem;
}

.admin-table-wrap .dataTables_length select,
.admin-table-wrap .dataTables_filter input {
    min-height: 2.5rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--neutral-dark);
}

.admin-table-wrap .dataTables_filter input {
    margin-left: 0.5rem;
    padding: 0.55rem 0.75rem;
}

.admin-table-wrap .dataTables_length select {
    margin: 0 0.4rem;
    padding: 0.35rem 1.75rem 0.35rem 0.65rem;
}

.admin-table-wrap table.dataTable.admin-data-table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table-wrap table.dataTable.admin-data-table thead th {
    border-bottom: 1px solid rgba(203, 213, 225, 0.9);
    color: var(--neutral-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.95rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table-wrap table.dataTable.admin-data-table tbody td {
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    color: var(--neutral-medium);
    padding: 1rem;
    vertical-align: middle;
}

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

.admin-table-wrap table.dataTable.admin-data-table tbody tr:hover {
    background: rgba(230, 247, 246, 0.25);
}

.admin-table-wrap .dataTables_paginate .paginate_button {
    border: 1px solid transparent !important;
    border-radius: 0.65rem !important;
    color: var(--neutral-medium) !important;
    margin-left: 0.2rem;
    padding: 0.45rem 0.7rem !important;
}

.admin-table-wrap .dataTables_paginate .paginate_button.current,
.admin-table-wrap .dataTables_paginate .paginate_button.current:hover {
    border-color: rgba(10, 186, 181, 0.35) !important;
    background: rgba(230, 247, 246, 0.85) !important;
    color: var(--brand) !important;
}

.admin-table-wrap .dataTables_paginate .paginate_button:hover {
    border-color: rgba(203, 213, 225, 0.8) !important;
    background: #fff !important;
    color: var(--neutral-dark) !important;
}

.table-product-image {
    overflow: hidden;
    width: 4.75rem;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.85rem;
    background: #f8fafc;
}

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

.table-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--neutral-medium);
}

.admin-store-edit-form {
    display: grid;
    gap: 1.5rem;
}

.admin-store-media-column {
    align-self: start;
    display: grid;
    gap: 1rem;
}

.admin-store-image-card {
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1.25rem;
    background: #fff;
    padding: 1rem;
}

.admin-store-logo-preview,
.admin-store-banner-preview,
.admin-store-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    background: #f8fafc;
}

.admin-store-logo-preview {
    width: 7rem;
    height: 7rem;
}

.admin-store-banner-preview {
    width: 100%;
    aspect-ratio: 16 / 7;
}

.admin-store-logo-preview img,
.admin-store-banner-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-store-image-empty {
    flex-direction: column;
    gap: 0.35rem;
    min-height: 7rem;
    color: var(--neutral-medium);
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-store-image-empty i {
    font-size: 1.5rem;
}

.admin-store-image-empty-wide {
    aspect-ratio: 16 / 7;
}

.soft-accent {
    border: 1px solid rgba(10, 186, 181, 0.12);
    border-radius: 1.5rem;
    background: rgba(230, 247, 246, 0.55);
    padding: 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill-brand {
    background: var(--brand-soft);
    color: var(--brand);
}

.status-pill-highlight {
    background: var(--highlight);
    color: var(--neutral-dark);
}

.status-pill-neutral {
    background: rgba(249, 250, 251, 1);
    color: var(--neutral-medium);
}

.mobile-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

[data-mobile-nav] {
    overflow: visible;
}

.mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.125rem;
    height: 3rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.8rem;
    background: #fff;
    color: var(--neutral-dark);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-toggle:hover {
    border-color: rgba(10, 186, 181, 0.45);
    background: rgba(248, 250, 252, 0.95);
}

.mobile-nav-toggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(10, 186, 181, 0.12);
}

.mobile-nav-toggle-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 1.2rem;
}

.mobile-nav-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 9999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-collapse {
    margin-top: -1px;
    border-top: 1px solid rgba(226, 232, 240, 0.75);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 1));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.35rem);
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.22s ease;
}

.mobile-nav-collapse.is-open {
    max-height: calc(100dvh - 5rem);
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-collapse-inner {
    display: grid;
    gap: 1rem;
}

.mobile-nav-links,
.mobile-nav-actions {
    display: grid;
    gap: 0.5rem;
}

.mobile-nav-actions {
    padding-top: 0.25rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 2.9rem;
    border-radius: 0.8rem;
    padding: 0.75rem 0.9rem;
    color: var(--neutral-dark);
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(230, 247, 246, 0.45);
    color: var(--brand);
}

.mobile-bottom-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 44;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.35rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
}

.mobile-bottom-nav-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.2rem;
    border-radius: 1rem;
    color: var(--neutral-medium);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    touch-action: manipulation;
}

.mobile-bottom-nav-item:active {
    transform: scale(0.96);
}

.mobile-bottom-nav-item.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.mobile-bottom-nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.25rem;
    font-size: 1rem;
}

.mobile-bottom-nav-count {
    position: absolute;
    right: -0.7rem;
    top: -0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.05rem;
    height: 1.05rem;
    border-radius: 9999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (min-width: 640px) {
    .section-shell {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .card-surface {
        padding: 1.5rem;
    }

    .page-section {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .page-banner,
    .page-panel {
        padding: 1.75rem;
    }

    .page-banner-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .store-dashboard-header {
        padding-top: 0.5rem;
    }

    .store-dashboard-header-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        align-items: center;
    }

    .store-dashboard-actions-desktop {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .store-dashboard-mobile-menu {
        display: none;
    }

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

    .store-media-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .product-list-card {
        grid-template-columns: 8rem minmax(0, 1fr);
        align-items: center;
    }

    .product-list-image {
        width: 8rem;
    }

    .product-list-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 420px) {
    .category-inline-control {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
    }

    .section-shell {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .page-section {
        padding-top: 0.85rem;
        padding-bottom: 1.25rem;
    }

    .page-stack {
        gap: 1rem;
    }

    .page-banner,
    .page-panel {
        border-radius: 1.25rem;
        padding: 1rem;
    }

    .page-banner {
        background: #fff;
    }

    .eyebrow {
        gap: 0.4rem;
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    h1,
    .page-banner h1,
    .store-dashboard-header h1 {
        font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
        line-height: 1.08 !important;
        letter-spacing: 0 !important;
    }

    h2,
    .page-panel h2 {
        font-size: clamp(1.35rem, 6vw, 1.85rem) !important;
        line-height: 1.15 !important;
    }

    .subtle-divider {
        margin-top: 1rem;
    }

    .card-surface {
        display: grid;
        gap: 0.85rem;
        border-radius: 1.15rem;
        padding: 0.9rem;
    }

    .card-surface > a[class*="h-40"] {
        height: auto;
        aspect-ratio: 1 / 0.78;
        border-radius: 1rem;
        margin-top: 0;
    }

    .card-surface h3 {
        margin-top: 0;
        font-size: 1.06rem;
        line-height: 1.25;
    }

    .card-surface p {
        margin-top: 0;
    }

    .card-surface .btn-primary {
        width: 3rem;
        height: 3rem;
        padding: 0 !important;
    }

    .metric-card {
        border-radius: 1.05rem;
        padding: 0.85rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .form-grid {
        gap: 1rem;
    }

    .form-group label {
        font-size: 0.82rem;
    }

    .input-field,
    .select-field,
    .textarea-field,
    .file-field {
        border-radius: 0.9rem;
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 3.25rem;
        padding: 0.85rem 1.1rem;
        width: 100%;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .floating-cart-button {
        display: none;
    }

    .cart-drawer-backdrop {
        align-items: flex-end;
        justify-content: center;
    }

    .cart-drawer-panel {
        width: 100%;
        height: min(88dvh, 46rem);
        border-radius: 1.5rem 1.5rem 0 0;
        transform: translateY(calc(100% + 2rem));
    }

    .cart-drawer-backdrop.is-open .cart-drawer-panel {
        box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.22);
        transform: translateY(0);
    }

    .cart-drawer-header {
        align-items: center;
        padding: 1rem;
    }

    .cart-drawer-header::before {
        position: absolute;
        top: 0.5rem;
        left: 50%;
        width: 2.75rem;
        height: 0.25rem;
        border-radius: 9999px;
        background: rgba(148, 163, 184, 0.55);
        content: "";
        transform: translateX(-50%);
    }

    .cart-drawer-content {
        padding: 1rem;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cart-item-inline-form {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .cart-item-inline-form:first-child {
        flex: 1 1 auto;
        width: 100%;
        justify-content: space-between;
    }

    .cart-item-inline-form:last-child {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .cart-item-inline-form .input-field {
        width: 5rem !important;
        min-width: 5rem;
        min-height: 2.75rem;
        padding: 0.55rem 0.75rem;
    }

    .cart-item-icon-button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 2.75rem !important;
        min-width: 2.75rem;
        height: 2.75rem;
        min-height: 2.75rem;
        padding: 0 !important;
        border-radius: 9999px !important;
        flex: 0 0 2.75rem;
    }

    .mobile-navbar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mobile-navbar a:first-child {
        max-width: calc(100vw - 5.25rem);
        font-size: 0.98rem;
        line-height: 1.1;
    }

    .mobile-nav-collapse {
        border-radius: 0 0 1.15rem 1.15rem;
    }

    .mobile-nav-link {
        min-height: 3.15rem;
    }

    footer {
        padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)) !important;
    }
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

@media (min-width: 1024px) {
    .mobile-nav-toggle,
    .mobile-nav-collapse {
        display: none;
    }

    .section-shell {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .page-banner {
        padding: 2rem;
    }

    .page-banner-grid.two-col {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        align-items: center;
    }

    .page-banner-actions {
        justify-content: flex-end;
    }

    .page-banner-metrics.four-col {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .page-banner-metrics.five-col {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .page-banner-metrics.three-col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-list-card {
        grid-template-columns: 8rem minmax(0, 1fr) auto;
    }

    .product-list-actions {
        grid-column: auto;
        align-items: flex-end;
        text-align: right;
    }

.admin-store-edit-form {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
        align-items: start;
    }
}

.pos-register-screen {
    min-height: 100vh;
    background: #eef4f6;
    overflow: auto;
}

.pos-register-body {
    overflow: auto;
    padding-bottom: 0 !important;
}

.pos-register-body .mobile-bottom-nav,
.pos-register-body .floating-cart-button,
.pos-register-body .cart-drawer-backdrop {
    display: none !important;
}

.pos-register-shell {
    width: 100%;
}

.pos-loading-panel {
    padding: 1rem;
}

.pos-register-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #25303f;
    overflow: visible;
}

.pos-app-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    flex: 0 0 auto;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
    min-height: 4.85rem;
    padding: 0.85rem 1rem;
}

.pos-app-title {
    min-width: 0;
}

.pos-app-kicker {
    color: #64748b;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.pos-app-title strong {
    color: #111827;
    display: block;
    font-size: 1.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-app-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pos-app-stats span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    color: #64748b;
    font-size: 0.92rem;
    padding: 0.45rem 0.7rem;
}

.pos-app-stats b {
    color: #111827;
}

.pos-app-actions,
.pos-invoice-tools {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.pos-icon-action,
.pos-invoice-tools button {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    color: #64748b;
    display: inline-flex;
    font-size: 1.05rem;
    height: 2.65rem;
    justify-content: center;
    text-decoration: none;
    width: 2.65rem;
}

.pos-icon-action:hover {
    border-color: rgba(10, 186, 181, 0.45);
    color: var(--brand);
}

.pos-workspace {
    flex: 1 1 auto;
    display: grid;
    min-height: 0;
    overflow: visible;
}

.pos-catalog-panel {
    min-width: 0;
    overflow: visible;
    padding: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.pos-catalog-toolbar {
    align-items: center;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: auto minmax(0, 1fr);
    background: #eef4f6;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    position: sticky;
    top: 0;
    z-index: 5;
}

.pos-catalog-mode {
    background: var(--brand);
    border-radius: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, 3.2rem);
    height: 3.35rem;
    overflow: hidden;
}

.pos-catalog-mode span {
    align-items: center;
    color: #fff;
    display: inline-flex;
    justify-content: center;
}

.pos-catalog-mode span + span {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.pos-search-field {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.5rem;
    display: flex;
    gap: 0.5rem;
    height: 3.35rem;
    padding: 0 1rem;
}

.pos-search-field input {
    color: #111827;
    flex: 1;
    font-size: 1.08rem;
    min-width: 0;
    outline: none;
}

.pos-search-field i {
    color: #cbd5e1;
}

.pos-new-product {
    align-items: center;
    background: #f8ffff;
    border: 1px solid rgba(10, 186, 181, 0.35);
    border-radius: 0.5rem;
    color: var(--brand);
    display: none;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.45rem;
    height: 3.35rem;
    justify-content: center;
    padding: 0 1.05rem;
    text-decoration: none;
}

.pos-product-grid {
    display: grid;
    align-content: start;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-product-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0.55rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    min-height: 15.25rem;
    overflow: hidden;
    padding: 0.9rem;
    position: relative;
}

.pos-product-sku {
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    left: 0.75rem;
    position: absolute;
    top: 0.7rem;
}

.pos-product-media:disabled,
.pos-product-add:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.pos-product-media {
    align-items: center;
    background: #fbfdfe;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    display: flex;
    cursor: pointer;
    height: 7.8rem;
    justify-content: center;
    margin-top: 1.65rem;
    transition: border-color 0.18s ease, transform 0.18s ease;
    width: 100%;
}

.pos-product-media:active {
    border-color: rgba(10, 186, 181, 0.45);
    transform: scale(0.98);
}

.pos-product-media img {
    max-height: 7rem;
    object-fit: contain;
}

.pos-product-media span,
.pos-invoice-empty i {
    align-items: center;
    color: var(--brand);
    display: inline-flex;
    justify-content: center;
}

.pos-product-media span {
    font-size: 3.3rem;
}

.pos-product-info {
    padding-top: 0.65rem;
    text-align: center;
}

.pos-product-stock {
    color: var(--brand);
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.pos-product-info h3 {
    color: #334155;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.25;
    min-height: 2.05rem;
}

.pos-product-info strong {
    color: #111827;
    display: block;
    font-size: 1.12rem;
    margin-top: 0.45rem;
}

.pos-product-add {
    align-items: center;
    background: var(--accent);
    border-radius: 9999px;
    bottom: 0.75rem;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
    color: #fff;
    display: inline-flex;
    font-size: 1.15rem;
    height: 3.2rem;
    justify-content: center;
    position: absolute;
    right: 0.75rem;
    width: 3.2rem;
}

.pos-invoice-panel {
    background: #fff;
    border-left: 1px solid rgba(203, 213, 225, 0.72);
    display: flex;
    flex-direction: column;
    min-height: 34rem;
    min-width: 0;
    overflow: hidden;
}

.pos-invoice-header {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    min-height: 5rem;
    padding: 1rem 1.15rem;
}

.pos-invoice-header h2 {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
}

.pos-invoice-controls {
    flex: 0 0 auto;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
    padding: 1rem 1.15rem;
}

.pos-invoice-controls.single-col {
    grid-template-columns: 1fr;
}

.pos-invoice-panel .form-group label {
    font-size: 0.95rem;
    font-weight: 800;
}

.pos-invoice-panel .input-field,
.pos-invoice-panel .select-field {
    min-height: 3.25rem;
    font-size: 1.05rem;
}

.pos-customer-select-row {
    align-items: center;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.pos-add-customer-button {
    align-items: center;
    background: var(--brand);
    border-radius: 0.55rem;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    height: 3.25rem;
    justify-content: center;
    width: 3.25rem;
}

.pos-sale-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.pos-ticket-items {
    align-content: start;
    display: grid;
    flex: 1;
    gap: 0.8rem;
    grid-auto-rows: max-content;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1.15rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.pos-ticket-item {
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.55rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.85rem;
}

.pos-ticket-item p {
    font-size: 1.05rem;
    line-height: 1.35;
}

.pos-ticket-item .text-sm {
    font-size: 0.95rem;
}

.pos-ticket-controls {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.pos-ticket-description {
    min-width: 0;
}

.pos-ticket-description p {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.28;
}

.pos-ticket-description span {
    color: #64748b;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0.25rem;
}

.pos-qty-button,
.pos-remove-button {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    color: #64748b;
    display: inline-flex;
    font-size: 1.05rem;
    height: 2.8rem;
    justify-content: center;
    width: 2.8rem;
}

.pos-remove-button {
    color: #ef4444;
}

.pos-ticket-quantity {
    align-items: center;
    background: #f8fafc;
    border-radius: 0.45rem;
    color: #111827;
    display: inline-flex;
    font-weight: 800;
    font-size: 1.1rem;
    height: 2.8rem;
    justify-content: center;
    min-width: 3rem;
    padding: 0 0.5rem;
}

.pos-invoice-empty {
    align-items: center;
    color: #94a3b8;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    min-height: 18rem;
    padding: 2rem;
    text-align: center;
}

.pos-invoice-empty i {
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    color: #cbd5e1;
    font-size: 2.2rem;
    height: 5.25rem;
    width: 5.25rem;
}

.pos-invoice-empty p {
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 16rem;
}

.pos-invoice-footer {
    border-top: 1px solid #e2e8f0;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 1rem 1.15rem;
}

.pos-sell-button {
    align-items: center;
    background: var(--brand);
    border-radius: 0.35rem;
    color: #fff;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    font-size: 1.08rem;
    min-height: 3.65rem;
    padding: 0 1.15rem;
    width: 100%;
}

.pos-sell-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.pos-checkout-modal,
.pos-customer-modal,
.pos-cash-modal {
    align-items: center;
    background: rgba(15, 23, 42, 0.52);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 1.25rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 90;
}

.pos-checkout-modal.hidden,
.pos-customer-modal.hidden,
.pos-cash-modal.hidden {
    display: none;
}

.pos-checkout-dialog,
.pos-customer-dialog,
.pos-cash-dialog {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    max-width: 32rem;
    padding: 1.5rem;
    position: relative;
    width: min(100%, 32rem);
}

.pos-checkout-close {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #64748b;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.75rem;
}

.pos-checkout-label {
    color: #64748b;
    font-size: 1rem;
    font-weight: 800;
    padding-right: 3.5rem;
}

.pos-checkout-dialog h3,
.pos-customer-dialog h3,
.pos-cash-dialog h3 {
    color: #111827;
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 0.5rem;
}

.pos-cash-dialog h3.pos-cash-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-top: 0;
    padding-right: 3.5rem;
}

.pos-checkout-fields,
.pos-customer-fields {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pos-checkout-dialog .form-group label,
.pos-customer-dialog .form-group label {
    font-size: 1rem;
    font-weight: 800;
}

.pos-checkout-dialog .input-field,
.pos-checkout-dialog .select-field,
.pos-customer-dialog .input-field {
    font-size: 1.15rem;
    min-height: 3.5rem;
}

.pos-checkout-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.55rem;
    color: #dc2626;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}

.pos-cash-summary {
    margin-top: 1.25rem;
}

.pos-cash-fund {
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    margin-top: 1.25rem;
    padding: 1rem;
}

.pos-cash-fund.hidden {
    display: none !important;
}

.pos-cash-fund label {
    color: #111827;
    display: block;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0.65rem;
}

.pos-cash-fund p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.35;
    margin-top: 0.65rem;
}

.pos-cash-fund-control {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.pos-cash-save {
    align-items: center;
    background: var(--brand);
    border-radius: 0.55rem;
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 900;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0 1rem;
}

.pos-cash-save:disabled {
    cursor: wait;
    opacity: 0.7;
}

.pos-cash-loading {
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    color: #64748b;
    display: flex;
    font-size: 1.05rem;
    font-weight: 800;
    gap: 0.75rem;
    justify-content: center;
    min-height: 8rem;
    padding: 1.25rem;
}

.pos-cash-loading i {
    color: var(--brand);
    font-size: 1.4rem;
}

.pos-cash-total {
    background: var(--brand-soft);
    border-radius: 0.7rem;
    padding: 1rem;
}

.pos-cash-total span {
    color: var(--brand);
    display: block;
    font-size: 1rem;
    font-weight: 900;
}

.pos-cash-total strong {
    color: #111827;
    display: block;
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 0.45rem;
}

.pos-cash-period {
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    color: #334155;
    line-height: 1.55;
    margin-top: 1rem;
    padding: 1rem;
}

.pos-cash-actions {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.pos-cash-actions.hidden {
    display: none !important;
}

.pos-cash-action {
    border: 1px solid rgba(10, 186, 181, 0.35);
    border-radius: 0.7rem;
    color: #0f766e;
    padding: 1rem;
    text-align: left;
}

.pos-cash-action strong,
.pos-cash-action span {
    display: block;
}

.pos-cash-action strong {
    font-size: 1.25rem;
    font-weight: 900;
}

.pos-cash-action span {
    color: #64748b;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.pos-cash-action-danger {
    border-color: rgba(249, 115, 22, 0.4);
    color: var(--accent);
}

.pos-cash-error {
    color: #dc2626;
    font-weight: 800;
}

.pos-close-sale-button {
    align-items: center;
    background: var(--brand);
    border-radius: 0.55rem;
    color: #fff;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 900;
    justify-content: center;
    margin-top: 1.35rem;
    min-height: 4rem;
    width: 100%;
}

.pos-invoice-meta {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 1rem;
    justify-content: space-between;
    margin-top: 0.55rem;
}

.pos-invoice-meta button {
    color: var(--brand);
    font-weight: 700;
}

.pos-empty-catalog {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.55rem;
    padding: 1.25rem;
}

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

.pos-settings-list,
.pos-sales-list {
    display: grid;
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.pos-setting-row {
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    cursor: pointer;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem;
}

.pos-setting-row input {
    height: 1.25rem;
    width: 1.25rem;
}

.pos-setting-row strong,
.pos-setting-row small {
    display: block;
}

.pos-setting-row small {
    color: var(--neutral-medium);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.pos-setting-row em {
    color: var(--neutral-dark);
    font-style: normal;
    font-weight: 700;
    grid-column: 2;
}

.pos-ticket-flags {
    align-content: start;
    display: grid;
    gap: 0.75rem;
}

.pos-check-row {
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
}

.pos-check-row input {
    height: 1.15rem;
    width: 1.15rem;
}

.pos-check-row span {
    color: var(--neutral-dark);
    font-size: 0.875rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .home-banner {
        background-position: center center;
    }

    .home-hero-actions {
        align-items: center;
    }

    .home-hero-shell {
        padding-top: 1.4rem;
        padding-bottom: 0.9rem;
    }

    .home-products-section {
        padding-top: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .home-section-title {
        font-size: 2rem !important;
    }

    .home-section-head {
        margin-bottom: 1rem;
    }

    .home-stores-section {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .general-store-title {
        font-size: 2rem !important;
    }

    .general-store-search {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .general-store-search-button {
        grid-column: auto;
        width: auto;
    }

    .general-store-page {
        padding-top: 1.25rem;
        padding-bottom: 2.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .pos-app-topbar {
        grid-template-columns: minmax(12rem, 1fr) auto auto;
    }

    .pos-new-product {
        display: inline-flex;
    }

    .pos-catalog-toolbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

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

    .pos-invoice-controls:not(.single-col) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-ticket-item {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .pos-register-body {
        overflow: hidden;
    }

    .pos-register-screen,
    .pos-register-app {
        height: 100vh;
        overflow: hidden;
    }

    .pos-register-app {
        --pos-invoice-width: 28rem;
        padding-right: var(--pos-invoice-width);
    }

    .pos-app-topbar {
        width: calc(100vw - var(--pos-invoice-width));
    }

    .pos-workspace {
        grid-template-columns: minmax(0, 1fr);
        height: calc(100vh - 4.85rem);
        overflow: hidden;
    }

    .pos-catalog-panel {
        height: 100%;
        overflow-y: auto;
    }

    .pos-invoice-panel {
        bottom: 0;
        height: 100vh;
        min-height: 0;
        position: fixed;
        right: 0;
        top: 0;
        width: var(--pos-invoice-width);
        z-index: 30;
    }

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

@media (min-width: 1280px) {
    .pos-catalog-panel {
        padding: 1rem 1.25rem;
    }

    .pos-register-app {
        --pos-invoice-width: 30rem;
    }

    .pos-product-card {
        min-height: 16rem;
    }
}

@media (min-width: 1536px) {
    .section-shell {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1280px) {
    .home-hero-shell {
        padding-top: 1.25rem;
        padding-bottom: 0.6rem;
    }

    .home-products-section {
        padding-top: 1.9rem;
        padding-bottom: 0.8rem;
    }

    .home-section-title {
        font-size: 2.25rem !important;
    }

    .home-section-head {
        margin-bottom: 1.1rem;
    }

    .home-stores-section {
        padding-top: 2.2rem;
        padding-bottom: 3rem;
    }

    .general-store-title {
        font-size: 2.25rem !important;
    }

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

@media (max-width: 639px) {
    .product-card {
        gap: 0.4rem;
        padding: 0.2rem;
    }

    .product-card-head {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }

    .product-card-media {
        padding: 0.65rem;
    }

    .product-card-store {
        font-size: 0.76rem;
    }

    .product-card-title {
        font-size: 0.96rem;
        min-height: 2.5em;
    }

    .product-card-price {
        font-size: 1.15rem;
    }

    .product-card-cart {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.6rem 0.75rem;
    }

    .product-card-cart span {
        display: none;
    }
}
