:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-strong: #eef7f2;
    --text: #10201b;
    --muted: #5d6f68;
    --line: #dbe7e1;
    --input-bg: #f6f8f7;
    --input-line: #d5e0da;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #f59e0b;
    --danger: #b42318;
    --shadow: 0 14px 34px rgba(24, 48, 39, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding-bottom: 6.5rem;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
[role="button"] {
    touch-action: manipulation;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-mark {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 0.5rem;
    font-weight: 800;
}

.brand-logo {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.muted,
.form-note,
.product-body p,
.hero-panel small,
.order-row span,
.admin-list-row span {
    color: var(--muted);
}

.header-whatsapp {
    display: none;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    padding: 0.55rem 0.7rem;
    color: var(--primary-dark);
    background: #e8f7f0;
    border: 1px solid #cce8dc;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.header-whatsapp i {
    color: #128c7e;
}

.superadmin-tenant-picker {
    display: flex;
    gap: 0.45rem;
    align-items: end;
    margin-left: auto;
}

.superadmin-tenant-picker label {
    display: grid;
    gap: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.superadmin-tenant-picker select {
    width: min(18rem, 42vw);
    min-height: 2.45rem;
    padding: 0.55rem 0.7rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    font-weight: 800;
    text-transform: none;
}

.header-signout {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding: 0.55rem 0.8rem;
    color: #fff;
    background: #c51f36;
    border: 1px solid #c51f36;
    border-radius: 0.5rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.header-signout:hover {
    background: #a8192d;
    border-color: #a8192d;
}

.menu-button {
    display: inline-grid;
    width: 2.6rem;
    height: 2.6rem;
    place-content: center;
    color: var(--primary-dark);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    font-size: 1.15rem;
}

.nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
}

.nav-links.open {
    display: flex;
}

.nav-links a,
.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.5rem;
    color: var(--muted);
    font-weight: 700;
}

.nav-links a i,
.link-button i,
.commerce-toolbar i,
.site-footer nav a i {
    width: 1.1rem;
    color: var(--primary-dark);
    text-align: center;
}

.nav-links a.active,
.nav-links a:hover,
.link-button:hover {
    color: var(--primary-dark);
    background: var(--surface-strong);
}

.nav-links a.cart-link {
    position: relative;
    color: #fff;
    background: #c51f36;
    box-shadow: 0 10px 22px rgba(197, 31, 54, 0.2);
}

.nav-links a.cart-link i {
    color: #fff;
}

.nav-links a.cart-link.active,
.nav-links a.cart-link:hover {
    color: #fff;
    background: #a8192d;
}

.link-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.cart-badge {
    display: inline-grid;
    min-width: 1.4rem;
    height: 1.4rem;
    margin-left: 0.25rem;
    place-items: center;
    color: #c51f36;
    background: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0.25rem 0 1rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.breadcrumbs a {
    color: var(--primary-dark);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: var(--text);
}

.breadcrumb-separator {
    color: #9aa9a3;
}

.main-content {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 1rem;
}

.hero,
.product-detail,
.auth-grid,
.management-grid,
.two-column {
    display: grid;
    gap: 1rem;
}

.hero {
    padding: 2rem 0 1rem;
}

.hero h1,
.page-header h1,
.auth-grid h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.1rem, 9vw, 4.5rem);
    line-height: 0.98;
}

.hero p,
.page-header p,
.auth-grid p {
    max-width: 42rem;
    color: var(--muted);
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions,
.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.button {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    cursor: pointer;
    font-weight: 800;
}

.button.primary {
    color: #fff;
    background: var(--primary);
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.secondary {
    color: var(--primary-dark);
    background: var(--surface);
    border-color: var(--line);
}

.button.secondary.active {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button.danger {
    color: #fff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.button.danger:hover {
    background: #991b1b;
    border-color: #991b1b;
}

.button.full {
    width: 100%;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.hero-panel,
.summary-panel,
.form-panel,
.ops-panel,
.table-card,
.empty-state,
.success-panel,
.metric-card {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.switch-row span,
.switch-row strong,
.switch-row small {
    display: block;
}

.switch-row small {
    color: var(--muted);
    font-weight: 700;
}

.switch-row input {
    width: 1.3rem;
    height: 1.3rem;
    accent-color: var(--primary);
}

.settings-quick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-quick-row div,
.settings-quick-row strong,
.settings-quick-row small {
    display: block;
}

.settings-quick-row small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.compact-fields {
    gap: 0.75rem;
}

.compact-fields label {
    min-width: 0;
}

.compact-fields input {
    min-height: 2.55rem;
}

.compact-modal {
    width: min(28rem, 100%);
    gap: 0.75rem;
}

.delivery-rates-modal {
    width: min(46rem, 100%);
}

.delivery-rates-modal header div {
    display: grid;
    gap: 0.15rem;
}

.delivery-rates-modal header small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.compact-flag-list {
    display: grid;
    gap: 0.45rem;
}

.compact-flag-list.admin-flags {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    padding: 0.6rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.compact-flag-row {
    position: relative;
    display: grid;
    grid-template-columns: 1.05rem minmax(0, 1fr) 1.25rem;
    gap: 0.5rem;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.45rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.compact-flag-row input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.compact-flag-row span {
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flag-info {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--primary-dark);
    background: #e8f6f2;
    border: 1px solid #c9e7df;
    border-radius: 50%;
    cursor: help;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.flag-info:hover::after,
.flag-info:focus-visible::after {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.45rem);
    z-index: 4;
    width: min(16rem, 72vw);
    padding: 0.55rem 0.65rem;
    color: #fff;
    background: #10201d;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
    content: attr(data-help);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;
}

.logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.5rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.settings-block {
    display: grid;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.settings-block-title {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.settings-block-title h2 {
    margin: 0;
    font-size: 1rem;
}

.delivery-setting-row {
    display: grid;
    gap: 0.65rem;
    align-items: end;
    padding: 0.75rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.compact-check {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 0.45rem !important;
    color: var(--text) !important;
}

.compact-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.icon-button {
    display: inline-grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    cursor: pointer;
}

.icon-button.danger {
    color: var(--danger);
}

.secret-field {
    position: relative;
    display: block;
}

.secret-field input {
    padding-right: 6rem;
}

.secret-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    width: 2.15rem;
    height: 2.15rem;
    color: var(--muted);
    background: transparent;
    border-color: transparent;
    transform: translateY(-50%);
}

.secret-toggle.secret-copy {
    right: 2.85rem;
}

.secret-toggle:hover,
.secret-toggle:focus-visible {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--line);
}

.secret-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.checkout-password-field input {
    padding-right: 3.2rem;
}

.field-valid input {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.field-invalid input {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.password-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.55rem 0.7rem;
    border-radius: 0.65rem;
}

.password-feedback.success {
    background: #ecfdf3;
}

.password-feedback.danger {
    background: #fef2f2;
}

.delivery-warning {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin: 0 auto 1rem;
    width: min(1180px, calc(100% - 1rem));
    padding: 0.85rem 1rem;
    color: #7a4b00;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 0.85rem;
    font-weight: 800;
}

.delivery-warning i {
    color: #c2410c;
}

.hero-panel {
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.section,
.page-header {
    padding: 1.3rem 0;
}

.section-title,
.page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.section-title h2,
.page-header h1,
.product-body h2,
.summary-panel h2 {
    margin: 0;
}

.page-header h1:focus {
    outline: none;
}

.section-title select,
input,
select,
textarea {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.75rem;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--input-line);
    border-radius: 0.55rem;
}

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

.product-grid,
.metric-grid {
    display: grid;
    gap: 1rem;
}

.product-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--surface-strong);
}

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

.product-flag {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.35rem 0.55rem;
    color: #7a2e0e;
    background: #fff7ed;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.product-body {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
}

.product-body h2 {
    font-size: 1.1rem;
}

.price-row,
.summary-line,
.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.price-row strong {
    font-size: 1.25rem;
}

.price-row span {
    color: var(--muted);
    text-decoration: line-through;
}

.inline-whatsapp,
.label-with-icon,
.summary-line span:has(.fa-whatsapp),
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.inline-whatsapp i,
.label-with-icon i,
.summary-line .fa-whatsapp,
.footer-links .fa-whatsapp,
.store-closed-banner .fa-whatsapp {
    color: #128c7e;
}

.price-row.big strong {
    font-size: 2rem;
}

.product-detail {
    padding: 1.2rem 0;
}

.detail-image {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    min-width: 0;
    max-height: min(68vh, 42rem);
    aspect-ratio: 1;
    background: var(--surface-strong);
    border-radius: 0.9rem;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.restricted-image-notice {
    margin: 0;
    padding: 0.85rem 1rem;
    color: #4b5563;
    background: #f8fafc;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    line-height: 1.35;
}

.detail-content {
    min-width: 0;
}

.detail-content h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.45rem);
    line-height: 1.08;
}

.detail-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.continue-shopping-link,
.continue-after-add-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

.product-internal-code {
    margin: -0.4rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.detail-content > p:not(.eyebrow, .notice, .form-note) {
    max-width: 38rem;
    line-height: 1.45;
}

.product-description-preview {
    display: grid;
    gap: 0.35rem;
    max-width: 38rem;
}

.product-description-preview p {
    margin: 0;
    line-height: 1.45;
}

.product-option-selector {
    display: grid;
    gap: 0.6rem;
    max-width: 38rem;
}

.product-option-selector > span,
.cart-option-select span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.product-option-selector > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-option-button {
    display: grid;
    gap: 0.12rem;
    min-width: 6.75rem;
    padding: 0.65rem 0.8rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    text-decoration: none;
}

.product-option-button small {
    color: var(--muted);
    font-weight: 800;
}

.product-option-button.active {
    border-color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px var(--primary-dark);
}

.read-more-link {
    width: max-content;
    padding: 0;
    color: var(--primary-dark);
    background: transparent;
    border: 0;
    font-weight: 900;
    cursor: pointer;
}

.read-more-link:hover,
.read-more-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.product-description-modal {
    width: min(44rem, 100%);
}

.product-description-modal h3 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

.product-description-modal p {
    max-height: min(54vh, 28rem);
    overflow: auto;
    margin: 0;
    padding-right: 0.25rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.modal-close-button {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    color: #5f6670;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.modal-close-button:hover,
.modal-close-button:focus-visible {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.detail-content,
.line-list,
.form-panel,
.summary-panel,
.ops-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.back-link {
    color: var(--primary);
    font-weight: 800;
}

.notice {
    padding: 0.8rem;
    color: #7a2e0e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 0.6rem;
}

.medicine-legal-notice {
    max-width: 38rem;
    margin: 0;
    padding: 0.85rem 1rem;
    color: #5f6670;
    background: #fff;
    border: 1px solid #9ca3af;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.cart-line,
.order-row {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.cart-line {
    grid-template-columns: 5rem 1fr;
    align-items: center;
}

.cart-line img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.6rem;
}

.cart-line h2 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.cart-line p {
    margin: 0 0 0.4rem;
    color: var(--muted);
}

.cart-option-select {
    display: grid;
    gap: 0.25rem;
    max-width: 18rem;
    margin-top: 0.65rem;
}

.cart-option-select select {
    width: 100%;
    min-height: 2.4rem;
    padding: 0 0.65rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    font: inherit;
    font-weight: 800;
}

.quantity-control {
    grid-column: 1 / -1;
    display: inline-flex;
    width: max-content;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
}

.quantity-control button,
.quantity-control span {
    display: grid;
    min-width: 2.5rem;
    min-height: 2.4rem;
    place-items: center;
    background: #fff;
    border: 0;
}

.quantity-control span {
    border-inline: 1px solid var(--line);
    font-weight: 800;
}

.summary-line.total {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 1.2rem;
}

.status-pill-inline {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.status-pill-inline.open {
    color: #087057;
    background: #e8f7f0;
}

.status-pill-inline.closed {
    color: #9f1239;
    background: #fff1f2;
}

.mobile-cart-bar {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #cfe0f7;
    border-radius: 1rem;
    box-shadow: 0 18px 42px rgba(20, 50, 80, 0.2);
    backdrop-filter: blur(16px);
}

.mobile-cart-bar.expanded {
    grid-template-columns: 1fr;
    align-items: stretch;
    max-height: min(78vh, 34rem);
    overflow: hidden;
}

.mobile-cart-bar span,
.mobile-cart-bar small,
.mobile-cart-bar strong {
    display: block;
}

.mobile-cart-bar span {
    color: var(--muted);
}

.mobile-cart-bar strong {
    margin-top: 0.25rem;
    font-size: 1.1rem;
}

.mobile-cart-bar small {
    margin-top: 0.25rem;
    color: var(--muted);
    line-height: 1.35;
}

.mobile-cart-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
    padding: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.mobile-cart-toggle i {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: var(--primary-dark);
    background: var(--surface-strong);
    border-radius: 999px;
}

.mobile-cart-copy {
    min-width: 0;
}

.mobile-cart-items {
    display: grid;
    gap: 0.65rem;
    max-height: min(45vh, 19rem);
    overflow-y: auto;
    padding: 0.25rem 0 0.75rem;
    border-bottom: 1px solid var(--line);
}

.mobile-cart-item {
    display: grid;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #f7fbf8;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.mobile-cart-item-info {
    min-width: 0;
}

.mobile-cart-item-info strong {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.25;
}

.mobile-cart-item-actions {
    display: grid;
    grid-template-columns: auto minmax(4.5rem, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.mobile-cart-item-actions > strong {
    justify-self: end;
    margin: 0;
    font-size: 0.98rem;
}

.mobile-cart-quantity {
    grid-column: auto;
}

.mobile-cart-quantity button,
.mobile-cart-quantity span {
    display: grid;
    min-width: 2rem;
    min-height: 2rem;
    place-items: center;
}

.mobile-cart-remove {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: var(--danger);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    cursor: pointer;
}

.mobile-cart-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.3rem;
    padding: 0 1rem;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 0.9rem;
    cursor: pointer;
    font-weight: 900;
    white-space: nowrap;
}

.mobile-cart-bar.expanded .mobile-cart-action {
    justify-content: center;
}

.mobile-cart-action span {
    color: #fff;
}

.mobile-cart-action i {
    font-size: 0.95rem;
}

.cart-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 32;
    background: rgba(8, 18, 17, 0.28);
    border: 0;
    cursor: pointer;
}

.desktop-cart-dock {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 33;
    display: grid;
    gap: 0.7rem;
    justify-items: end;
    pointer-events: none;
}

.desktop-cart-float,
.desktop-whatsapp-float,
.desktop-cart-panel {
    pointer-events: auto;
}

.desktop-cart-float,
.desktop-whatsapp-float {
    position: relative;
    display: grid;
    width: 3.6rem;
    height: 3.6rem;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(15, 118, 110, 0.32);
    cursor: pointer;
}

.desktop-whatsapp-float {
    color: #fff;
    background: #22c55e;
    box-shadow: 0 18px 38px rgba(34, 197, 94, 0.3);
}

.desktop-whatsapp-float i {
    font-size: 1.45rem;
}

.desktop-cart-float i {
    font-size: 1.2rem;
}

.desktop-cart-float span {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    display: grid;
    min-width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    padding: 0 0.35rem;
    color: #fff;
    background: var(--danger);
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
}

.desktop-cart-dock.expanded {
    top: 0.75rem;
    bottom: 0.75rem;
    width: min(24rem, calc(100vw - 1.5rem));
    align-content: start;
    grid-template-rows: auto auto minmax(0, 1fr);
}

.desktop-cart-panel {
    display: grid;
    gap: 0.9rem;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #cfe0f7;
    border-radius: 1rem;
    box-shadow: 0 20px 46px rgba(20, 50, 80, 0.22);
    backdrop-filter: blur(16px);
}

.desktop-cart-panel header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.desktop-cart-panel header span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.desktop-cart-panel header strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.25rem;
}

.desktop-cart-panel header button {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    color: var(--muted);
    background: var(--surface-strong);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.desktop-cart-empty {
    margin: 0;
    padding: 0.85rem;
    color: var(--muted);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

.desktop-cart-lines {
    display: grid;
    gap: 0.6rem;
    max-height: min(48vh, 22rem);
    overflow-y: auto;
    padding-bottom: 0.2rem;
}

.desktop-cart-line {
    display: grid;
    gap: 0.65rem;
    align-items: start;
    padding: 0.75rem;
    background: #f7fbf8;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.desktop-cart-line strong,
.desktop-cart-line small {
    display: block;
}

.desktop-cart-line strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

.desktop-cart-line small {
    margin-top: 0.2rem;
    color: var(--muted);
}

.desktop-cart-line-actions {
    display: grid;
    grid-template-columns: auto minmax(5rem, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.desktop-cart-line-actions > strong {
    justify-self: end;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 900;
    white-space: nowrap;
}

.desktop-cart-quantity {
    grid-column: auto;
}

.desktop-cart-quantity button,
.desktop-cart-quantity span {
    display: grid;
    min-width: 2rem;
    min-height: 2rem;
    place-items: center;
}

.desktop-cart-remove {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: var(--danger);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    cursor: pointer;
}

.back-to-top-fab {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 31;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dfe8e4;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(24, 48, 39, 0.14);
    cursor: pointer;
}

.back-to-top-fab:hover,
.back-to-top-fab:focus-visible {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.back-to-top-fab i {
    font-size: 1rem;
}

.mobile-whatsapp-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 31;
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-items: center;
    color: #fff;
    background: #22c55e;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(34, 197, 94, 0.32);
}

.mobile-whatsapp-fab.above-cart {
    bottom: 6.4rem;
}

.mobile-whatsapp-fab.cart-expanded {
    bottom: min(31rem, calc(78vh + 1rem));
}

.mobile-whatsapp-fab i {
    font-size: 1.45rem;
}

@media (max-width: 719px) {
    .summary-panel {
        display: none;
    }
}

.form-panel label {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    font-weight: 700;
}

.form-section {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-section + .form-section {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.form-section legend {
    padding: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.checkout-title {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding-top: 0.5rem;
}

.checkout-title h1 {
    margin: 0;
    color: var(--text);
    font-size: 2.2rem;
    line-height: 1.05;
}

.checkout-title p:last-child {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.checkout-progress {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    box-shadow: 0 10px 30px rgba(15, 30, 45, 0.06);
}

.checkout-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-weight: 800;
}

.checkout-progress-label strong {
    color: var(--text);
}

.checkout-progress-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.checkout-progress-track span {
    height: 0.28rem;
    background: #dbe5e1;
    border-radius: 999px;
}

.checkout-progress-track span.active {
    background: var(--primary-dark);
}

.checkout-experience-grid,
.checkout-flow {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.checkout-card,
.checkout-summary-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    box-shadow: 0 14px 38px rgba(15, 30, 45, 0.07);
}

.checkout-flow .form-section + .form-section {
    padding-top: 0;
    border-top: 0;
}

.checkout-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkout-card-heading > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.checkout-card-heading p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.checkout-step-badge {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 900;
}

.collapsible-section .section-toggle > span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delivery-choice-grid {
    display: grid;
    gap: 0.75rem;
}

.delivery-choice-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 5.25rem;
    padding: 0.9rem;
    color: var(--text);
    text-align: left;
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    cursor: pointer;
}

.delivery-choice-card i {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary-dark);
    background: var(--surface-strong);
    border-radius: 0.7rem;
}

.delivery-choice-card span {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.delivery-choice-card strong {
    font-weight: 900;
}

.delivery-choice-card small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.delivery-choice-card.active {
    background: #fff;
    border-color: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.13);
}

.delivery-choice-card.active i {
    color: #fff;
    background: var(--primary-dark);
}

.delivery-choice-card.disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.payment-choice-grid {
    display: grid;
    gap: 0.75rem;
}

.payment-choice-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    min-height: 5.15rem;
    padding: 0.9rem;
    color: var(--text);
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 30, 45, 0.05);
}

.payment-choice-card:hover {
    border-color: #9fc9bf;
    box-shadow: 0 10px 24px rgba(15, 30, 45, 0.08);
}

.payment-choice-card > i {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    color: var(--primary-dark);
    background: var(--surface-strong);
    border-radius: 0.7rem;
    font-size: 1.05rem;
}

.payment-choice-card span {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.payment-choice-card strong {
    color: var(--text);
    font-weight: 900;
}

.payment-choice-card small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.payment-choice-card em {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    color: transparent;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.75rem;
    font-style: normal;
}

.payment-choice-card.active {
    background: #fff;
    border-color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.14);
}

.payment-choice-card.active > i,
.payment-choice-card.active em {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.checkout-summary-card {
    display: grid;
    gap: 1rem;
}

.checkout-summary-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.checkout-summary-lines {
    display: grid;
    gap: 0.75rem;
    max-height: 18rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.checkout-summary-product {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.checkout-summary-product img {
    width: 3.4rem;
    height: 3.4rem;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
}

.checkout-summary-product div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.checkout-summary-product strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-summary-product small {
    color: var(--muted);
    font-weight: 700;
}

.checkout-summary-product span {
    color: var(--text);
    font-weight: 900;
    white-space: nowrap;
}

.checkout-summary-totals {
    display: grid;
    gap: 0.65rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.checkout-submit-button {
    min-height: 3.1rem;
}

.checkout-submit-button:disabled {
    color: #dbe4ff;
    background: #7890ca;
    box-shadow: none;
}

.checkout-login-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    color: #123a34;
    background: #ecfdf3;
    border: 1px solid #b7ead0;
    border-radius: 0.7rem;
}

.checkout-login-callout i {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: #fff;
    background: var(--primary-dark);
    border-radius: 999px;
}

.checkout-login-callout span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.checkout-login-callout strong {
    font-weight: 900;
}

.checkout-login-callout small {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.35;
}

.checkout-login-submit {
    gap: 0.55rem;
    min-height: 3.15rem;
    box-shadow: 0 12px 24px rgba(20, 55, 148, 0.18);
}

.checkout-continue-link {
    justify-self: center;
    color: var(--text);
    font-weight: 900;
}

.checkout-summary-note {
    margin: 0;
    padding: 0.85rem;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: 0.65rem;
    font-weight: 700;
    line-height: 1.45;
}

.form-grid,
.cep-row {
    display: grid;
    gap: 1rem;
}

.cep-row {
    align-items: end;
}

.check-row {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
}

.check-row input {
    width: 1.1rem;
    min-height: 1.1rem;
}

.checkout-auth-tabs,
.checkout-auth-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.checkout-auth-choice {
    gap: 0.75rem;
}

.checkout-auth-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 4.25rem;
    padding: 0.85rem;
    color: var(--text);
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(15, 30, 45, 0.06);
}

.checkout-auth-card i {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary-dark);
    background: var(--surface-strong);
    border-radius: 999px;
}

.checkout-auth-card span,
.saved-address-option span {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.checkout-auth-card strong,
.saved-address-option strong {
    color: var(--text);
    font-weight: 900;
}

.checkout-auth-card small,
.saved-address-option small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.checkout-auth-card.active {
    border-color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.16);
}

.checkout-auth-card.active i {
    color: #fff;
    background: var(--primary-dark);
}

.saved-address-list {
    display: grid;
    gap: 0.6rem;
}

.saved-address-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    cursor: pointer;
}

.saved-address-option.active {
    border-color: var(--primary-dark);
    background: var(--surface-strong);
}

.saved-address-option input {
    width: 1.1rem;
    min-height: 1.1rem;
    margin-top: 0.15rem;
}

.default-address-row {
    padding: 0.2rem 0;
}

.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 3rem;
    padding: 0 1rem;
    color: #263238;
    background: #fff;
    border: 1px solid #d6dee6;
    border-radius: 0.55rem;
    box-shadow: 0 2px 8px rgba(15, 30, 45, 0.06);
    cursor: pointer;
    font-weight: 900;
}

.google-login-button img {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}

.google-login-button:hover {
    border-color: #b8c7d5;
    box-shadow: 0 4px 14px rgba(15, 30, 45, 0.1);
}

.collapsible-section {
    gap: 0.85rem;
}

.section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 2.8rem;
    padding: 0;
    color: var(--text);
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
}

.section-toggle i {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: var(--primary-dark);
    background: var(--surface-strong);
    border-radius: 999px;
    font-size: 0.85rem;
}

.success {
    color: var(--primary-dark);
}

.auth-grid {
    align-items: start;
    padding: 2rem 0;
}

.password-change-layout {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: clamp(1.25rem, 4vw, 3rem);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary, #0f766e) 18%, transparent), transparent 38rem),
        #f4f8f7;
}

.password-change-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .85fr);
    width: min(100%, 58rem);
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9e7e2;
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 4rem rgba(15, 43, 38, .14);
}

.password-change-intro {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(2rem, 5vw, 4rem);
    color: #f6fffb;
    background: linear-gradient(145deg, var(--primary-dark, #0f766e), #064e3b);
}

.password-change-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    color: var(--primary-dark, #0f766e);
    font-size: 1.25rem;
    background: #fff;
    border-radius: .85rem;
}

.password-change-intro .eyebrow,
.password-change-intro p,
.password-change-intro h1 {
    margin: 0;
    color: inherit;
}

.password-change-intro .eyebrow { opacity: .78; }
.password-change-intro h1 { max-width: 12ch; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.password-change-intro > p:not(.eyebrow) { max-width: 29rem; color: rgba(246, 255, 251, .82); line-height: 1.55; }

.password-change-tips {
    display: grid;
    gap: .65rem;
    margin: .4rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(246, 255, 251, .92);
    font-size: .92rem;
}

.password-change-tips i { margin-right: .45rem; color: #86efac; }

.password-change-form {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.password-change-form-heading h2,
.password-change-form-heading p { margin: 0; }
.password-change-form-heading h2 { color: #102a25; font-size: 1.35rem; }
.password-change-form-heading p { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.password-change-form label { display: grid; gap: .4rem; color: #415a54; font-weight: 700; }
.password-change-form input { min-height: 3rem; }
.password-change-form .button { min-height: 3rem; margin-top: .35rem; }

@media (max-width: 720px) {
    .password-change-layout { align-items: start; min-height: 100dvh; padding: 1rem; }
    .password-change-card { grid-template-columns: 1fr; border-radius: 1rem; }
    .password-change-intro, .password-change-form { padding: 2rem 1.5rem; }
    .password-change-intro h1 { max-width: 16ch; }
}

.auth-required {
    display: grid;
    gap: 1rem;
    max-width: 44rem;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.admin-shell {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.admin-sidebar {
    display: grid;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.admin-sidebar a,
.admin-sidebar strong,
.admin-sidebar button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
}

.admin-sidebar a i,
.admin-sidebar strong i,
.admin-sidebar button i {
    width: 1.15rem;
    color: var(--primary-dark);
    text-align: center;
}

.admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar button:hover {
    color: var(--primary-dark);
    background: var(--surface-strong);
}

.admin-sidebar-toggle,
.admin-sidebar-signout {
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.admin-sidebar-toggle {
    justify-content: center;
    border: 1px solid var(--line);
}

.admin-sidebar-signout {
    margin-top: 0.5rem;
}

.admin-content {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.store-staff-layout {
    display: grid;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    padding: 1rem;
}

.store-admin-sidebar {
    align-content: start;
}

.store-admin-cart-link {
    position: relative;
}

.store-admin-cart-badge {
    display: inline-grid;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: auto;
    padding: 0 0.35rem;
    place-items: center;
    color: #fff;
    background: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.split-grid {
    display: grid;
    gap: 1rem;
}

.danger {
    color: var(--danger);
}

.table-card {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
    box-shadow: none;
}

.order-row {
    align-items: center;
}

.order-row div {
    display: grid;
    gap: 0.25rem;
}

.my-orders-list {
    display: grid;
    gap: 1rem;
}

.customer-order-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.customer-order-card.expanded {
    box-shadow: 0 14px 34px rgba(15, 30, 45, 0.07);
}

.customer-order-toggle,
.customer-order-item,
.customer-order-totals {
    display: grid;
    gap: 0.75rem;
}

.customer-order-toggle {
    align-items: center;
    width: 100%;
    padding: 0;
    color: var(--text);
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.customer-order-toggle:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.2);
    outline-offset: 0.4rem;
    border-radius: 0.55rem;
}

.customer-order-main,
.customer-order-item div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.customer-order-main > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-order-main span {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.customer-order-main small {
    color: var(--muted);
    font: inherit;
}

.customer-order-total {
    white-space: nowrap;
}

.customer-order-chevron {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: var(--primary-dark);
    background: var(--surface-strong);
    border-radius: 999px;
    transition: transform 160ms ease;
}

.customer-order-card.expanded .customer-order-chevron {
    transform: rotate(180deg);
}

.customer-order-content {
    display: grid;
    gap: 1rem;
}

.customer-order-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    min-width: 0;
    color: var(--muted);
    font-weight: 700;
}

.customer-order-preview span:first-child {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-order-main span,
.customer-order-details span,
.customer-order-item span,
.customer-order-totals span {
    color: var(--muted);
}

.customer-order-details {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.customer-order-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    margin-bottom: .9rem;
}

.customer-order-overview > div,
.customer-order-timeline {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .9rem;
    background: color-mix(in srgb, var(--surface) 96%, var(--primary));
}

.customer-order-overview span,
.customer-order-timeline span {
    display: block;
    color: var(--muted);
    font-size: .84rem;
}

.customer-order-timeline {
    margin: .9rem 0;
}

.customer-order-timeline h2 {
    margin: 0 0 .75rem;
    font-size: 1rem;
}

.customer-order-timeline p {
    margin: 0;
    color: var(--muted);
}

.customer-order-timeline ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.customer-order-timeline li {
    position: relative;
    padding: 0 0 .85rem 1.35rem;
}

.customer-order-timeline li:last-child {
    padding-bottom: 0;
}

.customer-order-timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3rem;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--primary);
}

.customer-order-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: .27rem;
    top: 1rem;
    bottom: -.1rem;
    width: 2px;
    background: var(--line);
}

.customer-order-details div {
    display: grid;
    gap: 0.2rem;
}

.customer-order-items {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    overflow: hidden;
}

.customer-order-item {
    padding: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.customer-order-item:last-child {
    border-bottom: 0;
}

.customer-order-totals {
    justify-items: start;
    padding-top: 0.2rem;
}

.customer-order-totals span {
    display: flex;
    gap: 0.45rem;
}

.customer-order-totals span:last-child {
    color: var(--text);
}

.admin-order-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.admin-order-list {
    display: grid;
    gap: 0.75rem;
}

.admin-order-card.expanded {
    box-shadow: 0 14px 34px rgba(15, 30, 45, 0.07);
}

.admin-order-summary {
    display: grid;
    gap: 0.75rem;
    align-items: center;
}

.admin-order-toggle {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0;
    color: var(--text);
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.admin-order-toggle:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.2);
    outline-offset: 0.4rem;
    border-radius: 0.55rem;
}

.admin-order-toggle > div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.admin-order-toggle span,
.admin-order-detail-grid span,
.admin-order-detail-grid small {
    color: var(--muted);
}

.admin-order-card.expanded .customer-order-chevron {
    transform: rotate(180deg);
}

.admin-order-details {
    display: grid;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.admin-order-tabs {
    display: flex;
    gap: 0.35rem;
    border-bottom: 1px solid var(--line);
}

.admin-order-tabs button {
    padding: 0.55rem 0.8rem;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.admin-order-tabs button.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.order-events-panel {
    display: grid;
    gap: 1rem;
}

.order-detail-overview {
    display: grid;
    gap: 0.75rem;
}

.order-detail-information {
    display: grid;
    gap: 0.75rem;
}

.order-delivery-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: #f8fbfa;
}

.order-delivery-summary > i {
    padding-top: 0.18rem;
    color: var(--primary-dark);
}

.order-delivery-summary > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.order-delivery-summary span,
.order-events-heading span {
    color: var(--muted);
    font-size: 0.85rem;
}

.order-detail-events {
    min-height: 0;
    padding: 0.8rem;
    gap: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #fff;
}

.order-events-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.order-events-heading > div {
    display: grid;
    gap: 0.14rem;
}

.order-detail-events .order-event-timeline {
    max-height: 15rem;
    padding-right: 0.2rem;
    overflow-y: auto;
}

.order-detail-events .order-event-timeline li {
    grid-template-columns: 0.75rem minmax(0, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
    min-height: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}

.order-detail-events .order-event-timeline li:last-child {
    border-bottom: 0;
}

.order-detail-events .order-event-marker {
    width: 0.55rem;
    height: 0.55rem;
    margin: 0;
    border-width: 2px;
}

.order-detail-events .order-event-timeline li:not(:last-child) .order-event-marker::after {
    display: none;
}

.order-detail-events .order-event-timeline time {
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.order-detail-events .order-event-polling {
    gap: 0.25rem;
    white-space: nowrap;
}

.finalized-order-notice {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.85rem 1rem;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
}

.finalized-order-notice > div {
    display: grid;
    gap: 0.14rem;
}

.finalized-order-notice span {
    color: #47678f;
    font-size: 0.9rem;
}

.order-event-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-event-timeline li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.7rem;
    min-height: 2.85rem;
}

.order-event-marker {
    position: relative;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.25rem;
    background: var(--primary-dark);
    border: 3px solid #dff1ec;
    border-radius: 50%;
}

.order-event-timeline li:not(:last-child) .order-event-marker::after {
    position: absolute;
    top: 0.55rem;
    left: 0.15rem;
    width: 2px;
    height: 2.25rem;
    background: var(--line);
    content: "";
}

.order-event-timeline li > div {
    display: grid;
    gap: 0.18rem;
}

.order-event-timeline span:not(.order-event-marker) {
    color: var(--muted);
    font-size: 0.9rem;
}

.order-event-polling {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    width: max-content;
    font-weight: 700;
    font-size: 0.82rem;
}

.order-event-polling.completed {
    color: var(--success, #18794e);
}

.order-event-polling.pending {
    color: var(--muted);
}

@media (max-width: 38rem) {
    .order-detail-events .order-event-timeline li {
        grid-template-columns: 0.75rem minmax(0, 1fr) auto;
    }

    .order-detail-events .order-event-polling {
        grid-column: 2 / -1;
    }
}

.admin-order-detail-grid {
    display: grid;
    gap: 0.75rem;
}

.admin-order-detail-grid > div {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
    padding: 0.85rem;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.admin-order-detail-grid strong {
    overflow-wrap: anywhere;
}

.order-prescriptions {
    display: grid;
    gap: 0.75rem;
}

.order-prescriptions-heading strong,
.order-prescriptions-heading small,
.order-prescription-actions span {
    display: block;
}

.order-prescriptions-heading small,
.order-prescription-actions small {
    color: var(--muted);
}

.order-prescription-preview {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.order-prescription-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.order-prescription-actions span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.order-prescription-actions i {
    margin-right: 0.4rem;
    color: #d63838;
}

.order-prescription-frame,
.order-prescription-image {
    width: 100%;
    min-height: 26rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: #fff;
}

.order-prescription-image {
    height: auto;
    max-height: 42rem;
    min-height: 0;
    object-fit: contain;
}

.store-order-list,
.order-detail-page,
.order-status-form {
    display: grid;
    gap: 0.75rem;
}

.store-order-list-item,
.order-detail-toolbar {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    color: var(--text);
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.store-order-list-item {
    cursor: pointer;
}

.store-order-list-item:hover,
.store-order-list-item:focus-visible {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 10px 26px rgba(15, 30, 45, 0.06);
}

.store-order-list-item > div,
.order-detail-toolbar > div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.store-order-list-item span,
.order-detail-toolbar span,
.order-status-form label {
    color: var(--muted);
}

.store-order-list-item > i {
    color: var(--primary-dark);
}

.order-status-form {
    padding: 1rem;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.order-status-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 800;
}

.order-status-form select,
.order-status-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    color: var(--text);
    font: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.55rem;
}

.status-pill {
    width: max-content;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.status-pill.success {
    color: #05603a;
    background: #d1fadf;
}

.status-pill.warning {
    color: #854a0e;
    background: #fef0c7;
}

.status-pill.danger {
    color: var(--danger);
    background: #fee4e2;
}

.status-pill.info {
    color: #175cd3;
    background: #dbeafe;
}

.toast-host {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 3000;
    display: grid;
    gap: 0.7rem;
    width: min(25rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-left-width: 0.35rem;
    border-radius: 0.65rem;
    box-shadow: 0 16px 34px rgba(15, 30, 45, 0.14);
    pointer-events: auto;
}

.toast-message span {
    overflow-wrap: anywhere;
    font-weight: 800;
}

.toast-message > i {
    font-size: 1.05rem;
}

.toast-message button {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.toast-message button:hover,
.toast-message button:focus-visible {
    color: var(--text);
    background: var(--surface-strong);
}

.toast-message.success {
    border-left-color: #16a34a;
}

.toast-message.success > i {
    color: #16a34a;
}

.toast-message.error {
    border-left-color: #dc2626;
}

.toast-message.error > i {
    color: #dc2626;
}

.toast-message.info {
    border-left-color: #175cd3;
}

.toast-message.info > i {
    color: #175cd3;
}

.metric-card {
    display: grid;
    gap: 0.4rem;
}

.metric-card span {
    color: var(--muted);
}

.metric-card strong {
    font-size: 1.8rem;
}

.metric-card small {
    color: var(--primary-dark);
    font-weight: 800;
}

.admin-list-row {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.admin-products-panel {
    display: grid;
    gap: 1rem;
}

.admin-products-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.admin-products-header span,
.admin-product-main span,
.admin-product-main small,
.admin-product-meta span {
    color: var(--muted);
}

.admin-products-list {
    display: grid;
    gap: 0.75rem;
}

.admin-product-row {
    display: grid;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.admin-product-main,
.admin-product-meta {
    display: grid;
    gap: 0.25rem;
}

.admin-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-product-actions .button {
    min-height: 2.35rem;
    padding: 0.55rem 0.75rem;
}

.featured-products-panel {
    display: grid;
    gap: 1rem;
}

.featured-add-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.featured-search-results,
.featured-product-list {
    display: grid;
    gap: 0.75rem;
}

.featured-product-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.featured-search-results .featured-product-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.featured-product-order {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    color: var(--primary);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.featured-product-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.featured-product-main span,
.featured-product-main small {
    color: var(--muted);
}

.featured-product-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.integration-grid {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.integration-status-panel,
.integration-history-panel,
.integration-details-panel {
    align-content: start;
    min-width: 0;
}

.integration-status-panel p,
.integration-history-panel p,
.integration-details-panel p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.integration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.integration-message,
.empty-inline {
    padding: 0.85rem 1rem;
    color: var(--muted);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.progress-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.progress-header,
.progress-meta,
.pagination-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
    justify-content: space-between;
}

.progress-header span,
.progress-meta span,
.pagination-row span {
    color: var(--muted);
    font-weight: 800;
}

.progress-track {
    width: 100%;
    height: 0.8rem;
    overflow: hidden;
    background: #d9e2ec;
    border-radius: 999px;
}

.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: inherit;
    transition: width 180ms ease;
}

.metric-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.integration-filters {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
    align-items: end;
    min-width: 0;
}

.integration-filters label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-weight: 800;
}

.integration-filters input,
.integration-filters select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.integration-run-list,
.integration-log-list {
    display: grid;
    gap: 0.75rem;
}

.integration-run-row,
.integration-log-row {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    padding: 0.9rem;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.integration-run-row {
    cursor: pointer;
}

.integration-run-row:hover {
    border-color: var(--primary);
}

.integration-log-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.integration-run-row strong,
.integration-run-row small,
.integration-log-row strong,
.integration-log-row small,
.integration-details-panel p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.integration-log-row pre {
    max-height: 12rem;
    overflow: auto;
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    color: var(--text);
    white-space: pre-wrap;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.52);
}

.admin-modal {
    display: grid;
    gap: 1rem;
    width: min(42rem, 100%);
    max-height: min(90vh, 58rem);
    overflow: auto;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.admin-modal.wide {
    width: min(58rem, 100%);
}

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

.approval-credential-card {
    display: grid;
    gap: .9rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color, #dbe3ea);
    border-radius: .75rem;
    background: #f8fafc;
}

.approval-credential-card h3,
.approval-credential-card dl,
.approval-credential-card dd {
    margin: 0;
}

.approval-credential-card dl {
    display: grid;
    gap: .75rem;
}

.approval-credential-card dt {
    margin-bottom: .2rem;
    color: #64748b;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.approval-credential-card dd {
    overflow-wrap: anywhere;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
}

@media (max-width: 640px) {
    .approval-credentials { grid-template-columns: 1fr; }
}

.admin-modal header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-modal h2 {
    margin: 0;
    font-size: 1.25rem;
}

.form-panel.flat {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.product-detail-list {
    display: grid;
    gap: 0.65rem;
}

.product-detail-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.product-detail-list span {
    color: var(--muted);
    font-weight: 700;
}

.product-enriched-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    padding-bottom: 2rem;
}

.product-enriched-grid article {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.product-enriched-grid article.wide {
    grid-column: span 2;
}

.product-enriched-grid h2 {
    margin: 0;
    font-size: 1rem;
}

.info-row {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--line);
}

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

.info-row span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.info-row strong,
.info-row a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.info-row.multiline strong,
.info-row.multiline a {
    line-height: 1.35;
    font-weight: 600;
}

.enrichment-diff {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.75rem;
}

.enrichment-diff section {
    min-width: 0;
}

.enrichment-diff span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.enrichment-diff pre {
    max-height: 18rem;
    overflow: auto;
}

.store-admin-panel {
    gap: 1rem;
}

.store-filter-bar {
    display: grid;
    gap: 0.8rem;
}

.store-filter-bar .button {
    align-self: end;
}

.store-filter-bar.order-filter-bar .button {
    width: max-content;
    min-width: 8.5rem;
}

.store-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.store-admin-table {
    width: 100%;
    min-width: 56rem;
    border-collapse: collapse;
}

.store-admin-table th,
.store-admin-table td {
    padding: 0.55rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 0.9rem;
}

.store-admin-table th {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.store-admin-table th button {
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-transform: inherit;
}

.store-admin-table tr.clickable-row {
    cursor: pointer;
}

.store-admin-table tr.clickable-row:hover td,
.store-admin-table tr.clickable-row:focus td {
    background: var(--surface-strong);
}

.store-admin-table tr.clickable-row:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.store-admin-table td strong,
.store-admin-table td small {
    display: block;
}

.store-admin-table td small {
    color: var(--muted);
    font-size: 0.78rem;
}

.button.compact {
    min-height: 2rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
}

.address-manager-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(22rem, 1.05fr);
    gap: 1rem;
    align-items: start;
}

.address-list-panel,
.address-form-panel {
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 0.65rem;
}

.address-panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.address-panel-header h2,
.address-panel-header p {
    margin: 0;
}

.address-panel-header p {
    margin-top: 0.2rem;
    color: var(--muted);
    font-weight: 700;
}

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

.address-card.selected {
    border-color: #99d6ca;
    background: #f7fffc;
}

.address-card-main {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
}

.address-card-title {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.address-card-title strong,
.address-card-main p,
.address-card-main small {
    min-width: 0;
}

.address-card-main p,
.address-card-main small {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.address-form {
    display: grid;
    gap: 0.75rem;
}

.address-form label {
    display: grid;
    gap: 0.28rem;
    color: #293d36;
    font-size: 0.9rem;
    font-weight: 800;
}

.address-form input {
    min-height: 2.55rem;
}

.address-form .cep-row {
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.85fr);
    gap: 0.75rem;
}

.address-three {
    grid-template-columns: 0.75fr 1.25fr 1fr;
    gap: 0.75rem;
}

.address-form .form-grid.two {
    gap: 0.75rem;
}

.address-form .check-row {
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.address-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    padding-top: 0.2rem;
}

.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-weight: 800;
}

.pagination-bar div,
.store-switch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pagination-pages {
    justify-content: flex-end;
}

.pagination-pages .page-number {
    min-width: 2.35rem;
    padding-inline: 0.65rem;
}

.pagination-pages .page-number.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.store-switch-grid .switch-row {
    flex: 1 1 14rem;
}

.catalogo-filter-bar {
    grid-template-columns: minmax(18rem, 1fr) minmax(8rem, 12rem) minmax(7rem, 9rem) auto;
}

.system-settings-panel {
    gap: 1rem;
}

.system-settings-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.system-settings-header h2,
.system-settings-header p {
    margin: 0;
}

.system-settings-header p {
    margin-top: 0.25rem;
    color: var(--muted);
    font-weight: 700;
}

.system-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.system-settings-table {
    min-width: 68rem;
    table-layout: fixed;
}

.system-settings-table th:nth-child(1),
.system-settings-table td:nth-child(1) {
    width: 38%;
}

.system-settings-table th:nth-child(2),
.system-settings-table td:nth-child(2) {
    width: 34%;
}

.system-settings-table th:nth-child(3),
.system-settings-table td:nth-child(3) {
    width: 11rem;
}

.system-settings-table th:nth-child(4),
.system-settings-table td:nth-child(4) {
    width: 7rem;
}

.system-settings-table input {
    width: 100%;
}

.system-settings-table .form-note {
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .system-settings-header {
        grid-template-columns: 1fr;
    }

    .system-settings-actions {
        justify-content: flex-start;
    }
}

.order-filter-bar {
    grid-template-columns: minmax(11rem, 1.1fr) minmax(10rem, 0.9fr) minmax(9rem, 0.8fr) minmax(8rem, 0.7fr) minmax(6rem, 0.5fr) auto;
}

.catalogo-table {
    min-width: 72rem;
}

.enrichment-log-filter-bar {
    grid-template-columns: minmax(18rem, 1fr) minmax(9rem, 13rem) minmax(7rem, 9rem) auto;
}

.enrichment-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface-strong);
}

.enrichment-tabs button {
    min-height: 2.2rem;
    padding: 0 0.8rem;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.enrichment-tabs button.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.enrichment-product-search {
    display: contents;
}

.enrichment-selection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    gap: 1rem;
}

.enrichment-selection-panel {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface);
}

.enrichment-selection-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.enrichment-selection-panel header small,
.selected-product-list small {
    color: var(--muted);
}

.compact-table-wrap {
    max-height: 25rem;
}

.enrichment-product-table {
    min-width: 42rem;
}

.compact-pagination {
    padding-top: 0;
}

.selected-product-list {
    display: grid;
    gap: 0.55rem;
    max-height: 25rem;
    overflow: auto;
}

.selected-product-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: var(--surface-strong);
}

.selected-product-list article div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.selected-product-list strong,
.selected-product-list small {
    overflow-wrap: anywhere;
}

.enrichment-selected-submit {
    justify-self: start;
}

.enrichment-log-table {
    min-width: 76rem;
}

.enrichment-log-table td {
    vertical-align: top;
}

.enrichment-log-message {
    max-width: 34rem;
}

.enrichment-expanded-row td {
    padding: 0.9rem;
    background: var(--surface-strong);
}

.enrichment-expanded-row:hover td {
    background: var(--surface-strong);
}

.enrichment-expanded-row .enrichment-diff {
    margin-top: 0;
}

.catalogo-product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.catalogo-product-cell img {
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.45rem;
}

.catalogo-product-cell span {
    min-width: 0;
}

.catalogo-detail-toolbar {
    display: flex;
    justify-content: flex-start;
}

.catalogo-detail-hero {
    display: grid;
    grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.catalogo-detail-image {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    color: var(--primary-dark);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.catalogo-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.4rem;
}

.catalogo-detail-image i {
    font-size: 2rem;
}

.catalogo-detail-hero h1 {
    margin: 0.45rem 0 0.2rem;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.05;
}

.catalogo-detail-hero p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.catalogo-detail-tags,
.catalogo-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.catalogo-detail-tags {
    margin-top: 0.75rem;
}

.catalogo-detail-tags span,
.catalogo-chip-list span {
    padding: 0.35rem 0.55rem;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    border: 1px solid var(--line);
    border-radius: 999px;
}

.catalogo-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(23rem, 100%), 1fr));
    gap: 1rem;
}

.catalogo-detail-section {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    padding: 1rem;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.catalogo-detail-section h2 {
    margin: 0;
    font-size: 1.05rem;
}

.catalogo-definition-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.catalogo-definition-list div {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

.catalogo-definition-list div:last-child {
    border-bottom: 0;
}

.catalogo-definition-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.catalogo-definition-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.catalogo-definition-list small {
    color: var(--muted);
    font-weight: 700;
}

.catalogo-detail-section.raw pre {
    max-height: 28rem;
    overflow: auto;
    margin: 0;
    padding: 0.85rem;
    white-space: pre-wrap;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.empty-state,
.success-panel,
.loading-panel {
    margin: 2rem 0;
    text-align: center;
}

.store-not-found {
    position: relative;
    display: grid;
    min-height: min(42rem, calc(100vh - 11rem));
    place-items: center;
    overflow: hidden;
    margin: 1.5rem 0 2.5rem;
    padding: clamp(2rem, 6vw, 5rem) 1.25rem;
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 32%),
        linear-gradient(145deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 82%, var(--primary)) 100%);
    box-shadow: var(--shadow);
}

.store-not-found__content {
    position: relative;
    z-index: 1;
    width: min(100%, 39rem);
    text-align: center;
}

.store-not-found__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border-radius: 999px;
}

.store-not-found__icon {
    display: grid;
    width: 5.5rem;
    height: 5.5rem;
    place-items: center;
    margin: 1.35rem auto 0;
    color: #fff;
    font-size: 2.1rem;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border: .45rem solid color-mix(in srgb, var(--primary) 16%, transparent);
    border-radius: 1.35rem;
    box-shadow: 0 1rem 2.4rem color-mix(in srgb, var(--primary) 28%, transparent);
    transform: rotate(-4deg);
}

.store-not-found__code {
    margin: 1.5rem 0 -.4rem;
    color: color-mix(in srgb, var(--primary) 68%, var(--muted));
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.08em;
}

.store-not-found h1 {
    margin: .75rem 0;
    color: var(--text);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    letter-spacing: -.045em;
}

.store-not-found p:not(.store-not-found__code) {
    max-width: 34rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.store-not-found__action {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.65rem;
    padding: .85rem 1.15rem;
}

.store-not-found small {
    display: block;
    margin-top: 1rem;
    color: var(--muted);
    font-weight: 650;
}

.store-not-found__halo {
    position: absolute;
    z-index: -1;
    width: 18rem;
    aspect-ratio: 1;
    opacity: .45;
    filter: blur(1px);
    background: color-mix(in srgb, var(--primary) 24%, transparent);
    border-radius: 50%;
}

.store-not-found__halo--one { top: -8rem; left: -7rem; }
.store-not-found__halo--two { right: -8rem; bottom: -10rem; width: 23rem; }

.loading-panel {
    padding: 2rem;
    color: var(--muted);
}

.skeleton-page,
.skeleton-table,
.skeleton-products,
.skeleton-product-detail {
    width: 100%;
}

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

.skeleton-line,
.skeleton-input,
.skeleton-button,
.skeleton-card,
.skeleton-pill,
.skeleton-image,
.skeleton-product-image,
.skeleton-product-detail-image {
    position: relative;
    overflow: hidden;
    color: transparent;
    background: #edf5f2;
    border-color: transparent;
}

.skeleton-line::after,
.skeleton-input::after,
.skeleton-button::after,
.skeleton-card::after,
.skeleton-pill::after,
.skeleton-image::after,
.skeleton-product-image::after,
.skeleton-product-detail-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.72), transparent);
    animation: skeleton-shimmer 1.15s ease-in-out infinite;
    transform: translateX(-100%);
}

.skeleton-line {
    width: 64%;
    height: 0.85rem;
    border-radius: 999px;
}

.skeleton-line.title {
    width: min(24rem, 82%);
    height: 3.6rem;
}

.skeleton-line.heading {
    width: min(18rem, 72%);
    height: 1.7rem;
}

.skeleton-line.metric {
    width: 6rem;
    height: 2rem;
}

.skeleton-line.wide {
    width: 100%;
}

.skeleton-line.short {
    width: 38%;
}

.skeleton-line.mini {
    width: 28%;
    height: 0.7rem;
}

.skeleton-input {
    width: 100%;
    height: 2.8rem;
    border-radius: 0.55rem;
}

.skeleton-button {
    width: 9rem;
    height: 2.8rem;
    border-radius: 0.55rem;
}

.skeleton-button.full {
    width: 100%;
}

.skeleton-button.compact {
    width: 5.5rem;
    height: 2.25rem;
}

.skeleton-location {
    height: 4.4rem;
}

.skeleton-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.skeleton-pill {
    height: 3.2rem;
    border-radius: 0.7rem;
}

.skeleton-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    gap: 1rem;
    align-items: center;
    min-height: 18rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.skeleton-hero > div:first-child,
.skeleton-form,
.skeleton-field {
    display: grid;
    gap: 0.75rem;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.8rem;
}

.skeleton-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
}

.skeleton-products .product-card {
    display: grid;
    gap: 0.75rem;
}

.skeleton-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.7rem;
}

.skeleton-product-detail {
    display: grid;
    gap: 1rem;
    padding: 1.2rem 0;
}

.skeleton-product-detail-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.9rem;
}

.skeleton-product-detail-content {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
}

.skeleton-product-notice {
    width: 100%;
    height: 4rem;
    border-radius: 0.6rem;
}

.skeleton-product-actions {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: stretch;
}

.skeleton-product-info {
    margin-top: 1rem;
}

.skeleton-table {
    display: grid;
    gap: 0.85rem;
    margin: 1rem 0;
}

.skeleton-row {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) 8rem 8rem auto;
    gap: 1rem;
    align-items: center;
    min-height: 4rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.skeleton-row > div:first-child {
    display: grid;
    gap: 0.5rem;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 720px) {
    .address-manager-grid {
        grid-template-columns: 1fr;
    }

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

    .address-card-actions,
    .address-form-actions {
        justify-content: stretch;
    }

    .address-card-actions .button,
    .address-form-actions .button {
        flex: 1 1 9rem;
    }

    .address-form .cep-row,
    .address-three,
    .address-form .form-grid.two {
        grid-template-columns: 1fr;
    }

    .checkout-auth-choice {
        grid-template-columns: 1fr;
    }

    .checkout-auth-card {
        min-height: 4rem;
    }

    .skeleton-toolbar,
    .skeleton-hero,
    .skeleton-row {
        grid-template-columns: 1fr;
    }

    .skeleton-line.title {
        height: 2.5rem;
    }

    .skeleton-row {
        align-items: stretch;
    }
}

@media (max-width: 1040px) {
    .address-manager-grid {
        grid-template-columns: 1fr;
    }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: 1rem;
    color: #fff;
    background: var(--danger);
    border-radius: 0.6rem;
}

#blazor-error-ui .reload {
    margin-left: 0.5rem;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
}

.loading-progress,
.loading-progress-text {
    display: none;
}

@media (min-width: 720px) {
    body {
        padding-bottom: 0;
    }

    .mobile-cart-bar {
        display: none;
    }

    .menu-button {
        display: none;
    }

    .header-whatsapp {
        display: inline-flex;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

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

    .form-grid.three {
        grid-template-columns: 0.65fr minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .checkout-experience-grid {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 22rem);
        gap: 1.25rem;
    }

    .checkout-summary-card {
        position: sticky;
        top: 5.25rem;
    }

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

    .payment-choice-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .payment-choice-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .payment-choice-card em {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }

    .form-grid.three.equal,
    .store-filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-grid.four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .form-grid.four.regulatory-grid {
        grid-template-columns: minmax(9rem, 0.9fr) minmax(12rem, 1.25fr) minmax(6rem, 0.55fr) minmax(8rem, 0.75fr);
    }

    .store-filter-bar {
        grid-template-columns: minmax(14rem, 1.5fr) minmax(8rem, 0.75fr) minmax(8rem, 0.75fr) minmax(6rem, 0.45fr) auto;
        align-items: end;
    }

    .store-filter-bar.order-filter-bar {
        grid-template-columns: minmax(11rem, 1.1fr) minmax(10rem, 0.9fr) minmax(9rem, 0.8fr) minmax(8rem, 0.7fr) minmax(6rem, 0.5fr) auto;
    }

    .delivery-setting-row.range-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
    }

    .delivery-setting-row.hour-row {
        grid-template-columns: minmax(10rem, 1.2fr) repeat(2, minmax(0, 1fr)) auto auto;
    }

    .delivery-setting-row.closed-date-row {
        grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1fr) auto auto;
    }

    .admin-product-row {
        grid-template-columns: minmax(0, 1.4fr) minmax(9rem, 0.55fr) auto;
    }

    .admin-product-meta {
        justify-items: end;
    }

    .admin-shell {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .store-staff-layout {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .admin-sidebar {
        position: sticky;
        top: 5rem;
        display: grid;
        overflow: visible;
        width: 16rem;
        transition: width 0.18s ease;
    }

    .admin-sidebar.collapsed {
        width: 4.75rem;
        justify-items: center;
    }

    .admin-sidebar.collapsed a,
    .admin-sidebar.collapsed strong,
    .admin-sidebar.collapsed button {
        justify-content: center;
        width: 3rem;
        height: 3rem;
        padding: 0;
    }

    .admin-sidebar.collapsed span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .admin-sidebar.collapsed .store-admin-cart-badge {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        min-width: 1rem;
        height: 1rem;
        padding: 0 0.2rem;
        font-size: 0.62rem;
    }

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

    .main-content {
        padding: 1.5rem;
    }

    .store-staff-layout .main-content {
        padding: 0.5rem;
    }

    .hero,
    .auth-grid,
    .management-grid,
    .two-column {
        grid-template-columns: minmax(0, 1fr) 22rem;
        align-items: start;
    }

    .product-detail,
    .skeleton-product-detail {
        grid-template-columns: minmax(22rem, 0.82fr) minmax(20rem, 0.48fr);
        align-items: start;
    }

    .section-title,
    .page-header {
        flex-direction: row;
        align-items: end;
    }

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

    .cart-line {
        grid-template-columns: 5rem minmax(0, 1fr) auto;
    }

    .quantity-control {
        grid-column: auto;
    }

    .order-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .customer-order-toggle {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
    }

    .customer-order-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .customer-order-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .customer-order-item {
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
    }

    .customer-order-totals {
        grid-template-columns: repeat(4, auto);
        justify-content: end;
    }

    .admin-order-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-order-toggle {
        grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    }

    .store-order-list-item,
    .order-detail-toolbar {
        grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    }

    .order-status-form {
        grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.4fr) auto;
        align-items: end;
    }

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

    .order-detail-overview {
        grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
        align-items: stretch;
    }

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

    .order-row.admin {
        grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    }
}

@media (min-width: 980px) {
    .desktop-cart-dock {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        z-index: 33;
        display: grid;
        gap: 0.7rem;
        justify-items: end;
        pointer-events: none;
    }

    .desktop-cart-float,
    .desktop-whatsapp-float,
    .desktop-cart-panel {
        pointer-events: auto;
    }

    .mobile-whatsapp-fab {
        display: none;
    }

    .desktop-cart-float,
    .desktop-whatsapp-float {
        position: relative;
        display: grid;
        width: 3.6rem;
        height: 3.6rem;
        place-items: center;
        color: #fff;
        background: var(--primary);
        border: 0;
        border-radius: 999px;
        box-shadow: 0 18px 38px rgba(15, 118, 110, 0.32);
        cursor: pointer;
    }

    .desktop-whatsapp-float {
        color: #fff;
        background: #22c55e;
        box-shadow: 0 18px 38px rgba(34, 197, 94, 0.3);
    }

    .desktop-whatsapp-float i {
        font-size: 1.45rem;
    }

    .desktop-cart-float i {
        font-size: 1.2rem;
    }

    .desktop-cart-float span {
        position: absolute;
        top: -0.25rem;
        right: -0.25rem;
        display: grid;
        min-width: 1.45rem;
        height: 1.45rem;
        place-items: center;
        padding: 0 0.35rem;
        color: #fff;
        background: var(--danger);
        border: 2px solid #fff;
        border-radius: 999px;
        font-size: 0.74rem;
        font-weight: 900;
    }

    .desktop-cart-dock.expanded {
        top: 1rem;
        bottom: 1rem;
        width: min(24rem, calc(100vw - 2rem));
        align-content: start;
        gap: 0.75rem;
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    .desktop-cart-panel {
        display: grid;
        gap: 0.9rem;
        width: 100%;
        min-height: 0;
        max-height: 100%;
        overflow: auto;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #cfe0f7;
        border-radius: 1rem;
        box-shadow: 0 20px 46px rgba(20, 50, 80, 0.22);
        backdrop-filter: blur(16px);
    }

    .desktop-cart-panel header {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
    }

    .desktop-cart-panel header span {
        display: block;
        color: var(--muted);
        font-size: 0.86rem;
        font-weight: 800;
    }

    .desktop-cart-panel header strong {
        display: block;
        margin-top: 0.15rem;
        font-size: 1.25rem;
    }

    .desktop-cart-panel header button {
        display: grid;
        width: 2.35rem;
        height: 2.35rem;
        place-items: center;
        color: var(--muted);
        background: var(--surface-strong);
        border: 0;
        border-radius: 999px;
        cursor: pointer;
    }

    .desktop-cart-empty {
        margin: 0;
        padding: 0.85rem;
        color: var(--muted);
        background: var(--surface-strong);
        border: 1px solid var(--line);
        border-radius: 0.75rem;
        font-size: 0.9rem;
    }

    .desktop-cart-lines {
        display: grid;
        gap: 0.6rem;
        max-height: min(48vh, 22rem);
        overflow-y: auto;
        padding-bottom: 0.2rem;
    }

    .desktop-cart-line {
        display: grid;
        gap: 0.65rem;
        align-items: start;
        padding: 0.75rem;
        background: #f7fbf8;
        border: 1px solid var(--line);
        border-radius: 0.75rem;
    }

    .desktop-cart-line strong,
    .desktop-cart-line small {
        display: block;
    }

    .desktop-cart-line strong {
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .desktop-cart-line small {
        margin-top: 0.2rem;
        color: var(--muted);
    }

    .desktop-cart-line-actions {
        display: grid;
        grid-template-columns: auto minmax(5rem, 1fr) auto;
        gap: 0.55rem;
        align-items: center;
    }

    .desktop-cart-line-actions > strong {
        justify-self: end;
        color: var(--text);
        font-size: 0.98rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .desktop-cart-quantity {
        grid-column: auto;
    }

    .desktop-cart-quantity button,
    .desktop-cart-quantity span {
        display: grid;
        min-width: 2rem;
        min-height: 2rem;
        place-items: center;
    }

    .desktop-cart-remove {
        display: grid;
        width: 2.25rem;
        height: 2.25rem;
        place-items: center;
        color: var(--danger);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 0.65rem;
        cursor: pointer;
    }

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

    .metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Commercial storefront polish */
body {
    background: #ffffff;
}

.site-header {
    padding-inline: max(1rem, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, 0.92);
}

.brand-mark {
    background: linear-gradient(135deg, var(--primary), #15a38f);
    border-radius: 0.7rem;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.main-content {
    width: min(1180px, 100%);
}

.superadmin-shell .main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem;
}

.store-staff-shell .main-content {
    width: 100%;
    max-width: none;
    margin: 0;
}

.superadmin-shell .site-header,
.store-staff-shell .site-header {
    justify-content: flex-start;
    padding-inline: 1rem;
}

.store-hero {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem 0 1rem;
}

.hero-copy {
    display: grid;
    gap: 1rem;
}

.store-hero h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.5rem, 9vw, 5.2rem);
    line-height: 0.95;
}

.store-hero p,
.commercial-band p,
.site-footer p {
    max-width: 44rem;
    color: var(--muted);
    line-height: 1.65;
}

.search-box {
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(24, 48, 39, 0.08);
}

.search-box span {
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.search-box input {
    min-height: 3rem;
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.trust-row span,
.product-meta span,
.savings {
    width: max-content;
    padding: 0.35rem 0.55rem;
    color: #785006;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.hero-showcase {
    display: grid;
    gap: 1rem;
}

.showcase-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
}

.showcase-card img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
}

.showcase-card div {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.showcase-strip,
.service-strip,
.category-grid,
.care-grid {
    display: grid;
    gap: 0.85rem;
}

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

.showcase-strip div,
.service-strip article,
.care-grid article,
.category-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    box-shadow: 0 10px 26px rgba(24, 48, 39, 0.07);
}

.showcase-strip strong,
.showcase-strip span,
.service-strip strong,
.service-strip span,
.care-grid strong,
.care-grid span {
    display: block;
}

.showcase-strip span,
.service-strip span,
.care-grid span,
.category-card small {
    margin-top: 0.3rem;
    color: var(--muted);
    line-height: 1.45;
}

.service-strip,
.category-section,
.commercial-band,
.medicine-care {
    padding: 1.5rem 0;
}

.section-title.compact {
    padding-bottom: 0;
}

.category-autocomplete {
    position: relative;
    display: grid;
    gap: 0.45rem;
    max-width: 34rem;
    margin: 1rem 0;
}

.category-autocomplete label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.category-autocomplete-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.category-autocomplete-field i {
    color: var(--primary);
}

.category-autocomplete-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    font: inherit;
    font-weight: 700;
}

.category-suggestions {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    display: grid;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.category-suggestions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.65rem 0.8rem;
    color: #30343b;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    text-align: left;
}

.category-suggestions button:last-child {
    border-bottom: 0;
}

.category-suggestions button:hover,
.category-suggestions button:focus-visible {
    background: #f3f4f6;
}

.category-suggestions span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.category-suggestions i {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 0.6rem;
}

.category-suggestions strong {
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-suggestions small {
    flex: 0 0 auto;
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.category-section h2,
.commercial-band h2,
.medicine-care h2,
.site-footer h2 {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.7rem);
    line-height: 1.05;
}

.category-card {
    display: grid;
    gap: 0.4rem;
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card i {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 0.8rem;
    font-weight: 900;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-browser {
    width: min(1180px, calc(100% - 1rem));
    margin: 1rem auto 2rem;
}

.category-browser-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 0 1.2rem;
}

.category-browser-header h1,
.category-product-heading h2 {
    margin: 0;
    color: #263238;
    line-height: 1.05;
}

.category-browser-header h1 {
    margin-top: 0.35rem;
    font-size: clamp(2rem, 6vw, 3.25rem);
}

.category-browser-header p,
.category-product-heading span {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-weight: 800;
}

.back-link {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    color: var(--primary-dark);
    font-weight: 900;
}

.category-browser-layout {
    display: grid;
    gap: 1rem;
}

.category-browser-sidebar {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    padding: 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.category-browser-sidebar label,
.category-product-filter label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.category-browser-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 2.8rem;
    padding: 0 0.8rem;
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.category-browser-search i {
    color: var(--primary);
}

.category-browser-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-weight: 800;
}

.category-browser-list {
    display: grid;
    gap: 0.35rem;
    max-height: 34rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.category-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.2rem;
    padding: 0.55rem;
    color: #30343b;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    cursor: pointer;
    text-align: left;
}

.category-list-item:hover,
.category-list-item.active {
    background: #f3f8f6;
    border-color: rgba(22, 138, 94, 0.22);
}

.category-list-item span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.55rem;
}

.category-list-item i {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 0.5rem;
}

.category-list-item strong {
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.category-list-item small {
    color: var(--muted);
    font-weight: 900;
}

.category-browser-main {
    min-width: 0;
}

.category-select-state {
    display: grid;
    min-height: 18rem;
    align-items: center;
}

.category-select-state .empty-state {
    margin: 0;
}

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

.category-browser-card {
    min-height: 8rem;
}

.category-product-filter {
    display: grid;
    gap: 0.7rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.category-product-filter > div {
    display: grid;
    gap: 0.4rem;
}

.category-product-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.category-products-grid {
    margin-top: 0;
}

.category-pagination {
    margin-top: 1rem;
    padding: 0.8rem 0;
}

.product-card {
    border-radius: 1rem;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.product-meta p {
    margin: 0;
}

.savings {
    color: var(--primary-dark);
    background: var(--surface-strong);
}

.commercial-band {
    display: grid;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
    padding: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, #0b4f49, #0f766e 58%, #b7791f);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
}

.commercial-band p,
.commercial-band .eyebrow {
    color: rgba(255, 255, 255, 0.84);
}

.commercial-band .button.primary {
    color: var(--primary-dark);
    background: #fff;
    box-shadow: none;
}

.medicine-care {
    display: grid;
    gap: 1rem;
}

.site-footer {
    display: grid;
    gap: 1rem;
    width: min(1180px, calc(100% - 2rem));
    margin: 2rem auto 1rem;
    padding: 1.25rem;
    color: #526172;
    background: #fff;
    border-top: 1px solid #dde4ea;
}

.footer-regulatory {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.anvisa-brand {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    color: #1457a4;
}

.anvisa-symbol {
    position: relative;
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 2px solid #29a661;
    border-radius: 50%;
}

.anvisa-symbol::before,
.anvisa-symbol::after,
.anvisa-symbol i::before,
.anvisa-symbol i::after {
    position: absolute;
    content: "";
    background: #f7c531;
}

.anvisa-symbol::before {
    width: 3.4rem;
    height: 0.15rem;
}

.anvisa-symbol::after {
    width: 0.15rem;
    height: 3.4rem;
}

.anvisa-symbol i::before {
    width: 1.1rem;
    height: 0.15rem;
    transform: rotate(45deg);
}

.anvisa-symbol i::after {
    width: 1.1rem;
    height: 0.15rem;
    transform: rotate(-45deg);
}

.anvisa-brand strong {
    display: block;
    color: #1457a4;
    font-size: 1.6rem;
    line-height: 1;
}

.anvisa-brand small {
    display: block;
    color: #376895;
    font-size: 0.78rem;
}

.anvisa-copy {
    display: grid;
    gap: 0.4rem;
}

.anvisa-copy strong {
    color: #f20b2f;
}

.anvisa-copy p,
.footer-store-data p,
.footer-warning p {
    margin: 0;
    line-height: 1.55;
}

.footer-store-data {
    font-size: 0.82rem;
}

.footer-warning {
    padding: 0.9rem 1rem;
    color: #5d5367;
    background: #fff4f6;
    border: 1px solid #f5b8c3;
    border-radius: 0.55rem;
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    padding-top: 0.2rem;
    font-size: 0.86rem;
}

.site-footer a {
    color: #215a87;
    font-weight: 700;
}

.footer-bottom {
    padding-top: 1.4rem;
    color: #526172;
    text-align: center;
    font-size: 0.88rem;
}

@media (min-width: 720px) {
    .search-box {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .store-hero {
        grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.78fr);
    }

    .service-strip,
    .category-grid,
    .care-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commercial-band,
    .footer-regulatory {
        grid-template-columns: minmax(0, 1fr) auto;
    }

}

@media (min-width: 980px) {
    .service-strip,
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-regulatory {
        grid-template-columns: 22rem minmax(0, 1fr);
    }
}

/* Dense retail storefront */
.commerce-toolbar,
.delivery-location-card,
.store-closed-banner,
.store-search-row,
.category-carousel,
.category-rail,
.promo-hero,
.benefit-strip,
.product-shelf,
.commercial-tiles,
.compact-store {
    margin-inline: auto;
    width: min(1180px, calc(100% - 1rem));
}

.store-closed-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    color: #7f1d1d;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 0.9rem;
}

.store-closed-banner i {
    font-size: 1.15rem;
}

.store-closed-banner span,
.store-closed-banner strong,
.store-closed-banner small {
    display: block;
}

.store-closed-banner small {
    color: #9f1239;
    font-weight: 700;
}

.commerce-toolbar {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    width: max-content;
    max-width: min(1180px, calc(100% - 1rem));
    overflow-x: auto;
    margin-top: 0.75rem;
    padding: 0.45rem;
    color: #333;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(219, 231, 225, 0.82);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(24, 48, 39, 0.06);
    scrollbar-width: none;
}

.delivery-location-card {
    width: min(42rem, calc(100% - 1rem));
    margin-top: 1rem;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(219, 231, 225, 0.9);
    border-radius: 0.9rem;
}

.commerce-toolbar::-webkit-scrollbar,
.category-rail::-webkit-scrollbar,
.product-shelf-track::-webkit-scrollbar {
    display: none;
}

.commerce-toolbar a,
.commerce-location,
.commerce-category {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    flex: 0 0 auto;
    min-height: 2.6rem;
    padding: 0.55rem 0.75rem;
    color: #30343b;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.commerce-location {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    max-width: none;
    text-align: left;
}

.commerce-toolbar a:hover,
.commerce-location:hover,
.commerce-category:hover {
    background: #f3f4f6;
}

.commerce-location span,
.commerce-location strong,
.commerce-location small {
    display: block;
}

.commerce-location span {
    min-width: 0;
}

.commerce-location small {
    max-width: 100%;
    overflow: hidden;
    color: #69717c;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-loading-state {
    display: grid;
    gap: 0.7rem;
    min-height: 12rem;
    place-items: center;
    align-content: center;
    color: var(--primary-dark);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.search-loading-state i {
    font-size: 1.45rem;
    animation: spin 0.9s linear infinite;
}

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

.store-search-row {
    padding: 0.75rem 0 0.35rem;
}

.commerce-search {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.95rem;
    background: #fff;
    border-color: #dfe7e4;
    border-radius: 0.9rem;
    box-shadow: none;
}

.commerce-search:focus-within {
    border-color: #0f766e;
    box-shadow: 0 10px 26px rgba(15, 118, 110, 0.12);
}

.commerce-search span {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.commerce-search input {
    min-height: 3.2rem;
    padding: 0 0.1rem;
    color: #242932;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

.commerce-search input::placeholder {
    color: #8b949e;
    font-weight: 650;
}

.commerce-search .button {
    min-height: 3rem;
}

.category-carousel {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: 0.45rem 0.7rem;
    align-items: center;
    padding: 1.2rem 0 1.55rem;
}

.category-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0.1rem 0 0.25rem;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.category-scroll-button {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    color: #5f6670;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dfe3e6;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(24, 48, 39, 0.08);
}

.category-scroll-button:hover,
.category-scroll-button:focus-visible {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.category-view-all {
    grid-column: 2;
    justify-self: center;
    color: #6b746f;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.category-view-all:hover,
.category-view-all:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.category-shortcut {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    flex: 0 0 8rem;
    padding: 0.85rem 0.6rem;
    color: #343942;
    background: transparent;
    border: 0;
    border-radius: 0.9rem;
    cursor: pointer;
    scroll-snap-align: start;
}

.category-shortcut i {
    display: grid;
    width: 5.1rem;
    height: 3.05rem;
    place-items: center;
    color: #0f766e;
    background: #f4f0e8;
    border-radius: 0.75rem;
    font-size: 1.35rem;
    font-weight: 900;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.category-shortcut:hover i,
.category-shortcut:focus-visible i,
.category-shortcut.active i {
    color: #fff;
    background: var(--primary);
    transform: translateY(-1px);
}

.category-shortcut.active strong {
    color: var(--primary-dark);
}

.category-shortcut strong {
    min-height: 2.25rem;
    font-size: 0.82rem;
    line-height: 1.15;
    text-align: center;
}

@media (max-width: 639px) {
    .category-carousel {
        grid-template-columns: 2.15rem minmax(0, 1fr) 2.15rem;
        gap: 0.35rem;
        padding: 0.85rem 0 1.15rem;
    }

    .category-rail {
        gap: 0.35rem;
        padding-inline: 0;
        scroll-snap-type: x mandatory;
    }

    .category-scroll-button {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.9rem;
    }

    .category-shortcut {
        flex-basis: calc((100% - 1.05rem) / 4);
        min-width: 0;
        gap: 0.35rem;
        padding: 0.45rem 0.15rem 0.35rem;
    }

    .category-shortcut i {
        width: min(100%, 3.6rem);
        height: 2.35rem;
        border-radius: 0.65rem;
        font-size: 1rem;
    }

    .category-shortcut strong {
        width: 100%;
        min-height: 2.35rem;
        overflow-wrap: anywhere;
        font-size: 0.68rem;
        line-height: 1.12;
    }

    .category-view-all {
        margin-top: 0.1rem;
        font-size: 0.74rem;
    }
}

.promo-hero {
    position: relative;
    display: grid;
    gap: 1rem;
    align-items: center;
    min-height: 17rem;
    overflow: hidden;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 73% 50%, rgba(15, 118, 110, 0.16), transparent 18rem),
        linear-gradient(110deg, #fff8f1 0%, #ffffff 46%, #e6f7ef 100%);
    border: 1px solid #eef0ef;
    border-radius: 0.75rem;
}

.promo-copy {
    display: grid;
    gap: 0.55rem;
    max-width: 30rem;
}

.promo-copy span {
    color: #b42332;
    font-weight: 900;
    text-transform: uppercase;
}

.promo-copy h1 {
    margin: 0;
    color: #2f3137;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.02;
}

.promo-copy p {
    margin: 0;
    color: #5d6470;
    line-height: 1.5;
}

.promo-products {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 9rem;
}

.promo-products img {
    width: clamp(5.25rem, 14vw, 9rem);
    height: clamp(5.25rem, 14vw, 9rem);
    object-fit: contain;
    margin-left: -1.2rem;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(18, 29, 37, 0.08);
}

.promo-products img:first-child {
    margin-left: 0;
}

.promo-discount {
    justify-self: start;
    color: #8d2536;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    line-height: 0.9;
}

.hero-arrow {
    display: none;
}

.benefit-strip {
    display: grid;
    gap: 0.75rem;
    padding: 1.15rem 0 1.75rem;
}

.benefit-strip article {
    min-height: 5.35rem;
    padding: 1rem;
    background: #f4f5f5;
    border-radius: 0.75rem;
}

.benefit-strip strong,
.benefit-strip span {
    display: block;
}

.benefit-strip span {
    margin-top: 0.28rem;
    color: #616975;
    line-height: 1.35;
}

.product-shelf {
    padding: 1.1rem 0 2rem;
}

.shelf-title {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.shelf-title h2 {
    margin: 0;
    color: #30343b;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
}

.shelf-title div {
    display: flex;
    gap: 0.45rem;
}

.shelf-title button {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    color: #5f6670;
    background: #fff;
    border: 1px solid #dfe3e6;
    border-radius: 999px;
    font-size: 1.25rem;
}

.product-shelf-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(11.8rem, 70vw);
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.15rem 0.05rem 0.4rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.product-shelf-track .product-card {
    scroll-snap-align: start;
}

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

.product-card {
    position: relative;
    display: grid;
    grid-template-rows: 10.75rem minmax(0, 1fr) auto;
    height: 31.4rem;
    background: #fff;
    border-color: #e5e8ec;
    border-radius: 0.7rem;
    box-shadow: none;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(21, 30, 38, 0.09);
}

.product-card.just-added {
    border-color: #168a5e;
    box-shadow: 0 14px 28px rgba(22, 138, 94, 0.16);
}

.product-card .product-image {
    height: 10.75rem;
    aspect-ratio: auto;
    background: #fff;
}

.product-card .product-image img {
    display: block;
    object-fit: contain;
    padding: 0.9rem 1rem 0.65rem;
}

.offers-track {
    grid-auto-columns: minmax(16rem, 78vw);
    gap: 1rem;
}

.offer-card {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: 30.5rem;
    height: auto;
    overflow: hidden;
    border: 1px solid #d7eee8;
    border-radius: 0.9rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #ffffff 68%, #fff4f5 100%),
        #fff;
    box-shadow: 0 18px 34px rgba(28, 45, 42, 0.08);
}

.offer-card::before {
    content: "SUPER OFERTA";
    display: block;
    padding: 0.55rem 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #075e57);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-align: center;
}

.offer-card .product-image {
    height: auto;
    margin: 0.9rem 0.9rem 0;
    aspect-ratio: 0.84 / 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.88), transparent 7rem),
        #fff3e5;
    border-radius: 0.75rem;
}

.offer-card .product-image img {
    width: 100%;
    height: 100%;
    padding: 0.55rem;
    object-fit: cover;
}

.offer-card .discount-badge {
    top: 3.35rem;
    right: 0.8rem;
    background: #c51f36;
    box-shadow: 0 8px 18px rgba(197, 31, 54, 0.24);
}

.offer-card .product-body {
    gap: 0.42rem;
    padding: 0.9rem 0.9rem 1rem;
}

.offer-card .product-actions {
    padding: 0 0.9rem 1rem;
}

.offer-card .option-pill {
    color: #0f766e;
    background: #e6f6f1;
}

.offer-card .product-body h2 {
    min-height: 3rem;
    font-size: 1.05rem;
    line-height: 1.28;
}

.offer-card .price-row strong {
    color: #20242a;
    font-size: 1.35rem;
}

.offer-card .savings {
    color: #0f766e;
    background: #dff7ec;
    font-size: 0.76rem;
}

.offer-card .product-purchase-row {
    gap: 0.65rem;
}

.offer-card .product-add-button {
    min-height: 3rem;
    border-radius: 0.65rem;
}

.discount-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    padding: 0.3rem 0.5rem;
    color: #fff;
    background: #168a5e;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
}

.product-card .product-flag {
    top: auto;
    bottom: 0.55rem;
    left: 0.7rem;
    color: #111827;
    background: #fff7ed;
}

.product-card .product-body {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 0;
    padding: 0.75rem 0.85rem 0;
}

.option-pill {
    width: max-content;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    color: #676e79;
    background: #f1f2f4;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.product-card .product-body h2 {
    display: -webkit-box;
    min-height: 3.75rem;
    max-height: 3.75rem;
    margin: 0.1rem 0 0;
    overflow: hidden;
    color: #30343b;
    font-size: 0.95rem;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card .product-body h2 a {
    color: inherit;
}

.product-subtitle {
    min-height: 1.1rem;
    margin: 0;
    overflow: hidden;
    color: #69717c;
    font-size: 0.82rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-card .price-row {
    display: grid;
    gap: 0.08rem;
    justify-content: start;
    margin-top: 0.25rem;
    min-height: 2.85rem;
}

.product-card .price-row span {
    color: #808791;
    font-size: 0.82rem;
}

.product-card .price-row strong {
    color: #20242a;
    font-size: 1.08rem;
}

.product-card .savings {
    width: max-content;
    max-width: 100%;
    color: #168a5e;
    background: #edf8f1;
    font-size: 0.72rem;
}

.product-purchase-row,
.detail-purchase {
    display: grid;
    gap: 0.55rem;
}

.product-purchase-row {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.product-actions {
    display: grid;
    gap: 0.45rem;
    padding: 0 0.85rem 0.9rem;
}

.cart-feedback-slot {
    display: flex;
    align-items: end;
    min-height: 1.15rem;
}

.detail-purchase {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    align-items: stretch;
}

.detail-purchase .button {
    min-width: 0;
    min-height: 3rem;
    line-height: 1.05;
}

.post-add-actions {
    display: grid;
    gap: 0.3rem;
    justify-items: start;
}

.post-add-actions .form-note {
    margin-bottom: 0;
}

.checkout-after-add-link {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

.checkout-after-add-link:hover,
.checkout-after-add-link:focus-visible,
.continue-after-add-link:hover,
.continue-after-add-link:focus-visible,
.continue-shopping-link:hover,
.continue-shopping-link:focus-visible {
    color: var(--primary-dark);
}

.product-qty-control {
    align-self: start;
    grid-column: auto;
}

.product-qty-control.large {
    grid-template-columns: 2.7rem 3rem 2.7rem;
    min-height: 3rem;
    border-radius: 0.7rem;
}

.product-qty-control button,
.product-qty-control span {
    color: #20242a;
    font-weight: 900;
}

.product-qty-control button {
    cursor: pointer;
}

.product-qty-control button:disabled {
    cursor: not-allowed;
    color: #b0b8c0;
}

.product-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    min-height: 2.65rem;
    padding: 0 0.8rem;
    color: #fff;
    background: #c51f36;
    border: 0;
    border-radius: 0.55rem;
    box-shadow: 0 10px 22px rgba(197, 31, 54, 0.2);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
}

.product-add-button i {
    font-size: 0.9rem;
}

.product-add-button.added,
.button.primary.added {
    background: #168a5e;
    box-shadow: 0 10px 22px rgba(22, 138, 94, 0.2);
}

.product-add-button.adding i,
.button.adding i {
    animation: spin 0.8s linear infinite;
}

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

.product-add-button:disabled {
    background: #b9c0c8;
    box-shadow: none;
}

.cart-feedback {
    color: #168a5e;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.15;
}

.cart-feedback.warning,
.form-note.warning {
    color: #9a5b00;
}

.product-stock-count,
.stock-count {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.stock-count {
    margin: 0;
}

.commercial-tiles {
    display: grid;
    gap: 0.9rem;
    padding: 0.85rem 0 1.7rem;
}

.commercial-tiles article,
.commercial-visual {
    overflow: hidden;
    min-height: 12rem;
    background: #f3f4f6;
    border-radius: 1rem;
}

.commercial-tiles article {
    display: grid;
    gap: 0.75rem;
    align-content: center;
    padding: 1.35rem;
}

.commercial-tiles h2 {
    margin: 0;
    color: #30343b;
    font-size: 1.45rem;
    line-height: 1.1;
}

.commercial-tiles p {
    margin: 0;
    color: #616975;
    line-height: 1.45;
}

.commercial-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-store {
    padding: 0.5rem 0 1.5rem;
}

.compact-store .section-title {
    margin-bottom: 0.75rem;
}

.compact-store .category-card {
    box-shadow: none;
}

.location-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 18, 20, 0.52);
    backdrop-filter: blur(2px);
}

.location-panel {
    display: grid;
    gap: 1rem;
    width: min(100%, 30rem);
    max-height: calc(100dvh - 2rem);
    padding: 1.15rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(223, 229, 232, 0.9);
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(14, 20, 27, 0.32);
}

.location-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
}

.location-icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 0.85rem;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.location-header h2,
.location-header p,
.location-copy {
    margin: 0;
}

.location-header h2 {
    margin-top: 0.2rem;
    color: #2f343b;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1.15;
}

.location-copy {
    color: #5f6670;
    line-height: 1.45;
}

.location-close {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    color: #59616b;
    background: #f4f6f6;
    border: 1px solid #e5e9eb;
    border-radius: 999px;
    font-size: 1rem;
}

.location-form {
    display: grid;
    gap: 0.65rem;
}

.field-label {
    color: #30343b;
    font-size: 0.9rem;
    font-weight: 900;
}

.location-input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    min-height: 3.25rem;
    padding: 0 0.9rem;
    background: #fff;
    border: 1px solid #dce5e2;
    border-radius: 0.7rem;
}

.location-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.location-input-wrap i {
    color: var(--primary-dark);
}

.location-input-wrap input {
    min-height: 3rem;
    padding: 0;
    border: 0;
    outline: 0;
}

.location-message {
    padding: 0.7rem;
    color: #875314 !important;
    background: #fff7ed;
    border-radius: 0.65rem;
    font-weight: 800;
}

.location-address-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.85rem;
    background: #f7fbf8;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
}

.location-address-card strong,
.location-address-card span,
.location-address-card small {
    display: block;
}

.location-address-card strong {
    color: var(--text);
}

.location-address-card span,
.location-address-card small {
    margin-top: 0.2rem;
    color: var(--muted);
}

.location-address-fields {
    display: grid;
    gap: 0.65rem;
}

.location-address-fields label {
    display: grid;
    gap: 0.35rem;
    color: #30343b;
    font-weight: 800;
}

.location-login {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.15rem;
    padding-top: 1rem;
    border-top: 1px solid #eceff1;
}

.location-login strong,
.location-login span {
    display: block;
}

.location-login span {
    margin-top: 0.2rem;
    color: #69717c;
}

@media (min-width: 640px) {
    .benefit-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-address-fields {
        grid-template-columns: 0.6fr minmax(0, 1fr);
    }

    .product-shelf-track {
        grid-auto-columns: minmax(12.5rem, 31%);
    }

    .commerce-search {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.8rem;
        align-items: center;
        padding: 0.7rem 0.75rem;
        border-radius: 0.9rem;
    }

    .commerce-search input {
        min-height: 2.85rem;
    }

    .commerce-search .button {
        min-width: 8rem;
    }

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

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

    .detail-purchase .product-qty-control {
        width: 100%;
    }

    .detail-purchase .product-qty-control button,
    .detail-purchase .product-qty-control span {
        min-width: 0;
        width: 100%;
    }

    .detail-image,
    .skeleton-product-detail-image {
        max-height: none;
    }

    .product-enriched-grid article.wide {
        grid-column: auto;
    }

    .enrichment-diff {
        grid-template-columns: 1fr;
    }

    .catalogo-filter-bar {
        grid-template-columns: 1fr;
    }

    .catalogo-detail-hero {
        grid-template-columns: 1fr;
    }

    .catalogo-detail-image {
        max-width: 8rem;
    }
}

@media (min-width: 900px) {
    .category-browser-layout {
        grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
        align-items: start;
    }

    .category-browser-sidebar {
        position: sticky;
        top: 1rem;
    }

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

    .category-product-filter {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .promo-hero {
        grid-template-columns: auto minmax(0, 1fr) minmax(18rem, 0.75fr) auto;
        min-height: 18rem;
        padding: 1.65rem 2rem;
    }

    .promo-discount {
        position: absolute;
        right: 7rem;
        top: 2.1rem;
    }

    .hero-arrow {
        display: grid;
        width: 2.6rem;
        height: 2.6rem;
        place-items: center;
        color: #606873;
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid #e2e6e8;
        border-radius: 999px;
        font-size: 1.6rem;
    }

    .benefit-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-shelf-track {
        grid-auto-flow: initial;
        grid-auto-columns: initial;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        overflow: visible;
    }

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

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

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

    .commercial-tiles {
        grid-template-columns: 0.9fr 1.45fr 0.9fr;
    }
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
textarea,
select {
    background: var(--input-bg);
    border-color: var(--input-line);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):focus,
textarea:focus,
select:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #98a6a0;
}

.prescription-upload-panel {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #e6ece9;
    border-radius: 8px;
    background: #fbfcfc;
}

.prescription-upload-panel.required {
    border-color: #fecaca;
    background: #fff7f7;
}

.prescription-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #b91c1c;
}

.prescription-alert i {
    margin-top: 0.2rem;
}

.prescription-alert span,
.prescription-file-item span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.prescription-alert small,
.prescription-file-item small {
    color: #667085;
    line-height: 1.35;
}

.prescription-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 0.4rem;
    min-height: 7rem;
    padding: 1.25rem;
    border: 1.5px dashed #fca5a5;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #101828;
    text-align: center;
    cursor: pointer;
}

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

.prescription-dropzone i {
    color: #ef4444;
    font-size: 1.55rem;
}

.prescription-dropzone small {
    color: #667085;
}

.prescription-file-list {
    display: grid;
    gap: 0.55rem;
}

.prescription-file-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid #e6ece9;
    border-radius: 8px;
    background: #fff;
}

.prescription-file-item > i {
    color: #ef4444;
}

/* Cart drawer refinement */
.cart-drawer-scrim {
    z-index: 70;
    background: rgba(16, 24, 40, 0.42);
}

.desktop-cart-dock {
    z-index: 72;
}

.desktop-cart-dock.expanded {
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: min(25.5rem, calc(100vw - 2rem));
    gap: 0.75rem;
    align-content: start;
    grid-template-rows: auto auto minmax(0, 1fr);
}

.desktop-cart-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #d9e6ef;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    backdrop-filter: none;
}

.desktop-cart-panel header {
    min-height: 5.25rem;
    padding: 1.15rem 1rem 1rem;
    border-bottom: 1px solid #eef3f6;
}

.desktop-cart-panel header div {
    min-width: 0;
}

.desktop-cart-panel header span {
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.1;
}

.desktop-cart-panel header strong {
    margin-top: 0.15rem;
    color: #101828;
    font-size: 1.3rem;
    line-height: 1.1;
}

.desktop-cart-panel header button {
    flex: 0 0 auto;
    width: 2.45rem;
    height: 2.45rem;
    color: #52635c;
    background: #eef8f3;
    border-radius: 999px;
}

.desktop-cart-lines {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    align-content: start;
    gap: 0.65rem;
    padding: 1rem;
    background: #fff;
    scrollbar-gutter: stable;
}

.desktop-cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.8rem;
    background: #fbfefc;
    border: 1px solid #dce9e3;
    border-radius: 8px;
}

.desktop-cart-line-info {
    min-width: 0;
}

.desktop-cart-line-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: #101828;
    font-size: 0.9rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.desktop-cart-line-info small {
    margin-top: 0.25rem;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.25;
}

.desktop-cart-line-actions {
    display: grid;
    grid-template-columns: auto minmax(5.25rem, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.desktop-cart-line-actions > strong {
    justify-self: end;
    color: #101828;
    font-size: 0.94rem;
    line-height: 1;
    white-space: nowrap;
}

.desktop-cart-quantity {
    width: auto;
    border-color: #d9e6e1;
    border-radius: 8px;
}

.desktop-cart-quantity button,
.desktop-cart-quantity span {
    min-width: 2.1rem;
    min-height: 2.1rem;
    background: #fff;
}

.desktop-cart-quantity button {
    color: #52635c;
    cursor: pointer;
}

.desktop-cart-remove {
    width: 2.1rem;
    height: 2.1rem;
    color: #dc2626;
    background: #fff;
    border-color: #f0d6d6;
    border-radius: 8px;
}

.desktop-cart-empty {
    align-self: start;
    margin: 1rem;
    padding: 1rem;
    background: #f8faf9;
    border-color: #dce9e3;
    border-radius: 8px;
}

.desktop-cart-footer {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #eef3f6;
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.06);
}

.desktop-cart-footer .summary-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    color: #101828;
    font-size: 0.94rem;
    line-height: 1.2;
}

.desktop-cart-footer .summary-line span {
    color: #344054;
}

.desktop-cart-footer .summary-line strong {
    text-align: right;
    white-space: nowrap;
}

.desktop-cart-footer .summary-line.total {
    padding-top: 0.95rem;
    border-top: 1px solid #dce9e3;
    font-size: 1.08rem;
}

.desktop-cart-footer .button.full {
    width: 100%;
    min-height: 3.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

@media (max-width: 719px) {
    .desktop-whatsapp-float {
        display: none;
    }

    .desktop-cart-dock {
        right: max(0.85rem, env(safe-area-inset-right));
        bottom: max(0.85rem, env(safe-area-inset-bottom));
    }

    .desktop-cart-dock.expanded {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(86vh, 42rem);
        padding: 0 0.75rem max(0.75rem, env(safe-area-inset-bottom));
        grid-template-rows: minmax(0, 1fr);
        justify-items: stretch;
    }

    .desktop-cart-dock.expanded .desktop-cart-float {
        display: none;
    }

    .desktop-cart-panel {
        border-radius: 8px 8px 0 0;
    }

    .desktop-cart-panel header {
        min-height: 4.75rem;
        padding: 1rem;
    }

    .desktop-cart-lines {
        padding: 0.85rem;
    }

    .desktop-cart-line {
        padding: 0.75rem;
    }

    .desktop-cart-line-actions {
        grid-template-columns: auto minmax(4.75rem, 1fr) auto;
    }

    .desktop-cart-footer {
        padding: 0.9rem 1rem 1rem;
    }
}
