/* =========================================================
   CATÁLOGO DIGITAL DOCERIA - ESTILO GOURMET MODERNO
   ========================================================= */

:root {
    --berry: #C82D61;
    --berry-dark: #9D1E48;
    --berry-light: #FCE8EF;
    --berry-soft: #FFF5F8;

    --cocoa: #2D181E;
    --cocoa-secondary: #6E535B;
    --cocoa-muted: #9E828A;

    --caramel: #C97A3E;
    --caramel-bg: #FFF4E8;

    --whatsapp: #1FA855;
    --whatsapp-dark: #168A43;

    --bg-cream: #FFFDFB;
    --bg-page: #FAF4F0;
    --bg-card: #FFFFFF;

    --border-soft: #F0E3E7;
    --border-strong: #DFC9D0;

    --shadow-sm: 0 4px 16px rgba(62, 24, 36, 0.05);
    --shadow-md: 0 12px 30px rgba(62, 24, 36, 0.11);
    --shadow-bag: 0 -6px 28px rgba(45, 24, 30, 0.14);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --transition: 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--cocoa);
    line-height: 1.48;
    padding-bottom: 165px;
    overflow-x: hidden;
}

/* =========================================================
   1. PRELOADER COM PRÉ-DECODIFICAÇÃO DE FOTOS
   ========================================================= */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #FFF8FA 0%, #FCE8EF 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.32s ease;
}

.loader-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    max-width: 340px;
    width: 100%;
}

.spinner-sweet {
    width: 48px;
    height: 48px;
    border: 4px solid var(--berry-light);
    border-top-color: var(--berry);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    margin: 0 auto 16px;
}

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

.loader-title {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    color: var(--berry-dark);
    margin-bottom: 4px;
}

.loader-subtitle {
    font-size: 0.86rem;
    color: var(--cocoa-secondary);
}

/* =========================================================
   2. CABEÇALHO DA DOCERIA
   ========================================================= */
.store-header {
    position: relative;
    margin-bottom: 20px;
}

.header-cover {
    height: 155px;
    background: linear-gradient(135deg, #8F1A42 0%, #C82D61 55%, #E56B8F 100%);
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(157, 30, 72, 0.22);
}

.cover-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image: radial-gradient(#FFFFFF 2px, transparent 2px), radial-gradient(#FFFFFF 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
}

.store-profile-wrap {
    max-width: 780px;
    margin: -72px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.store-logo-card {
    width: 126px;
    height: 126px;
    margin: 0 auto 14px;
    background: #FFFFFF;
    border-radius: 32px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    border: 4px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.store-name {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cocoa);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.store-slogan {
    font-size: 0.96rem;
    color: var(--cocoa-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.store-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.store-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.pill-order {
    background: var(--berry-light);
    color: var(--berry-dark);
    border: 1px solid #F4C4D5;
}

.pill-insta {
    background: #FFFFFF;
    color: var(--cocoa);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   3. CONTAINER DO CATÁLOGO, BUSCA E CATEGORIAS STICKY
   ========================================================= */
.catalog-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px;
}

.welcome-notice {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF0E0 100%);
    border: 1px solid #F2D7BC;
    border-left: 4px solid var(--caramel);
    padding: 13px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.notice-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.welcome-notice p {
    font-size: 0.86rem;
    color: #5C3818;
    font-weight: 600;
    line-height: 1.4;
}

/* Barra Sticky */
.sticky-catalog-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(250, 244, 240, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(223, 201, 208, 0.5);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 0 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--berry);
    box-shadow: 0 0 0 3px rgba(200, 45, 97, 0.12);
}

.search-bar svg {
    color: var(--cocoa-muted);
    flex-shrink: 0;
}

.search-bar input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 11px 10px;
    font-size: 0.93rem;
    font-family: inherit;
    color: var(--cocoa);
    outline: none;
}

.btn-clear-search {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--border-soft);
    color: var(--cocoa-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-pills-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.category-pills-bar::-webkit-scrollbar {
    display: none;
}

.cat-pill-btn {
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    color: var(--cocoa-secondary);
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.cat-pill-btn.active {
    background: var(--berry);
    border-color: var(--berry);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(200, 45, 97, 0.25);
}

/* =========================================================
   4. SEÇÕES E CARDS DE PRODUTOS COM FOTOS
   ========================================================= */
.category-section {
    margin-bottom: 28px;
}

.category-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border-soft);
}

.category-section-title {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    color: var(--cocoa);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 13px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: var(--transition);
    position: relative;
}

.product-card.in-bag {
    border-color: var(--berry);
    background: #FFFBFD;
    box-shadow: 0 6px 20px rgba(200, 45, 97, 0.1);
}

.product-card-main {
    display: flex;
    gap: 13px;
    cursor: pointer;
}

.product-photo-box {
    width: 102px;
    height: 102px;
    border-radius: 14px;
    background: var(--berry-soft);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
}

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

.card-badge-overlay {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(45, 24, 30, 0.86);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}

.product-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-header-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--cocoa);
    line-height: 1.25;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.product-tags-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.product-badge-pill {
    display: inline-flex;
    align-items: center;
    background: var(--berry-soft);
    border: 1px solid #F3C4D5;
    color: var(--berry-dark);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    line-height: 1.3;
}

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

.product-advance-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--caramel);
    background: #FDF4EB;
    border: 1px solid #F2DEC8;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    line-height: 1.3;
    margin-bottom: 0;
}

.product-price-wrap {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.price-label-prefix {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--cocoa-muted);
}

.price-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--berry);
}

.price-consult-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--caramel);
    background: var(--caramel-bg);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

/* Rodapé de Ação do Card */
.product-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-soft);
}

.btn-item-note {
    background: var(--berry-soft);
    border: 1px solid #F3C6D6;
    color: var(--berry-dark);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-add-to-bag {
    margin-left: auto;
    background: var(--berry);
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-add-to-bag:active {
    transform: scale(0.96);
}

.card-qty-stepper {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    background: var(--berry-light);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 8px;
}

.qty-btn-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--berry);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-num-sm {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--berry-dark);
    min-width: 18px;
    text-align: center;
}

/* =========================================================
   5. BANNER DE ENCOMENDA PERSONALIZADA
   ========================================================= */
.custom-cake-banner {
    background: linear-gradient(135deg, #FFF5F8 0%, #FCE8EF 100%);
    border: 1.5px dashed #E89BB6;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin: 18px 0 24px;
}

.custom-cake-tag {
    display: inline-block;
    background: #FFFFFF;
    color: var(--berry-dark);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 6px;
}

.custom-cake-banner h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    color: var(--cocoa);
    margin-bottom: 4px;
}

.custom-cake-banner p {
    font-size: 0.85rem;
    color: var(--cocoa-secondary);
    margin-bottom: 14px;
}

.btn-outline-sweet {
    background: #FFFFFF;
    color: var(--berry-dark);
    border: 1.5px solid var(--berry);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-sweet:hover {
    background: var(--berry);
    color: #FFFFFF;
}

/* =========================================================
   6. BARRA FLUTUANTE DA SACOLA DE ENCOMENDA
   ========================================================= */
.sticky-bag-bar {
    position: fixed;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: 800;
    padding: 8px 16px 10px;
    background: linear-gradient(to top, rgba(250, 244, 240, 0.96) 65%, rgba(250, 244, 240, 0));
    display: flex;
    justify-content: center;
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.sticky-bag-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.bag-bar-inner {
    width: 100%;
    max-width: 748px;
    background: #2D181E;
    color: #FFFFFF;
    border-radius: 22px;
    padding: 10px 12px 10px 16px;
    box-shadow: var(--shadow-bag);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bag-summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-width: 0;
}

.bag-icon-badge {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bag-count-bubble {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--berry);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2D181E;
}

.bag-totals-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.bag-label-top {
    font-size: 0.73rem;
    color: #E2CDD3;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

.bag-label-main {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.25;
}

.bag-subtotal-val {
    font-size: 1.05rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.bag-subtotal-val.consult {
    font-size: 0.88rem;
    font-weight: 800;
    color: #F8B4C9;
}

.bag-subtotal-consult {
    font-size: 0.72rem;
    color: #F8B4C9;
    font-weight: 600;
}

.btn-checkout-cta {
    background: var(--berry);
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-checkout-cta:disabled {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.45);
    cursor: not-allowed;
}

.btn-checkout-cta:not(:disabled):active {
    transform: scale(0.97);
}

/* =========================================================
   7. MODAIS / BOTTOM SHEETS (DETALHE E CHECKOUT) & SCROLL LOCK
   ========================================================= */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(32, 14, 20, 0.58);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    overscroll-behavior: contain;
    touch-action: none;
}

.modal-backdrop.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bottom-sheet {
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    background: var(--bg-card);
    border-radius: 28px 28px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    position: relative;
    animation: slideUp 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.sheet-handle {
    width: 44px;
    height: 5px;
    background: var(--border-strong);
    border-radius: var(--radius-pill);
    margin: 10px auto 4px;
    flex-shrink: 0;
}

/* Modal de Detalhe do Produto */
.btn-floating-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--cocoa);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.detail-sheet-scroll {
    overflow-y: auto;
    scroll-padding-bottom: 240px;
    overscroll-behavior: contain;
}

.detail-image-box {
    width: 100%;
    height: 250px;
    background: var(--berry-soft);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.detail-badge {
    position: absolute;
    bottom: 12px;
    left: 16px;
    background: rgba(45, 24, 30, 0.88);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.detail-content {
    padding: 18px 20px;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.detail-cat-pill {
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--berry-light);
    color: var(--berry-dark);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.detail-advance-pill {
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--caramel-bg);
    color: var(--caramel);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.detail-title {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    color: var(--cocoa);
    margin-bottom: 6px;
}

.detail-price-box {
    margin-bottom: 12px;
}

.detail-description {
    font-size: 0.92rem;
    color: var(--cocoa-secondary);
    margin-bottom: 18px;
    line-height: 1.55;
}

.detail-note-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cocoa);
    margin-bottom: 6px;
}

.detail-sheet-footer {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 12px;
    background: var(--bg-card);
}

.qty-stepper-lg {
    display: flex;
    align-items: center;
    background: var(--bg-page);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 10px;
}

.stepper-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: none;
    background: #FFFFFF;
    color: var(--cocoa);
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.stepper-value {
    font-size: 1rem;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}

.btn-primary-sweet {
    flex: 1;
    background: var(--berry);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 18px;
    cursor: pointer;
}

/* Modal de Checkout / Sacola */
.checkout-header {
    padding: 10px 20px 14px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    color: var(--cocoa);
}

.checkout-header p {
    font-size: 0.8rem;
    color: var(--cocoa-secondary);
}

.btn-close-modal {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-page);
    color: var(--cocoa-secondary);
    font-size: 1.4rem;
    cursor: pointer;
}

.checkout-body {
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-padding-bottom: 240px;
    overscroll-behavior: contain;
}

.checkout-section {
    background: var(--bg-cream);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 15px;
}

.checkout-section h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cocoa);
    margin-bottom: 10px;
}

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

.section-head-inline h4 {
    margin-bottom: 0;
}

.btn-link-clear {
    background: none;
    border: none;
    color: var(--berry);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-item-row {
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.checkout-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

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

.checkout-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cocoa);
}

.checkout-item-sub {
    font-size: 0.78rem;
    color: var(--berry);
    font-weight: 700;
}

.checkout-item-note-input {
    margin-top: 8px;
    width: 100%;
    border: 1px dashed var(--border-strong);
    background: var(--bg-cream);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-family: inherit;
    color: var(--cocoa);
}

/* Inputs do Checkout */
.input-sweet {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--cocoa);
    background: #FFFFFF;
    transition: var(--transition);
}

.input-sweet:focus {
    outline: none;
    border-color: var(--berry);
    box-shadow: 0 0 0 3px rgba(200, 45, 97, 0.12);
}

select.input-sweet {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23BC3B6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px !important;
    cursor: pointer;
}

input[type="date"].input-sweet {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 11px 14px;
    font-size: 0.94rem;
    font-family: inherit;
    color: var(--cocoa);
    background-color: #FFFFFF;
    cursor: pointer;
}

input[type="date"].input-sweet::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(318deg) brightness(85%) contrast(92%);
    opacity: 0.85;
    padding: 4px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

input[type="date"].input-sweet::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.15);
    opacity: 1;
}

.schedule-fields-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.field-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cocoa);
    margin-bottom: 5px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.schedule-lead-notice {
    background: #FFF9F2;
    border: 1px solid #F0D9BE;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #7A4517;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.4;
}

.schedule-lead-notice.ready {
    background: #F0FBF4;
    border-color: #A8E4C1;
    color: #146C43;
}

.schedule-lead-notice strong {
    color: #4A2408;
    font-weight: 800;
}

.schedule-lead-notice.ready strong {
    color: #0E5232;
}

.lead-item-detail {
    font-size: 0.74rem;
    color: #8C5523;
}

.quick-dates-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.date-chip {
    background: #FFFFFF;
    border: 1px solid var(--border-strong);
    color: var(--cocoa-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.date-chip:hover {
    border-color: var(--berry);
    color: var(--berry-dark);
}

.date-chip.active {
    background: var(--berry-light);
    border-color: var(--berry);
    color: var(--berry-dark);
    box-shadow: 0 2px 6px rgba(200, 45, 97, 0.15);
}

.fulfillment-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #EFE4E8;
    padding: 4px;
    border-radius: var(--radius-pill);
}

.fulfillment-btn {
    border: none;
    background: transparent;
    padding: 9px 12px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--cocoa-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.fulfillment-btn.active {
    background: #FFFFFF;
    color: var(--berry-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pickup-card {
    background: var(--berry-soft);
    border: 1px solid #F2C5D5;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.pickup-card p {
    margin-top: 3px;
    color: var(--cocoa-secondary);
}

.order-summary-receipt {
    background: #FFF9F2;
    border: 1.5px dashed #E5C8A8;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.86rem;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--cocoa-secondary);
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #EBD6BE;
    font-size: 1rem;
    font-weight: 800;
    color: var(--cocoa);
}

.checkout-footer {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-soft);
    background: var(--bg-card);
}

.btn-whatsapp-send {
    width: 100%;
    background: var(--whatsapp);
    color: #FFFFFF;
    border: none;
    padding: 15px 20px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(31, 168, 85, 0.32);
    transition: var(--transition);
}

.btn-whatsapp-send:hover,
.btn-whatsapp-send:active {
    background: var(--whatsapp-dark);
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }

/* =========================================================
   8. TOASTS, TOPO "MEUS PEDIDOS", PAGAMENTO PIX/TROCO E TIMELINE
   ========================================================= */
.client-toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 420px;
    pointer-events: none;
}

.client-toast {
    background: var(--cocoa);
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.25s ease;
}

/* Bottom Navigation Bar do Cliente */
.client-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -4px 20px rgba(45, 24, 30, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 780px;
    margin: 0 auto;
    z-index: 850;
}

.client-nav-item {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--cocoa-muted);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.client-nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.client-nav-item.active .client-nav-icon-wrap {
    background: var(--berry-light);
    color: var(--berry-dark);
}

.client-nav-item.active {
    color: var(--berry-dark);
}

.client-nav-label {
    font-size: 0.74rem;
    font-weight: 800;
}

.client-nav-badge {
    position: absolute;
    top: -3px;
    right: 6px;
    background: var(--berry);
    color: #FFFFFF;
    font-size: 0.66rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #FFFFFF;
}

.orders-view-header {
    margin-bottom: 14px;
}

.orders-view-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    color: var(--cocoa);
    margin-bottom: 2px;
}

.orders-view-header p {
    font-size: 0.85rem;
    color: var(--cocoa-secondary);
}

.mb-3 { margin-bottom: 14px; }

.btn-fav-heart {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: #FFF9FB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-fav-heart.active {
    background: var(--berry-soft);
    border-color: #F3C4D5;
}

.btn-fav-heart:active {
    transform: scale(1.18);
}

.btn-save-profile-full {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.98rem;
    box-shadow: 0 6px 18px rgba(200, 45, 97, 0.25);
}

/* Login Simples & Autofill no Checkout */
.highlight-login-section {
    background: linear-gradient(135deg, #FFF8FA 0%, #FFF0F5 100%);
    border-color: #F4C4D5;
}

.login-pill-hint {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--berry-light);
    color: var(--berry-dark);
    padding: 2px 9px;
    border-radius: var(--radius-pill);
}

.section-sub-hint {
    font-size: 0.78rem;
    color: var(--cocoa-secondary);
    margin-bottom: 4px;
}

.autofill-banner {
    margin-top: 10px;
    background: #E8F8F0;
    border: 1px solid #A8E2C5;
    color: #166844;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-grid-street {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

@media (max-width: 420px) {
    .form-grid-street {
        grid-template-columns: 1fr;
    }
}

/* Seleção de Forma de Pagamento */
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.payment-option-btn {
    background: #FFFFFF;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cocoa-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option-btn.active {
    background: var(--berry-soft);
    border-color: var(--berry);
    color: var(--berry-dark);
    box-shadow: 0 2px 8px rgba(200, 45, 97, 0.12);
}

/* Box Chave Pix e Box Troco */
.pix-info-card {
    background: #F4FBF8;
    border: 1.5px dashed #7AC9A8;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.pix-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pix-badge {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #167953;
    text-transform: uppercase;
}

.pix-key-value {
    display: block;
    font-size: 0.92rem;
    color: var(--cocoa);
    word-break: break-all;
}

.pix-holder-name {
    display: block;
    font-size: 0.76rem;
    color: var(--cocoa-secondary);
}

.btn-copy-pix {
    background: #1B875D;
    color: #FFFFFF;
    border: none;
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.pix-tip {
    font-size: 0.74rem;
    color: #3E6B59;
    margin-top: 6px;
}

.change-info-card {
    background: #FFF9F2;
    border: 1px solid #F0D6B8;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.need-change-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cocoa);
    cursor: pointer;
}

.need-change-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--berry);
}

/* Modal Meus Pedidos & Linha do Tempo */
.phone-login-card {
    background: var(--berry-soft);
    border: 1px solid #F3C6D6;
    border-radius: var(--radius-md);
    padding: 14px;
}

.phone-login-card label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--berry-dark);
    margin-bottom: 8px;
}

.phone-login-row {
    display: flex;
    gap: 8px;
}

.btn-track-lookup {
    flex: 0 0 auto;
    padding: 0 18px;
}

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

.order-track-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.order-track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-soft);
    margin-bottom: 12px;
}

.order-code-tag {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cocoa);
}

.order-date-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--cocoa-muted);
}

.order-status-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
}

.status-pendente { background: #FFF4E5; color: #B26200; }
.status-confirmado { background: #E6F4EA; color: #18733C; }
.status-preparo { background: #FCE8EF; color: var(--berry-dark); }
.status-pronto { background: #E4F0FF; color: #175CD3; }
.status-concluido { background: #E6F6F0; color: #146C4E; }
.status-cancelado { background: #FDECEE; color: #C92A3A; }

/* Linha do Tempo (Timeline 4 Passos) */
.order-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 12px 0 14px;
}

.timeline-step {
    text-align: center;
    padding: 8px 4px;
    border-radius: 10px;
    background: var(--bg-page);
    border: 1px solid var(--border-soft);
    opacity: 0.5;
    transition: var(--transition);
}

.timeline-step.done,
.timeline-step.current {
    opacity: 1;
    background: var(--berry-soft);
    border-color: #F2BBD0;
}

.timeline-step.current {
    background: var(--berry-light);
    border-color: var(--berry);
    box-shadow: 0 2px 8px rgba(200, 45, 97, 0.14);
}

.timeline-step-icon {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.timeline-step-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--cocoa);
    line-height: 1.15;
}

.order-schedule-box {
    background: #FFF9F2;
    border: 1px solid #F0D9BE;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6B421B;
    margin-bottom: 10px;
}

.order-items-summary {
    font-size: 0.83rem;
    color: var(--cocoa-secondary);
    margin-bottom: 10px;
    line-height: 1.45;
}

.order-track-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
}

.btn-track-action {
    flex: 1;
    min-width: 135px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    border: 1.5px solid var(--border-strong);
    background: #FFFFFF;
    color: var(--cocoa);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-track-action.whatsapp {
    background: #EAF8F0;
    border-color: #A2DFBC;
    color: #146C43;
}

/* Selos de Disponibilidade: Pronta Entrega vs Sob Encomenda */
.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    white-space: nowrap;
}

.availability-pill.ready {
    background: #E8F8F0;
    color: #146C43;
    border-color: #A2DFBC;
}

.availability-pill.order {
    background: #FDF3EB;
    color: #9A5B13;
    border-color: #F2D3B8;
}

/* =========================================================
   9. VISUALIZAÇÃO DESKTOP AUTOMÁTICA (RESPONSIVA >= 960px)
   Barra de Navegação Superior Fixa + Aproveitamento Amplo de Tela
   ========================================================= */
@media (min-width: 960px) {
    body {
        padding-top: 72px;
        padding-bottom: 80px;
    }

    /* Nav Bar transforma-se em Header Bar Superior Fixa de ponta a ponta no Desktop */
    .client-bottom-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        max-width: none;
        height: 72px;
        margin: 0;
        padding: 0 max(32px, calc((100vw - 1440px) / 2 + 32px));
        border-radius: 0;
        border-top: none;
        border-bottom: 1px solid var(--border-soft);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 4px 20px rgba(45, 24, 30, 0.06);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        z-index: 1000;
    }

    .client-bottom-nav::before {
        content: "🍰 Cardápio Online & Delivery";
        font-family: 'Fraunces', serif;
        font-size: 1.18rem;
        font-weight: 700;
        color: var(--berry-dark);
        margin-right: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .client-nav-item {
        flex-direction: row;
        gap: 8px;
        padding: 10px 20px;
        border-radius: 999px;
        color: var(--cocoa-secondary);
        background: transparent;
    }

    .client-nav-item:hover {
        background: var(--berry-soft);
        color: var(--berry-dark);
    }

    .client-nav-icon-wrap {
        padding: 0;
        background: transparent !important;
    }

    .client-nav-item.active {
        background: var(--berry);
        color: #FFFFFF;
        box-shadow: 0 4px 14px rgba(200, 45, 97, 0.26);
    }

    .client-nav-item.active .client-nav-icon-wrap {
        color: #FFFFFF;
    }

    .client-nav-label {
        font-size: 0.9rem;
        font-weight: 800;
    }

    .client-nav-badge {
        position: static;
        margin-left: 4px;
        background: #FFFFFF;
        color: var(--berry-dark);
        border: 1.5px solid var(--berry);
    }

    .client-nav-item.active .client-nav-badge {
        background: #FFFFFF;
        color: var(--berry-dark);
        border-color: #FFFFFF;
    }

    /* Banner e Card da Loja Amplos no Desktop */
    .store-banner {
        height: 190px;
        border-radius: 0 0 36px 36px;
    }

    .store-profile-wrap {
        width: 94%;
        max-width: 1440px;
        margin: -92px auto 26px;
        padding: 26px 36px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-radius: 28px;
        border: 1px solid var(--border-soft);
        box-shadow: var(--shadow-md);
        display: flex;
        align-items: center;
        text-align: left;
        gap: 28px;
    }

    .store-logo-card {
        width: 120px;
        height: 120px;
        margin: 0;
        flex-shrink: 0;
    }

    .store-identity {
        flex: 1;
        min-width: 0;
    }

    .store-name {
        font-size: 2.15rem;
    }

    .store-slogan {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    .store-badges-row {
        justify-content: flex-start;
    }

    /* Container Principal Amplo no Desktop */
    .catalog-container {
        width: 94%;
        max-width: 1440px;
        padding: 0;
    }

    .welcome-notice {
        padding: 16px 24px;
        margin-bottom: 22px;
    }

    .welcome-notice p {
        font-size: 0.94rem;
    }

    /* Barra de Busca + Categorias lado a lado (abaixo da Top Nav Bar) */
    .sticky-catalog-nav {
        top: 84px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--border-soft);
        border-radius: 22px;
        padding: 14px 22px;
        margin-bottom: 28px;
        box-shadow: var(--shadow-sm);
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .search-bar {
        width: 380px;
        flex-shrink: 0;
        margin-bottom: 0;
        background: var(--bg-page);
    }

    .category-pills-bar {
        flex: 1;
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .cat-pill-btn:hover:not(.active) {
        border-color: var(--berry);
        color: var(--berry-dark);
        background: var(--berry-soft);
    }

    /* Grade de Produtos Inteligente: preenche 100% da largura da linha (auto-fit) */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 22px;
    }

    .product-card {
        padding: 18px;
        border-radius: 22px;
    }

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: #E5B8C7;
    }

    .product-photo-box {
        width: 124px;
        height: 124px;
        border-radius: 16px;
    }

    .product-title {
        font-size: 1.08rem;
    }

    .product-desc {
        font-size: 0.86rem;
    }

    /* Banner Personalizado Horizontal no Desktop */
    .custom-cake-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 28px 36px;
        gap: 24px;
    }

    .custom-cake-banner p {
        margin-bottom: 0;
    }

    /* Aba Meus Pedidos e Perfil no Desktop */
    .orders-list-stack {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
        gap: 20px;
    }

    #client-view-profile {
        max-width: 920px;
        margin: 0 auto;
    }

    /* Barra Flutuante da Sacola no Desktop */
    .sticky-bag-bar {
        bottom: 24px;
        background: transparent;
        padding: 0;
    }

    .bag-bar-inner {
        max-width: 680px;
        padding: 12px 16px 12px 24px;
        border-radius: 999px;
    }

    .btn-checkout-cta {
        border-radius: 999px;
        padding: 12px 24px;
    }

    /* Modais Centralizados estilo Dialog no Desktop */
    .modal-backdrop {
        align-items: center;
        padding: 24px;
    }

    .bottom-sheet {
        border-radius: 26px;
        max-width: 680px;
        max-height: 88vh;
        box-shadow: 0 24px 64px rgba(32, 14, 20, 0.32);
    }

    .detail-sheet {
        max-width: 740px;
    }

    .detail-image-box {
        height: 320px;
    }

    .sheet-handle {
        display: none;
    }
}

/* Banner de Pedido Recém-Confirmado com Botão "Acompanhar no WhatsApp" */
.order-confirmed-banner {
    background: linear-gradient(135deg, #F0FBF4 0%, #E3F6EB 100%);
    border: 1.5px solid #96DFB5;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.confirmed-badge {
    display: inline-block;
    background: #FFFFFF;
    color: #146C43;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid #A8E4C1;
    margin-bottom: 6px;
}

.confirmed-banner-texts h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.18rem;
    color: #114B2F;
    margin-bottom: 4px;
}

.confirmed-banner-texts p {
    font-size: 0.85rem;
    color: #265D41;
    line-height: 1.45;
}

.btn-watch-whatsapp-cta {
    background: var(--whatsapp);
    color: #FFFFFF;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.94rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(31, 168, 85, 0.28);
    transition: var(--transition);
}

.btn-watch-whatsapp-cta:hover {
    background: var(--whatsapp-dark);
}

@media (min-width: 960px) {
    .order-confirmed-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 22px 28px;
    }

    .btn-watch-whatsapp-cta {
        flex-shrink: 0;
        padding: 14px 26px;
    }
}

/* =========================================================
   9. LOGIN GATE (FAVORITOS, MEUS PEDIDOS E PERFIL)
   ========================================================= */
.auth-gate-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    max-width: 480px;
    margin: 12px auto 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.auth-gate-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--berry-soft);
    border: 1px solid #F3C4D5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 12px;
}

.auth-gate-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    color: var(--cocoa);
    margin-bottom: 6px;
}

.auth-gate-card p {
    font-size: 0.86rem;
    color: var(--cocoa-secondary);
    line-height: 1.45;
    margin-bottom: 18px;
}

.auth-gate-form {
    text-align: left;
}

/* =========================================================
   10. MEU PERFIL: CONTA CONECTADA & MÚLTIPLOS ENDEREÇOS
   ========================================================= */
.profile-user-card {
    background: linear-gradient(135deg, #FFFDFB 0%, #FFF4F8 100%);
    border: 1.5px solid #F3C4D5;
}

.profile-user-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--berry);
    color: #FFFFFF;
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(200, 45, 97, 0.25);
}

.profile-user-info {
    flex: 1;
    min-width: 160px;
}

.profile-logged-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: #166844;
    background: #E8F8F0;
    border: 1px solid #A8E2C5;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: 4px;
}

.profile-user-name {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    color: var(--cocoa);
    line-height: 1.2;
}

.profile-user-phone {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--cocoa-secondary);
    margin-top: 2px;
}

.profile-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action-pill {
    border: 1.5px solid var(--border-strong);
    background: #FFFFFF;
    color: var(--cocoa);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-action-pill:hover {
    border-color: var(--berry);
    color: var(--berry-dark);
}

.btn-action-pill.primary {
    background: var(--berry-soft);
    border-color: #F3C4D5;
    color: var(--berry-dark);
}

.btn-action-pill.primary:hover {
    background: var(--berry);
    border-color: var(--berry);
    color: #FFFFFF;
}

.btn-action-pill.danger {
    background: #FFF2F4;
    border-color: #F7C6CB;
    color: #C82333;
}

.profile-edit-name-box {
    padding-top: 12px;
    border-top: 1px dashed var(--border-soft);
}

.profile-edit-name-box label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cocoa);
    margin-bottom: 6px;
}

.profile-edit-name-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-edit-name-row .input-sweet {
    flex: 1;
    min-width: 180px;
}

.btn-sm-sweet {
    padding: 9px 16px;
    font-size: 0.84rem;
    border-radius: var(--radius-pill);
}

.btn-secondary-sweet {
    border: 1.5px solid var(--border-strong);
    background: #FFFFFF;
    color: var(--cocoa);
    font-family: inherit;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
}

/* Lista de Endereços Cadastrados (Perfil & Checkout) */
.saved-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-address-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-soft);
    border-radius: 16px;
    padding: 15px 16px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.saved-address-card:hover {
    border-color: #E5B8C7;
    background: #FFFBFD;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.saved-address-card.selected {
    border-color: var(--berry);
    background: linear-gradient(135deg, #FFF9FB 0%, #FFF3F7 100%);
    box-shadow: 0 6px 18px rgba(200, 45, 97, 0.11);
}

.saved-address-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #D5B8C2;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: var(--transition);
}

.saved-address-card.selected .saved-address-radio {
    border-color: var(--berry);
    background: var(--berry);
    box-shadow: 0 2px 6px rgba(200, 45, 97, 0.3);
}

.saved-address-card.selected .saved-address-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFFFFF;
}

.saved-address-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.saved-address-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.saved-address-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--cocoa);
    line-height: 1.2;
}

.saved-address-default-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--berry);
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.saved-address-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-addr-mini {
    border: 1px solid var(--border-strong);
    background: #FFFFFF;
    color: var(--cocoa-secondary);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.btn-addr-mini:hover {
    border-color: var(--berry);
    color: var(--berry-dark);
    background: var(--berry-soft);
}

.btn-addr-mini.danger {
    color: #C82333;
    border-color: #F5C2C7;
    background: #FFF8F8;
}

.btn-addr-mini.danger:hover {
    background: #FDECEE;
    border-color: #E39AA3;
}

.saved-address-lines {
    font-size: 0.85rem;
    color: var(--cocoa-secondary);
    line-height: 1.45;
    margin: 0;
}

.saved-address-lines strong {
    color: var(--cocoa);
    font-weight: 800;
    font-size: 0.9rem;
}

.saved-address-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.saved-address-fee-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    font-size: 0.74rem;
    font-weight: 800;
    background: #F3FAF6;
    color: #166844;
    border: 1px solid #BCE5D0;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.address-editor-card {
    background: #FFFDFB;
    border: 1.5px dashed #E5B8C7;
    border-radius: var(--radius-md);
    padding: 16px;
}

.address-label-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.addr-tag-chip {
    border: 1px solid var(--border-strong);
    background: #FFFFFF;
    color: var(--cocoa-secondary);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
}

.addr-tag-chip.active {
    background: var(--berry-soft);
    border-color: var(--berry);
    color: var(--berry-dark);
}

.address-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.save-address-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #FFF8FA;
    border: 1px solid #F3C4D5;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.save-address-check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--berry);
    flex-shrink: 0;
}

.save-address-check-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.save-address-check-texts strong {
    font-size: 0.84rem;
    color: var(--cocoa);
}

.save-address-check-texts span {
    font-size: 0.75rem;
    color: var(--cocoa-secondary);
}

.saved-addr-heading {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--cocoa);
}

/* =========================================================
   11. CHECKOUT PASSO A PASSO (WIZARD)
   ========================================================= */
.checkout-step-kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--berry);
    margin-bottom: 2px;
}

.checkout-stepper-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #FFF9FB;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
    scrollbar-width: none;
}

.checkout-stepper-bar::-webkit-scrollbar {
    display: none;
}

.checkout-step-pill,
.stepper-dot-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cocoa-muted);
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.checkout-step-pill .step-pill-num,
.stepper-dot-item .step-num-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #EFE4E8;
    color: var(--cocoa-secondary);
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout-step-pill.active,
.stepper-dot-item.active {
    background: var(--berry-soft);
    color: var(--berry-dark);
    border: 1px solid #F3C4D5;
}

.checkout-step-pill.active .step-pill-num,
.stepper-dot-item.active .step-num-circle {
    background: var(--berry);
    color: #FFFFFF;
}

.checkout-step-pill.done,
.stepper-dot-item.done {
    color: #166844;
    background: #F2FAF6;
}

.checkout-step-pill.done .step-pill-num,
.stepper-dot-item.done .step-num-circle {
    background: #1B875D;
    color: #FFFFFF;
}

.checkout-wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.btn-wizard-back {
    border: 1.5px solid var(--border-strong);
    background: #FFFFFF;
    color: var(--cocoa);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 13px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-wizard-back:hover {
    border-color: var(--berry);
    color: var(--berry-dark);
}

.btn-wizard-next {
    flex: 1;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.96rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(200, 45, 97, 0.25);
}

/* Cards da Etapa de Revisão Geral */
.checkout-review-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-block-card {
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 13px 15px;
}

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

.review-block-head strong {
    font-size: 0.85rem;
    color: var(--cocoa);
}

.btn-review-edit {
    border: none;
    background: var(--berry-soft);
    color: var(--berry-dark);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    cursor: pointer;
}

.review-block-body {
    font-size: 0.83rem;
    color: var(--cocoa-secondary);
    line-height: 1.45;
}

/* =========================================================
   BOTAO VOLTAR ESTILIZADO (PILL COM SETA CIRCULAR)
   ========================================================= */
.btn-back-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 8px;
    background: #FFF4F8;
    border: 1.5px solid #F3C4D5;
    border-radius: var(--radius-pill);
    color: var(--berry);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(188, 59, 107, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-decoration: none;
    margin-bottom: 4px;
}

.btn-back-pill:hover {
    background: #FCE4EC;
    border-color: var(--berry);
    color: var(--berry-dark);
    box-shadow: 0 4px 12px rgba(188, 59, 107, 0.15);
    transform: translateX(-3px);
}

.btn-back-pill:active {
    transform: scale(0.97);
}

.btn-back-pill-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--berry);
    box-shadow: 0 2px 4px rgba(188, 59, 107, 0.12);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-back-pill:hover .btn-back-pill-arrow {
    background: var(--berry);
    color: #FFFFFF;
    transform: translateX(-2px);
}

.btn-back-pill-text {
    line-height: 1.2;
}

/* =========================================================
   CAMPO DE TEXTO AUTO-EXPANSÍVEL (AUTO-GROW)
   ========================================================= */
textarea.auto-grow-input {
    resize: none !important;
    overflow-y: hidden !important;
    min-height: 74px;
    transition: height 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.45;
}

/* =========================================================
   SELETOR MINIMALISTA DE TURNO COM SETAS INTERNAS
   ========================================================= */
.visually-hidden-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.shift-inline-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 4px 6px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.shift-inline-control:hover,
.shift-inline-control:focus-within {
    border-color: var(--berry);
    box-shadow: 0 0 0 3px rgba(200, 45, 97, 0.12);
}

.shift-inline-arrow {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--berry);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    user-select: none;
}

.shift-inline-arrow:hover {
    background: var(--berry-soft);
    color: var(--berry-dark);
    transform: scale(1.1);
}

.shift-inline-arrow:active {
    transform: scale(0.92);
}

.shift-inline-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.shift-inline-content:hover {
    background: #FFF8FA;
}

.shift-inline-content:focus-visible {
    outline: none;
    background: #FFF0F5;
}

.shift-inline-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.shift-inline-text {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--cocoa);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

@keyframes shiftFadeIn {
    0% {
        opacity: 0.35;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.shift-inline-content.animating {
    animation: shiftFadeIn 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================================
   SINAL DE ENCOMENDA NO CHECKOUT & MEUS PEDIDOS
   ========================================================= */
.deposit-checkout-callout {
    background: #FFF8E1;
    border: 1.5px solid #FFE082;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 14px;
}

.deposit-callout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 800;
    color: #8D5B00;
    font-size: 0.92rem;
}

.deposit-callout-val {
    font-size: 1.05rem;
    color: var(--berry-dark);
}

.deposit-callout-desc {
    font-size: 0.8rem;
    color: #6D4C41;
    margin-top: 5px;
    line-height: 1.4;
}

.receipt-line.deposit-highlight {
    background: #FFF9C4;
    padding: 6px 10px;
    border-radius: 8px;
    margin-top: 4px;
    border: 1px dashed #FBC02D;
}

.receipt-line.deposit-remaining {
    padding: 4px 10px;
    font-size: 0.86rem;
    color: #6D4C41;
}

/* Badge de Sinal nos Pedidos do Cliente */
.order-deposit-track-box {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.order-deposit-track-box.pending {
    background: #FFF8E7;
    border: 1px solid #FFE082;
    color: #8D5B00;
}

.order-deposit-track-box.deposit-paid {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    color: #1B5E20;
}

.order-deposit-track-box.fully-paid {
    background: #E0F2F1;
    border: 1px solid #80CBC4;
    color: #004D40;
}

.btn-track-receipt {
    border: none;
    background: #fff;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--berry-dark);
    border: 1px solid var(--berry-soft);
}

.btn-track-receipt:hover {
    background: var(--berry);
    color: #fff;
}

/* Modal de Comprovante do Cliente */
.receipt-sheet {
    max-width: 650px;
}

.receipt-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cream-dark);
}

.receipt-sheet-body {
    max-height: 72vh;
    overflow-y: auto;
    padding: 16px;
    background: #fdfbfb;
}

.receipt-sheet-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--cream-dark);
}

.receipt-printable-container {
    background: #fff;
    border: 1px solid #e0d6da;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #e8d8de;
}

.receipt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.receipt-brand-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.receipt-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wine-dark, #2b0e1a);
    margin: 0 0 4px 0;
}

.receipt-brand-meta {
    font-size: 0.8rem;
    color: #665259;
    line-height: 1.4;
}

.receipt-status-stamp {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.receipt-status-stamp.stamp-deposit {
    background: #E8F5E9;
    color: #1B5E20;
    border: 1.5px solid #2E7D32;
}

.receipt-status-stamp.stamp-full {
    background: #E0F2F1;
    color: #004D40;
    border: 1.5px solid #00695C;
}

.receipt-status-stamp.stamp-pending {
    background: #FFF8E7;
    color: #8D5B00;
    border: 1.5px solid #FFB300;
}

.receipt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
    font-size: 0.84rem;
}

@media (max-width: 580px) {
    .receipt-meta-grid {
        grid-template-columns: 1fr;
    }
}

.receipt-meta-item {
    background: #fdf7f9;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f3e5eb;
}

.receipt-meta-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8c737d;
    margin-bottom: 2px;
}

.receipt-items-list {
    margin: 16px 0;
    border: 1px solid #ede1e7;
    border-radius: 10px;
    overflow: hidden;
}

.receipt-items-header {
    background: #fbf5f7;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6d5560;
    display: flex;
    justify-content: space-between;
}

.receipt-item-row {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-top: 1px solid #f3e8ee;
    color: #33242a;
}

.receipt-financial-box {
    background: #faf7f8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 16px;
    border: 1px solid #ebdbe2;
}

.receipt-financial-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: #554149;
}

.receipt-financial-row.total-row {
    font-size: 1rem;
    font-weight: 800;
    color: #2b0e1a;
    padding-top: 8px;
    margin-top: 6px;
    border-top: 1px dashed #d9c3cc;
}

.receipt-paid-highlight {
    background: #E8F5E9;
    border: 1.5px solid #81C784;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-paid-highlight strong {
    font-size: 1.15rem;
    color: #1B5E20;
}

.receipt-remaining-highlight {
    background: #FFF9C4;
    border: 1px solid #FFF176;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #6D4C41;
}

.receipt-footer-notes {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed #e8d8de;
    text-align: center;
    font-size: 0.76rem;
    color: #8c737d;
}

/* @media print para impressão / PDF limpo no Cliente */
@media print {
    body, html {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body * {
        visibility: hidden !important;
    }

    #modal-client-receipt,
    #modal-client-receipt .bottom-sheet,
    #modal-client-receipt .sheet-body,
    #client-receipt-printable-area,
    #client-receipt-printable-area * {
        visibility: visible !important;
    }

    #modal-client-receipt {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #modal-client-receipt .bottom-sheet {
        position: static !important;
        box-shadow: none !important;
        max-width: 100% !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #modal-client-receipt .sheet-handle,
    #modal-client-receipt .receipt-sheet-header,
    #modal-client-receipt .receipt-sheet-footer {
        display: none !important;
    }

    #client-receipt-printable-area {
        border: 2px solid #222 !important;
        box-shadow: none !important;
        margin: 0 auto !important;
        max-width: 680px !important;
        padding: 24px !important;
    }
}

/* =========================================================
   HORÁRIOS DE FUNCIONAMENTO (CLIENTE)
   ========================================================= */
.pill-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #EAD8DF;
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cocoa);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(45, 24, 30, 0.04);
    transition: var(--transition);
}

.pill-hours:hover,
.pill-hours:active {
    background: #FAF3F6;
    border-color: var(--berry);
    color: var(--berry-dark);
}

.hours-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.hours-dot.open {
    background: #2E7D32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
    animation: pulseOpen 2s infinite ease-in-out;
}

.hours-dot.closed {
    background: #C62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

@keyframes pulseOpen {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.hours-sheet {
    max-width: 500px;
    margin: 0 auto;
}

.hours-status-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.hours-branch-card {
    background: #FAF4F6;
    border: 1px solid #EBD8DF;
    border-radius: 12px;
    padding: 10px 12px;
}

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

.hours-branch-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cocoa-dark);
}

.hours-branch-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.hours-branch-pill.open {
    background: #E8F5E9;
    color: #1B5E20;
}

.hours-branch-pill.closed {
    background: #FFEBEE;
    color: #C62828;
}

.hours-branch-desc {
    font-size: 0.76rem;
    color: var(--cocoa-secondary);
    margin: 0;
    line-height: 1.3;
}

.hours-week-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hours-week-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--cocoa);
    background: #fff;
    border: 1px solid #f2e8ec;
}

.hours-week-row.is-today {
    background: #FFF0F4;
    border-color: #F8B4C8;
    font-weight: 700;
    color: var(--berry-dark);
}

.hours-week-row.is-closed {
    color: var(--cocoa-muted);
}







