* {
    box-sizing: border-box;
}

:root {
    --font-size-base: 16px;
    --vitrine-font: "Segoe UI", Tahoma, Arial, sans-serif;
}

html,
body {
    min-height: 100%;
    background: #fff;
}

.app-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition: opacity .42s ease, visibility .42s ease;
}

.app-splash.is-hide {
    opacity: 0;
    visibility: hidden;
}

.order-chat-typing {
    margin: 0 0 6px;
    color: #176c34;
    font-size: .82rem;
}

.app-splash-logo-wrap {
    width: min(38vw, 180px);
    height: min(38vw, 180px);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splash-pop .9s ease-out both, splash-float 1.8s ease-in-out .9s infinite;
}

.app-splash-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(90, 50, 20, .15));
}

@keyframes splash-pop {
    0% { transform: scale(.88); opacity: .2; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes splash-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

html {
    font-size: var(--font-size-base);
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.4;
    color: #2b1d14;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-base);
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
}

body.menu-cart-open {
    overflow: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 3000;
    background:
        radial-gradient(circle at 18% -120%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(110deg, #9f251b 0%, #be3521 52%, #d34b2a 100%);
    color: #fff7f1;
    padding: 6px 0;
    border-bottom: 0;
    box-shadow: 0 10px 24px rgba(117, 24, 13, 0.2);
}

.topbar-inner {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.topbar-left {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.topbar-brand {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: brand-enter 0.42s ease-out both;
    overflow: visible;
}

.brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(140deg, #ffe8c9 0%, #ffd5ac 100%);
    color: #7f1d11;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(115, 31, 19, 0.2);
}

.brand-logo {
    width: auto;
    height: 40px;
    max-width: min(74vw, 360px);
    border-radius: 8px;
    object-fit: contain;
    object-position: left center;
    background: rgba(255, 255, 255, 0.92);
    padding: 0;
    position: static;
    transform: none;
    box-shadow: 0 6px 18px rgba(7, 41, 20, 0.18);
    z-index: auto;
    display: block;
}

.brand-logo + .brand-text {
    display: none;
}

.topbar:not(.delivery-topbar) .topbar-brand > .brand-logo {
    padding-inline: 8px;
}

@media (max-width: 900px) {
    body:not(.is-delivery-area) .topbar .topbar-brand > .brand-logo {
        height: 32px;
        max-width: 150px;
    }
}

.brand-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

@keyframes brand-enter {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.topbar-nav {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    cursor: default;
}

.topbar-nav.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.topbar-desktop-links {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.topbar-auth-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.topbar-mobile-only {
    display: none;
}

.topbar-nav a {
    color: #fff6ef;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    padding: 7px 11px;
    border-radius: 999px;
    border: 0;
    transition: all 0.16s ease;
}

.topbar-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
}

.topbar-nav a.is-active {
    background: #fff6ef;
    color: #9f251b;
    border-color: transparent;
    box-shadow: none;
}

.topbar-install-btn {
    color: #fff6ef;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    padding: 7px 11px;
    border-radius: 999px;
    border: 0 !important;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}


.topbar-install-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 0 !important;
    box-shadow: none !important;
}

.topbar-install-btn:focus,
.topbar-install-btn:focus-visible,
.topbar-install-btn:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.topbar-promo-alert {
    position: relative;
}

body.is-admin-area .topbar-nav > .topbar-promo-alert {
    order: 999 !important;
    margin-left: 0;
}

.topbar-promo-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 230, 210, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff6ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.topbar-promo-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.topbar-promo-bell {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform-origin: 50% 0%;
}

.topbar-promo-bell svg {
    width: 15px;
    height: 15px;
    display: block;
}

.topbar-promo-alert.is-shaking .topbar-promo-bell {
    animation: bell-shake 0.9s ease-in-out infinite;
}

.topbar-promo-dot {
    display: none;
    position: absolute;
    top: 5px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffd44d;
    box-shadow: 0 0 0 2px rgba(156, 39, 17, 0.7);
}

.topbar-promo-alert.has-promo .topbar-promo-dot {
    display: block;
}

.topbar-promo-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    background: #fff;
    color: #2f2017;
    border: 1px solid #f1dac8;
    border-radius: 12px;
    box-shadow: 0 14px 26px rgba(41, 24, 15, 0.25);
    padding: 10px 12px;
    display: none;
    z-index: 1300;
}

.topbar-promo-alert.is-open .topbar-promo-panel {
    display: block;
}

body.has-customer-nav .topbar-promo-panel .topbar-orders-link {
    display: block;
    margin-top: 8px;
    padding: 8px 0 0;
    border-top: 1px solid #e5ebe2;
    color: #166534 !important;
    font-weight: 700;
}

.topbar-nav > .topbar-cart-link {
    position: relative;
}

.topbar-nav .topbar-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}

.topbar-icon-action svg {
    display: block;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
}

.topbar-submenu-trigger.topbar-icon-action::after {
    content: none;
}

.topbar-cart-count {
    position: absolute;
    top: -3px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding-inline: 3px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font: 800 10px/17px system-ui, sans-serif;
    text-align: center;
}

.topbar-cart-count[hidden] {
    display: none;
}

.topbar-promo-title {
    margin: 0 0 6px;
    font-weight: 800;
}

.topbar-promo-line {
    margin: 0 0 4px;
    color: #5d4637;
}

.topbar-promo-seen-btn {
    margin-top: 6px;
    border: 1px solid #e7cdbb;
    background: #fff7ef;
    color: #8a3a16;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
}

.topbar-promo-seen-btn:hover {
    background: #ffefdf;
}

@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(14deg); }
    40% { transform: rotate(-12deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-6deg); }
}

.topbar-nav a.topbar-cta {
    background: linear-gradient(135deg, #d46313 0%, #f08a24 100%);
    border-color: transparent;
    color: #fffdf8;
    box-shadow: 0 8px 16px rgba(170, 82, 20, 0.3);
}

.topbar-nav a.topbar-cta:hover {
    background: linear-gradient(135deg, #bf5611 0%, #df7e22 100%);
    border-color: transparent;
}

.topbar-nav a.topbar-cta.is-active {
    background: #fff6ef;
    color: #9f251b;
    border-color: transparent;
}

.topbar-submenu {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.topbar-submenu-trigger {
    list-style: none;
    color: #fff6ef;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    padding: 7px 11px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    user-select: none;
    background: transparent;
    font-family: inherit;
}

.topbar-submenu-trigger::after {
    content: '\25BE';
    display: inline-block;
    margin-left: 8px;
    font-size: 0.82em;
    transition: transform 0.16s ease;
}

.topbar-submenu.is-open .topbar-submenu-trigger::after {
    transform: rotate(180deg);
}

.topbar-submenu-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
}

.topbar-submenu-trigger.is-active,
.topbar-submenu.is-open .topbar-submenu-trigger {
    background: #fff6ef;
    color: #9f251b;
    border-color: transparent;
    box-shadow: none;
}

.topbar-submenu-panel {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #f1dac8;
    border-radius: 12px;
    box-shadow: 0 14px 26px rgba(41, 24, 15, 0.25);
    padding: 6px;
    display: grid;
    gap: 4px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.topbar-submenu.is-open .topbar-submenu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.topbar-submenu-panel a {
    color: #3a261a;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.topbar-submenu-panel .submenu-action-btn {
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    text-align: left;
    color: #3a261a;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: inherit;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.topbar-submenu-panel .submenu-action-btn[hidden] {
    display: none;
}

.topbar-submenu-panel a:hover {
    background: #fff4eb;
    border-color: #f7d8bf;
}

.topbar-submenu-panel .submenu-action-btn:hover {
    background: #fff4eb;
    border-color: #f7d8bf;
}

.topbar-submenu-panel a.is-active {
    background: #fff0e2;
    border-color: #f6cfb3;
    color: #9f251b;
}

.topbar-submenu-panel a.submenu-danger {
    color: #b42318;
}

.topbar-submenu-panel a.submenu-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.topbar-submenu-panel .submenu-user {
    display: block;
    color: #6f4f3a;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 8px 10px 6px;
}

.topbar-submenu-panel-management {
    min-width: 210px;
    padding: 8px;
    gap: 2px;
}

.topbar-submenu-panel-management .submenu-group {
    display: grid;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid #f4e5d8;
}

.topbar-submenu-panel-management .submenu-group:first-child {
    padding-top: 0;
    border-top: 0;
}

.topbar-submenu-panel .submenu-group-title {
    display: block;
    margin: 0 6px 2px;
    font-size: 0.7rem;
    line-height: 1.1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #a56945;
    font-weight: 700;
}

.topbar-submenu-panel-management a {
    font-weight: 600;
    padding: 7px 10px;
}

.topbar-user {
    color: #ffe0c8;
    font-weight: 700;
    margin-right: 2px;
    font-size: 0.92rem;
    padding: 6px 4px;
}

.container {
    width: 100%;
    flex: 1;
    max-width: 1160px;
    margin: 0 auto 24px;
    padding: 0 18px;
}

.container-full {
    max-width: 100%;
}

.history-menu-container {
    width: min(1280px, calc(100% - 28px));
    max-width: none;
    margin: 24px auto;
    padding: 0;
}

.admin-orders-page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: #fff;
   /* border-radius: 14px;
     border: 1px solid #f2dfd1;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(142, 76, 43, 0.07); */
}

.card h3 {
    margin-top: 0;
}

.hero {
    background: radial-gradient(circle at top right, #ffe0c2 0%, #fff2e4 44%, #fff 100%);
    border: 1px solid #f1dac6;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hero h2 {
    margin: 0;
    font-size: 1.8rem;
}

.hero-kicker {
    margin: 0 0 5px;
    color: #9d4f1c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.hero-text {
    margin: 8px 0 0;
    color: #6b4d39;
}

.store-carousel {
    position: relative;
    --carousel-height-desktop: clamp(220px, 24vw, 340px);
    --carousel-height-mobile: clamp(150px, 42vw, 220px);
    border-radius: 0 !important;
    border: 0 !important;
    overflow: hidden;
    background: #ffffff !important;
    margin-bottom: 14px;
    box-shadow: none !important;
}

.container > .store-carousel:first-child {
    margin-top: 0;
}

.store-carousel-track {
    position: relative;
    height: auto;
    aspect-ratio: 1360 / 350;
    background: #ffffff !important;
    border-radius: 0 !important;
}

.store-carousel-slide {
    position: absolute;
    inset: 0;
    background: #ffffff !important;
    border-radius: 0 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.store-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.store-carousel-media-form,
.store-carousel-media-link {
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff !important;
    border-radius: 0 !important;
}

.store-carousel-media-form {
    margin: 0;
}

.store-carousel-media-link {
    appearance: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.store-carousel-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain !important;
    object-position: center center;
    background: #ffffff !important;
    display: block;
    border-radius: 0 !important;
}

.store-carousel-overlay {
    position: absolute;
    inset: auto 0 0;
    pointer-events: none;
    padding: 16px 18px 18px;
    background: linear-gradient(180deg, rgba(24, 14, 10, 0) 0%, rgba(24, 14, 10, 0.28) 52%, rgba(24, 14, 10, 0.46) 100%);
    color: #fff6ef;
}

.store-carousel-overlay h2 {
    margin: 0;
    font-size: 1.48rem;
}

.store-carousel-overlay p {
    margin: 7px 0 0;
    color: rgba(255, 244, 235, 0.92);
}

.store-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
    z-index: 3;
}

.store-carousel-nav.prev {
    left: 6px;
}

.store-carousel-nav.next {
    right: 6px;
}

.store-carousel-dots {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    gap: 6px;
    z-index: 3;
}

.store-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
}

.store-carousel-dot.is-active {
    background: #fff;
}

.client-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 300px));
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 0;
}

.menu-half-card {
    margin-bottom: 16px;
    border-color: #efd9c8;
    background: linear-gradient(145deg, #fff 0%, #fff7ef 100%);
}

.menu-half-card label {
    font-size: 1rem;
}

.menu-half-card select {
    min-height: 40px;
    font-size: 0.95rem;
}

.menu-search-section {
    margin: 0 0 6px;
}

.menu-discovery-bar {
    position: sticky;
    top: var(--menu-sticky-top, 56px);
    z-index: 35;
    background: #fff;
    padding-top: 6px;
}

.menu-category-strip {
    margin: 0;
    display: block;
    border-bottom: 1px solid #eee3d9;
    position: relative;
    z-index: 20;
    background: #fff;
}

.menu-category-strip.is-stuck {
    box-shadow: 0 8px 16px rgba(91, 52, 26, 0.08);
}

.menu-category-strip-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
    scroll-snap-type: x proximity;
}

.menu-category-strip-track::-webkit-scrollbar {
    display: none;
}

.menu-category-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    color: #4d5a50;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 11px 14px;
    font-size: 0.98rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    scroll-snap-align: center;
    transition: background-color .28s ease, border-color .28s ease, color .28s ease, box-shadow .28s ease, transform .22s ease;
    transform: translateY(0);
}

.menu-category-chip:hover {
    color: #2f4738;
    background: #faf7f3;
}

.menu-category-chip.is-active {
    color: #1f3d2d;
    background: transparent;
    box-shadow: none;
    transform: translateY(0);
    border-bottom: 2px solid #d97745;
}

.menu-category-chip:active,
.menu-category-chip:focus-visible {
    outline: none;
    box-shadow: inset 0 -2px 0 #d97745;
}

.menu-category-chip:active {
    transform: scale(.985);
}

.menu-back-top-btn {
    position: fixed;
    right: 10px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: #f28b2f;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 10px 18px rgba(193, 99, 26, 0.35);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}

@media (max-width: 720px) {
    .menu-discovery-bar {
        top: var(--menu-sticky-top, 96px);
        padding-top: 6px;
        padding-bottom: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .menu-back-top-btn {
        right: 10px !important;
        bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    }

    .menu-search-field input {
        padding-right: 16px;
    }

    .menu-search-submit {
        display: none;
    }
}

@media (max-width: 720px) {
    .menu-category-section {
        scroll-margin-top: calc(var(--menu-sticky-top, 96px) + 62px);
    }
}

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

.menu-back-top-icon {
    width: 18px;
    height: 18px;
    line-height: 1;
    transform: translateY(1px);
}

.menu-back-top-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.menu-back-top-text {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.menu-cart-open-btn {
    white-space: nowrap;
}

.menu-search-form {
    margin: 0;
    display: flex;
    width: 100%;
}

.menu-search-field {
    position: relative;
    width: 100%;
}

.menu-search-field input {
    margin-top: 0;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #dcc7b8;
    background: #fff;
    padding: 0 150px 0 46px;
    font-size: 1.02rem;
    color: #5f4f43;
    font-style: italic;
}

.menu-search-field input::placeholder {
    color: #9e9188;
}

.menu-search-field input:focus {
    border-color: #d97745;
    box-shadow: 0 0 0 3px rgba(217, 119, 69, 0.18);
    outline: none;
}

.menu-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center;
}

.menu-search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    min-width: 122px;
    border-radius: 12px;
    border: 0;
    background: #a7cf58;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-search-submit:hover {
    filter: brightness(0.97);
}

.menu-half-title {
    margin: 0;
}

.menu-half-actions {
    margin-top: 10px;
    max-width: 360px;
    grid-template-columns: 84px 1fr;
    align-items: center;
}

.menu-half-card .menu-half-actions input {
    min-height: 36px;
    font-size: 0.9rem;
    padding: 6px 9px;
}

.menu-half-card .menu-half-actions button {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.88rem;
    border-radius: 8px;
}

.menu-category-section {
    margin: 0 0 24px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #ecd8c9;
    background: linear-gradient(180deg, #fffdfa 0%, #fff7f0 100%);
    box-shadow: 0 10px 22px rgba(124, 67, 37, 0.08);
    scroll-margin-top: 92px;
}

.menu-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0 2px 4px;
    border-bottom: 1px solid #f0ddd0;
}

.menu-category-title {
    margin: 0;
    font-size: 1.34rem;
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .history-menu-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px !important;
    }

    .topbar-inner {
        width: 100% !important;
        padding: 0 8px;
    }
}

@media (max-width: 1280px) {
    body.is-customer-area .container,
    body.is-customer-area .history-menu-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px !important;
    }

    body.is-customer-area .topbar-inner {
        width: 100% !important;
        padding: 0 8px;
    }
}

.menu-product-carousel {
    position: relative;
}

.menu-product-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.store-carousel-nav,
.menu-product-carousel-nav {
    border: 1px solid #dbe7d8;
    border-radius: 50%;
    background: #fff;
    color: #166534;
    font-size: 0;
    box-shadow: 0 3px 10px rgba(24, 53, 35, 0.12);
    transition: opacity 160ms ease, background-color 160ms ease;
}

.store-carousel-nav::before,
.menu-product-carousel-nav::before {
    content: "";
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateX(-2px) rotate(-45deg);
}

.store-carousel-nav.prev::before,
.menu-product-carousel-nav.prev::before {
    transform: translateX(2px) rotate(135deg);
}

.store-carousel-nav:hover,
.menu-product-carousel-nav:hover {
    background: #eff8ee;
}

.store-carousel-nav:focus-visible,
.menu-product-carousel-nav:focus-visible {
    outline: 2px solid #1f8a43;
    outline-offset: 2px;
}

.menu-product-carousel-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.menu-product-carousel-nav.prev { left: -6px; }
.menu-product-carousel-nav.next { right: -6px; }

.js-product-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.js-product-carousel-track::-webkit-scrollbar {
    display: none;
}

.js-product-carousel-track .product-card {
    flex: 0 0 min(300px, 72vw);
}

.product-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 0;
    border-color: #ebd8ca;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(99, 52, 29, 0.1);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #e4c1a4;
    box-shadow: 0 16px 30px rgba(142, 76, 43, 0.18);
}

.product-media {
    position: relative;
    width: 100%;
    height: 150px;
    background: #fff7ef;
    border-bottom: 1px solid #f1dfd2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 82%;
    height: 82%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    margin-bottom: 0;
    border: 0;
    background: transparent;
    padding: 0;
    display: block;
}

.product-card--combo .product-media {
    height: 190px;
    background: #fff;
}

.product-card--combo .product-image {
    object-fit: contain;
    object-position: center;
    padding: 0;
    background: #fff;
}

.product-card--combo {
    grid-column: span 1;
}

@media (min-width: 1200px) {
    .menu-category-grid.client-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .menu-category-grid.client-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 721px) and (max-width: 899px) {
    .menu-category-grid.client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #967560;
    background: #fff3e6;
}

.product-body h3 {
    margin: 0 0 7px;
    padding-right: 34px;
    font-size: 1rem;
    line-height: 1.22;
    color: #6a3f2b;
    font-family: var(--vitrine-font);
    font-weight: 500;
    min-height: 2.48em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-body {
    position: static;
    padding: 12px 12px 0;
}

.product-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #b7c7b7;
    background: #ffffff;
    color: #2f5f3d;
    line-height: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-info-btn:hover {
    background: #eef8ef;
    border-color: #8fb29c;
}

.product-info-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-body p {
    margin: 0;
    min-height: 64px;
    color: #2f4154;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.35;
    font-family: var(--vitrine-font);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-grams-inline {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #6b7b8a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 8px;
    padding: 0 12px 10px;
}

.product-login-inline {
    padding: 6px 12px 10px;
    text-align: center;
}

.product-login-inline a {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2f7a43;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-login-inline a:hover {
    color: #256336;
}

.product-grams {
    font-size: 0.9rem;
    color: #7b8794;
    font-weight: 600;
}

.product-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #fff2e8;
    color: #e94b16;
    font-weight: 900;
    line-height: 1;
    padding: 0;
    white-space: nowrap;
    box-shadow: none;
}

.product-discount-label {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.product-promo-bubble {
    position: absolute;
    right: 20px;
    bottom: auto;
    top: 82px;
    width: 68px;
    height: 68px;
    border: 3px solid #ffb12b;
    border-radius: 999px;
    background: #f36f21;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.05;
    box-shadow: 0 8px 18px rgba(197, 77, 18, 0.25);
    z-index: 2;
}

.product-promo-bubble span {
    max-width: 58px;
    font-size: 0.58rem;
    font-weight: 800;
}

.product-promo-bubble strong {
    margin-top: 3px;
    font-size: 1rem;
    font-weight: 950;
}

.product-promo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 6px;
    width: 100%;
    min-height: 38px;
    border-radius: 0;
    background: #ffa500;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 950;
    text-align: center;
    line-height: 1.15;
    padding: 5px 7px;
    box-sizing: border-box;
}

.product-promo-strip small {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 950;
    white-space: nowrap;
}

.product-form {
    margin-top: auto;
    padding: 8px 12px 12px;
}

.product-form-price-line {
    margin: 0;
    padding: 0;
}


.product-card-toggle {
    display: none;
}

.product-form label {
    margin-top: 2px;
    font-size: 0.86rem;
}

.pizza-kind-row {
    display: flex;
    gap: 10px;
    margin: 4px 0 6px;
    font-size: 0.84rem;
}

.pizza-kind-row label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}

.pizza-half-row {
    margin-bottom: 8px;
}

.pizza-half-row.is-hidden {
    display: none;
}

.pizza-half-row select {
    margin-top: 3px;
    width: 100%;
    font-size: 0.84rem;
}

.half-flavor-picker {
    margin-top: 6px;
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    padding-right: 2px;
}

.half-flavor-option {
    width: 100%;
    border: 1px solid #e8d2bf;
    border-radius: 10px;
    background: #fff;
    color: #2f2017;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    text-align: left;
}

.half-flavor-option.is-selected {
    border-color: #d97745;
    background: #fff5ec;
    box-shadow: 0 0 0 2px rgba(217, 119, 69, 0.18);
}

.half-flavor-media {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff8f1;
    border: 1px solid #f0dfd2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.half-flavor-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.half-flavor-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.qty-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px;
    align-items: stretch;
}

.qty-row-single {
    grid-template-columns: 1fr;
}

.product-cta-btn {
    width: 100%;
    text-align: center;
}

.menu-empty-results {
    color: #6d4f3b;
    font-weight: 700;
}

.order-chat-notice {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 3800;
}
.order-chat-notice-open {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 12px rgba(22, 101, 52, .25);
}
.order-chat-notice-open svg { width: 25px; height: 25px; }
.order-chat-notice-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 23px;
    height: 23px;
    padding: 0;
    border: 1px solid #d1e2d6;
    border-radius: 50%;
    background: #fff;
    color: #166534;
    font-size: 1rem;
}

.order-chat-notice-storefront:not([hidden]) + .menu-cart-fab {
    display: none;
}

.order-chat-notice-storefront,
.menu-cart-fab {
    position: fixed;
    right: max(28px, env(safe-area-inset-right));
    bottom: 18px;
    z-index: 3800;
}

.menu-cart-fab {
    border: 0;
    border-radius: 50%;
    background: #c4510c;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1.2;
    width: 44px;
    height: 44px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(129, 58, 15, 0.25);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}

.menu-cart-fab-icon {
    width: 23px;
    height: 23px;
}

.menu-cart-fab-count {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding-inline: 3px;
    border: 1px solid #c4510c;
    border-radius: 999px;
    background: #fff;
    color: #9a3412;
    font-size: 0.68rem;
    line-height: 15px;
    text-align: center;
}

.menu-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3900;
    background: rgba(32, 24, 18, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.menu-cart-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(380px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    border-left: 1px solid #efdaca;
    box-shadow: -16px 0 34px rgba(47, 27, 18, 0.24);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transform: translateX(104%);
    transition: transform 0.22s ease;
}

.menu-cart-backdrop.is-open .menu-cart-drawer {
    transform: translateX(0);
}

.menu-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #f1dfd2;
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.menu-cart-head h3 {
    margin: 0;
    font-size: 1.3rem;
}

.menu-cart-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e7cdbb;
    background: #fff8f2;
    color: #6c3b1f;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
}

.menu-cart-empty {
    margin: 4px 0 0;
    color: #6f4f3a;
}

.menu-cart-items {
    display: grid;
    align-content: start;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.menu-cart-item {
    border: 1px solid #f0ddd0;
    border-radius: 12px;
    padding: 6px 8px;
    background: #fffdfb;
}

.menu-cart-item-name {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    color: #2f2017;
}

.menu-cart-item-price {
    margin: 3px 0 4px;
    line-height: 1.2;
    color: #b63a1a;
    font-weight: 800;
}

.menu-cart-item-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.menu-cart-qty-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.menu-cart-qty-group {
    display: grid;
    gap: 2px;
    font-size: 12px;
    line-height: 1.15;
}

.menu-cart-qty-stepper {
    display: flex;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    overflow: hidden;
    background: #eaeaea;
}

.menu-cart-qty-value {
    flex: 1;
    min-width: 58px;
    border-inline: 1px solid #dcdcdc;
    background: #fff;
}

.menu-cart-qty-value,
.menu-cart-qty-form .menu-cart-qty-quick-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.menu-cart-qty-form small {
    color: #666;
    font-size: 9px;
    font-weight: 400;
}

.menu-cart-qty-form button {
    min-width: 26px;
    min-height: 26px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #78350f;
    box-shadow: none;
}

.menu-cart-qty-form .menu-cart-qty-quick-add {
    min-height: 28px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #eaeaea;
    color: #222;
}

.menu-cart-qty-form button:disabled {
    opacity: .45;
    cursor: default;
}

.menu-cart-remove-btn {
    margin: 0;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 0.74rem;
    min-height: 28px;
}

.menu-cart-remove-btn {
    background: #b42318;
    margin-left: 2px;
    display: inline-grid;
    place-items: center;
    min-width: 28px;
}

.menu-cart-remove-btn svg {
    width: 15px;
    height: 15px;
}

button:is([data-cart-item-button], [data-quantity-preview-button])[aria-busy="true"] {
    position: relative;
    color: transparent;
    cursor: progress;
}

button:is([data-cart-item-button], [data-quantity-preview-button])[aria-busy="true"] > :is(small, span, svg) {
    visibility: hidden;
}

button:is([data-cart-item-button], [data-quantity-preview-button])[aria-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border: 1.5px solid #16803d;
    border-right-color: transparent;
    border-radius: 50%;
    animation: cart-item-spin .65s linear infinite;
}

button.menu-cart-remove-btn[data-cart-item-button][aria-busy="true"]::after {
    border-color: #bbf7d0;
    border-right-color: transparent;
}

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

@media (prefers-reduced-motion: reduce) {
    button:is([data-cart-item-button], [data-quantity-preview-button])[aria-busy="true"]::after {
        animation: none;
    }
}

.menu-cart-summary {
    margin-top: auto;
    border-top: 1px solid #f1dfd2;
    padding-top: 10px;
    display: grid;
    gap: 6px;
}

.menu-cart-summary > p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.menu-cart-summary > p > strong {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.menu-cart-footer-actions {
    display: grid;
    gap: 8px;
}

.btn.cart-checkout-disabled:disabled {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #475569;
    box-shadow: none;
    cursor: not-allowed;
}

.menu-cart-clear-form {
    margin: 0;
}

.menu-cart-footer-actions .menu-cart-clear-btn {
    background: #7f1d1d;
}

.menu-cart-footer-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.9rem;
    min-height: 38px;
}

.checkout-cart-card {
    margin-bottom: 12px;
}

.checkout-cart-title {
    margin: 0 0 8px;
}

.checkout-cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid #f0dfd3;
}

.checkout-cart-line-main {
    min-width: 160px;
}

.checkout-cart-line-name {
    display: block;
}

.checkout-cart-line-price {
    margin-top: 3px;
}

.checkout-cart-line-actions {
    align-items: center;
    gap: 6px;
}

.checkout-cart-qty-form {
    margin: 0;
    display: inline-flex;
    gap: 0;
    align-items: center;
}

.checkout-cart-qty-form input {
    width: 68px;
    margin: 0;
    min-height: 30px;
    padding: 5px 8px;
}

.checkout-cart-remove-form {
    margin: 0;
}

.checkout-cart-remove-form .btn-danger {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    line-height: 1;
}

.checkout-cart-remove-form .btn-danger svg {
    width: 14px;
    height: 14px;
    display: block;
}


.checkout-weekend-box {
    margin-top: 10px;
    border: 1px solid #f0cdb6;
    background: #fff6ef;
    border-radius: 12px;
    padding: 10px 12px;
}

.checkout-weekend-toggle {
    margin-top: 0;
    font-weight: 700;
}

.checkout-weekend-hint {
    margin-top: 6px;
}

.checkout-weekend-fields {
    margin-top: 8px;
}

.thumb-admin {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 6px;
    border: 1px solid #d9c7bb;
}

.thumb-admin.large {
    width: 100%;
    height: 180px;
    margin-bottom: 8px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    background: #f5f7fa;
    border: 1px solid #e6ebf2;
}

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

.admin-product-category-block {
    margin-bottom: 14px;
}

.is-draggable-category {
    cursor: grab;
}

.is-draggable-category.is-dragging {
    opacity: 0.65;
    cursor: grabbing;
}

.admin-product-category-title {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #7a3514;
}

/* Tipografia mais limpa na tela de produtos (estilo semelhante ao exemplo enviado). */
.admin-product-list,
.admin-product-list .admin-product-card,
.admin-product-list .product-card-summary-btn,
.admin-product-list .product-summary-main h3,
.admin-product-list .product-summary-meta,
.admin-product-list .product-badge,
.admin-product-list .product-summary-price,
.admin-product-list .product-summary-code {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    letter-spacing: 0;
}

@media (max-width: 1180px) {
    .admin-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.is-hidden {
    display: none;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 16px;
}

.search-form input {
    max-width: 420px;
    margin-top: 0;
}

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pagination a {
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid #d9c7bb;
    background: #fff;
    color: #2b1d14;
    font-weight: 600;
}

.pagination a.active {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

.orders-history-page .pagination {
    margin-top: 8px;
    gap: 4px;
}

.orders-history-page .pagination a {
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 400;
}

.admin-product-card {
    background: #fff;
    border: 0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.admin-product-card-compact {
    padding: 8px 10px;
    position: relative;
    overflow: hidden;
}

.is-draggable-card {
    cursor: grab;
}

.is-draggable-card.is-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.admin-product-head h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 500;
}

.admin-product-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 18px;
    margin-bottom: 14px;
    align-items: start;
}

.admin-product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-badge {
    border: 0;
    background: transparent;
    color: #5b534c;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.86rem;
    font-weight: 500;
    white-space: nowrap;
}

.product-editor {
    width: 100%;
}

.product-editor summary {
    list-style: none;
}

.product-editor summary::-webkit-details-marker {
    display: none;
}

.product-editor-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
}

.product-card-summary-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 2px 0;
    cursor: pointer;
}

.product-card-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.product-card-topline .bulk-check-product {
    margin: 0;
}

.product-quick-edit-btn {
    border: 1px solid #b9c7dd;
    background: #f7fbff;
    color: #2f4b73;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
}

.product-quick-edit-btn:hover {
    background: #eaf2ff;
}

.admin-product-card.is-unpublished {
    opacity: .72;
}

.product-card-active-form {
    margin: 0 0 0 auto;
}

.product-card-active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #b9c7dd !important;
    border-radius: 8px;
    background: #f7fbff !important;
    color: #2f4b73 !important;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none !important;
    line-height: 1.1;
}

.product-card-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #1f8f3a;
}

.product-card-active-toggle.is-inactive {
    border-color: #f2b8b5 !important;
    background: #fff7f7 !important;
    color: #b42318 !important;
}

.product-card-active-toggle:disabled {
    background: #f7fbff !important;
    color: #2f4b73 !important;
    opacity: .65;
}

.product-card-active-toggle.is-inactive:disabled {
    background: #fff7f7 !important;
    color: #b42318 !important;
}

.product-card-active-toggle.is-inactive .product-card-active-dot {
    background: #b42318;
}

.product-summary-main {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
}

.product-summary-main h3 {
    margin: 0;
    font-size: 0.90rem;
    font-weight: 500;
}

.product-summary-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.product-summary-code {
    flex: 0 0 auto;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    font-family: inherit;
}

.product-summary-name {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-summary-meta {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.product-summary-price {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #5b534c;
    font-weight: 500;
    font-size: 0.86rem;
    padding: 4px 8px;
}

.product-summary-meta .product-badge {
    padding: 4px 8px;
    font-size: 0.82rem;
}

.product-summary-media {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 84px;
    flex: 0 0 84px;
    align-self: stretch;
}

.product-summary-thumb {
    width: 84px;
    height: 52px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    border: 0;
    background: #fff;
    display: block;
}

.product-summary-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7f6555;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-summary-hint {
    color: #8b5b3f;
    font-size: 0.72rem;
    font-weight: 700;
}

.product-card-summary-btn:hover .product-summary-hint {
    text-decoration: underline;
}

.product-editor-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0dfd3;
}

.photo-placeholder {
    height: 220px;
    border: 1px dashed #d9c7bb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a6f5c;
    margin-bottom: 8px;
    background: #fff8f2;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.products-showcase {
    background: #fff;
    border: 0;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    margin-bottom: 14px;
}

.products-title {
    margin: 4px 0 12px;
}

.products-search-form {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.products-search-form input {
    min-width: 420px;
    width: auto;
    flex: 1 1 auto;
    max-width: none;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d9c7bb;
}

.products-search-form select {
    width: auto;
    min-width: 220px;
    margin-top: 0;
    border: 1px solid #d9c7bb;
    order: 3;
}

.products-search-form button,
.products-search-form .btn {
    white-space: nowrap;
    order: 2;
}

.products-search-form button[type="submit"] {
    margin-left: auto;
}

.perimeter-header {
    margin-bottom: 14px;
}

.perimeter-helper-chips {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.perimeter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #edd8c8;
    background: #fff7ef;
    color: #7a4a2f;
    font-size: 0.82rem;
    font-weight: 700;
}

.perimeter-top-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.82fr);
    gap: 16px;
    align-items: stretch;
    max-width: none;
    margin: 16px 0 18px;
}

.perimeter-card {
    border: 1px solid #d6e5cf;
    border-radius: 14px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 86, 49, 0.08);
}

.perimeter-top-grid .perimeter-card {
    width: 100%;
    min-height: 100%;
}

.perimeter-card-title {
    margin: 0 0 16px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #173f2b;
}

.perimeter-card form {
    display: grid;
    gap: 10px;
    height: calc(100% - 34px);
}

.perimeter-card .perimeter-actions {
    align-self: end;
}

.perimeter-card label {
    margin: 0;
    color: #123126;
    font-weight: 800;
}

.perimeter-card input[type="text"],
.perimeter-card input[type="time"],
.perimeter-card textarea {
    width: 100%;
    margin: 0;
    border-color: #d8c5b8;
    border-radius: 8px;
    background: #fffdfa;
}

.perimeter-card textarea {
    min-height: 108px;
    resize: vertical;
}

.perimeter-card .field-hint {
    margin: -4px 0 2px;
    line-height: 1.35;
}

.perimeter-card hr {
    width: 100%;
    margin: 6px 0;
    border: 0;
    border-top: 1px solid #dbead4;
}

.perimeter-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

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

.perimeter-form-col-wide {
    min-width: 0;
}

.perimeter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.perimeter-ranges-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 18px 2px 12px;
}

.perimeter-ranges-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.perimeter-ranges-grid {
    margin-bottom: 14px;
}

.perimeter-range-card {
    border: 1px solid #d6e5cf;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(31, 86, 49, 0.08);
}

.perimeter-range-card .admin-product-body {
    grid-template-columns: 1fr;
}

.perimeter-range-card .admin-product-body > div {
    display: grid;
    gap: 10px;
}

.perimeter-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.perimeter-streets {
    margin-top: 2px;
    padding: 10px;
    border: 1px solid #dbead4;
    border-radius: 10px;
    background: #f8fcf5;
    width: 100%;
}

.perimeter-streets strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: #1d3b2c;
}

.perimeter-streets ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.perimeter-streets li {
    color: #315344;
    font-size: 0.86rem;
    line-height: 1.25;
}

.perimeter-streets .field-hint {
    margin: 6px 0 0;
}

@media (max-width: 980px) {
    .perimeter-top-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 720px) {
    .perimeter-form-grid,
    .perimeter-edit-grid {
        grid-template-columns: 1fr;
    }

    .perimeter-card {
        padding: 14px;
    }
}

.users-admin-page .admin-product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.users-admin-card {
    margin-bottom: 0;
    border: 1px solid #e7e1da;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    padding: 8px 10px;
}

.users-admin-card-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.users-admin-form .row.users-admin-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    width: 100%;
}

.users-admin-create .users-admin-fields {
    grid-template-columns: auto !important;
    display: flex !important;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    width: auto !important;
}

.users-admin-form .row.users-admin-fields > div:last-child {
    grid-column: auto;
}

.users-admin-form .row.users-admin-fields input[type="text"] {
    max-width: 100%;
    padding: 5px 8px;
    min-height: 34px;
}

.users-admin-create .users-admin-fields input[name="nome"],
.users-admin-create .users-admin-fields input[name="username"] {
    max-width: 260px !important;
    width: 260px !important;
}

.users-admin-create .users-admin-fields input[name="senha"] {
    max-width: 240px !important;
    width: 240px !important;
}

.users-admin-fields-create .users-admin-col-nome,
.users-admin-fields-create .users-admin-col-cel {
    width: 260px;
    flex: 0 0 260px;
}

.users-admin-fields-create .users-admin-col-pass {
    width: 240px;
    flex: 0 0 240px;
}

.users-admin-form .row {
    gap: 10px;
}

.users-admin-user-head {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f2ece6;
}

.users-admin-user-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #2f2f2f;
}

.users-admin-user-subtitle {
    display: none;
}

.users-admin-inline-check {
    margin: 6px 0 4px;
}

.users-admin-inline-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 0;
    white-space: nowrap;
    padding-bottom: 2px;
}

.users-admin-create .users-admin-inline-bar {
    flex: 1 1 auto;
    min-width: 0;
}

.users-admin-inline-bar .users-admin-inline-check {
    margin: 0;
    flex: 0 0 auto;
}

.users-admin-inline-bar button[type="submit"] {
    margin-left: 4px;
    flex: 0 0 auto;
}

.users-admin-inline-bar .users-admin-toggle-btn {
    flex: 0 0 auto;
}

.users-admin-delete-btn {
    margin-left: 2px;
    min-width: 28px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
}

.users-admin-perm-title {
    margin: 0;
    font-size: 0.9rem;
    color: #4b4b4b;
}

.users-admin-perm-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 2px 0 6px;
    flex-wrap: wrap;
}

.users-admin-toggle-btn {
    padding: 4px 9px;
    font-size: 0.76rem;
    border-radius: 999px;
    background: #f2f2f2 !important;
    color: #3f3f3f !important;
    border: 1px solid #dfdfdf !important;
    box-shadow: none !important;
}

.users-admin-toggle-btn:hover {
    background: #ebebeb !important;
    box-shadow: none !important;
    filter: none;
}

.users-admin-password-wrap label {
    margin-bottom: 4px;
}

.users-admin-inline-action {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.users-admin-inline-action label {
    margin-top: 0;
}

.users-admin-password-btn {
    margin-top: 2px;
}

.users-admin-password-box {
    margin-top: 6px;
    max-width: 340px;
}

.users-admin-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.users-admin-actions.is-hidden {
    display: none;
}

.users-admin-actions button[type="submit"] {
    min-width: 170px;
}

.users-admin-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 14px;
    margin-top: 18px;
    margin-bottom: 14px;
}

.users-admin-groups.is-collapsed {
    display: none;
}

.users-admin-group {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.users-admin-group-title {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.users-admin-perm-grid {
    display: grid;
    gap: 6px;
}

.users-admin-perm-item {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 2px 0;
    background: transparent;
    font-size: 0.92rem;
    min-height: 0;
    line-height: 1.2;
}

.users-admin-perm-item:has(input:checked) {
    border: 0;
    background: transparent;
}

.users-admin-perm-item span {
    font-weight: 600;
}

.users-admin-page button[type="submit"] {
    min-width: 170px;
}

.admin-profile-page {
    max-width: 980px;
}

.admin-profile-card.users-admin-card {
    padding: 16px;
}

.admin-profile-form {
    display: grid;
    gap: 18px;
}

.admin-profile-section + .admin-profile-section {
    padding-top: 16px;
    border-top: 1px solid #edf2e8;
}

.admin-profile-section h4 {
    margin: 0 0 12px;
    color: #20382b;
    font-size: 1rem;
    font-weight: 800;
}

.admin-profile-grid {
    display: grid;
    gap: 14px;
    align-items: end;
}

.admin-profile-grid--access {
    grid-template-columns: minmax(190px, 0.9fr) minmax(220px, 1fr) minmax(220px, 1fr);
}

.admin-profile-grid--delete {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    max-width: 720px;
}

.admin-profile-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    color: #122b1f;
}

.admin-profile-form input[type="text"],
.admin-profile-form input[type="password"] {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
}

.admin-profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf2e8;
}

.admin-profile-status {
    margin-right: auto;
    color: #5b6f61;
    font-size: 0.94rem;
}

.admin-profile-actions button[type="submit"] {
    min-width: 150px;
}

@media (max-width: 900px) {
    .users-admin-form .row.users-admin-fields {
        grid-template-columns: 1fr;
    }

    .users-admin-form .row.users-admin-fields > div:last-child {
        grid-column: auto;
    }

    .users-admin-inline-bar {
        align-items: flex-start;
    }

    .admin-profile-grid,
    .admin-profile-grid--access,
    .admin-profile-grid--delete {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .admin-profile-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-profile-status {
        margin-right: 0;
    }
}

.product-modal-actions {
    margin-top: 12px;
}

.inline-check input {
    width: auto;
    margin: 0;
}

.price {
    color: #0b4aa2;
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--vitrine-font);
}

.product-form .qty-row input,
.product-form .qty-row button {
    margin-top: 0;
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
}

button,
.btn {
    background: #e67e22;
    border: none;
    color: #fff;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 0.88rem;
    line-height: 1.1;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    filter: brightness(0.95);
}

.btn-compact {
    padding: 4px 8px;
    font-size: 0.78rem;
    line-height: 1;
    min-height: 24px;
    border-radius: 6px;
}

@media (max-width: 799px) {
    body.is-customer-area .btn:not(:where(.btn-icon, .btn-trash)),
    body.is-customer-area button[type="submit"]:not(:where([data-cart-item-button], .menu-search-icon, .btn-icon, .btn-trash)) {
        min-height: 44px;
    }
}

.btn-danger {
    background: #b42318;
}

.btn-trash {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    color: #b42318 !important;
}

.btn-trash svg {
    width: 16px;
    height: 16px;
    display: block;
}

.btn-trash:hover {
    filter: none !important;
    color: #8f1a12 !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    line-height: 1.35;
}

.text-wrap {
    max-width: 240px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

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

.admin-orders-page .actions .btn {
    padding: 7px 10px;
    font-size: 0.9rem;
    border-radius: 7px;
}

.orders-table-wrap {
    background: #fff;
    border: 1px solid #efdfd3;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.admin-orders-table {
    min-width: 1380px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-orders-table th {
    white-space: nowrap;
    font-size: 0.92rem;
    background: #fff7ef;
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-orders-table td {
    vertical-align: top;
}

.admin-orders-table .text-wrap {
    max-width: 220px;
}

.order-actions {
    display: grid;
    gap: 6px;
    min-width: 128px;
}

.order-actions select,
.order-actions .btn,
.order-actions button {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
}

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

.orders-cards-view {
    grid-template-columns: 1fr;
    gap: 14px;
}

.orders-cards-view .order-card {
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #eddccd;
    background: #fff;
}

.orders-cards-view .order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px 14px;
}

.orders-cards-view .order-actions-inline {
    display: grid;
    grid-template-columns: minmax(180px, 240px) repeat(3, minmax(120px, 1fr));
    gap: 8px;
}

.orders-cards-view .order-actions-inline select {
    grid-column: auto;
}

.admin-orders-page .orders-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.admin-orders-page .orders-group.is-priority .orders-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
}

.admin-orders-page .admin-status-cards {
    margin-top: 10px;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-orders-page .order-card-admin {
    background: #fff;
    border: 1px solid #eddccd;
    border-radius: 14px;
    padding: 9px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.admin-orders-page .order-card-admin .order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 4px 8px;
    font-size: 0.95rem;
}

.admin-orders-page .order-card-admin .order-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.admin-orders-page .order-card-admin .order-print-alert {
    flex: 1 1 100%;
}

.admin-orders-page .order-card-admin .order-actions-inline select {
    order: 99;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 0.86rem;
}

.admin-orders-page .order-card-admin .order-actions-inline button,
.admin-orders-page .order-card-admin .order-actions-inline .btn {
    padding: 6px 10px;
    font-size: 0.76rem;
    line-height: 1;
    min-width: 92px;
    flex: 0 0 auto;
    max-width: none;
    height: 32px;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.admin-orders-page .order-card-admin .order-actions-inline .js-open-order-detail {
    min-width: 68px;
    height: 26px;
    padding: 3px 8px;
    font-size: 0.68rem;
    border-radius: 6px;
}

.admin-orders-page .order-card-admin .order-actions-inline .js-print-order,
.admin-orders-page .order-card-admin .order-actions-inline .js-open-order-detail,
.admin-orders-page .order-card-admin .order-actions-inline .js-open-order-chat {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    height: 24px !important;
    padding: 2px 7px !important;
    font-size: 0.64rem !important;
    border-radius: 6px !important;
    line-height: 1 !important;
}

.orders-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-left: 2px;
}

.orders-kpi {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e9d5c8;
    background: #fff8f1;
    font-size: 1.05rem;
    font-weight: 700;
}

.orders-kpi.has-new {
    background: #fff1f1;
    border-color: #fecaca;
    color: #9f1239;
}

.orders-kpi-sticky {
    position: sticky;
    top: 8px;
    z-index: 900;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e9d5c8;
    background: #fff8f1;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(38, 25, 17, 0.12);
}

.orders-kpi-sticky.has-new {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.summary-chip {
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

.summary-new {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.orders-stack {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    overflow-x: visible;
    padding-bottom: 8px;
}

.orders-group {
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 4px;
    min-height: 220px;
    max-height: none;
    overflow: hidden;
}

.orders-group.is-priority {
    border-color: #f5c4c4;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.12);
}

.orders-group-title {
    margin: 0 0 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    padding-bottom: 8px;
}

.orders-group-count {
    color: #6f4f3a;
    font-size: 0.9rem;
    font-weight: 700;
}

.orders-others {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 12px;
    padding: 10px 12px;
}

.orders-others summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-orders-list {
    margin-top: 6px;
}

.admin-orders-list th {
    background: #fff7ef;
}

.customer-orders-list {
    gap: 16px;
}

.customer-order-card {
    padding: 18px;
}

.customer-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 18px;
    margin: 10px 0 12px;
}

.customer-order-grid p {
    margin: 0;
    line-height: 1.45;
}

.customer-order-address {
    margin: 0 0 6px;
    line-height: 1.45;
}

.customer-order-obs {
    margin: 8px 0 0;
    background: #fff7ef;
    border: 1px solid #f3decf;
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.45;
}

.customer-order-update {
    margin: 8px 0 0;
    background: #eefdf5;
    border: 1px solid #bfe9d1;
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.45;
    color: #1f5137;
}

.customer-order-update a {
    color: #176a43;
    font-weight: 700;
    text-decoration: underline;
}

.customer-order-update .route-link-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #176a43;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1;
}

.customer-order-update .route-link-btn:hover {
    filter: brightness(0.95);
}

.customer-order-eta {
    margin: 10px 0 2px;
    font-size: 0.92rem;
    color: #0f5132;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-order-eta .eta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #a7e0c0;
    background: linear-gradient(180deg, #f3fff8 0%, #e8f8f0 100%);
    color: #0a5d3b;
    box-shadow: 0 6px 16px rgba(16, 93, 58, 0.12);
}

.delivery-live-track {
    position: relative;
    display: inline-block;
    width: 260px;
    height: 28px;
    vertical-align: middle;
    --moto-left: 4%;
    border-radius: 999px;
    padding: 8px 10px;
    background: #eff7f2;
    border: 1px solid #c6e7d5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.delivery-live-line {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    background: #cfe9da;
    border-radius: 999px;
}

.delivery-live-progress {
    position: absolute;
    left: 10px;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    width: calc((var(--moto-left) / 100) * (100% - 20px));
    max-width: calc(100% - 20px);
    background: linear-gradient(90deg, #2ca66d 0%, #0d7c4d 100%);
    border-radius: 999px;
    transition: width 0.55s ease;
}

.delivery-live-moto {
    position: absolute;
    left: var(--moto-left);
    top: 50%;
    transform: translate(-50%, -56%) scaleX(-1);
    font-size: 1.18rem;
    line-height: 1;
    transition: left 0.55s ease;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

@media (max-width: 720px) {
    .customer-order-eta {
        display: grid;
        gap: 8px;
    }
    .customer-order-eta .eta-text {
        width: 100%;
    }
    .customer-order-eta .eta-chip {
        width: 100%;
        justify-content: center;
    }
    .delivery-live-track {
        width: 100%;
        max-width: none;
        display: block;
    }
    .customer-order-eta .eta-chip {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 0.88rem;
    }
}

@media (max-width: 980px) and (min-width: 721px) {
    .orders-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.order-card {
    background: #fff;
    border: 1px solid #eddccd;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
    overflow: hidden;
}

.order-card-live-update {
    animation: cardLivePulse 1.2s ease;
}

@keyframes cardLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.32);
        border-color: #86efac;
        background: #f0fdf4;
    }
    100% {
        box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
        border-color: #eddccd;
        background: #fff;
    }
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.order-head h3 {
    margin: 0;
    font-size: 0.92rem;
}

.order-head-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-delete-inline {
    margin: 0;
    display: inline-flex;
}

.order-status {
    background: #fff3e4;
    border: 1px solid #f1d2b3;
    color: #8a4b1f;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 0.82rem;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px 12px;
    margin-bottom: 10px;
    color: #4f3d31;
}

.order-address p {
    margin: 4px 0;
    color: #4f3d31;
}

.order-actions-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.order-actions-inline select,
.order-actions-inline .btn,
.order-actions-inline button {
    margin: 0;
    width: 100%;
    text-align: center;
}

.order-actions-inline .btn.btn-compact,
.order-actions-inline button.btn-compact {
    width: auto;
    min-width: 68px;
    justify-self: start;
}

.order-actions-inline select {
    grid-column: 1 / -1;
}

.order-actions-inline-single {
    grid-template-columns: auto;
    justify-content: start;
}

.btn-icon {
    width: 38px !important;
    min-width: 38px !important;
    padding: 8px 0 !important;
    line-height: 1;
    font-size: 1rem;
}

.btn-icon-xs {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px;
    padding: 0 !important;
    font-size: 0.82rem;
    border-radius: 7px;
}

.empty {
    background: #fff;
    padding: 14px;
    border-radius: 8px;
}

.alert {
    padding: 13px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #f1dac8;
    background: #fff;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.alert-ok {
    background: #eafaf1;
    color: #0f5132;
    border: 1px solid #c9f0da;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.auth-container {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 28px;
    padding-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: min(460px, 100%);
}

.auth-shell-wide {
    width: min(680px, 100%);
}

.auth-card {
    background:
        radial-gradient(circle at 14% -30%, rgba(255, 221, 195, 0.75) 0%, rgba(255, 221, 195, 0) 48%),
        #fff;
    border: 1px solid #f2ddce;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(73, 46, 31, 0.12);
}

.auth-title {
    margin: 0;
    font-size: 1.75rem;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: #6f4f3a;
    line-height: 1.45;
}

.auth-card form {
    margin-top: 12px;
}

.auth-form label {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #452d1f;
}

.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 10px;
}

.auth-password-field {
    position: relative;
}

.auth-password-field input[type="password"],
.auth-password-field input[type="text"] {
    padding-right: 44px;
}

.auth-register-form input:not([name="fake_user"]):not([type="hidden"]) {
    min-height: 48px !important;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6f5a4b;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.auth-password-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.auth-password-toggle::before {
    content: "\1F441";
    font-size: 14px;
    color: #6f5a4b;
}

.auth-password-toggle::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 13px;
    width: 14px;
    height: 2px;
    background: #6f5a4b;
    transform: rotate(-32deg);
    border-radius: 2px;
    opacity: 1;
}

.auth-password-toggle.is-showing::after {
    opacity: 0;
}

body.is-admin-area .auth-card-admin .auth-form input[type="text"],
body.is-admin-area .auth-card-admin .auth-form input[type="password"] {
    min-height: 42px !important;
    padding: 8px 14px !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
}

body.is-admin-area .auth-card-admin .auth-form .auth-password-field input[type="password"] {
    padding-right: 46px !important;
}

body.is-admin-area .auth-card-admin .auth-actions button {
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
}

.auth-actions {
    margin: 16px 0 0;
}

.auth-actions-right {
    display: flex;
    justify-content: flex-end;
}

.auth-actions button {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font-size: 1rem;
}

.auth-install-actions {
    margin-top: 10px;
}

.auth-install-btn {
    width: 100%;
    display: none;
}

.auth-install-hint {
    display: none;
    margin-top: 8px;
}

.auth-link-row {
    margin: 10px 0 0;
    color: #6f4f3a;
}

.auth-link-row a {
    color: #a13e12;
    font-weight: 700;
}

.auth-card-login {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5d7cb;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 18px 40px rgba(49, 33, 24, 0.16);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 235, 216, 0.95) 0%, rgba(255, 235, 216, 0) 55%),
        linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%);
}

.auth-card-login::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.auth-card-login .auth-title {
    font-size: clamp(2rem, 2.4vw, 2.25rem);
    letter-spacing: -0.02em;
    color: #1f3444;
}

.auth-card-login .auth-subtitle {
    margin-top: 10px;
    color: #5f4f43;
    font-size: 1.04rem;
    line-height: 1.5;
}

.auth-card-login .auth-form label {
    margin-top: 12px;
    color: #3f2d22;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.auth-card-login .auth-form input[type="text"],
.auth-card-login .auth-form input[type="tel"],
.auth-card-login .auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #dcc7b7;
    background: #fff;
    font-size: 1rem;
    color: #2b2b2b;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-card-login .auth-form input[type="text"]::placeholder,
.auth-card-login .auth-form input[type="tel"]::placeholder {
    color: #8b7e73;
}

.auth-card-login .auth-form input[type="text"]:focus,
.auth-card-login .auth-form input[type="tel"]:focus,
.auth-card-login .auth-form input[type="password"]:focus {
    border-color: #df7c2b;
    box-shadow: 0 0 0 4px rgba(223, 124, 43, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.auth-card-login .auth-actions {
    margin-top: 18px;
}

.auth-card-login .auth-actions button {
    min-height: 48px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #35b45f 0%, #1f8a43 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 138, 67, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-card-login .auth-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(31, 138, 67, 0.34);
    filter: saturate(1.05);
}

.auth-card-login .auth-actions button:active {
    transform: translateY(0);
}

.auth-card-login .auth-links-group {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eaded4;
}

.auth-card-login .auth-link-row {
    margin: 0;
    color: #5f4f43;
    line-height: 1.35;
    text-align: left;
}

.auth-card-login .auth-link-row a {
    color: #99400f;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.auth-card-login .auth-link-row-primary {
    margin-bottom: 8px;
}

.auth-card-login .auth-link-row-secondary {
    font-size: 1rem;
}

.customer-profile-page {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto 28px;
}

.customer-profile-page h2 {
    margin: 0 0 16px;
    color: #173f2b;
    font-size: 1.55rem;
    font-weight: 800;
}

.customer-profile-card {
    border: 1px solid #d6e5cf;
    border-radius: 14px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 86, 49, 0.08);
}

.customer-profile-form {
    display: grid;
    gap: 10px;
}

.customer-profile-form .row {
    gap: 12px;
}

.customer-profile-form label {
    margin: 0;
    color: #123126;
    font-weight: 800;
}

.customer-profile-form input[type="text"],
.customer-profile-form input[type="password"] {
    width: 100%;
    margin: 0;
    border-color: #d8c5b8;
    border-radius: 8px;
    background: #fffdfa;
}

.customer-profile-form hr {
    width: 100%;
    margin: 8px 0;
    border: 0;
    border-top: 1px solid #dbead4;
}

.customer-profile-form h3 {
    margin: 2px 0 4px;
    color: #173f2b;
    font-size: 1.08rem;
    font-weight: 800;
}

.customer-profile-actions {
    margin: 4px 0 0;
}

.customer-profile-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

@media (max-width: 720px) {
    .customer-profile-page {
        width: calc(100% - 20px);
    }

    .customer-profile-card {
        padding: 14px;
    }
}

.footer {
    text-align: center;
    padding: 8px 10px 14px;
    color: #8a6f5c;
    margin-top: auto;
    padding-top: 18px;
}


.footer p {
    margin: 0;
}

.footer-note {
    margin-bottom: 4px !important;
    font-size: 0.9rem;
    color: #7f6555;
}

input, textarea, select {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #d9c7bb;
    margin-top: 6px;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}

.field-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #7f6555;
}

.status-pill {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.admin-orders-page .order-qty-pill {
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
    min-height: auto;
}

.route-pick {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6f4f3a;
}

.route-pick input {
    width: auto;
    margin: 0;
}

.customer-orders-table tbody tr + tr td {
    border-top: 8px solid #fff;
}

.orders-history-page {
    width: 100%;
}

.history-filter-card {
    border: 1px solid #e8cfba;
    border-radius: 16px;
    background:
        radial-gradient(circle at 8% -120%, rgba(255, 209, 176, 0.55) 0%, rgba(255, 209, 176, 0) 56%),
        #fff;
    box-shadow: 0 14px 28px rgba(98, 57, 32, 0.12);
    padding: 10px;
    margin: 8px 0 10px;
}

.history-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) 180px 180px 180px auto;
    gap: 8px;
    align-items: end;
    margin: 0;
}

.history-field label {
    margin-top: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.history-field input,
.history-field select {
    margin-top: 0;
    border-color: #dcbfa9;
    background: #fffdfb;
    font-size: 0.84rem;
    height: 34px;
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    width: 100%;
}

.history-date-wrap {
    position: relative;
}

.history-date-input {
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid #d8b79f !important;
    background: linear-gradient(180deg, #fffdfb 0%, #fff7f1 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding-right: 34px;
}

.history-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: center;
}

.history-date-input:focus {
    border-color: #d97745 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 69, 0.2);
    outline: none;
}

.history-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 1px;
    justify-self: end;
    margin-left: auto;
}

.history-filter-actions > button,
.history-filter-actions > .btn {
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 600;
}

.history-quick-range {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-range-btn {
    background: #fff7ef;
    border: 1px solid #f0d4bd;
    color: #7f3514;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1;
}

.quick-range-btn:hover {
    background: #ffeede;
    border-color: #e9c4a8;
}

.quick-range-btn.is-active {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
    box-shadow: 0 8px 18px rgba(143, 53, 17, 0.35);
}

.modern-date-picker {
    position: absolute;
    z-index: 5600;
    width: 284px;
    background: #fff;
    border: 1px solid #e2c8b3;
    border-radius: 14px;
    box-shadow: 0 20px 38px rgba(64, 39, 24, 0.24);
    padding: 10px;
    display: none;
}

.modern-date-picker.is-open {
    display: block;
}

.mdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0dfd3;
}

.mdp-title {
    font-size: 1rem;
    font-weight: 800;
    color: #5c2f18;
}

.mdp-nav {
    width: 32px;
    height: 32px;
    border: 1px solid #e4cdbb;
    border-radius: 9px;
    background: #fff7f1;
    color: #7f3514;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mdp-nav:hover {
    background: #ffeede;
    border-color: #e1bea3;
}

.mdp-week,
.mdp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mdp-week {
    margin-bottom: 6px;
}

.mdp-week span {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
    color: #8b5b3f;
}

.mdp-day {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 8px 0;
    font-weight: 700;
    cursor: pointer;
    color: #2f1d13;
}

.mdp-day:hover {
    background: #fff1e5;
}

.mdp-day.is-other {
    color: #b39682;
}

.mdp-day.is-today {
    box-shadow: inset 0 0 0 1px #e39b6e;
}

.mdp-day.is-selected {
    background: #c2410c;
    color: #fff;
}

.mdp-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.mdp-footer button {
    border: 1px solid #e4cdbb;
    background: #fff7f1;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    color: #7f3514;
    cursor: pointer;
}

.history-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

.history-column {
    min-width: 0;
}

.history-panel {
    background: #fff;
    border: 1px solid #ecd9cb;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.history-panel-title {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.04rem;
}

.history-table-wrap {
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #f1dfd2;
    border-radius: 10px;
}

.history-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    table-layout: fixed;
}

.history-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff7ef;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 400;
}

.history-table th,
.history-table td {
    vertical-align: top;
    padding: 11px 10px;
}

.history-table td {
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.3;
}

.history-table th:first-child,
.history-table td:first-child {
    width: 76px;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
    width: 118px;
}

.history-day-row td {
    background: #fffaf5;
    font-size: 0.94rem;
    font-weight: 400;
    color: #7a3b17;
    border-top: 1px solid #f0dfd3;
    border-bottom: 1px solid #f0dfd3;
}

.history-items-cell {
    max-width: none;
    white-space: normal;
    word-break: break-word;
}

.history-actions-cell {
    width: 104px;
    text-align: right;
}

.history-actions-cell .btn {
    padding: 7px 10px;
    border-radius: 7px;
}

.status-default {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #3f3f46;
}

.status-novo {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.status-preparo {
    background: #fff7e8;
    border-color: #fed7aa;
    color: #9a3412;
}

.status-rota {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0e7490;
}

.status-finalizado {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.status-cancelado {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.ui-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(25, 22, 18, 0.45);
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    z-index: 5000;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.ui-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.modal-open {
    overflow: hidden;
}

.ui-confirm-backdrop {
    z-index: 5600;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.ui-modal {
    width: min(720px, 100vw);
    max-width: 100vw;
    height: 100%;
    background: #fff;
    border-radius: 14px 0 0 14px;
    border: 0;
    border-left: 1px solid #ecd5c2;
    box-shadow: -12px 0 40px rgba(28, 21, 15, 0.22);
    padding: 18px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: translateX(100%);
    transition: transform .24s ease;
}

.ui-modal::-webkit-scrollbar,
.ui-modal *::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.ui-modal * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ui-modal-backdrop.is-open .ui-modal {
    transform: translateX(0);
}

.ui-confirm-backdrop .ui-modal,
.ui-confirm-backdrop.is-open .ui-modal {
    width: min(440px, 100%);
    height: auto;
    max-height: 100%;
    border-radius: 14px;
    border: 1px solid #ecd5c2;
    border-left: 1px solid #ecd5c2;
    box-shadow: 0 20px 45px rgba(28, 21, 15, 0.28);
    transform: none;
    display: block;
}

.ui-modal-title {
    margin: 0 0 8px;
}

.ui-modal-message {
    margin: 0;
    color: #5f4a3c;
}

.ui-confirm-password-wrap {
    margin-top: 14px;
}

.ui-confirm-password-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #1e3328;
}

.ui-confirm-password {
    width: 100%;
    height: 42px;
    border: 1px solid #d6c3b4;
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
}

.ui-confirm-password:focus {
    border-color: #1f8a43;
    box-shadow: 0 0 0 3px rgba(31, 138, 67, 0.16);
    outline: none;
}

.ui-confirm-password-error {
    margin: 6px 0 0;
    color: #b42318;
    font-size: 0.9rem;
}

.order-detail-body p {
    margin: 6px 0;
    line-height: 1.4;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}

#orderDetailBackdrop .ui-modal {
    width: min(720px, 100vw);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#orderDetailBackdrop .ui-modal-title {
    font-size: 1.03rem;
}

#orderDetailBody.order-detail-body {
    overflow-y: auto;
    padding-right: 4px;
    font-size: 0.88rem;
}

.order-detail-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: start;
    gap: 6px;
    margin: 0;
}

.order-detail-row strong {
    color: #1f4034;
}

.order-detail-row span {
    color: #233b31;
    word-break: break-word;
    padding-left: 2px;
}

.order-detail-items {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 0;
    padding-left: 0;
}

.order-detail-items-drop {
    border-top: 1px solid #e6d8cc;
    padding-top: 10px;
    padding-left: 0;
}

.order-detail-items-drop summary {
    cursor: pointer;
    font-weight: 700;
    color: #1f4034;
    margin: 0 0 8px;
    font-size: 0.9rem;
    list-style: none;
    outline: none;
    user-select: none;
}

.order-detail-items-drop summary::-webkit-details-marker {
    display: none;
}

.order-detail-items-drop summary::before {
    content: "\25B8";
    display: inline-block;
    width: 14px;
    margin-right: 4px;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.order-detail-items-drop[open] summary::before {
    transform: rotate(90deg);
}

.order-detail-items-drop summary:focus,
.order-detail-items-drop summary:focus-visible {
    outline: none;
    box-shadow: none;
}

.order-detail-items ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.order-detail-items li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 8px;
    border: 1px solid #efe4da;
    border-radius: 8px;
    background: #fffaf6;
}

.order-detail-items .item-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.order-detail-items .item-sku {
    font-size: 0.75rem;
    color: #5d4a3f;
    white-space: nowrap;
}

.order-detail-items .item-photo-wrap {
    margin-top: 0;
}

.order-detail-items .item-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e8d9cc;
    background: #fff;
}

.order-detail-items .item-main {
    color: #233b31;
    min-width: 0;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.order-detail-items .item-sub {
    color: #1f4034;
    font-weight: 700;
    white-space: normal;
}

.order-detail-items .item-qty {
    color: #2f4b3f;
    font-weight: 700;
    font-size: 0.8rem;
}

.order-detail-items .item-line-single {
    align-items: center;
    gap: 8px;
}

.order-detail-items .item-code {
    color: #8a4b1f;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.order-detail-items .item-line-single .item-main {
    flex: 1 1 auto;
}

.order-detail-items .item-line-single .item-photo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0;
    border-radius: 6px;
}

@media (max-width: 700px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    .order-detail-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .order-detail-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .order-detail-items-drop {
        border-left: 0;
        border-top: 1px solid #e6d8cc;
        padding-left: 0;
        padding-top: 10px;
    }
    .order-detail-row span {
        padding-left: 0;
    }
    .order-detail-items ul {
        max-height: 220px;
    }
}

.ui-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
}

.ui-modal-backdrop:not(.ui-confirm-backdrop) .ui-modal-actions,
.ui-modal-backdrop:not(.ui-confirm-backdrop) .actions.product-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 12px -18px -18px;
    padding: 12px 18px 18px;
    background: #fff;
    border-top: 1px solid #eceff3;
}

.ui-confirm-backdrop .ui-modal-actions {
    margin-top: 16px;
    position: static;
    padding: 0;
    border-top: 0;
}

.ui-cancel {
    background: #e4e6ea;
    color: #342a23;
}

.product-left-float-btn {
    position: static;
    transform: none;
    z-index: auto;
    margin: 8px 0 14px;
    box-shadow: 0 6px 14px rgba(46, 28, 17, 0.18);
}

.product-create-backdrop {
    z-index: 5200;
}

.product-create-modal,
.product-edit-modal {
    width: min(720px, 100vw) !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.product-create-modal form {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.product-create-modal .row {
    gap: 8px 10px;
}

.product-create-modal label {
    display: block;
    margin: 8px 0 6px;
}

.product-create-modal input,
.product-create-modal textarea,
.product-create-modal select {
    min-height: 42px;
}

.product-create-modal textarea {
    min-height: 110px;
}

.product-create-layout-toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: auto;
    margin: 0;
}

.product-modal-actions .product-create-layout-toolbar {
    margin-right: auto;
}

.product-create-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    position: sticky;
    top: 0;
    z-index: 12;
    background: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f7;
}

.product-create-head .ui-modal-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 760px) {
    .product-modal-actions .product-create-layout-toolbar {
        margin-right: 0;
        width: 100%;
        order: 10;
    }
}

.layout-chip-btn {
    width: 34px;
    height: 30px;
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    background: #f6f9ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.layout-chip-icon {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #b88b55;
    display: inline-block;
    transform: rotate(45deg);
}

.layout-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-size: 0.8rem;
    user-select: none;
    cursor: pointer;
}

.layout-switch input {
    display: none;
}

.layout-switch-track {
    display: inline-block;
    flex: 0 0 auto;
    width: 26px;
    height: 15px;
    border-radius: 999px;
    background: #d7dde8;
    position: relative;
    transition: background .15s ease;
}

.layout-switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
    transition: transform .15s ease;
}

.layout-switch input:checked + .layout-switch-track {
    background: #9dc4ff;
}

.layout-switch input:checked + .layout-switch-track::after {
    transform: translateX(11px);
}

.layout-switch-label {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

.layout-columns-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: auto;
}

.layout-col-btn {
    width: 26px;
    height: 24px;
    border: 1px solid #cfd7e3;
    border-radius: 7px;
    background: #fff;
    color: #475569;
    font-weight: 800;
    line-height: 1;
    padding: 0;
}

.layout-cols-label {
    font-size: 0.86rem;
    color: #475569;
}

.product-create-fields {
    display: grid;
    --create-cols: 2;
    grid-template-columns: repeat(var(--create-cols), minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 6px 8px;
    margin-top: 2px;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
}

.create-field-block {
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 6px 8px 8px;
    background: transparent;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    min-width: 0;
}

.create-field-block.is-dragging {
    opacity: 0.82;
    transform: scale(0.995);
    border-color: #cbb39d;
    box-shadow: 0 8px 18px rgba(55, 35, 20, 0.12);
}

.create-field-block label {
    margin-top: 0;
    margin-bottom: 3px;
    color: inherit;
}

.create-field-block.field-span-2 {
    grid-column: 1 / -1;
}

.create-field-handle {
    position: absolute;
    top: 8px;
    right: 10px;
    font-weight: 800;
    color: #5f7ba7;
    cursor: grab;
    user-select: none;
    opacity: 0;
    transition: opacity .15s ease;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: 1px solid #b8caea;
    border-radius: 6px;
    background: #f5f9ff;
    min-width: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

.product-create-fields.is-layout-editing .create-field-block {
    border: 1px dashed #b8cfee;
    background: #f3f8ff;
    cursor: grab;
    padding: 28px 6px 6px;
}

.product-create-fields.is-layout-editing .create-field-block.is-dragging {
    cursor: grabbing;
}

.product-create-fields.is-layout-editing .create-field-handle {
    opacity: 1;
    display: inline-flex !important;
}

.product-create-fields.is-layout-editing .create-field-handle:hover {
    background: #e8f1ff;
}

.product-create-fields.is-layout-editing::after {
    content: 'Solte aqui para mover o campo para o final desta etapa';
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px dashed #b8cfee;
    border-radius: 8px;
    color: #6f86a8;
    background: #f7fbff;
    font-size: 0.8rem;
    font-weight: 600;
}

.create-field-span-controls {
    position: absolute;
    top: 8px;
    right: 40px;
    display: none;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.create-span-btn {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #5f7ba7;
    font-weight: 800;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.product-create-fields.is-layout-editing .create-span-btn:hover {
    background: #e8f1ff;
}

.product-create-fields.is-layout-editing .create-field-span-controls {
    display: inline-flex !important;
}

.product-edit-backdrop {
    z-index: 5300;
}

/* product-edit-modal usa as mesmas dimensões de .product-create-modal */

.product-edit-modal form {
    margin: 0;
    width: 100%;
}

.product-edit-modal textarea[name="descricao"] {
    min-height: 120px;
}

.product-edit-modal .actions.product-modal-actions {
    border-top: 1px solid #eceff3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.product-edit-sections {
    display: grid;
    gap: 10px;
}

.product-edit-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.product-edit-tab {
    border: 1px solid #d7dce4;
    background: #f4f6f9;
    color: #344054;
    border-radius: 8px;
    padding: 7px 12px;
    font-weight: 700;
    cursor: pointer;
}

.product-edit-tab.is-active {
    background: #ffffff;
    border-color: #9cb6d8;
    color: #1e3553;
}

.product-edit-layout-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    justify-content: flex-start;
    width: auto;
}

.product-modal-actions .product-edit-layout-toolbar-slot {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
}

.product-edit-layout-toolbar .create-field-span-controls {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-edit-body.is-tabbed {
    display: block;
}

.product-edit-body.is-tabbed .product-edit-sections {
    display: block;
}

.product-edit-body.is-tabbed .product-edit-section {
    border: 0;
    background: transparent;
}

.product-edit-body.is-tabbed .product-edit-section > summary {
    display: none;
}

.product-edit-body.is-tabbed .product-edit-section-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.product-edit-body.is-tabbed .product-edit-section-content .tab-field {
    display: grid;
    gap: 6px;
    position: relative;
    padding-left: 0;
    align-content: start;
}

.product-edit-body.is-tabbed .product-edit-section-content .tab-field label {
    margin: 0;
}

.edit-field-handle {
    display: none;
    position: absolute;
    left: -14px;
    top: 2px;
    cursor: grab;
}

.product-edit-backdrop form.is-layout-editing .edit-field-handle {
    display: inline-flex;
}

.product-edit-backdrop form .edit-field-span-controls {
    display: none;
}

.product-edit-backdrop form.is-layout-editing .edit-field-span-controls {
    display: inline-flex !important;
    position: absolute;
    right: 6px;
    top: 6px;
    gap: 3px;
    z-index: 2;
}

.product-edit-backdrop form.is-layout-editing .tab-field.is-dragging {
    opacity: .55;
}

.product-edit-backdrop form.is-layout-editing .tab-field {
    cursor: grab;
    outline: 1px dashed #9cb6d8;
    border-radius: 7px;
    padding: 28px 6px 6px;
    background: #fbfdff;
}

.product-edit-backdrop form.is-layout-editing .tab-field[data-field-key="unidade_medida"] {
    padding: 28px 6px 6px;
}

.product-edit-backdrop form.is-layout-editing .tab-field[data-field-key="unidade_medida"] .edit-field-span-controls,
.product-edit-backdrop form.is-layout-editing .tab-field[data-field-key="unidade_medida"] .edit-field-handle {
    display: inline-flex !important;
}

.product-edit-backdrop form.is-layout-editing .tab-field > label {
    min-height: 18px;
}

.product-edit-backdrop form.is-layout-editing .tab-field:active {
    cursor: grabbing;
}

.product-edit-body.is-tabbed .product-edit-section-content .tab-field select,
.product-edit-body.is-tabbed .product-edit-section-content .tab-field input,
.product-edit-body.is-tabbed .product-edit-section-content .tab-field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
}

.product-edit-body.is-tabbed .product-edit-section-content .tab-field select {
    line-height: 1.2;
}

@media (max-width: 760px) {
    .product-edit-body.is-tabbed .product-edit-section-content {
        grid-template-columns: 1fr;
    }
}

.product-edit-section {
    border: 1px solid #e6e7ec;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.product-edit-section > summary {
    cursor: pointer;
    padding: 11px 12px;
    font-weight: 700;
    background: #f7f8fa;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-edit-section > summary::-webkit-details-marker {
    display: none;
}

.product-edit-section > summary::after {
    content: "+";
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    color: #3b4758;
}

.product-edit-section[open] > summary::after {
    content: "âˆ’";
}

.product-edit-section-content {
    padding: 10px 12px 12px;
}

.product-edit-section-content label:first-child {
    margin-top: 0;
}

.product-edit-image-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.product-edit-body.is-tabbed .product-edit-section-content.product-edit-image-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
}

.product-edit-image-fields {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
}

.product-edit-image-fields .tab-field {
    min-width: 0;
}

.product-edit-image-fields .tab-field > label {
    margin: 0;
}

.product-edit-image-fields input[type="url"] {
    width: 100%;
    min-width: 0;
}

.product-edit-image-fields .product-edit-remove-image {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 6px;
    cursor: pointer;
}

.product-edit-body.is-tabbed .product-edit-image-fields .product-edit-remove-image input[type="checkbox"],
.product-edit-image-fields .product-edit-remove-image input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    accent-color: var(--market-green);
}

.product-edit-image-preview > [hidden] {
    display: none;
}

.product-edit-image-preview .thumb-admin.large {
    width: 220px;
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    background: #f7f9fc;
}

@media (max-width: 900px) {
    .product-edit-image-layout {
        grid-template-columns: 1fr;
    }

    .product-edit-body.is-tabbed .product-edit-section-content.product-edit-image-layout {
        grid-template-columns: 1fr;
    }
}

.brand-category-modal {
    width: min(920px, calc(100vw - 28px));
    overflow: auto;
}

#brandCategoryBackdrop .admin-product-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#brandCategoryBackdrop form {
    border: 1px solid #efdfd3;
    border-radius: 10px;
    padding: 10px;
    background: #fffdfb;
}

#brandCategoryBackdrop form button {
    margin-top: 8px;
    width: auto;
    min-width: 140px;
}

#brandManageBackdrop .admin-product-body,
#categoryManageBackdrop .admin-product-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

#brandManageBackdrop form,
#categoryManageBackdrop form {
    display: grid;
    gap: 6px;
    border: 1px solid #efdfd3;
    border-radius: 10px;
    padding: 10px;
    background: #fffdfb;
}

#brandManageBackdrop input,
#brandManageBackdrop select,
#brandManageBackdrop textarea,
#categoryManageBackdrop input,
#categoryManageBackdrop select,
#categoryManageBackdrop textarea {
    min-height: 42px;
    padding: 8px 10px;
    box-sizing: border-box;
}

#brandManageBackdrop form button,
#categoryManageBackdrop form button {
    justify-self: end;
}

@media (max-width: 760px) {
    #brandCategoryBackdrop .admin-product-body {
        grid-template-columns: 1fr;
    }
}



.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 1366px) {
    .container {
        max-width: none;
        width: calc(100% - 20px);
        margin: 16px auto;
        padding: 0;
    }

    .history-menu-container {
        width: calc(100% - 20px);
        margin: 16px auto;
    }

    .topbar-inner {
        width: calc(100% - 10px);
        position: relative;
    }

    .topbar-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow-x: visible;
        padding-bottom: 4px;
    }

    .topbar-nav a,
    .topbar-submenu-trigger {
        white-space: nowrap;
    }

    .topbar-submenu {
        flex: 0 0 auto;
    }

    .products-showcase {
        padding: 12px;
    }

    .perimeter-top-grid {
        grid-template-columns: 1fr;
    }

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

    .perimeter-form-col-wide {
        grid-column: 1 / -1;
    }

    .products-search-form input {
        min-width: 0;
        width: 100%;
    }

    .products-search-form {
        flex-wrap: wrap;
    }

    .products-search-form select {
        min-width: 0;
        width: 100%;
        order: 2;
    }

    .products-search-form button[type="submit"] {
        margin-left: 0;
        order: 3;
    }

    .admin-orders-table {
        min-width: 1120px;
    }

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

    .orders-cards-view .order-actions-inline {
        grid-template-columns: 1fr 1fr;
    }

    .orders-cards-view .order-actions-inline select {
        grid-column: 1 / -1;
    }

    .history-table-wrap {
        overflow-x: auto;
    }

    .history-table {
        min-width: 760px;
    }

    .ui-modal,
    .product-create-modal,
    .product-edit-modal {
        width: min(720px, 100vw);
        max-width: 100vw;
        border-radius: 14px 0 0 14px;
    }
}

@media (max-width: 720px) {
    .topbar {
        padding: 6px 0;
    }

    .topbar-inner {
        width: calc(100% - 18px);
        flex-wrap: nowrap;
        gap: 8px;
    }

    .topbar-left {
        width: auto;
        flex: 0 0 auto;
        align-items: center;
    }

    .topbar-brand {
        width: auto;
        justify-content: flex-start;
        margin: 0;
        gap: 8px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .brand-logo {
        width: auto;
        height: 28px;
        max-width: 112px;
        border-radius: 7px;
        object-position: left center;
        padding: 0;
        box-shadow: 0 5px 14px rgba(7, 41, 20, 0.18);
    }

    .topbar-nav {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        gap: 4px;
        justify-content: flex-end;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        padding: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .topbar-nav::-webkit-scrollbar {
        display: none;
    }

    .topbar-nav a:not(:where(.topbar-submenu-panel a)) {
        flex: 0 0 auto;
        padding: 6px 7px;
        font-size: 0.82rem;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .topbar-desktop-links,
    .topbar-desktop-only {
        display: none !important;
    }

    .topbar-mobile-only {
        display: inline-flex;
    }

    .topbar-install-btn {
        padding: 7px 10px;
        font-size: 0.88rem;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }


    .topbar-submenu-trigger {
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #fff6ef !important;
    }

    .topbar-nav a:not(:where(.topbar-submenu-panel a)):hover,
    .topbar-nav a:not(:where(.topbar-submenu-panel a)).is-active,
    .topbar-nav a.topbar-cta,
    .topbar-nav a.topbar-cta:hover,
    .topbar-nav a.topbar-cta.is-active,
    .topbar-install-btn:hover,
    .topbar-submenu-trigger:hover,
    .topbar-submenu-trigger.is-active,
    .topbar-submenu.is-open .topbar-submenu-trigger {
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #fff6ef !important;
    }

    .topbar-promo-alert {
        position: relative;
        right: auto;
        top: auto;
        flex: 0 0 auto;
        z-index: 4200;
    }

    .topbar-promo-btn {
        width: 30px;
        height: 30px;
        border: 0;
        background: rgba(255, 255, 255, 0.14);
        color: #fff6ef;
        box-shadow: none;
    }

    body.is-customer-area .topbar-promo-btn {
        width: 38px;
        height: 38px;
    }

    body.is-customer-area .topbar-promo-bell,
    body.is-customer-area .topbar-promo-bell svg {
        width: 23px;
        height: 23px;
    }

    .topbar-promo-panel {
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        bottom: auto;
        width: min(320px, calc(100vw - 24px));
    }

    .topbar-submenu {
        flex: 0 0 auto;
        width: auto;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .topbar-submenu-trigger {
        padding: 6px 7px;
        font-size: 0.82rem;
        width: auto;
        white-space: nowrap;
    }

    .topbar-submenu-panel {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        min-width: 190px;
        width: max-content;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-4px);
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-carousel-track {
        height: auto;
    }

    .store-carousel-overlay {
        padding: 12px 12px 14px;
    }

    .store-carousel-overlay h2 {
        font-size: 1.12rem;
    }

    .store-carousel-overlay p {
        margin-top: 4px;
        font-size: 0.88rem;
    }

    .perimeter-form-grid,
    .perimeter-edit-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .perimeter-chip {
        width: 100%;
        border-radius: 10px;
    }

    .store-carousel-nav {
        display: none;
    }

    .menu-category-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .menu-category-title {
        font-size: 1.28rem;
    }

    .menu-category-strip {
        margin-top: -4px;
    }

    .menu-search-field {
        max-width: 100%;
    }

    .menu-cart-open-btn {
        display: none;
    }

    .order-chat-notice-storefront,
    .menu-cart-fab {
        bottom: 12px;
    }

    .menu-category-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .menu-category-grid .product-card {
        position: relative;
        display: block;
        padding: 10px;
        min-height: 130px;
        border-radius: 12px;
    }

    .menu-category-grid .product-card--combo {
        grid-column: span 1;
    }

    .menu-category-grid .product-body {
        padding: 0;
        margin-right: 122px;
        min-height: 0;
    }

    .menu-category-grid .product-footer {
        padding: 6px 0 0;
        margin: 0 122px 0 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
    }

    .menu-category-grid .product-form {
        grid-area: form;
        padding: 0;
        margin-top: 0;
    }

    .menu-category-grid .product-media {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 110px;
        height: 110px;
        border: 0;
        background: #fff7ef;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .menu-category-grid .product-image {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center;
        padding: 0;
        background: transparent;
    }

    .menu-category-grid .product-body h3 {
        font-size: 0.96rem;
        margin: 0 0 2px;
    }

    .menu-category-grid .product-body p {
        margin: 0;
        min-height: 0;
        font-size: 0.9rem;
        line-height: 1.25;
        color: #5f5147;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .menu-category-grid .price {
        font-size: 1.02rem;
        margin: 0;
        flex: 0 0 auto;
    }

    .menu-category-grid .product-login-inline {
        margin-right: 122px;
        padding: 6px 0 0;
        text-align: left;
    }

    .menu-category-grid .product-form .row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .menu-category-grid .product-form .qty-row {
        display: grid;
        grid-template-columns: 26px 44px 26px 1fr;
        gap: 6px;
        align-items: center;
    }

    .menu-category-grid .product-form-price-line .qty-row {
        grid-template-columns: 22px 34px 22px 84px;
        gap: 4px;
    }


    .menu-category-grid .product-form .qty-row input {
        text-align: center;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff7f0;
        margin: 0;
        padding: 0;
        min-height: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .menu-category-grid .product-form .qty-row .qty-step-btn {
        min-height: 28px;
        height: 28px;
        padding: 0;
        border-radius: 6px;
        border: 1px solid #e6cbb8;
        background: #fff;
        color: #6f3c1a;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1;
    }

    .menu-category-grid .product-form-price-line .qty-row .qty-step-btn {
        min-height: 24px;
        height: 24px;
        border-radius: 5px;
        font-size: 0.82rem;
    }

    .menu-category-grid .product-form label {
        margin-top: 6px;
        font-size: 0.92rem;
    }

    .menu-category-grid .product-form input,
    .menu-category-grid .product-form select {
        margin-top: 4px;
        padding: 6px 9px;
        min-height: 34px;
        font-size: 0.95rem;
    }

    .menu-category-grid .product-form .qty-row .js-add-btn {
        width: 118px;
        max-width: 118px;
        justify-self: start;
        margin-top: 4px;
        min-height: 30px;
        padding: 4px 10px;
        font-size: 0.82rem;
        font-weight: 700;
        border-radius: 7px;
    }

    .menu-category-grid .product-form-price-line .qty-row .js-add-btn {
        width: 84px;
        max-width: 84px;
        min-height: 24px;
        height: 24px;
        margin-top: 0;
        padding: 0 8px;
        font-size: 0.74rem;
        border-radius: 6px;
    }


    .menu-category-grid .product-card .product-form {
        display: block;
    }

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

    .admin-product-body {
        grid-template-columns: 1fr;
    }

    .admin-product-list {
        grid-template-columns: 1fr;
    }

    .product-editor-summary,
    .product-card-summary-btn {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-summary-media {
        width: 100%;
        flex-basis: auto;
        align-items: flex-start;
    }

    .qty-row {
        grid-template-columns: 1fr;
    }

    .orders-stack {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .history-filter-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .history-menu-container {
        width: calc(100% - 20px);
    }

    .history-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .history-filter-actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: flex-end;
        justify-self: stretch;
    }

    .history-quick-range {
        margin-top: 8px;
    }

    .history-table {
        table-layout: auto;
    }

    .orders-cards-view .order-actions-inline {
        grid-template-columns: 1fr 1fr;
    }

    .orders-cards-view .order-actions-inline select {
        grid-column: 1 / -1;
    }

    .admin-orders-page .order-card-admin .order-actions-inline {
        display: flex;
        flex-wrap: wrap;
    }

    .admin-orders-page .order-card-admin .order-actions-inline select {
        order: 99;
        flex: 1 1 100%;
    }

    table {
        font-size: 0.9rem;
    }

    .auth-container {
        padding-top: 20px;
        padding-bottom: 24px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 18px;
        border-radius: 14px;
    }

    .auth-shell-wide {
        width: 100%;
    }

    .auth-title {
        font-size: 1.45rem;
    }
}

@media (max-width: 560px) {
    .container,
    .history-menu-container {
        width: calc(100% - 14px);
        margin: 18px auto 10px;
        padding-top: 4px;
    }

    .admin-orders-page .order-card-admin .order-actions-inline {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .admin-orders-page .order-card-admin .order-actions-inline .btn,
    .admin-orders-page .order-card-admin .order-actions-inline button {
        font-size: 0.76rem;
        padding: 6px 6px;
        white-space: nowrap;
        letter-spacing: 0;
    }

    .admin-orders-page .order-card-admin .order-actions-inline select {
        grid-column: 1 / -1;
        width: 100%;
    }

    .topbar {
        padding: 5px 0;
    }

    .topbar-inner {
        width: calc(100% - 12px);
        gap: 6px;
    }

    .topbar-promo-alert { right: auto; }

    .brand-badge {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.7rem;
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .topbar-nav a,
    .topbar-submenu-trigger {
        font-size: 0.78rem;
        padding: 6px 6px;
    }

    .topbar-install-btn {
        font-size: 0.78rem;
        padding: 6px 6px;
    }

    .product-sheet {
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    }

    .product-sheet-image {
        width: 88px;
        height: 88px;
    }

    .half-flavor-picker {
        max-height: 280px;
        gap: 8px;
    }

    .half-flavor-option {
        grid-template-columns: 52px 1fr;
        min-height: 54px;
        padding: 8px 10px;
    }

    .half-flavor-media {
        width: 52px;
        height: 52px;
    }

    .half-flavor-name {
        font-size: 0.95rem;
    }

    .hero {
        padding: 14px;
        border-radius: 12px;
    }

    .store-carousel {
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .store-carousel-track {
        height: auto;
    }

    .store-carousel-image {
        object-fit: contain !important;
        object-position: center center;
        background: #ffffff !important;
    }

    .store-carousel-track {
        background: #ffffff;
    }

    .store-carousel-overlay {
        display: block;
        padding: 10px 12px 12px;
        background: linear-gradient(180deg, rgba(24, 14, 10, 0) 0%, rgba(24, 14, 10, 0.34) 54%, rgba(24, 14, 10, 0.58) 100%);
    }

    .store-carousel-nav {
        display: inline-flex;
        width: 30px;
        height: 30px;
    }

    .store-carousel-dots {
        right: 10px;
        bottom: 10px;
    }

    .store-carousel-dot {
        background: rgba(34, 24, 16, 0.4);
    }

    .store-carousel-dot.is-active {
        background: #c2410c;
    }

    .menu-category-grid .product-card {
        flex-basis: auto;
    }

    .hero h2 {
        font-size: 1.45rem;
    }

    .menu-search-field input {
        height: 40px;
        font-size: 0.92rem;
    }

    .card {
        border-radius: 12px;
        padding: 12px;
    }

    .product-card {
        border-radius: 12px;
        padding: 0;
    }

    .product-media {
        height: 138px;
    }

    .product-body {
        padding: 10px 10px 0;
    }

    .product-body h3 {
        font-size: 1rem;
    }

    .product-body p {
        min-height: 52px;
        font-size: 0.92rem;
    }

    .product-footer,
    .product-form {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-form {
        padding-bottom: 10px;
    }

    .price {
        font-size: 1.08rem;
    }

    .order-chat-notice-storefront,
    .menu-cart-fab {
        bottom: 10px;
    }

    .menu-cart-drawer {
        width: 100vw;
        border-left: 0;
        padding: 12px;
    }

    .menu-cart-item-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .menu-cart-qty-form {
        width: auto;
    }

    .menu-cart-qty-form button,
    .menu-cart-remove-btn {
        width: auto;
    }

    .actions {
        gap: 6px;
    }

    .actions .btn,
    .actions button {
        width: 100%;
        text-align: center;
    }

    .orders-group,
    .order-card,
    .admin-orders-page .order-card-admin,
    .history-panel {
        border-radius: 10px;
        padding: 10px;
    }

    .checkout-cart-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-cart-line-main {
        min-width: 0;
        width: 100%;
    }

    .checkout-cart-line-actions {
        width: 100%;
    }

    .checkout-cart-qty-form {
        width: auto;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 10px;
    }

    th,
    td {
        padding: 10px 9px;
        font-size: 0.86rem;
    }

    .auth-card {
        padding: 16px;
        border-radius: 12px;
    }

    .auth-title {
        font-size: 1.3rem;
    }
}

.products-top-actions {
    margin-bottom: 10px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.products-top-actions .top-actions-btn {
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1;
    min-height: 30px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    border-radius: 8px;
}

.products-top-actions .top-actions-orders {
    order: -1;
    margin-left: 0;
    margin-right: auto;
}

.products-view-toggle {
    display: inline-flex;
    gap: 4px;
    margin-left: 0;
}

body.is-admin-area .products-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #7a4a2b;
    cursor: pointer;
    box-shadow: none;
}

body.is-admin-area .products-view-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.is-admin-area .products-view-btn:hover {
    background: transparent;
    border: none;
    color: #7a4a2b;
}

body.is-admin-area .products-view-btn.is-active {
    background: transparent;
    border: none;
    color: #1f8a43;
}

body.is-admin-area.products-list-view .admin-product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.is-admin-area.products-list-view .admin-product-card-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px !important;
    border-radius: 10px !important;
}

body.is-admin-area.products-list-view .admin-product-card-compact > .product-card-topline {
    display: contents !important;
}

body.is-admin-area.products-list-view .admin-product-card-compact .bulk-check-product {
    max-width: none !important;
    overflow: visible !important;
    margin: 0 !important;
    flex: 0 0 auto;
    order: 1 !important;
}

body.is-admin-area.products-list-view .admin-product-card-compact .bulk-check-product > span {
    display: none;
}

body.is-admin-area.products-list-view .admin-product-card-compact .product-quick-edit-btn,
body.is-admin-area.products-list-view .admin-product-card-compact .product-quick-promo-btn,
body.is-admin-area.products-list-view .admin-product-card-compact .product-card-active-form {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 auto;
    margin: 0 !important;
    order: 10 !important;
}

body.is-admin-area.products-list-view .admin-product-card-compact .product-card-active-form {
    margin-left: auto !important;
}

body.is-admin-area.products-list-view .admin-product-card-compact .product-quick-edit-btn {
    min-width: 0 !important;
}

body.is-admin-area.products-list-view .admin-product-card-compact > .product-card-summary-btn {
    display: contents !important;
}

body.is-admin-area.products-list-view .product-summary-media {
    order: 0;
    width: 56px;
    flex: 0 0 56px;
    align-self: center;
}

body.is-admin-area.products-list-view .product-summary-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

body.is-admin-area.products-list-view .product-summary-main {
    order: 2;
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

body.is-admin-area.products-list-view .product-summary-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
}

body.is-admin-area.products-list-view .product-summary-title-row .product-summary-code {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

body.is-admin-area.products-list-view .product-summary-title-row .product-summary-name {
    display: block !important;
    margin: 0 !important;
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

body.is-admin-area.products-list-view .product-summary-meta {
    display: flex;
    align-items: center;
    gap: 2px 12px;
    margin: 0;
    flex-wrap: wrap;
    font-family: inherit;
}

body.is-admin-area.products-list-view .product-summary-meta .product-badge,
body.is-admin-area.products-list-view .product-summary-meta .product-summary-price {
    display: inline-flex;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.3;
    white-space: nowrap;
    font-family: inherit;
    color: #1f2937;
}

body.is-admin-area.products-list-view .product-summary-meta .product-summary-price,
body.is-admin-area.products-list-view .product-summary-meta .product-badge-wholesale {
    font-size: 1.08rem;
    font-weight: 400;
}

body.is-admin-area.products-list-view .product-summary-meta .product-badge {
    font-weight: 400;
}

.products-search-form select.filter-highlight {
    box-shadow: 0 0 0 3px rgba(34, 150, 76, 0.24);
    border-color: #22964c;
}

@media (max-width: 760px) {
    .products-top-actions {
        justify-content: flex-start;
    }

    .products-top-actions .top-actions-btn {
        flex: 0 1 auto;
    }
}

.products-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.products-bulk-actions .bulk-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.82rem;
    border-radius: 7px;
    line-height: 1;
    box-shadow: none !important;
}

.products-bulk-actions .bulk-action-btn svg {
    width: 12px;
    height: 12px;
    display: block;
    flex: 0 0 12px;
}

.bulk-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.bulk-check-product {
    margin: 8px 10px 0;
    font-size: 0.82rem;
    color: #5b5b5b;
}

.carousel-admin-hero {
    background: linear-gradient(125deg, #fff 0%, #fff8f2 100%);
}

.carousel-admin-actions {
    margin: 0 0 10px;
    justify-content: flex-end;
}

.carousel-admin-list {
    grid-template-columns: 1fr;
    gap: 14px;
}

.carousel-admin-card {
    border-radius: 12px;
    border-color: #ebd8c8;
    box-shadow: 0 8px 18px rgba(123, 71, 41, 0.08);
    padding: 12px 16px;
}

.carousel-admin-card .admin-product-body {
    grid-template-columns: minmax(320px, 0.72fr) minmax(360px, 1fr);
    align-items: start;
    gap: 16px;
}

.carousel-admin-card .admin-product-body > div:first-child {
    max-width: 620px;
}

.carousel-admin-card label {
    margin-top: 8px;
    margin-bottom: 4px;
}

.carousel-admin-card input[type="text"],
.carousel-admin-card input[type="file"],
.carousel-admin-card select {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.carousel-admin-card .field-hint {
    margin-top: 6px;
    margin-bottom: 8px;
}

.carousel-admin-media {
    display: grid;
    gap: 6px;
}

.carousel-admin-thumb {
    width: 100%;
    height: 148px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    object-fit: contain;
    object-position: center;
    padding: 0;
}

.carousel-admin-card .actions {
    margin-top: 6px;
}

.carousel-admin-card .actions button {
    min-width: 128px;
    min-height: 30px;
    padding: 6px 12px;
    font-size: 0.86rem;
}

.carousel-admin-card .actions .btn-trash {
    min-width: 34px;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border-radius: 8px;
    background: #fff1f0 !important;
    border: 1px solid #fecaca !important;
    color: #b42318 !important;
}

.carousel-admin-card .actions .btn-trash svg {
    width: 18px;
    height: 18px;
}

.carousel-admin-card .actions .btn-trash:hover {
    background: #fee2e2 !important;
    color: #8f1a12 !important;
}

.carousel-product-select {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.carousel-product-picker {
    position: relative;
}

.carousel-product-current {
    width: 100%;
    min-height: 44px;
    height: 48px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid #ead3c3;
    border-radius: 10px;
    background: #fffdf9;
    color: #2b1d14;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.carousel-product-current::after {
    content: '\25BE';
    color: #7a5a44;
    font-size: 0.8rem;
    justify-self: center;
}

.carousel-product-picker.is-open .carousel-product-current::after {
    transform: rotate(180deg);
}

.carousel-product-current strong,
.carousel-product-current em,
.carousel-product-current small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carousel-product-current strong {
    font-size: 0.84rem;
    font-weight: 700;
}

.carousel-product-current small {
    margin-top: 1px;
    color: #7a5a44;
    font-size: 0.7rem;
}

.carousel-product-current em {
    margin-top: 1px;
    color: #8a3a16;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
}

.carousel-product-options {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    gap: 6px;
    max-height: 232px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #ead3c3;
    border-radius: 10px;
    background: #fffdf9;
    box-shadow: 0 14px 28px rgba(70, 43, 25, 0.16);
}

.carousel-product-picker.is-open .carousel-product-options {
    display: grid;
}

.carousel-product-search {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 38px;
    border: 1px solid #ead3c3;
    border-radius: 8px;
    background: #fff;
    padding: 7px 10px;
    outline: 0;
}

.carousel-product-search:focus {
    border-color: #22964c;
    box-shadow: 0 0 0 2px rgba(34, 150, 76, 0.14);
}

.carousel-product-option {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: #2b1d14;
    text-align: left;
    cursor: pointer;
}

.carousel-product-option:hover {
    border-color: #efcdb6;
    background: #fff7ef;
}

.carousel-product-option.is-selected {
    border-color: #22964c;
    background: #effaf2;
    box-shadow: 0 0 0 2px rgba(34, 150, 76, 0.12);
}

.carousel-product-option[hidden] {
    display: none;
}

.carousel-product-empty {
    display: none;
    margin: 6px 4px;
    color: #7a5a44;
    font-size: 0.86rem;
    text-align: center;
}

.carousel-product-current img,
.carousel-product-option img,
.carousel-product-empty-thumb {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    border-radius: 7px;
    background: #fff4eb;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5a3a;
    font-size: 0.6rem;
    font-weight: 700;
}

.carousel-product-option strong,
.carousel-product-option em,
.carousel-product-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carousel-product-option strong {
    font-size: 0.84rem;
    font-weight: 700;
}

.carousel-product-option small {
    margin-top: 1px;
    color: #7a5a44;
    font-size: 0.7rem;
}

.carousel-product-option em {
    margin-top: 1px;
    color: #8a3a16;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 980px) {
    .carousel-admin-card .admin-product-body {
        grid-template-columns: 1fr;
    }

    .carousel-admin-thumb {
        height: 150px;
    }
}

.carousel-order-form {
    margin: 0;
}

.carousel-order-form button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.carousel-admin-head-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.carousel-drag-handle {
    border: 1px dashed #e1b892;
    background: #fff7ef;
    color: #8b451f;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    cursor: grab;
}

.carousel-drag-handle:active {
    cursor: grabbing;
}

.carousel-admin-card.is-dragging {
    opacity: 0.45;
    transform: scale(0.99);
}

.clients-hero {
    margin-bottom: 10px;
}

.clients-summary {
    margin-bottom: 0;
}

.clients-search-form {
    margin-top: 0;
    margin-bottom: 12px;
}

.clients-search-form input {
    min-width: min(460px, 100%);
}

.clients-table-wrap {
    margin-bottom: 12px;
}

.clients-admin-table {
    min-width: 1120px;
}

.clients-admin-table th {
    white-space: nowrap;
    font-size: 0.9rem;
}

.clients-admin-table td {
    vertical-align: middle;
}

.clients-admin-table tbody tr:nth-child(2n) {
    background: #fffaf5;
}

.clients-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
}

.clients-inline-form {
    margin: 0;
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
}

.clients-admin-table th:last-child,
.clients-admin-table td:last-child {
    min-width: 138px;
    white-space: nowrap;
}

.clients-action-btn {
    min-width: 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
}

.clients-actions .clients-action-btn {
    width: 30px;
}

.clients-actions .btn,
.clients-actions button {
    width: 30px;
    min-width: 30px;
    flex: 0 0 30px;
}

.clients-actions .clients-inline-form .btn,
.clients-actions .clients-inline-form button {
    width: 30px;
    min-width: 30px;
    flex: 0 0 30px;
}

.clients-action-btn svg {
    width: 14px;
    height: 14px;
}

.clients-cell-center {
    text-align: center;
    font-weight: 700;
}

.clients-cell-money {
    font-weight: 800;
    color: #8b3415;
    white-space: nowrap;
}

/* Motoboys table actions */
.motoboys-actions-cell {
    white-space: nowrap;
    min-width: 132px;
}

.motoboys-action-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.motoboys-action-btn + .motoboys-action-btn,
.motoboys-actions-cell .motoboys-inline-form {
    margin-left: 6px;
}

.motoboys-inline-form {
    margin: 0;
    display: inline-flex;
    width: auto;
    vertical-align: middle;
}

.motoboys-action-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.clients-history-card {
    margin-top: 16px;
}

.clients-history-table {
    min-width: 900px;
}

.clients-modal {
    width: min(760px, calc(100vw - 28px));
    overflow: auto;
}

.clients-modal-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.clients-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clients-field-full {
    grid-column: 1 / -1;
}

.clients-modal-form label {
    margin: 0;
    font-size: 0.88rem;
}

.clients-modal-form input {
    height: 38px;
}

.clients-modal-form .ui-modal-actions {
    grid-column: 1 / -1;
    margin-top: 6px;
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .clients-modal-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Promotions page refinements */
.promo-create-card {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ead8ca;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(54, 32, 19, 0.08);
    padding: 14px;
    background: #fffdfb;
}

.promo-create-type {
    margin-bottom: 12px;
}

.promo-create-type label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.promo-create-type select {
    width: 100%;
    height: 40px;
}

.promo-create-form .promo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
    margin-bottom: 8px;
}

.promo-create-form label {
    font-size: 0.9rem;
    margin-top: 1px;
    margin-bottom: 4px;
    display: inline-block;
}

.promo-create-form input,
.promo-create-form select {
    font-size: 0.95rem;
    height: 38px;
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.promo-create-form .history-date-input {
    padding-right: 34px;
}

.promo-create-form .actions button {
    font-size: 0.95rem;
    padding: 8px 14px;
}

.promo-create-form .actions {
    margin-top: 10px;
}

.promo-money-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid #e2b89b;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.promo-money-prefix {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0 10px;
    background: #f7f2ee;
    color: #6f5b4c;
    border-right: 1px solid #e3d6cc;
    font-weight: 700;
    font-size: 0.88rem;
}

.promo-money-wrap input {
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100%;
    box-shadow: none !important;
    min-height: 38px;
}

@media (max-width: 760px) {
    .promo-create-form .promo-row {
        grid-template-columns: 1fr;
    }
}

.promo-card {
    border: 1px solid #f0dfd3;
    box-shadow: 0 6px 14px rgba(40, 24, 15, 0.08);
}

.promo-card .admin-product-head h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.promo-card-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.9fr);
    gap: 14px;
}

.promo-card-main label,
.promo-card-aside label {
    font-size: 0.84rem;
    margin-top: 6px;
}

.promo-card-main input,
.promo-card-main select,
.promo-card-aside input,
.promo-card-aside select {
    font-size: 0.92rem;
}

.promo-card-aside {
    background: #fffaf5;
    border: 1px solid #f2e2d7;
    border-radius: 10px;
    padding: 10px;
}

.promo-card-aside .field-hint {
    margin: 0 0 6px;
    font-size: 0.84rem;
    color: #6a4d3a;
}

.promo-card .row {
    gap: 10px;
}

.promo-card .actions {
    margin-top: 8px;
}

.promo-card .actions button {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.promo-detail-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e7cdbb;
    background: #fff7ef;
    color: #9a3e15;
    border-radius: 8px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.promo-detail-btn:hover {
    background: #ffefdf;
}

.promo-actions-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-delete-inline-form {
    margin: 0;
}

.promo-delete-btn {
    color: #b42318;
    border-color: #efc8c4;
    background: #fff5f5;
}

.promo-delete-btn:hover {
    background: #ffe7e7;
}

@media (max-width: 980px) {
    .promo-card-body {
        grid-template-columns: 1fr;
    }
}

.product-card.js-open-product-modal {
    cursor: pointer;
    border: 1px solid #d8e8d0 !important;
    outline: none !important;
    box-shadow: 0 8px 20px rgba(31, 86, 49, 0.11);
}

.product-card.js-open-product-modal:focus,
.product-card.js-open-product-modal:focus-visible {
    border-color: #b9d8ac !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(47, 148, 72, 0.14), 0 10px 24px rgba(31, 86, 49, 0.16);
}

.product-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 9, 4, 0.44);
    z-index: 6000;
    display: none;
}

.product-info-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(22, 17, 13, 0.45);
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    z-index: 3200;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.product-info-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-info-modal {
    width: min(720px, 100vw);
    height: 100dvh;
    max-height: 100dvh;
    background: #fff;
    border-radius: 14px 0 0 14px;
    border-left: 1px solid #e7dfd5;
    box-shadow: -12px 0 40px rgba(26, 20, 15, 0.22);
    padding: 18px 20px 18px;
    position: relative;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .24s ease;
}

.product-info-backdrop.is-open .product-info-modal {
    transform: translateX(0);
}

.product-info-modal h3 {
    margin: 0;
}

.product-info-layout,
.product-info-top {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.product-info-image {
    width: 320px;
    height: 320px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #efe2d6;
}

.product-info-content {
    min-width: 0;
    padding-top: 4px;
}

.product-info-top h3,
.product-info-content h3 {
    margin: 0;
    line-height: 1.24;
    font-size: 1.22rem;
    text-align: left;
}

.product-info-modal .product-sheet-description {
    margin: 10px 0 0;
    color: #5f4f43;
    text-align: left;
    line-height: 1.55;
    font-size: 0.98rem;
}

.product-info-modal .product-sheet-extra {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-info-modal .product-sheet-extra-line {
    margin: 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5fbf1;
    color: #2d5b31;
    font-size: 0.86rem;
    font-weight: 700;
}

@media (max-width: 560px) {
    .product-info-modal {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 16px 14px;
    }

    .product-info-layout,
    .product-info-top {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-info-image {
        width: 100%;
        height: min(72vw, 260px);
    }

    .product-info-top h3,
    .product-info-content h3 {
        font-size: 1rem;
    }
}

.product-sheet-backdrop.is-open {
    display: block;
}

.product-sheet {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: min(460px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    border-radius: 0;
    border-left: 1px solid #eadac9;
    padding: 14px 14px 14px;
    transform: translateX(100%);
    opacity: 1;
    transition: transform .25s ease, opacity .2s ease;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.product-sheet-backdrop.is-open .product-sheet {
    transform: translateX(0);
}

.product-sheet-close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 0;
    background: #f1ede8;
    color: #6b3c1d;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-sheet-head {
    padding-right: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-areas:
        "main image"
        "desc desc";
    gap: 8px 12px;
    align-items: start;
}

.product-sheet-main {
    grid-area: main;
    min-width: 0;
}

.product-sheet-image {
    grid-area: image;
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    margin: 0;
    justify-self: end;
}

.product-sheet-head h3 {
    margin: 0;
}

.product-sheet-main p {
    margin: 6px 0 0;
    color: #644c3d;
}

.product-sheet-description {
    grid-area: desc;
    margin: 2px 0 0;
    color: #644c3d;
    line-height: 1.35;
}

.product-sheet-extra {
    grid-column: 1 / -1;
    margin: 6px 0 0;
}

.product-sheet-extra-line {
    margin: 0;
    color: #32523f;
    font-size: 0.9rem;
    line-height: 1.35;
}

.product-sheet-extra-line + .product-sheet-extra-line {
    margin-top: 3px;
}

.product-sheet-price {
    margin-top: 8px !important;
    color: #c44210 !important;
}

.product-sheet-price strong {
    font-size: 1.05rem;
}

.product-sheet-base-price {
    display: block;
    text-decoration: line-through;
    opacity: .62;
    color: #7b685c;
    font-size: .9rem;
}

.product-sheet-form {
    margin-top: auto;
    padding-top: 10px;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
}

.product-sheet-qty-row {
    grid-template-columns: 36px 68px 36px 1fr !important;
    gap: 8px;
    align-items: stretch;
}

.product-sheet-qty-row #sheetAddBtn {
    grid-row: auto;
    grid-column: auto;
    width: 100% !important;
}

body.product-sheet-open {
    overflow: hidden;
}

body.product-sheet-open .menu-back-top-btn,
body.menu-cart-open .menu-back-top-btn {
    display: none !important;
}

@media (max-width: 720px) {
    .product-sheet {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        border-radius: 16px 16px 0 0;
        border-left: 0;
        padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
        transform: translateY(100%);
        opacity: 1;
        display: flex;
        flex-direction: column;
    }

    .product-sheet-backdrop.is-open .product-sheet {
        transform: translateY(0);
    }

    .product-sheet-qty-row {
        grid-template-columns: 36px 68px 36px 1fr !important;
    }

    .product-sheet-form > label:first-of-type {
        margin-top: 0;
    }
}

/* Supermarket visual theme override: only presentation changes */
:root {
    --market-green: #1f8a43;
    --market-green-dark: #166534;
    --market-lime: #95c11f;
    --market-yellow: #ffd54a;
    --market-surface: #ffffff;
    --market-border: #d6e5cf;
    --market-text: #193126;
    --market-muted: #4f6a5a;
    --button-primary-color: #1f8a43;
    --button-primary-text: #fff;
    --btn-standard-radius: 7px;
    --btn-standard-height: auto;
    --btn-standard-padding-y: 7px;
    --btn-standard-padding-x: 11px;
    --btn-standard-font-size: 0.88rem;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--market-text);
}

.topbar {
    background: #1f8a43;
    color: #f5f5f5;
    box-shadow: none;
}

body.is-customer-area .topbar {
    padding: 7px 0;
}

body.is-customer-area .topbar-inner {
    width: 100% !important;
    max-width: 1320px !important;
    padding: 0 22px !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

.brand-logo {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(7, 41, 20, 0.18);
}

body.is-customer-area .brand-logo {
    height: 36px;
    max-width: 166px;
}

body.is-customer-area .topbar-nav {
    gap: 5px;
}

body.is-customer-area .topbar-nav a,
body.is-customer-area .submenu-action-btn,
body.is-customer-area .topbar-install-btn {
    font-size: 0.86rem;
    padding: 6px 9px;
}

@media (max-width: 900px) {
    body.is-customer-area .topbar-inner {
        width: calc(100% - 24px) !important;
    }
}

@media (max-width: 720px) {
    body.is-customer-area:not(.has-customer-nav) .topbar-inner {
        box-sizing: border-box;
        width: 100% !important;
        padding-inline: 8px !important;
        gap: 6px !important;
    }

    body.is-customer-area:not(.has-customer-nav) .brand-logo {
        height: 24px;
        max-width: 88px;
    }

    body.is-customer-area:not(.has-customer-nav) .topbar-auth-actions {
        margin-inline-start: auto;
        gap: 4px;
    }

    body.is-customer-area:not(.has-customer-nav) .topbar-auth-actions > :is(a, button) {
        white-space: nowrap;
        font-size: 0.78rem;
        padding-inline: 5px;
    }

    body.has-customer-nav .topbar-inner {
        position: relative;
        width: 100% !important;
        padding-inline: 8px !important;
        gap: 6px !important;
    }

    body.has-customer-nav .brand-logo {
        height: 28px;
        max-width: 76px;
    }

    body.has-customer-nav .topbar-nav {
        overflow: visible;
        gap: 4px;
    }

    body.has-customer-nav .topbar-nav > a,
    body.has-customer-nav .topbar-submenu-trigger {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding-inline: 4px;
        font-size: 0.8rem;
    }

    body.has-customer-nav .topbar-promo-alert {
        position: static;
    }

    body.has-customer-nav .topbar-promo-panel {
        right: 8px;
    }

}

@media (max-width: 375px) {
    body.has-customer-nav .topbar-inner {
        flex-wrap: wrap !important;
    }

    body.has-customer-nav .topbar-nav {
        flex-basis: 100%;
        justify-content: flex-start;
        padding-bottom: 4px;
    }
}

.topbar-nav a.is-active {
    background: #f6ffe8;
    color: #1d6a37;
}

.topbar-nav a.topbar-cta,
.topbar-install-btn {
    background: rgba(255, 255, 255, 0.18);
}

.hero {
    background: linear-gradient(130deg, #f7ffef 0%, #edfae7 55%, #e4f4db 100%);
    border: 1px solid var(--market-border);
}

.hero-kicker {
    color: #2f7a3e;
}

.hero-text {
    color: #3f5f4a;
}

.store-carousel {
    border: 0 !important;
    box-shadow: none !important;
}

.menu-category-strip,
.menu-discovery-bar {
    background: #ffffff;
}

.menu-category-chip.is-active {
    border-bottom-color: var(--market-green);
}

.menu-search-field input {
    border: 1px solid #cfe3c6;
    background: #fdfefc;
    color: #244535;
}

.menu-search-field input:focus {
    border-color: #2f9448;
    box-shadow: 0 0 0 3px rgba(47, 148, 72, 0.18);
}

.menu-category-section {
    border: 1px solid #d7e8cf;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf5 100%);
    box-shadow: 0 10px 22px rgba(42, 98, 57, 0.09);
}

.menu-category-header {
    border-bottom-color: #deecd8;
}

.product-card {
    border-color: #d8e8d0;
    box-shadow: 0 8px 20px rgba(31, 86, 49, 0.11);
}

.product-card:hover {
    border-color: #b9d8ac;
    box-shadow: 0 14px 30px rgba(29, 91, 49, 0.18);
}

.product-card.is-out-of-stock {
    opacity: 0.72;
}

.product-media {
    background: #f6fff2;
    border-bottom-color: #deecd8;
}

.product-body h3 {
    color: #1d3b2c;
}

.product-body p,
.menu-empty-results {
    color: var(--market-muted);
}

.price,
.product-sheet-price {
    color: #0b4aa2 !important;
    font-family: var(--vitrine-font);
    font-weight: 700;
}

.price strong,
.product-sheet-price strong {
    font-weight: 700;
}

.btn,
.product-cta-btn {
    background: linear-gradient(135deg, #1f8a43 0%, #2ca850 100%);
    border: 1px solid #1d7e3d;
    color: #f8ffef;
    box-shadow: 0 6px 16px rgba(25, 98, 49, 0.2);
}

.btn:hover,
.product-cta-btn:hover {
    filter: brightness(1.03);
}

.btn-danger,
.btn-trash,
.menu-cart-remove-btn {
    background: linear-gradient(135deg, #cf3f26 0%, #e4582f 100%);
    border-color: #ba331c;
    color: #fff7f3;
}

.menu-back-top-btn {
    background: linear-gradient(135deg, #218d44 0%, #37ad53 100%);
    box-shadow: 0 12px 22px rgba(26, 102, 50, 0.29);
}

.menu-cart-drawer,
.product-sheet,
.auth-card,
.checkout-cart-card,
.order-card,
.admin-product-card,
.products-showcase,
.card {
    background: var(--market-surface);
    border-color: var(--market-border);
}

/* Product showcase quantity controls */
.menu-category-grid .product-form .qty-row {
    grid-template-columns: 40px 74px 40px 44px;
    gap: 8px;
    align-items: center;
}

.menu-category-grid .product-form .qty-row .qty-step-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #9cc94b;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.menu-category-grid .product-form .qty-row input {
    width: 74px;
    height: 34px;
    min-height: 34px;
    border: 0 !important;
    border-radius: 999px;
    background: #e8e8e8;
    color: #5b5b5b;
    font-weight: 800;
    text-align: center;
    padding: 0;
    box-shadow: none !important;
}

.menu-category-grid .product-form .qty-row .js-add-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 999px;
    border: 1.5px solid #9cc94b;
    background: #ffffff;
    color: transparent;
    padding: 0;
    position: relative;
    font-size: 0;
    box-shadow: none;
}

.menu-category-grid .product-form .qty-row .js-add-btn::before {
    content: "\1F6D2";
    color: #9cc94b;
    font-size: 1.2rem;
    line-height: 1;
}

/* Enforce same visual size for product thumbnails in storefront (desktop only) */
@media (min-width: 721px) {
    .menu-category-grid .product-media {
        width: 180px;
        height: 180px;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
        border-radius: 12px;
        background: #f7fbf5;
    }

    .menu-category-grid .product-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        background: #f7fbf5;
        border-radius: 12px;
        transform: scale(1);
        transform-origin: center;
    }

    .menu-category-grid .product-card--has-promo .product-media,
    .menu-category-grid .product-card--promo .product-media {
        background: #fff !important;
        height: 180px;
        padding-bottom: 0;
        overflow: visible;
    }

    .menu-category-grid .product-card--has-promo .product-image,
    .menu-category-grid .product-card--promo .product-image {
        width: 86%;
        height: 86%;
    }
}

/* Modernizacao visual exclusiva para cards da categoria PROMOCAO */
.product-card--has-promo,
.product-card--promo {
    position: relative;
    overflow: visible !important;
}

.product-card--promo {
    border: 1px solid #e8ddd2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(86, 49, 28, 0.08);
}

.product-card--has-promo .product-media,
.product-card--promo .product-media {
    background: #fff !important;
    overflow: visible !important;
    height: 180px;
    padding-bottom: 0;
}

.product-card--has-promo .product-image,
.product-card--promo .product-image {
    width: 86%;
    height: 86%;
    object-fit: contain;
    object-position: center;
}

.product-card--promo:hover {
    transform: translateY(-2px);
    border-color: #dcc8b5;
    box-shadow: 0 10px 22px rgba(122, 67, 38, 0.12);
}

.product-card--promo .product-body h3 {
    color: #1e3445;
    padding-right: 0;
}

.product-card--promo .product-body p {
    color: #4b6071;
}

.product-card--promo .product-media {
    background: #fff;
}

.product-card--promo .product-image {
    transform: scale(1.02);
}

.product-card--promo .price strong {
    color: #0b4a9c;
}

.product-card--promo .product-discount {
    background: #fff2e8;
    color: #e94b16;
    border: 0;
    border-radius: 999px;
    padding: 0;
    font-weight: 900;
}

/* Promo vitrine: quando houver 1 ou 2 itens, usa card horizontal */
.menu-category-grid.menu-category-grid--promo-side {
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 1024px) {
    .menu-category-grid.menu-category-grid--promo-side.menu-category-grid--promo-side-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .menu-category-grid.menu-category-grid--promo-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }
}

.menu-category-grid--promo-side .product-card--promo-side {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
        "media body"
        "media footer"
        "media login";
    align-items: center;
    gap: 10px 16px;
    padding: 14px;
    border-radius: 20px !important;
    border: 1px solid #e6d6c7 !important;
    background: linear-gradient(180deg, #fffefc 0%, #fff7f0 100%) !important;
    box-shadow: 0 14px 30px rgba(66, 38, 22, 0.12) !important;
}

.menu-category-grid--promo-side .product-card--promo-side .product-media {
    grid-area: media;
    width: 220px;
    height: 220px;
    margin: 0;
    border-radius: 18px !important;
    border: 1px solid #e7ddcf !important;
    background: radial-gradient(circle at 30% 20%, #fffdf9 0%, #f5ecdf 100%) !important;
}

.menu-category-grid--promo-side .product-card--promo-side .product-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: none;
    border-radius: 16px !important;
    padding: 12px !important;
}

.menu-category-grid--promo-side .product-card--promo-side .product-body {
    grid-area: body;
    padding: 0;
}

.menu-category-grid--promo-side .product-card--promo-side .product-body h3 {
    min-height: 0;
    margin-bottom: 6px;
    font-size: 1.14rem !important;
    line-height: 1.25;
    color: #1e3445 !important;
}

.menu-category-grid--promo-side .product-card--promo-side .product-body p {
    min-height: 0;
    margin: 0;
    line-height: 1.45 !important;
    color: #42596b !important;
    -webkit-line-clamp: 3;
}

.menu-category-grid--promo-side .product-card--promo-side .product-footer {
    grid-area: footer;
    margin-top: 0;
    padding: 0;
    justify-content: flex-start;
    gap: 12px;
    align-items: baseline;
}

.menu-category-grid--promo-side .product-card--promo-side .price {
    margin: 0;
    font-size: 1.03rem;
}

.menu-category-grid--promo-side .product-card--promo-side .price strong {
    font-size: 2rem !important;
    letter-spacing: -0.01em;
    color: #0b4a9c !important;
}

.menu-category-grid--promo-side .product-card--promo-side .product-discount {
    background: #ecfdf3;
    color: #0b7a55;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.88rem !important;
    font-weight: 800;
    border: 1px solid #c7f1de;
}

.menu-category-grid--promo-side .product-card--promo-side .product-login-inline {
    grid-area: login;
    padding: 0;
    text-align: left;
}

@media (max-width: 720px) {
    .menu-category-grid--promo-side .product-card--promo-side {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 11px;
    }

    .menu-category-grid--promo-side .product-card--promo-side .product-media {
        width: 118px;
        height: 118px;
    }

    .menu-category-grid--promo-side .product-card--promo-side .product-image {
        padding: 6px;
    }

    .menu-category-grid--promo-side .product-card--promo-side .price strong {
        font-size: 1.45rem;
    }

    .menu-category-grid--promo-side .product-card--promo-side .product-discount {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Customer profile polished layout */
.customer-profile-page {
    width: min(900px, calc(100% - 28px));
    margin: 0 auto 32px;
}

.customer-profile-page h2 {
    margin: 0 0 16px;
    color: #173f2b;
    font-size: 1.55rem;
    font-weight: 800;
}

.customer-profile-page > .alert {
    margin-bottom: 12px;
}

.customer-profile-card.card {
    border: 1px solid #d6e5cf;
    border-radius: 14px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 86, 49, 0.1);
}

.customer-profile-form,
.customer-profile-section {
    display: grid;
    gap: 10px;
}

.customer-profile-section {
    padding-bottom: 14px;
    border-bottom: 1px solid #dbead4;
}

.customer-profile-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.customer-profile-section h3 {
    margin: 0 0 2px;
    color: #173f2b;
    font-size: 1.05rem;
    font-weight: 800;
}

.customer-profile-form label {
    margin: 0;
    color: #123126;
    font-weight: 800;
}

.customer-profile-form input[type="text"],
.customer-profile-form input[type="password"] {
    width: 100%;
    margin: 0;
    border-color: #d8c5b8;
    border-radius: 8px;
    background: #fffdfa;
}

.customer-profile-form .row {
    gap: 12px;
}

.customer-profile-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.customer-profile-actions {
    margin: 4px 0 0;
}

@media (max-width: 720px) {
    .customer-profile-page {
        width: calc(100% - 20px);
    }

    .customer-profile-card.card {
        padding: 14px;
    }

    .customer-profile-form .customer-profile-address-row {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 8px;
    }
}

@media (max-width: 900px), (pointer: coarse) {
    .menu-discovery-bar {
        position: sticky !important;
        top: var(--menu-sticky-top, 40px) !important;
        background: #f3f8ef !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 4px 0 0 !important;
        z-index: 80 !important;
        overflow: hidden !important;
    }

    .menu-search-section {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu-search-field {
        display: block !important;
        max-width: 100% !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .menu-search-field input {
        width: 100% !important;
        height: 40px !important;
        padding: 0 16px 0 46px !important;
        border-radius: 14px !important;
    }

    .menu-search-submit {
        display: none !important;
    }

    .menu-category-strip {
        background: #f3f8ef !important;
        border: 0 !important;
        box-shadow: none !important;
        margin: 2px 0 0 !important;
    }

    .menu-category-strip-track {
        padding: 0 !important;
    }

    .menu-category-strip-track {
        background: #f3f8ef !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .menu-category-chip {
        background: transparent !important;
    }

    .menu-category-chip:hover,
    .menu-category-chip.is-active {
        background: transparent !important;
    }

    .menu-category-grid .product-footer {
        align-items: flex-end;
        gap: 8px;
    }

    .menu-category-grid .product-promo-strip {
        min-height: 36px;
        font-size: 0.9rem;
        gap: 2px 6px;
        line-height: 1.12;
        padding: 4px 6px;
    }

    .menu-category-grid .product-promo-strip small {
        font-size: 0.78rem;
        font-weight: 950;
        white-space: nowrap;
    }

    .menu-category-grid .product-promo-bubble {
        right: 22px;
        bottom: auto;
        top: 82px;
        width: 58px;
        height: 58px;
        border-width: 2px;
    }

    .menu-category-grid .product-promo-bubble span {
        max-width: 48px;
        font-size: 0.5rem;
    }

    .menu-category-grid .product-promo-bubble strong {
        font-size: 0.86rem;
    }

    .menu-category-grid .product-discount {
        align-items: center;
    }

    .menu-category-grid .product-discount-label {
        font-size: 0.72rem;
        white-space: nowrap;
    }
}

/* Mobile storefront: keep category product cards in the desktop carousel format. */
@media (max-width: 720px) {
    .menu-product-carousel {
        overflow: visible;
    }

    .menu-category-grid.js-product-carousel-track {
        display: flex !important;
        gap: 14px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 0 !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .menu-category-grid.js-product-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .menu-category-grid.js-product-carousel-track .product-card {
        flex: 0 0 calc((100% - 14px) / 2) !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        padding: 0 !important;
        border-radius: 16px !important;
        overflow: hidden;
    }

    .menu-category-grid .product-media {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 140px !important;
        margin: 0 auto !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #f7fbf5 !important;
    }

    .menu-category-grid .product-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        background: #f7fbf5 !important;
        border-radius: 12px !important;
    }

    .menu-category-grid .product-body {
        padding: 10px 10px 0 !important;
        margin-right: 0 !important;
        min-height: 0 !important;
    }

    .menu-category-grid .product-body h3 {
        margin: 0 0 5px !important;
        padding-right: 0 !important;
        font-size: 0.9rem !important;
        line-height: 1.22 !important;
        min-height: 3.66em !important;
        overflow-wrap: anywhere !important;
        -webkit-line-clamp: 3 !important;
    }

    .menu-category-grid .product-grams-inline {
        margin-top: 4px !important;
        font-size: 0.82rem !important;
        white-space: normal !important;
        -webkit-line-clamp: 2 !important;
    }

    .menu-category-grid .product-body p {
        min-height: 46px !important;
        font-size: 0.88rem !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
    }

    .menu-category-grid .product-footer {
        margin: 6px 0 0 !important;
        padding: 0 10px 10px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 4px !important;
    }

    .menu-category-grid .price {
        font-size: 0.96rem !important;
        line-height: 1.15 !important;
    }

    .menu-category-grid .product-info-btn {
        top: 8px !important;
        right: 8px !important;
        width: 26px !important;
        height: 26px !important;
    }

    .menu-category-grid .product-login-inline {
        margin-right: 0 !important;
        padding: 6px 10px 10px !important;
        text-align: center !important;
    }
}
/* Admin profile page */
body .admin-profile-page.products-showcase {
    width: min(760px, calc(100% - 32px)) !important;
    max-width: 760px !important;
    margin: 24px auto 28px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: translateX(0) !important;
}

main.history-menu-container:has(.admin-profile-page) {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body .admin-profile-page .products-title {
    margin: 0 0 12px !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #102a1f !important;
}

body .admin-profile-card.users-admin-card {
    padding: 20px !important;
    border: 1px solid #cfe4c6 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(31, 86, 49, 0.08) !important;
}

body .admin-profile-card .users-admin-card-title {
    margin: 0 0 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e2eddc !important;
    font-size: 1.12rem !important;
    font-weight: 900 !important;
}

body .admin-profile-form {
    display: block !important;
}

body .admin-profile-section {
    margin: 0 !important;
    padding: 0 0 18px !important;
}

body .admin-profile-section + .admin-profile-section {
    padding-top: 18px !important;
    border-top: 1px solid #e2eddc !important;
}

body .admin-profile-section h4 {
    margin: 0 0 12px !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    color: #1f8a43 !important;
    text-transform: uppercase !important;
}

body .admin-profile-grid,
body .admin-profile-grid--access,
body .admin-profile-grid--delete {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    max-width: none !important;
}

body .admin-profile-grid--access > div:first-child {
    grid-column: 1 / -1 !important;
}

body .admin-profile-form label {
    display: block !important;
    margin: 0 0 6px !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    color: #102a1f !important;
}

body .admin-profile-form input[type="text"],
body .admin-profile-form input[type="password"] {
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    border: 1px solid #d9c7b8 !important;
    border-radius: 8px !important;
    background: #fffdfa !important;
    padding: 0 12px !important;
    font-size: 0.98rem !important;
}

body .admin-profile-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-top: 2px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e2eddc !important;
}

body .admin-profile-status {
    margin: 0 !important;
    color: #52685b !important;
    font-size: 0.92rem !important;
}

body .admin-profile-actions button[type="submit"] {
    width: auto !important;
    min-width: 150px !important;
    height: 40px !important;
    margin: 0 !important;
}

@media (max-width: 720px) {
    body .admin-profile-page.products-showcase {
        width: calc(100% - 20px) !important;
        margin-top: 10px !important;
    }

    body .admin-profile-grid,
    body .admin-profile-grid--access,
    body .admin-profile-grid--delete {
        grid-template-columns: 1fr !important;
    }

    body .admin-profile-actions {
        align-items: stretch !important;
        flex-direction: column !important;
    }

body .admin-profile-actions button[type="submit"] {
        width: 100% !important;
    }
}

.ui-page-loader {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.12);
    z-index: 4000;
}

.ui-page-loader.is-open {
    display: flex;
}

.ui-page-loader-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.14);
    color: #344054;
    font-size: .875rem;
    font-weight: 600;
}

.ui-page-loader-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #d0d5dd;
    border-top-color: #111827;
    border-radius: 50%;
    animation: ui-loading-spin .8s linear infinite;
}

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



.menu-search-clear {
    position: absolute;
    right: 132px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7b8794;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    z-index: 2;
}

.menu-search-clear:hover,
.menu-search-clear:focus,
.menu-search-clear:active {
    background: transparent;
    color: #334155;
    box-shadow: none;
    outline: none;
}

.menu-search-field input[type="search"] {
    padding-right: 150px;
}

.menu-search-field input[type="search"]::-webkit-search-cancel-button,
.menu-search-field input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}


/* Perimetro (Kaza flow) */
.perimeter-header {
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.perimeter-header .products-title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    line-height: 1.2;
}

.perimeter-helper-chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.perimeter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #edd8c8;
    background: #fff7ef;
    color: #7a4a2f;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.perimeter-top-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.perimeter-card {
    border-color: #edd8ca;
    background: #fff;
    border: 1px solid #edd8ca;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 22px rgba(94, 53, 31, 0.07);
}

.perimeter-card-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
}

.perimeter-card label {
    margin-top: 10px;
}

.perimeter-card input[type="text"],
.perimeter-card input[type="number"],
.perimeter-card textarea {
    min-height: 36px;
}

.perimeter-card textarea {
    resize: vertical;
    line-height: 1.35;
}

.perimeter-card .perimeter-readonly-field[readonly] {
    background: #e5e7eb;
    border-color: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}

.perimeter-fee-section-title {
    margin: 0;
    font-size: .95rem;
    color: #7d3a16;
}

.perimeter-attendance-radius {
    width: min(100%, 280px);
    margin: 0;
}

.perimeter-attendance-radius .field-hint {
    margin-bottom: 0;
}

.perimeter-config-top {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0 14px;
}

.perimeter-config-checks {
    display: grid;
    gap: 8px;
}

.perimeter-fee-mode-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-weight: 700;
}

.perimeter-fee-mode-label select {
    margin: 0;
}

.perimeter-fee-section {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #f0d5c3;
    border-radius: 12px;
    background: #fffaf6;
}

.perimeter-fee-section.is-selected {
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, .12);
}

.perimeter-fee-choice {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.perimeter-fee-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.perimeter-fee-section-heading p {
    margin: 0;
    color: #95664d;
    font-size: .78rem;
    text-align: right;
}

.perimeter-fee-section .perimeter-paid-settings-grid {
    gap: 16px;
}

.perimeter-map-card {
    margin: 0 0 18px;
    padding: 16px;
}

.perimeter-map-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.perimeter-map-heading .perimeter-card-title {
    margin-bottom: 5px;
}

.perimeter-map-heading p {
    margin: 0;
    color: #74645b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.perimeter-map-status {
    flex: 0 1 360px;
    padding: 7px 10px;
    border-radius: 7px;
    background: #fff7ef;
    color: #7a4a2f;
    font-size: 0.78rem;
    line-height: 1.35;
}

.perimeter-map-status.is-error {
    background: #fff0f0;
    color: #b52d36;
}

.perimeter-delivery-map {
    height: 360px;
    overflow: hidden;
    border: 1px solid #ead5c6;
    border-radius: 10px;
    background: #f4eee9;
}

.perimeter-map-wrap {
    position: relative;
}

.perimeter-map-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 500;
    display: grid;
    place-items: center;
    width: 34px;
    min-height: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
    background: #fff;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.perimeter-map-fullscreen:hover,
.perimeter-map-fullscreen:focus-visible {
    background: #f4f4f4;
    color: #111;
}

.perimeter-map-fullscreen svg {
    width: 18px;
    height: 18px;
}

.perimeter-delivery-map:fullscreen {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.perimeter-blocked-street-list {
    margin: 4px 0 8px 18px;
    padding: 0;
}

.perimeter-blocked-street-list li {
    margin-bottom: 6px;
    padding-left: 2px;
}

.perimeter-blocked-street-list input {
    width: min(100%, 260px);
    min-height: 34px;
}

.perimeter-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(150px, 1.15fr);
    gap: 12px;
    align-items: start;
}

.perimeter-origin-grid {
    display: grid;
    grid-template-columns: minmax(110px, .7fr) minmax(200px, 1.7fr) minmax(90px, .55fr);
    gap: 12px;
    align-items: start;
}

.perimeter-origin-card {
    align-self: start;
}

.perimeter-origin-whatsapp {
    grid-column: 1 / -1;
}

.perimeter-origin-whatsapp input {
    width: min(100%, 320px);
}

.perimeter-origin-ranges {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edd8ca;
}

.perimeter-origin-actions {
    margin-top: 16px;
}

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

.perimeter-radius-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.perimeter-radius-controls input {
    min-width: 0;
}

.perimeter-radius-streets {
    width: auto;
}

.perimeter-radius-streets-count {
    font-size: .76rem;
}

.perimeter-radius-streets:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.perimeter-check {
    margin: 0 0 12px;
}

.perimeter-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.perimeter-form-col-wide {
    min-width: 0;
}

.perimeter-actions {
    margin-top: 14px;
}

.perimeter-ranges-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 2px 12px;
    padding-top: 2px;
}

.perimeter-ranges-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.perimeter-ranges-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.perimeter-ranges-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.perimeter-ranges-list-head,
.perimeter-range-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 120px 120px 80px 210px 170px;
    gap: 10px;
    align-items: center;
}

.perimeter-ranges-list-head {
    white-space: nowrap;
}

.perimeter-ranges-list-head {
    padding: 0 12px 4px;
    color: #7a4a2f;
    font-size: 0.78rem;
    font-weight: 800;
}

.perimeter-range-row {
    padding: 10px 12px;
    border: 1px solid #edd9cb;
    border-radius: 8px;
    background: #fff;
}

.perimeter-range-row input[type="text"] {
    width: 100%;
    min-height: 34px;
}

.perimeter-row-label {
    display: none;
}

.perimeter-row-check {
    margin: 0;
}

.perimeter-row-streets {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    flex-wrap: wrap;
}

.perimeter-streets-count {
    color: #6d5545;
    font-size: 0.88rem;
    white-space: nowrap;
}

.perimeter-streets-open {
    white-space: nowrap;
    min-width: 56px;
    min-height: 26px;
    height: 26px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
}

.perimeter-streets-modal {
    position: fixed;
    inset: 0;
    z-index: 6200;
    display: none;
    align-items: center;
    justify-content: center;
    padding-inline: 18px;
    background: rgba(24, 19, 16, 0.48);
}

.perimeter-streets-modal.is-open {
    display: flex;
}

.perimeter-streets-dialog {
    width: min(520px, 100%);
    height: 100%;
    overflow: auto;
    padding: 0 20px 18px;
    border: 1px solid #e7d5ca;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(35, 23, 15, .24);
}

.perimeter-streets-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -20px;
    border-bottom: 1px solid #f0e5de;
    padding: 16px 20px 13px;
    background: #fff;
}

.perimeter-streets-head h3 {
    margin: 0;
    color: #2b211c;
    font-size: 1.08rem;
}

.perimeter-streets-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    flex: 0 0 auto;
}

.perimeter-streets-dialog > .field-hint:first-of-type {
    position: relative;
    margin: 14px 0 16px;
    border-radius: 8px;
    padding: 10px 12px 10px 34px;
    background: #fff7ed;
    color: #7c4a2d;
    line-height: 1.4;
}

.perimeter-streets-dialog > .field-hint:first-of-type::before {
    content: "i";
    position: absolute;
    top: 10px;
    left: 11px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    background: #ea7818;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}

.perimeter-streets-fields {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.perimeter-street-cep-row {
    display: grid;
    gap: 5px;
}

.perimeter-street-cep-row label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #392b24;
    font-size: .82rem;
    font-weight: 700;
}

.perimeter-street-cep-row input {
    width: 100%;
    min-height: 40px;
}

.perimeter-street-cep-row .field-hint {
    min-height: 0;
    margin: 0;
}

.perimeter-street-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    margin-top: 14px;
}

.perimeter-street-add-row label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #392b24;
    font-size: .82rem;
    font-weight: 700;
}

.perimeter-street-add-row input {
    width: 100%;
    min-height: 40px;
}

.perimeter-street-add-row button {
    min-height: 34px;
    height: 34px;
    padding: 0 11px;
    border-radius: 7px;
    font-size: .78rem;
    line-height: 1;
    white-space: nowrap;
}

.perimeter-modal-actions {
    margin: 16px -20px -18px;
    border-top: 1px solid #f0e5de;
    padding: 13px 20px;
    background: #fffaf7;
}

.perimeter-modal-actions button {
    min-width: 96px;
}

@media (max-width: 520px) {
    .perimeter-streets-dialog {
        padding-right: 14px;
        padding-left: 14px;
    }

    .perimeter-streets-head {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .perimeter-street-add-row {
        grid-template-columns: 1fr;
    }

    .perimeter-street-add-row button {
        width: 100%;
    }

    .perimeter-modal-actions {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }
}

.perimeter-street-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid #ead1c0;
    border-radius: 7px;
    background: #fffaf6;
}

.perimeter-street-item span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #2d2119;
    font-weight: 700;
}

.perimeter-street-remove {
    width: 34px;
    height: 34px;
}

.perimeter-street-remove[hidden] {
    display: none !important;
}

.perimeter-street-add {
    min-height: 34px;
    padding: 7px 12px;
}

.perimeter-streets-error {
    color: #b42318;
    font-weight: 700;
}

.perimeter-modal-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.perimeter-row-actions {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perimeter-range-card {
    border-color: #edd9cb;
    border: 1px solid #edd9cb;
    border-radius: 8px;
    padding: 12px;
    box-shadow: none;
    display: grid;
    grid-template-columns: 180px minmax(0, 640px);
    gap: 18px;
    align-items: start;
}

.perimeter-range-card .admin-product-head {
    display: grid;
    gap: 8px;
    align-content: start;
}

.perimeter-range-card .admin-product-head h3 {
    margin: 0;
    font-size: 1rem;
}

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

.perimeter-range-card .admin-product-body > div {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr);
    gap: 10px 16px;
    align-items: start;
}

.perimeter-range-card .admin-product-body > div > label,
.perimeter-range-card .admin-product-body > div > input[name="nome"] {
    grid-column: 1;
}

.perimeter-range-card .perimeter-edit-grid {
    grid-column: 1;
}

.perimeter-range-card .inline-check {
    grid-column: 1;
}

.perimeter-range-card .admin-product-body > div > label:nth-of-type(2),
.perimeter-range-card .perimeter-blocked-street-list,
.perimeter-range-card .perimeter-blocked-street-list + .field-hint {
    grid-column: 2;
}

.perimeter-range-card .perimeter-actions {
    grid-column: 2;
    margin-top: 0;
    align-self: start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perimeter-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-modal-actions {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0e2d7;
    padding-bottom: 0;
}

.inline-check input {
    width: auto;
    margin: 0;
}

.price {
    color: #c0392b;
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0;
}

.pdv-preview-detail,
.pdv-cart-item-extra {
    display: block;
    margin-top: 4px;
    color: #8a4b1f;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.pdv-cart-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-right: 8px;
    overflow: visible;
}

.pdv-cart-headline .pdv-cart-title {
    margin: 0;
}

.pdv-preview-media {
    position: relative;
}

.pdv-preview-pizza-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid #efcdb8;
    border-radius: 999px;
    background: #fff7ef;
    color: #a23b17;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(49, 27, 10, 0.12);
}

.pdv-pizza-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5400;
    display: none;
    align-items: center;
    justify-content: center;
    padding-inline: 14px;
    background: rgba(28, 18, 12, 0.36);
}

.pdv-pizza-modal-backdrop.is-open {
    display: flex;
}

.pdv-pizza-modal {
    width: min(460px, calc(100vw - 28px));
    height: 100%;
    overflow: auto;
    background: #fff;
    border: 1px solid #f0d3bd;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(49, 27, 10, 0.22);
    padding: 12px;
}

.pdv-pizza-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pdv-pizza-modal-head h3 {
    margin: 0;
    color: #2c1d14;
    font-size: 1rem;
}

.pdv-pizza-modal-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    background: #f5ebe3;
    color: #7b3f1f;
    font-size: 1.15rem;
}

.pdv-pizza-modal .pdv-cart-pizza-options {
    margin-top: 0;
    border-top: 1px solid #f0d3bd;
    border-radius: 8px;
}

.pdv-cart-pizza-options {
    margin-top: -5px;
    padding: 10px;
    border: 1px solid #f0d3bd;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fffaf6;
}

.pdv-cart-pizza-type {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pdv-cart-pizza-type strong,
.pdv-cart-pizza-border {
    color: #7b3f1f;
    font-size: 0.8rem;
    font-weight: 800;
}

.pdv-cart-pizza-type label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #2c1d14;
    font-weight: 600;
}

.pdv-cart-pizza-border {
    display: block;
}

.pdv-cart-pizza-border select {
    width: 100%;
    min-height: 36px;
    margin-top: 5px;
    background: #fff;
}

.pdv-cart-pizza-half {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.pdv-cart-pizza-half p {
    margin: 0;
    color: #7b3f1f;
    font-size: 0.8rem;
    font-weight: 800;
}

.pdv-half-flavor-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 7px;
    background: #fff;
    border: 1px solid #f0d3bd;
    color: #2c1d14;
    text-align: left;
    border-radius: 8px;
    font-weight: 800;
}

.pdv-half-flavor-option.is-selected {
    border-color: #f47f37;
    background: #fff4ea;
    box-shadow: inset 0 0 0 1px #f47f37;
}

.pdv-half-flavor-thumb {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f0d3bd;
    border-radius: 8px;
    color: #9a6a4b;
    font-size: 0.62rem;
    line-height: 1.1;
}

.pdv-half-flavor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdv-details-table small {
    color: #8a4b1f;
    font-weight: 700;
}

.product-form .qty-row input,
.product-form .qty-row button {
    margin-top: 0;
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
}

button,
.btn {
    background: var(--button-primary-color);
    border: none;
    color: var(--button-primary-text);
    border-radius: var(--btn-standard-radius);
    min-height: var(--btn-standard-height);
    padding: var(--btn-standard-padding-y) var(--btn-standard-padding-x);
    font-size: var(--btn-standard-font-size);
    line-height: 1.1;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

button:hover,
.btn:hover {
    filter: brightness(0.95);
}

.btn-compact {
    padding: 4px 8px;
    font-size: 0.78rem;
    line-height: 1;
    min-height: 24px;
    border-radius: 6px;
}

.btn-danger {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: #8f1c13;
    border-color: #8f1c13;
    color: #fff;
}

.btn-trash {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    color: #b42318 !important;
}

.btn-trash svg {
    width: 16px;
    height: 16px;
    display: block;
}

.btn-trash:hover {
    filter: none !important;
    color: #8f1a12 !important;
}

.order-delete-inline .btn,
.order-delete-inline .btn-danger,
.order-delete-inline .btn-icon,
.btn-trash,
.btn-icon,
.btn-icon-xs {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #b42318 !important;
}

.order-delete-inline .btn svg,
.btn-trash svg,
.btn-icon svg,
.btn-icon-xs svg,
.btn-icon-print svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

.btn-icon-print {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #b45309 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg,
.btn-icon-xs svg,
.promo-detail-btn svg,
.btn-trash svg {
    width: 14px;
    height: 14px;
    display: block;
}

.btn-icon:hover,
.btn-icon-xs:hover,
.promo-detail-btn:hover,
.btn-trash:hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
    line-height: 1.35;
}

.text-wrap {
    max-width: 240px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

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

.admin-orders-page .actions .btn {
    padding: 7px 10px;
    font-size: 0.9rem;
    border-radius: 7px;
}

.orders-table-wrap {
    background: #fff;
    border: 1px solid #efdfd3;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.admin-orders-table {
    min-width: 1380px;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-orders-table th {
    white-space: nowrap;
    font-size: 0.92rem;
    background: #fff7ef;
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-orders-table td {
    vertical-align: top;
}

.admin-orders-table .text-wrap {
    max-width: 220px;
}

.order-actions {
    display: grid;
    gap: 6px;
    min-width: 128px;
}

.order-actions select,
.order-actions .btn,
.order-actions button {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 8px 10px;
}

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

.orders-cards-view {
    grid-template-columns: 1fr;
    gap: 14px;
}

.orders-cards-view .order-card {
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #eddccd;
    background: #fff;
}

.orders-cards-view .order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px 14px;
}

.orders-cards-view .order-actions-inline {
    display: grid;
    grid-template-columns: minmax(180px, 240px) repeat(3, minmax(120px, 1fr));
    gap: 8px;
}

.orders-cards-view .order-actions-inline select {
    grid-column: auto;
}

.admin-orders-page .orders-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.admin-orders-page .orders-group.is-priority .orders-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
}

.admin-orders-page .admin-status-cards {
    margin-top: 10px;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-orders-page .order-card-admin {
    background: #fff;
    border: 1px solid #eddccd;
    border-radius: 14px;
    padding: 9px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.admin-orders-page .order-card-admin .order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 4px 8px;
    font-size: 0.95rem;
}

.admin-orders-page .order-card-admin .order-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.admin-orders-page .order-card-admin .order-actions-inline select {
    order: 99;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 0.86rem;
}

.admin-orders-page .order-card-admin .order-actions-inline button,
.admin-orders-page .order-card-admin .order-actions-inline .btn {
    padding: 6px 6px;
    font-size: 0.76rem;
    line-height: 1;
    min-width: 0;
    flex: 1 1 calc(33.333% - 6px);
    max-width: calc(33.333% - 6px);
    height: 32px;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.orders-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-left: 2px;
}

.orders-kpi {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e9d5c8;
    background: #fff8f1;
    font-size: 1.05rem;
    font-weight: 700;
}

.orders-kpi.has-new {
    background: #fff1f1;
    border-color: #fecaca;
    color: #9f1239;
}

.orders-kpi-sticky {
    position: sticky;
    top: 8px;
    z-index: 900;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e9d5c8;
    background: #fff8f1;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(38, 25, 17, 0.12);
}

.orders-kpi-sticky.has-new {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.summary-chip {
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

.summary-new {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.orders-stack {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    overflow-x: visible;
    padding-bottom: 8px;
}

.orders-group {
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 4px;
    min-height: 220px;
    max-height: none;
    overflow: hidden;
}

.orders-group.is-priority {
    border-color: #f5c4c4;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.12);
}

.orders-group-title {
    margin: 0 0 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    padding-bottom: 8px;
}

.orders-group-count {
    color: #6f4f3a;
    font-size: 0.9rem;
    font-weight: 700;
}

.orders-others {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #f0dfd3;
    border-radius: 12px;
    padding: 10px 12px;
}

.orders-others summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-orders-list {
    margin-top: 6px;
}

.admin-orders-list th {
    background: #fff7ef;
}

.customer-orders-list {
    gap: 16px;
}

.customer-order-card {
    padding: 18px;
}

.customer-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 18px;
    margin: 10px 0 12px;
}

.customer-order-grid p {
    margin: 0;
    line-height: 1.45;
}

.customer-order-address {
    margin: 0 0 6px;
    line-height: 1.45;
}

.customer-order-obs {
    margin: 8px 0 0;
    background: #fff7ef;
    border: 1px solid #f3decf;
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.45;
}

.customer-order-update {
    margin: 8px 0 0;
    background: #eefdf5;
    border: 1px solid #bfe9d1;
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.45;
    color: #1f5137;
}

.customer-order-update a {
    color: #176a43;
    font-weight: 700;
    text-decoration: underline;
}

.customer-order-update .route-link-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #176a43;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1;
}

.customer-order-update .route-link-btn:hover {
    filter: brightness(0.95);
}

.customer-order-eta {
    margin: 10px 0 2px;
    font-size: 0.92rem;
    color: #0f5132;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-order-eta .eta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #a7e0c0;
    background: #e8f8f0;
    color: #0a5d3b;
    box-shadow: 0 6px 16px rgba(16, 93, 58, 0.12);
}

.delivery-live-track {
    position: relative;
    display: inline-block;
    width: 260px;
    height: 28px;
    vertical-align: middle;
    --moto-left: 4%;
    border-radius: 999px;
    padding: 8px 10px;
    background: #eff7f2;
    border: 1px solid #c6e7d5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.delivery-live-line {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    background: #cfe9da;
    border-radius: 999px;
}

.delivery-live-progress {
    position: absolute;
    left: 10px;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    width: calc((var(--moto-left) / 100) * (100% - 20px));
    max-width: calc(100% - 20px);
    background: #0d7c4d;
    border-radius: 999px;
    transition: width 0.55s ease;
}

.delivery-live-moto {
    position: absolute;
    left: var(--moto-left);
    top: 50%;
    transform: translate(-50%, -56%) scaleX(-1);
    font-size: 1.18rem;
    line-height: 1;
    transition: left 0.55s ease;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

@media (max-width: 720px) {
    .customer-order-eta {
        display: grid;
        gap: 8px;
    }
    .customer-order-eta .eta-text {
        width: 100%;
    }
    .customer-order-eta .eta-chip {
        width: 100%;
        justify-content: center;
    }
    .delivery-live-track {
        width: 100%;
        max-width: none;
        display: block;
    }
    .customer-order-eta .eta-chip {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 0.88rem;
    }
}

@media (max-width: 980px) and (min-width: 721px) {
    .orders-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.order-card {
    background: #fff;
    border: 1px solid #eddccd;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
    overflow: hidden;
}

.order-card-live-update {
    animation: cardLivePulse 1.2s ease;
}

@keyframes cardLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.32);
        border-color: #86efac;
        background: #f0fdf4;
    }
    100% {
        box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
        border-color: #eddccd;
        background: #fff;
    }
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.order-head h3 {
    margin: 0;
    font-size: 0.92rem;
}

.order-head-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-delete-inline {
    margin: 0;
    display: inline-flex;
}

.order-status {
    background: #fff3e4;
    border: 1px solid #f1d2b3;
    color: #8a4b1f;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 0.82rem;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px 12px;
    margin-bottom: 10px;
    color: #4f3d31;
}

.order-address p {
    margin: 4px 0;
    color: #4f3d31;
}

.order-actions-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.order-actions-inline select,
.order-actions-inline .btn,
.order-actions-inline button {
    margin: 0;
    width: 100%;
    text-align: center;
}

.order-actions-inline .btn.btn-compact,
.order-actions-inline button.btn-compact {
    width: auto;
    min-width: 68px;
    justify-self: start;
}

.order-actions-inline select {
    grid-column: 1 / -1;
}

.order-actions-inline-single {
    grid-template-columns: auto;
    justify-content: start;
}

.btn-icon {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #b42318 !important;
    line-height: 1;
    font-size: 1rem;
}

.btn-icon-xs {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px;
    min-height: 28px !important;
    padding: 0 !important;
    font-size: 0.82rem;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #b42318 !important;
}

.empty {
    background: #fff;
    padding: 14px;
    border-radius: 8px;
}

.alert {
    padding: 13px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #f1dac8;
    background: #fff;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.alert-ok {
    background: #eafaf1;
    color: #0f5132;
    border: 1px solid #c9f0da;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.auth-container {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 28px;
    padding-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 120px);
}

.delivery-notification-banner strong {
    display: block;
    margin-bottom: 4px;
}

.delivery-notification-banner p {
    margin: 0;
    line-height: 1.3;
}

.delivery-notification-banner form {
    margin: 0;
    flex: 0 0 auto;
}

.auth-container.is-keyboard-editing {
    justify-content: flex-start;
    padding-bottom: calc(var(--auth-keyboard-space, 0px) + 70px);
    scroll-padding-bottom: calc(var(--auth-keyboard-space, 0px) + 70px);
}

.auth-shell {
    width: min(460px, 100%);
}

.auth-shell-wide {
    width: min(680px, 100%);
}

.auth-card {
    background: #fff;
    border: 1px solid #f2ddce;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(73, 46, 31, 0.12);
}

.auth-title {
    margin: 0;
    font-size: 1.75rem;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: #6f4f3a;
    line-height: 1.45;
}

.auth-card form {
    margin-top: 12px;
}

.auth-form label {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #452d1f;
}

.auth-autofill-decoy {
    position: fixed !important;
    left: -10000px !important;
    top: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    height: 46px !important;
    min-height: 46px !important;
    padding: 10px 12px;
    border-width: 2px;
    border-radius: 10px;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    width: 100%;
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent !important;
    color: #6f4f3a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.password-toggle:hover {
    background: transparent !important;
    color: #b95f20;
    filter: none;
}

.password-toggle:focus,
.password-toggle:active {
    background: transparent !important;
    box-shadow: none !important;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle .password-eye-closed,
.password-toggle.is-visible .password-eye-open {
    display: none;
}

.password-toggle.is-visible .password-eye-closed {
    display: block;
}

.auth-link-button {
    border: 0;
    background: transparent;
    color: #b94b10;
    font-weight: 800;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.auth-actions {
    margin: 16px 0 0;
}

.auth-actions button {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font-size: 1rem;
}

.auth-install-actions {
    margin-top: 10px;
}

.auth-install-btn {
    width: 100%;
    display: none;
}

.auth-install-hint {
    display: none;
    margin-top: 8px;
}

.auth-link-row {
    margin: 10px 0 0;
    color: #6f4f3a;
}

.auth-link-row a {
    color: #a13e12;
    font-weight: 700;
}

.footer {
    position: relative;
    text-align: center;
    padding: 8px 10px 14px;
    color: #8a6f5c;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e4d9d1;
}

.footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 72px;
    height: 2px;
    border-radius: 2px;
    background: #c85618;
    transform: translateX(-50%);
}

.footer p {
    margin: 0;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c3a12;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-brand-link:hover,
.footer-brand-link:focus-visible {
    color: #e97812;
    transform: translateY(-1px);
    outline: 0;
}

.footer-note {
    margin-bottom: 4px !important;
    font-size: 0.9rem;
    color: #7f6555;
}

input, textarea, select {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #d9c7bb;
    margin-top: 6px;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}

.field-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #7f6555;
}

.status-pill {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.route-pick {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6f4f3a;
}

.route-pick input {
    width: auto;
    margin: 0;
}

.customer-orders-table tbody tr + tr td {
    border-top: 8px solid #fff;
}

.orders-history-page {
    width: 100%;
}

.history-filter-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 8px 0 12px;
}

.history-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.orders-history-page .history-field:first-child {
    flex: 0 1 420px;
}

.orders-history-page .history-field {
    flex: 0 0 180px;
}

.history-field label {
    display: none;
}

.history-field input,
.history-field select {
    margin-top: 0;
    border-color: #dcbfa9;
    background: #fffdfb;
    font-size: 0.84rem;
    height: 32px;
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
    width: 100%;
}

.history-date-wrap {
    position: relative;
}

.history-date-input {
    box-sizing: border-box;
    height: 32px !important;
    min-height: 32px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    font-weight: 400;
    letter-spacing: normal;
    border: 1px solid #d8b79f !important;
    background: #fffdfb !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding-right: 34px;
}

.history-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: center;
}

.history-date-input:focus {
    border-color: #d97745 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 69, 0.2);
    outline: none;
}

.history-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    justify-self: auto;
    margin-left: 0;
}

.history-filter-actions > button,
.history-filter-actions > .btn {
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 7px;
    font-size: 0.84rem;
    font-weight: 600;
}

.history-quick-range {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-range-btn {
    background: #fff7ef;
    border: 1px solid #f0d4bd;
    color: #7f3514;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1;
}

.quick-range-btn:hover {
    background: #ffeede;
    border-color: #e9c4a8;
}

.quick-range-btn.is-active {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
    box-shadow: 0 8px 18px rgba(143, 53, 17, 0.35);
}

.modern-date-picker {
    position: absolute;
    z-index: 5600;
    width: min(284px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    box-sizing: border-box;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2c8b3;
    border-radius: 14px;
    box-shadow: 0 20px 38px rgba(64, 39, 24, 0.24);
    padding: 10px;
    display: none;
}

.modern-date-picker.is-open {
    display: block;
}

.mdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0dfd3;
}

.mdp-title {
    font-size: 1rem;
    font-weight: 800;
    color: #5c2f18;
}

.mdp-nav {
    width: 32px;
    height: 32px;
    border: 1px solid #e4cdbb;
    border-radius: 9px;
    background: #fff7f1;
    color: #7f3514;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mdp-nav:hover {
    background: #ffeede;
    border-color: #e1bea3;
}

.mdp-week,
.mdp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mdp-week {
    margin-bottom: 6px;
}

.mdp-week span {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
    color: #8b5b3f;
}

.mdp-day {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 8px 0;
    font-weight: 700;
    cursor: pointer;
    color: #2f1d13;
}

.mdp-day:hover {
    background: #fff1e5;
}

.mdp-day.is-other {
    color: #b39682;
}

.mdp-day.is-today {
    box-shadow: inset 0 0 0 1px #e39b6e;
}

.mdp-day.is-selected {
    background: #c2410c;
    color: #fff;
}

.mdp-footer {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.mdp-footer button {
    border: 1px solid #e4cdbb;
    background: #fff7f1;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    color: #7f3514;
    cursor: pointer;
}

.history-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

.history-column {
    min-width: 0;
}

.history-panel {
    background: #fff;
    border: 1px solid #ecd9cb;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(142, 76, 43, 0.06);
}

.history-panel-title {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.04rem;
}

.history-table-wrap {
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #f1dfd2;
    border-radius: 10px;
}

.history-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    table-layout: fixed;
}

.history-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff7ef;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 400;
}

.history-table th,
.history-table td {
    vertical-align: top;
    padding: 11px 10px;
}

.history-table td {
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.3;
}

.history-table th:first-child,
.history-table td:first-child {
    width: 76px;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
    width: 118px;
}

.history-day-row td {
    background: #fffaf5;
    font-size: 0.94rem;
    font-weight: 400;
    color: #7a3b17;
    border-top: 1px solid #f0dfd3;
    border-bottom: 1px solid #f0dfd3;
}

.history-items-cell {
    max-width: none;
    white-space: normal;
    word-break: break-word;
}

.history-actions-cell {
    width: 104px;
    text-align: right;
}

.history-actions-cell .btn {
    padding: 7px 10px;
    border-radius: 7px;
}

.orders-history-page .history-panel {
    padding: 12px;
    border-radius: 8px;
    box-shadow: none;
}

.orders-history-page .history-table-wrap {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    border-color: #e5e7eb;
    border-radius: 8px;
}

.orders-history-page .history-table {
    min-width: 1120px;
}

.orders-history-page .history-table th {
    background: #f8fafc;
    color: #52647f;
    font-size: 0.78rem;
    font-weight: 800;
}

.orders-history-page .history-table th,
.orders-history-page .history-table td {
    border-bottom: 1px solid #edf2f7;
    padding: 13px 16px;
}

.orders-history-page .history-table td {
    color: #1f2f46;
    font-size: 0.86rem;
}

.orders-history-page .history-table td small {
    display: block;
    margin-top: 3px;
    color: #475f83;
    line-height: 1.25;
}

.orders-history-page .history-table td strong {
    color: #0f172a;
    font-weight: 800;
}

.orders-history-page .history-table th:first-child,
.orders-history-page .history-table td:first-child {
    width: 125px;
}

.orders-history-page .history-table th:nth-child(2),
.orders-history-page .history-table td:nth-child(2) {
    width: 150px;
}

.orders-history-page .history-table th:nth-child(3),
.orders-history-page .history-table td:nth-child(3) {
    width: 150px;
}

.orders-history-page .history-table th:nth-child(4),
.orders-history-page .history-table td:nth-child(4) {
    width: 360px;
}

.orders-history-page .history-table th:nth-child(5),
.orders-history-page .history-table td:nth-child(5) {
    width: 120px;
}

.orders-history-page .history-table th:nth-child(6),
.orders-history-page .history-table td:nth-child(6) {
    width: 210px;
}

.orders-history-page .history-table th:nth-child(7),
.orders-history-page .history-table td:nth-child(7) {
    width: 120px;
}

/* Perimetro: sem negrito */
.perimeter-page, .perimeter-page *:not(svg):not(path):not(i) { font-weight: 400 !important; }

.ui-modal-backdrop:not(.ui-confirm-backdrop) {
    transition: opacity .3s cubic-bezier(.4, 0, .2, 1), visibility .3s ease;
}

.ui-modal-backdrop:not(.ui-confirm-backdrop) .ui-modal {
    opacity: 0;
    transform: translateX(100%) scale(.98);
    transition: transform .34s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}

.ui-modal-backdrop:not(.ui-confirm-backdrop).is-open .ui-modal {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.order-detail-items-drop {
    interpolate-size: allow-keywords;
}

.order-detail-items-drop::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size .3s cubic-bezier(.16, 1, .3, 1), opacity .25s ease, content-visibility .3s allow-discrete;
}

.order-detail-items-drop[open]::details-content {
    block-size: auto;
    opacity: 1;
}

@supports not selector(::details-content) {
    .order-detail-items-drop[open] .order-detail-items {
        animation: orderItemsOpen .28s cubic-bezier(.16, 1, .3, 1) both;
    }

    @keyframes orderItemsOpen {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Clientes admin (copiado de Kaza-da-Esfiha) */
.ui-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    cursor: default;
    user-select: none;
}

.clients-new-btn { margin-left: auto; }

.client-create-modal {
    width: min(640px, 100vw) !important;
    max-width: min(640px, 100vw) !important;
    height: 100dvh;
    max-height: none !important;
    overflow: auto;
    border-radius: 16px 0 0 16px !important;
    padding: 24px !important;
}

.client-create-backdrop {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

.client-create-backdrop.is-open .client-create-modal,
.client-history-backdrop.is-open .client-history-modal {
    animation: clientDrawerIn .24s cubic-bezier(.16, 1, .3, 1);
}

@keyframes clientDrawerIn {
    from { opacity: .7; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.client-create-modal form { display: grid; gap: 10px; }

.client-create-modal input:not([type="hidden"]) {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    padding: 10px 12px;
}

.client-create-modal input:not([type="hidden"]):focus,
.client-create-modal input:not([type="hidden"]):focus-visible {
    border-color: #f47f37 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(244, 127, 55, .18) !important;
}

.client-create-modal .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-create-modal .row > div:nth-child(3) { grid-column: 1 / -1; }
.client-create-modal .row:has(input[name="bairro"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px; }
.client-create-modal .row:has(input[name="bairro"]) > div:nth-child(3) { grid-column: auto; }

.clients-search-form { margin-top: 0; margin-bottom: 12px; }
.clients-search-field { position: relative; width: min(460px, 100%); height: 42px; }
.clients-search-field .sr-only,
.client-history-search .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html body #clientsSearch {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding-right: 44px;
}

.clients-search-submit {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #6d7480;
    cursor: pointer;
    min-height: 30px !important;
}

.clients-search-submit:hover,
.clients-search-submit:focus-visible { background: #eff8f1; color: #087d2b; }
.clients-search-submit svg { width: 18px; height: 18px; }

.clients-table-wrap { margin-bottom: 12px; }
.clients-admin-table { min-width: 1120px; }
.clients-admin-table th { white-space: nowrap; font-size: 0.82rem; }
.clients-admin-table td { vertical-align: middle; font-size: 0.86rem; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; }
.clients-admin-table tbody tr:nth-child(2n) { background: #fffaf5; }
.clients-cell-center { text-align: center; font-weight: 700; }
.clients-cell-money { font-weight: 800; color: #8b3415; white-space: nowrap; }

.clients-row-actions { align-items: center; flex-wrap: nowrap; gap: 6px; }
.clients-row-actions .btn,
.clients-history-detail-btn {
    min-height: 28px !important;
    padding: 6px 9px !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
}

.clients-delete-form,
.clients-reset-password-form { margin: 0; }

.clients-icon-btn {
    width: 28px;
    height: 28px;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0;
    border-radius: 8px !important;
    background: #fff3e8;
    color: #c85b16;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px !important;
}

.clients-icon-btn:hover { background: #ffe0c2; }
.clients-icon-btn svg { width: 15px; height: 15px; }
.clients-icon-btn-danger { background: #fff1f1; color: #c62828; }
.clients-icon-btn-danger:hover { background: #ffdada; }

.clients-status-form { display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.clients-status-toggle { position: relative; display: inline-flex; width: 30px; height: 18px; cursor: pointer; }
.clients-status-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.clients-status-slider { display: block; width: 100%; height: 100%; border-radius: 999px; background: #d9c9bf; transition: background .18s ease; }
.clients-status-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
    transition: transform .18s ease;
}

.clients-status-toggle input:checked + .clients-status-slider { background: #1f9d55; }
.clients-status-toggle input:checked + .clients-status-slider::after { transform: translateX(12px); }
.clients-status-toggle input:focus-visible + .clients-status-slider { outline: 3px solid rgba(31, 157, 85, .35); outline-offset: 2px; }

.client-order-detail-modal { width: min(720px, calc(100vw - 32px)) !important; max-width: min(720px, calc(100vw - 32px)) !important; }
.client-order-summary,
.client-order-details-grid { display: grid; gap: 12px; }
.client-order-summary { grid-template-columns: repeat(3, 1fr); padding-bottom: 16px; border-bottom: 1px solid #e8edf2; }
.client-order-details-grid { grid-template-columns: repeat(3, 1fr); padding: 16px 0; }
.client-order-summary span,
.client-order-details-grid span { display: block; margin-bottom: 5px; color: #64748b; font-size: .76rem; font-weight: 700; }
.client-order-summary strong,
.client-order-details-grid strong { color: #334155; font-size: .9rem; }
.client-order-total { color: #008a56 !important; }
.client-order-address { grid-column: span 2; }
.client-order-products { padding: 16px 0; border-top: 1px solid #e8edf2; }
.client-order-products h4 { margin: 0 0 2px; }
.client-order-products small { color: #64748b; }
.client-order-product { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid #e8edf2; border-radius: 10px; }
.client-order-product b { color: #008a56; }
.client-order-product span { flex: 1; }
.client-order-note { margin: 0; padding: 12px; background: #fff9f2; border-radius: 8px; }

.client-history-backdrop { align-items: stretch !important; justify-content: flex-end !important; padding: 0 !important; }
.client-history-modal {
    box-sizing: border-box;
    width: min(820px, 96vw) !important;
    max-width: 820px !important;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0;
    padding: 18px !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 16px 0 0 16px !important;
    box-shadow: -16px 0 40px rgba(28, 21, 15, .25) !important;
}

.client-history-modal .ui-modal-head { margin-bottom: 12px; }
.client-history-search { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.client-history-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: #94a3b8; pointer-events: none; }
.client-history-search input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 8px 12px 8px 36px;
    border: 1px solid #dfe5ea;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-size: .86rem;
}

.client-history-search input::placeholder { color: #94a3b8; }
.client-history-search input:focus { outline: 2px solid rgba(8, 125, 242, .2); outline-offset: 0; border-color: #8bbcf5; background: #fff; }
.client-history-empty {
    margin: 0;
    padding: 22px 12px;
    border: 1px dashed #dbe3ea;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: .86rem;
    text-align: center;
}

.client-history-empty[hidden],
.clients-history-card.is-filtered-out { display: none; }

.clients-history-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; margin-top: 2px; padding: 10px; border-radius: 14px; background: #f8fafc; }
.clients-history-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    white-space: normal;
    margin-top: 0;
    padding: 12px;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.clients-history-card:hover { border-color: #d7e0ea; box-shadow: 0 8px 22px rgba(15, 23, 42, .10); transform: translateY(-1px); }
.clients-history-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.clients-history-card-payment,
.clients-history-card-total { display: grid; gap: 4px; min-width: 0; }
.clients-history-card-payment span,
.clients-history-card-total span { color: #64748b; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.clients-history-card-payment strong { color: #334155; font-size: .95rem; font-weight: 700; overflow-wrap: anywhere; }
.clients-history-card-total { text-align: right; }
.clients-history-card-total strong { color: #008a56; font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.clients-history-card-address { display: flex; align-items: flex-start; gap: 7px; min-width: 0; margin: 0; color: #64748b; font-size: .82rem; line-height: 1.35; }
.clients-history-card-address svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; color: #94a3b8; }
.clients-history-card-address span { min-width: 0; overflow-wrap: anywhere; }
.clients-history-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid #eef2f7; }
.clients-history-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.clients-history-status { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .7rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.clients-history-status.is-finalizado { background: #dcfce7; color: #15803d; }
.clients-history-status.is-cancelado { background: #fee2e2; color: #b91c1c; }
.clients-history-status.is-novo { background: #fef3c7; color: #b45309; }
.clients-history-status.is-preparo { background: #ffedd5; color: #c2410c; }
.clients-history-status.is-rota { background: #dbeafe; color: #1d4ed8; }
.clients-history-status.is-atencao { background: #fef3c7; color: #b45309; }
.clients-history-card-date { color: #94a3b8; font-size: .74rem; font-weight: 600; line-height: 1.3; }
.clients-history-detail-btn { flex: 0 0 auto; padding: 6px 12px !important; border-radius: 999px !important; font-weight: 700 !important; }

@media (max-width: 640px) {
    .client-order-summary,
    .client-order-details-grid { grid-template-columns: repeat(2, 1fr); }
    .client-order-address { grid-column: span 2; }
    .client-history-modal { width: 100vw !important; max-width: 100vw !important; padding: 14px !important; border-radius: 0 !important; }
    .client-create-backdrop .client-create-modal { width: 100vw !important; max-width: 100vw !important; padding: 14px !important; border-radius: 0 !important; }
    .client-history-search { margin-bottom: 10px; }
    .clients-history-cards { grid-template-columns: 1fr; gap: 10px; padding: 8px; }
    .clients-history-card { padding: 12px; }
    .clients-history-card-foot { align-items: stretch; flex-direction: column; }
    .clients-history-detail-btn { width: 100%; }
}

@media (max-width: 900px) {
    .clients-new-btn { margin-left: 0; }
    .client-create-modal .row { grid-template-columns: 1fr; }
    .client-create-modal .row > div:nth-child(3) { grid-column: auto; }
    .client-create-modal .row:has(input[name="bairro"]) { grid-template-columns: 1fr; }
}

body.is-delivery-area .ui-page-loader,
body.is-delivery-area .topbar-install-btn[hidden] {
    display: none !important;
}

@media (max-width: 560px) {
    body.is-delivery-area .topbar-inner {
        width: calc(100% - 10px);
        gap: 4px;
        padding-left: 0;
        padding-right: 0;
    }

    body.is-delivery-area .topbar-left {
        flex: 0 0 auto;
        width: auto;
        gap: 8px;
    }

    body.is-delivery-area .topbar-brand {
        width: auto;
        height: auto;
        overflow: hidden;
    }

    body.is-delivery-area .brand-logo,
    body.is-delivery-area .brand-badge {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 9px;
        padding: 2px;
    }

    body.is-delivery-area .topbar-brand-copy {
        display: none;
    }

    body.is-delivery-area .topbar-right {
        flex: 1 1 0;
        min-width: 0;
        align-items: stretch;
    }

    body.is-delivery-area .topbar-nav {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    body.is-delivery-area .topbar-nav:has(> a:only-child) {
        display: flex;
        justify-content: flex-end;
        width: auto;
    }

    body.is-delivery-area .topbar-nav > a,
    body.is-delivery-area .topbar-nav > .topbar-submenu > .topbar-submenu-trigger {
        min-width: 0;
        width: auto;
        padding: 8px 5px;
        font-size: 0.88rem;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
    }

    body.is-delivery-area .topbar-nav:has(> a:only-child) > a {
        width: auto;
        padding: 7px 9px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    body.is-delivery-area .topbar-submenu {
        min-width: 0;
        width: auto;
        margin-left: auto;
    }

    body.is-delivery-area .topbar-submenu .topbar-submenu-trigger {
        min-height: 34px;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 0.88rem;
        letter-spacing: 0;
    }

    body.is-delivery-area .topbar-submenu.is-open .topbar-submenu-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.topbar.delivery-topbar {
    padding: 10px 0;
}

.topbar.delivery-topbar .topbar-inner {
    box-sizing: border-box;
    width: min(1280px, 100%);
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.topbar.delivery-topbar .brand-logo {
    width: auto;
    height: 52px;
    min-width: 0;
    max-width: min(40vw, 180px);
    padding: 0;
    background: transparent;
    box-shadow: none;
}


.ui-toast-stack {
    position: fixed;
    inset-block-start: max(16px, env(safe-area-inset-top));
    inset-inline-end: max(16px, env(safe-area-inset-right));
    z-index: 10001;
    display: grid;
    align-content: start;
    gap: 8px;
    width: min(400px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
}

.ui-toast-stack > [data-toast-mount]:empty {
    display: none;
}

.ui-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    box-shadow: 0 2px 8px #0f172a26;
    overflow-wrap: anywhere;
    pointer-events: auto;
}

.ui-toast[data-toast-type="success"] {
    border-color: #86c899;
    background: #edf9f0;
    color: #14532d;
}

.ui-toast[data-toast-type="error"] {
    border-color: #e8a5a5;
    background: #fff1f1;
    color: #881b1b;
}

.ui-toast-close,
.ui-toast-action {
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.ui-toast-close {
    flex: 0 0 36px;
    padding: 0;
    font-size: 1.35rem;
}

.ui-toast-action {
    padding: 0 8px;
    font: inherit;
    font-weight: 600;
}

.ui-toast-close:hover,
.ui-toast-close:focus-visible,
.ui-toast-action:hover,
.ui-toast-action:focus-visible {
    background: #0f172a12;
    color: inherit;
}
