* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e8852e;
    --primary-dark: #c96d1a;
    --primary-light: #f5a455;
    --secondary: #f39c12;
    --secondary-light: #f7c563;
    --accent: #e8852e;
    --bg: #0d0d0d;
    --bg-light: #1a1a1a;
    --surface: #222222;
    --surface-light: #2a2a2a;
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --border: rgba(232, 133, 46, 0.2);
    --card: #1c1c1c;
    --shadow: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #e8852e, #f5a455);
    --gradient-bg: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --bg-dark: #111111;
    --surface-dark: #181818;
    --primary-transparent: rgba(232, 133, 46, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    /* Altura real do .header (init.js / ResizeObserver) — sticky das categorias abaixo do cabeçalho */
    --site-header-height: 76px;
}

/* overflow-x em body quebra position:sticky no Safari/iOS; clip no html evita rolagem horizontal */
html {
    overflow-x: clip;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: -webkit-sticky;
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 101;
}

.header h1 {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.cart-btn:hover {
    transform: scale(1.05);
}

.cart-count {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* DELIVERY FEE BAR */
.delivery-fee-bar {
    background: var(--surface);
    padding: 8px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* DAILY LIMIT BAR (retangular; estilo final também em renderDailyLimit no admin-settings.js) */
.daily-limit-bar {
    background: var(--surface);
    padding: 10px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
}

.limit-progress {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    height: 8px;
    margin-top: 6px;
    overflow: hidden;
}

.limit-progress-fill {
    background: #fff;
    height: 100%;
    border-radius: 0;
    transition: width 0.5s;
}

/* CATEGORIES — após endereço/status/taxa/limite; trava sob o cabeçalho ao rolar */
.categories {
    display: flex;
    gap: 10px;
    padding: 12px 20px 15px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--bg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.35);
    position: -webkit-sticky;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--site-header-height));
    z-index: 100;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    background: var(--surface);
    color: var(--text-secondary);
    border: 2px solid transparent;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.cat-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-light);
}

/* PRODUCT GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 0 20px 100px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: var(--shadow);
}

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

.product-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

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


.product-info {
    padding: 15px;
}

.product-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.1rem;
}

.product-price small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* SIDE MENU */
.side-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
}

.side-overlay.open {
    display: block;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--bg-light);
    z-index: 2001;
    transition: right 0.3s;
    padding: 20px;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.side-menu h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text);
    font-weight: 500;
}

.side-menu-item:hover {
    background: var(--surface);
}

.side-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

.modal-overlay.open {
    display: flex;
    overscroll-behavior: contain;
}

.modal-overlay.open .modal {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.modal {
    background: var(--bg-light);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-full {
    border-radius: var(--radius);
    max-height: 85vh;
    margin: 20px;
    align-self: center;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.1rem;
    color: var(--accent);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

/* Fluxo pós-pedido (modal padrão) */
.order-flow-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 4px;
}

.order-flow-item {
    flex: 0 0 auto;
    text-align: center;
    min-width: 56px;
}

.order-flow-item .order-flow-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto 4px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--surface);
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.order-flow-item small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.order-flow-item.active .order-flow-num {
    background: linear-gradient(135deg, var(--primary), var(--accent, #e67e22));
    color: #1a1a2e;
    border-color: transparent;
}

.order-flow-item.active small {
    color: var(--accent);
    font-weight: 700;
}

.order-flow-item.done .order-flow-num {
    background: rgba(0, 200, 83, 0.25);
    border-color: rgba(0, 200, 83, 0.5);
    color: #69f0ae;
}

.order-flow-item.done small {
    color: #81c784;
}

.order-flow-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 8px;
    margin-bottom: 22px;
    opacity: 0.6;
}

/* FORMS */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--surface-light);
    background: var(--surface);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

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

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text);
}

.btn-accent {
    background: var(--accent);
    color: #000;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SIZE SELECTOR */
.size-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.size-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.size-option:hover {
    border-color: var(--primary-light);
}

.size-option.selected {
    border-color: var(--primary);
    background: rgba(229, 57, 53, 0.15);
}

.size-option input[type="radio"] {
    display: none;
}

.size-name {
    font-weight: 600;
}

.size-slices {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.size-price {
    color: var(--accent);
    font-weight: 700;
}

.borda-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 6px;
}

.borda-option.selected {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.08);
}

.borda-option input[type="radio"] {
    display: none;
}

/* CART */
.cart-modal .modal {
    max-width: 450px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.cart-item-img {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
}

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

.cart-item-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.cart-item-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: right;
    line-height: 1.3;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    align-self: center;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--surface-light);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 15px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.cart-summary-row > span:first-child {
    min-width: 0;
    word-break: break-word;
}

.cart-summary-row > span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.cart-summary-row.total {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 10px;
}

/* CHECKOUT FORM */
.checkout-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

@media (max-width: 360px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}

.payment-opt {
    padding: 12px 10px;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    white-space: nowrap;
}

.payment-opt.selected {
    border-color: var(--primary);
    background: rgba(229, 57, 53, 0.15);
}

/* RECEIPT */
.receipt {
    background: #fff;
    color: #000;
    padding: 25px;
    border-radius: var(--radius);
    max-width: 380px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.receipt-header h2 {
    font-size: 1.3rem;
    color: #e53935;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.85rem;
}

/* Nome do produto pode quebrar; preço (R$ …) fica sempre numa linha */
.receipt-item > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-right: 4px;
}

.receipt-item > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
    align-self: flex-start;
}

.receipt-total {
    border-top: 2px dashed #ccc;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.receipt-total > span:first-child {
    flex: 0 0 auto;
}

.receipt-total > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: auto;
}

.receipt-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75rem;
    color: #999;
}

/* ADMIN */
.admin-tabs {
    display: flex;
    gap: 5px;
    padding: 10px 0;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.admin-tab {
    padding: 8px 16px;
    background: var(--surface);
    border: none;
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.admin-tab.active {
    background: var(--primary);
    color: #fff;
}

.admin-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.admin-product-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-product-item .info {
    flex: 1;
}

.admin-product-item .info h4 {
    font-size: 0.9rem;
}

.admin-product-item .info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.admin-product-item .actions {
    display: flex;
    gap: 6px;
}

.admin-product-item .actions button {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

/* SALES TABLE */
.sales-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.sales-filters input[type="date"] {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--surface-light);
    background: var(--surface);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
}

.sales-card {
    background: var(--surface);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.sales-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sales-card-id {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-card .value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* IMAGE UPLOAD */
.img-upload-area {
    border: 2px dashed var(--surface-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.img-upload-area:hover {
    border-color: var(--primary);
}

.img-upload-area img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
}

.img-upload-area input {
    display: none;
}

/* LOADING */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

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

/* TOAST */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    animation: slideIn 0.3s;
    max-width: 320px;
    box-shadow: var(--shadow);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.info {
    background: var(--secondary);
    color: #000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* PULSE GLOW */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 200, 83, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 200, 83, 0.8);
    }
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.1rem;
    }

    .product-img {
        height: 130px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 10px 100px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .product-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .modal {
        margin: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* SIZE CONFIG TABLE */
.size-config-table {
    width: 100%;
    border-collapse: collapse;
}

.size-config-table th,
.size-config-table td {
    padding: 8px;
    text-align: left;
    font-size: 0.85rem;
}

.size-config-table th {
    color: var(--text-secondary);
    font-weight: 600;
}

.size-config-table input {
    width: 80px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--surface-light);
    background: var(--surface);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.size-config-table .size-label {
    font-weight: 600;
}

/* SEARCH */
.search-bar {
    padding: 0 20px;
    margin-bottom: 10px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    padding-left: 40px;
    border-radius: 25px;
    border: 2px solid var(--surface-light);
    background: var(--surface);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-wrapper {
    position: relative;
}

.search-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* FLOATING CART */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #e67e22);
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.4);
    animation: floatUp 0.4s ease;
    min-width: 260px;
    max-width: 90vw;
}

.floating-cart:active {
    transform: translateX(-50%) scale(0.96);
}

.floating-cart-icon {
    font-size: 1.5rem;
    animation: cartBounce 0.5s ease;
}

.floating-cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.floating-cart-info span {
    font-size: 0.75rem;
    opacity: 0.85;
}

.floating-cart-info strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.floating-cart-arrow {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.7;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ===== AGENDAMENTO HORÁRIO ===== */
#scheduleSlots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 110px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
}

#scheduleSlots::-webkit-scrollbar {
    width: 4px;
}

#scheduleSlots::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

#scheduleSlots button {
    padding: 10px 6px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

#scheduleSlots button:not(:disabled):hover {
    border-color: var(--accent);
    background: rgba(255, 140, 0, 0.1);
}

#scheduleSlots button.schedule-selected {
    border-color: var(--accent) !important;
    background: rgba(255, 140, 0, 0.25) !important;
    color: var(--accent) !important;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.3);
    transform: scale(1.05);
}

#scheduleSlots button:disabled {
    background: rgba(255, 255, 255, 0.03);
    color: #555;
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: transparent;
}

/* Tailwind Utility Shims for FACode Logo */
.font-heading {
    font-family: 'Poppins', sans-serif !important;
}
.font-black {
    font-weight: 900 !important;
}
.tracking-tight {
    letter-spacing: -0.05em !important;
}
.text-white {
    color: #ffffff !important;
}
.text-sm {
    font-size: 0.85rem !important;
}
.flex {
    display: inline-flex !important;
}
.items-center {
    align-items: center !important;
}
.grayscale {
    filter: grayscale(100%) !important;
}
.opacity-80 {
    opacity: 0.8 !important;
}
.transition-opacity {
    transition: opacity 0.2s ease-in-out !important;
}
.hover\:opacity-100:hover {
    opacity: 1 !important;
}
