/* =========================================
   194 SUSHI — TEMPLATE VISUAL DO DELIVERY
========================================= */

:root {
    --bg: #181818;
    --surface: #222222;
    --card: #ffffff;
    --primary: #D4AF37;
    --secondary: #A30808;
    --text: #ffffff;
    --text-dark: #222222;
    --text-light: #AFAFAF;
    --border: #2b2b2b;
    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
    font: inherit;
}

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

.app-shell {
    width: 100%;
    max-width: 980px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: auto;
    height: 42px;
}

.header-action {
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--secondary);
    color: #ffffff;
    font-size: 15px;
    transition: filter .2s, transform .2s;
}

.header-action:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.app-main {
    flex: 1;
    padding: 35px 28px 110px;
}

.home-hero {
    padding-top: 20px;
    margin-bottom: 34px;
}

.home-kicker {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 520px;
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1.1;
}

.home-description {
    max-width: 520px;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.5;
}

.menu-section {
    margin-top: 10px;
}

.search-box {
    height: 54px;
    margin-bottom: 30px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.search-box svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--primary);
}

.search-box input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 16px;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.category-block {
    margin-top: 28px;
}

.category-block h2 {
    display: inline-block;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary);
    font-size: 32px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-card {
    min-height: 118px;
    padding: 14px;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    background: var(--card);
    color: var(--text-dark);
    border-radius: var(--radius);
}

.product-image {
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 14px;
    background: #eeeeee;
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #999999;
    background: #eeeeee;
}

.product-image-placeholder svg {
    width: 28px;
    height: 28px;
}

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

.product-info h3 {
    margin-bottom: 7px;
    font-size: 17px;
    line-height: 1.2;
}

.product-info p {
    margin-bottom: 9px;
    display: -webkit-box;
    overflow: hidden;
    color: #666666;
    font-size: 14px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-info strong {
    color: var(--text-dark);
    font-size: 16px;
}

.product-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.product-add-btn {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .2s;
}

.product-add-btn:hover {
    filter: brightness(.95);
    transform: translateY(-1px);
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #111111;
    border-top: 1px solid var(--border);
}

.bottom-nav-item {
    min-width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999999;
    font-size: 12px;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.cart-icon {
    position: relative;
    display: inline-flex;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .app-header {
        height: 72px;
        padding: 0 18px;
    }

    .brand-logo {
        height: 34px;
    }

    .header-action {
        padding: 10px 20px;
        font-size: 14px;
    }

    .app-main {
        padding: 32px 18px 100px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-description {
        font-size: 16px;
    }

    .category-block h2 {
        font-size: 28px;
    }

    .product-card {
        padding: 12px;
        grid-template-columns: 82px minmax(0, 1fr);
        grid-template-areas:
            "image info"
            "image action";
        gap: 10px 14px;
    }

    .product-image {
        grid-area: image;
        width: 82px;
        height: 82px;
    }

    .product-info {
        grid-area: info;
    }

    .product-info h3 {
        margin-bottom: 5px;
        font-size: 15px;
    }

    .product-info p {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .product-info strong {
        font-size: 15px;
    }

    .product-action {
        grid-area: action;
    }

    .product-add-btn {
        height: 36px;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 13px;
    }
}


/* =========================================
   CARRINHO E ENVIO PELO WHATSAPP
========================================= */

body.cart-open {
    overflow: hidden;
}

.product-add-btn.added {
    background: #278a47;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(4px);
}

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

.cart-drawer {
    width: min(100%, 510px);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #181818;
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .35);
    animation: cartSlideIn .25s ease;
}

@keyframes cartSlideIn {
    from {
        opacity: 0;
        transform: translateX(45px);
    }

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

.cart-header {
    min-height: 88px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.cart-kicker {
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-header h2 {
    font-size: 28px;
}

.cart-close-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: #ffffff;
    cursor: pointer;
}

.cart-close-button svg {
    width: 22px;
    height: 22px;
}

.cart-content {
    flex: 1;
    padding: 20px 22px;
    overflow-y: auto;
}

.cart-empty {
    min-height: 280px;
    padding: 35px 20px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    color: var(--text-light);
}

.cart-empty svg {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    color: var(--primary);
}

.cart-empty h3 {
    color: #ffffff;
    font-size: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.cart-item-info h3 {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.3;
}

.cart-item-info strong {
    color: var(--primary);
    font-size: 15px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-button,
.remove-item-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #3b3b3b;
    border-radius: 10px;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
}

.quantity-button svg,
.remove-item-button svg {
    width: 17px;
    height: 17px;
}

.remove-item-button {
    color: #ff7a7a;
}

.item-quantity {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

.customer-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.customer-section h3 {
    margin-bottom: 17px;
    font-size: 20px;
}

.form-field {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field span,
.order-type-field legend {
    color: #d7d7d7;
    font-size: 13px;
    font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #3b3b3b;
    border-radius: 12px;
    outline: 0;
    background: #111111;
    color: #ffffff;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary);
}

.order-type-field {
    margin-bottom: 15px;
    padding: 0;
    border: 0;
}

.order-type-field legend {
    margin-bottom: 10px;
}

.radio-option {
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.radio-option input {
    accent-color: var(--primary);
}

.cart-footer {
    padding: 17px 22px 22px;
    background: #141414;
    border-top: 1px solid var(--border);
}

.cart-total-row {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-total-row span {
    color: var(--text-light);
}

.cart-total-row strong {
    color: var(--primary);
    font-size: 24px;
}

.whatsapp-order-button {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 14px;
    background: #25d366;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.whatsapp-order-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.whatsapp-order-button svg {
    width: 21px;
    height: 21px;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 4000;
    max-width: min(360px, calc(100% - 40px));
    padding: 13px 17px;
    border-radius: 12px;
    background: #ffffff;
    color: #222222;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s, transform .2s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #b61f1f;
    color: #ffffff;
}

@media (max-width: 600px) {
    .cart-drawer {
        width: 100%;
        border-left: 0;
    }

    .cart-header {
        min-height: 76px;
        padding: 16px 18px;
    }

    .cart-content {
        padding: 17px 18px;
    }

    .cart-footer {
        padding: 15px 18px 18px;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-actions {
        justify-content: flex-end;
    }
}


/* =========================================
   HORÁRIO DE FUNCIONAMENTO
========================================= */

.store-status-banner {
    width: calc(100% - 56px);
    max-width: 924px;
    margin: 18px auto 0;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 16px;
    background: #222222;
}

.store-status-banner.is-open {
    border-color: rgba(39, 138, 71, .55);
    background: rgba(39, 138, 71, .12);
}

.store-status-banner.is-closed {
    border-color: rgba(163, 8, 8, .62);
    background: rgba(163, 8, 8, .15);
}

.store-status-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: #ffffff;
}

.store-status-icon svg {
    width: 21px;
    height: 21px;
}

.store-status-copy {
    min-width: 0;
}

.store-status-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 15px;
}

.store-status-copy p {
    color: #c6c6c6;
    font-size: 13px;
    line-height: 1.4;
}

.store-status-pill {
    padding: 7px 11px;
    border-radius: 999px;
    background: #555555;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-status-banner.is-open .store-status-pill {
    background: #278a47;
}

.store-status-banner.is-closed .store-status-pill {
    background: var(--secondary);
}

.cart-schedule-notice {
    margin-bottom: 13px;
    padding: 11px 13px;
    border: 1px solid rgba(163, 8, 8, .5);
    border-radius: 11px;
    background: rgba(163, 8, 8, .14);
    color: #f0c7c7;
    font-size: 12px;
    line-height: 1.45;
}

.whatsapp-order-button.store-closed {
    background: #555555;
    opacity: .78;
}

@media (max-width: 600px) {
    .store-status-banner {
        width: calc(100% - 36px);
        margin-top: 14px;
        padding: 13px 14px;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
    }

    .store-status-icon {
        width: 38px;
        height: 38px;
    }

    .store-status-pill {
        grid-column: 1 / -1;
        width: fit-content;
        margin-left: 49px;
    }

    .store-status-copy strong {
        font-size: 14px;
    }

    .store-status-copy p {
        font-size: 12px;
    }
}


/* Corrige a exibição do estado vazio do carrinho */
.cart-empty[hidden],
.cart-items[hidden] {
    display: none !important;
}