@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --bg: #F8F9FA;
    --surface: #FFFFFF;
    --text-primary: #1d1d1f;
    --text-secondary: #717171;
    --accent: #5C4033;
    --accent-teal: #8B5A2B;
    --price-green: #059669;
    --old-price: #999999;
    --gold: #FFB800;
    --border: #E5E7EB;
    --radius: 12px;
    --radius-lg: 24px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: url('../../assets/img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 15px 100px 15px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes avatarHeartbeat {

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

    15% {
        transform: scale(1.04);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.04);
    }

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

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #F5ECE3;
    animation: avatarHeartbeat 3s infinite ease-in-out !important;
}

.avatar-wrapper {
    position: relative;
    margin-bottom: 20px;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-teal));
    border-radius: 50%;
    transition: none !important;
}

.avatar-wrapper:hover,
.avatar-wrapper:active {
    transform: none !important;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #1877F2;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.profile-logo-img {
    max-width: 200px;
    max-height: 70px;
    object-fit: contain;
    margin: 5px auto 10px;
    display: block;
}

.profile-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    max-width: 100%;
    text-align: center;
}

.profile-meta i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.bio {
    font-size: 10px;
    color: var(--text-secondary);
    max-width: 90%;
    line-height: 1.6;
}

/* User Header */
.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-bottom: 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1.5px solid #FFFFFF;
}

.user-welcome {
    font-size: 0.65rem;
    color: #3E2416;
    font-weight: 700;
}

.user-actions-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-icon {
    font-size: 1.15rem;
    color: #5C4033;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.action-icon:hover {
    color: #8C6A53;
    transform: translateY(-2px);
}

.action-icon.logout {
    color: #E53E3E;
}

.action-icon.logout:hover {
    color: #C53030;
}

.action-icon.login {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    gap: 6px;
    background: #5C4033;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.2);
}

.action-icon.login:hover {
    color: #fff;
    background: #4A3022;
    transform: translateY(-2px);
}

/* Orders Page Premium Redesign */
.page-orders {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: #F8F9FA;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px 20px 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.page-orders.active {
    display: flex;
    flex-direction: column;
    animation: ordersSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ordersSlideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }

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

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: transparent;
    padding: 4px 0;
}

.btn-back-orders {
    background: #ffffff;
    border: 1px solid #E5E5EA;
    color: #1d1d1f;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-back-orders:hover {
    background: #f5f5f7;
    transform: scale(1.05);
}

.btn-back-orders:active {
    transform: scale(0.95);
}

.orders-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 0;
}

.btn-help-orders {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: all 0.2s ease;
}

.btn-help-orders:hover {
    background: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* Card Perfil Cliente */
.client-profile-card {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent) 100%);
    border-radius: 20px;
    padding: 20px;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(88, 101, 216, 0.25);
    position: relative;
    overflow: hidden;
}

.client-profile-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.client-profile-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.client-profile-phone {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 12px;
    font-weight: 500;
}

.client-profile-address {
    font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

/* Cards dos Pedidos Anteriores */
.order-card-customer {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #E8ECFF;
    box-shadow: 0 4px 15px rgba(88, 101, 216, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card-customer:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(88, 101, 216, 0.12);
    transform: translateY(-2px);
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-number {
    font-weight: 700;
    font-size: 0.8rem;
    color: #8e8e93;
}

.order-status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pendente {
    background: #FFF9DB;
    color: #F08C00;
    border: 1px solid rgba(240, 140, 0, 0.15);
}

.status-preparando {
    background: #E7F5FF;
    color: #228BE6;
    border: 1px solid rgba(34, 139, 230, 0.15);
}

.status-entregue {
    background: #EBFBEE;
    color: #40C057;
    border: 1px solid rgba(64, 192, 87, 0.15);
}

.order-items-preview {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1d1d1f;
    line-height: 1.3;
}

.order-date-text {
    font-size: 0.72rem;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #F5F5F7;
}

.order-payment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-payment-label {
    font-size: 0.62rem;
    color: #86868b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.order-payment-value {
    font-size: 0.78rem;
    color: #1d1d1f;
    font-weight: 700;
}

.order-price-val {
    font-weight: 800;
    color: var(--price-green);
    font-size: 1.1rem;
}

.order-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.order-btn-details {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s;
}

.order-btn-details:hover {
    color: #4A3022;
}

.order-btn-support {
    background: rgba(37, 211, 102, 0.08);
    color: #20ba5a;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.order-btn-support:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #1aa04c;
}

/* Estado Vazio */
.empty-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #E8ECFF;
    box-shadow: 0 4px 15px rgba(88, 101, 216, 0.02);
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(88, 101, 216, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.empty-orders p {
    color: #86868b;
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.btn-shop-back {
    background: linear-gradient(135deg, var(--accent) 0%, #4A3022 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(88, 101, 216, 0.2);
    transition: all 0.2s ease;
}

.btn-shop-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(88, 101, 216, 0.3);
}

/* Seção de Suporte e Ajuda */
.support-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #E8ECFF;
    box-shadow: 0 4px 15px rgba(88, 101, 216, 0.02);
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.support-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.support-section-desc {
    font-size: 0.78rem;
    color: #86868b;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

.btn-whatsapp-pill {
    background: #25D366;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: all 0.2s ease;
}

.btn-whatsapp-pill:hover {
    background: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* Missing Info Prompt */
.missing-info-box {
    background: #fff;
    border: 1px solid #ff3b30;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
}

/* Product Card - Zerex Style Adaptado para Acarolar */
.products-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px 15px;
    align-items: stretch;
}

/* Product Card - Zerex Style Adaptado para Acarolar */
.product-card {
    background: transparent !important;
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

/* Moldura Branca da Imagem (Padrão para a maioria dos Pudins - Lado a Lado) */
.product-img-container {
    background: #fff;
    border-radius: 24px;
    padding: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    aspect-ratio: 1;
    width: 100%;
    /* Corta e garante que fiquem quadrados iguais */
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

/* Destaque (Apenas o Primeiro Gelato Pudim fica Largo em 2 Colunas) */
#section-gelato_pudim .products-grid>.product-card:first-child {
    grid-column: span 2;
    margin-bottom: 25px;
    /* Mais espaço para separar o destaque do restante */
}

#section-gelato_pudim .products-grid>.product-card:first-child .product-img-container {
    aspect-ratio: 16 / 11;
    display: flex;
    width: 100%;
}

#section-gelato_pudim .products-grid>.product-card:first-child .product-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-teal);
    color: #fff;
    padding: 0px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    z-index: 5;
}

/* Product Info Vazado */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    padding-left: 4px;
}

.stars {
    color: var(--gold);
    font-size: 0.85rem;
}

.rating-val {
    font-weight: 800;
    font-size: 0.85rem;
    margin-left: 2px;
    color: #1d1d1f;
}

.rating-count {
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #1d1d1f;
    min-height: 3.9em;
    padding-left: 4px;
    letter-spacing: -0.01em;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.price-current {
    color: var(--price-green);
    font-size: 1.3rem;
    font-weight: 800;
}

.price-old {
    color: var(--old-price);
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Stock Bar */
.stock-section {
    margin-bottom: 20px;
}

.stock-bar-bg {
    height: 6px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.stock-bar-fill {
    height: 100%;
    background: #F43F5E;
    /* Red/Pink */
    border-radius: 10px;
}

.stock-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stock-labels b {
    color: #333;
}

/* Quantity Selector */
.qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 4px;
}

.qty-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f1f3f5;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-val {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    min-width: 30px;
    text-align: center;
}

/* Add to Cart Button */
.buy-button {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
}

.buy-button:hover {
    background: #4A3022;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 216, 0.3);
}


.cart-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cart-drawer.open {
    display: flex;
}

.cart-panel {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    /* iOS Safari fix */
    overflow: hidden;
    /* Apenas para border-radius */
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 60px rgba(88, 101, 216, 0.15), -5px 0 30px rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(88, 101, 216, 0.2);
    animation: panelSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-header {
    flex-shrink: 0;
    /* Nunca encolhe */
}

#checkout-section {
    flex: 1 1 0;
    /* Cresce mas parte de zero */
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

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

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

.cart-header {
    padding: 24px 20px;
    border-bottom: 1px solid #E8ECFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(88, 101, 216, 0.05) 0%, rgba(30, 168, 150, 0.02) 100%);
}

.cart-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1d1d1f;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #86868b;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s;
}

.cart-header button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.cart-items {
    flex: 1 1 0;
    /* Parte de zero, cresce para preencher */
    padding: 16px 20px;
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 216, 0.3);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 101, 216, 0.5);
}

.cart-footer {
    flex-shrink: 0;
    /* NUNCA encolhe — sempre visível */
    flex-grow: 0;
    /* Nunca cresce além do necessário */
    padding: 16px 20px;
    border-top: 1px solid #E8ECFF;
    background: #FAFBFF;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFF 100%);
    border: 1px solid #E8ECFF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item:hover {
    border-color: var(--accent);
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(88, 101, 216, 0.1);
    transform: translateY(-2px);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
    background: #F5F5F7;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.3;
}

.cart-item-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-price {
    font-weight: 800;
    font-size: 1rem;
    color: var(--price-green);
}

/* Checkout Apple Style */
#checkout-summary-view {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFF 100%);
    border-radius: 12px;
    padding: 10px;
    animation: fadeIn 0.4s ease-out;
    border: 1px solid #E8ECFF;
    box-shadow: 0 4px 12px rgba(88, 101, 216, 0.06);
}

#summary-display {
    padding: 0;
}

.summary-item {
    padding: 4px 0;
}

#checkout-form-view {
    animation: slideUp 0.3s ease-out;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFF 100%);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #E8ECFF;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

#payment-method {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23007AFF%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 15px;
}

/* Form Groups compactos */
/* ═══════════════════════════════════════════════════════════ */
/* FORM CARD — Estilo Moderno Premium (Light + Dark Mode)       */
/* ═══════════════════════════════════════════════════════════ */

/* Card container do formulário de checkout */
.checkout-form-card {
    background: #FFFFFF;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 20px;
    padding: 18px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.checkout-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-teal) 100%);
    border-radius: 20px 20px 0 0;
    opacity: 0.7;
}

.checkout-form-card-title {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-form-card-title i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #8e8e93;
    margin-bottom: 4px;
    letter-spacing: 0.09em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group label i {
    font-size: 0.55rem;
    opacity: 0.7;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    outline: none;
    background: #FAFAFA;
    color: #1d1d1f;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-main);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #C7C7CC;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(88, 101, 216, 0.12), 0 2px 8px rgba(88, 101, 216, 0.08);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #B0B0BA;
    font-weight: 400;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' 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 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Separador elegante dentro do card */
.form-card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E5E7EB 20%, #E5E7EB 80%, transparent 100%);
    margin: 12px 0;
}

/* ── FORÇA TEMA CLARO nos form-cards do carrinho ── */
/* O carrinho sempre exibe em modo claro independente do OS */
.checkout-form-card {
    background: #FFFFFF !important;
    border-color: rgba(229, 231, 235, 0.8) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    color-scheme: light;
}

.checkout-form-card .form-group label {
    color: #8e8e93 !important;
}

.checkout-form-card .form-group input,
.checkout-form-card .form-group select {
    background: #FAFAFA !important;
    border-color: #E5E7EB !important;
    color: #1d1d1f !important;
    color-scheme: light;
    -webkit-text-fill-color: #1d1d1f !important;
}

.checkout-form-card .form-group input:hover,
.checkout-form-card .form-group select:hover {
    border-color: #C7C7CC !important;
    background: #FFFFFF !important;
}

.checkout-form-card .form-group input:focus,
.checkout-form-card .form-group select:focus {
    background: #FFFFFF !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(88, 101, 216, 0.12), 0 2px 8px rgba(88, 101, 216, 0.08) !important;
    color: #1d1d1f !important;
}

.checkout-form-card .form-group input::placeholder {
    color: #B0B0BA !important;
}

.checkout-form-card-title {
    color: var(--accent) !important;
}

/* Select option branco — garante texto legível no dropdown nativo */
.form-group select option {
    background: #FFFFFF;
    color: #1d1d1f;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, #4A3022 100%);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 32px rgba(88, 101, 216, 0.35);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(88, 101, 216, 0.45);
    background: linear-gradient(135deg, #4A3022 0%, #3E2416 100%);
}

.checkout-btn:active {
    transform: scale(0.96) translateY(-1px);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #F9FBFF 0%, #FFFFFF 100%);
    border: 1.2px solid #E8ECFF;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(88, 101, 216, 0.06);
}

.cart-total span:first-child {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cart-total span:last-child {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--price-green);
}

.buy-button.btn-checkout {
    background: #22c55e !important;
    color: white;
    font-size: 0.85rem;
    padding: 10px 5px;
}


/* Heart Wishlist Icon */
.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wishlist-icon i {
    font-size: 1.5rem;
    transition: all 0.3s;
}

.wishlist-icon.active {
    transform: scale(1.2);
}

.wishlist-icon.active i {
    color: #ff477e;
    /* Rosa vibrante */
    filter: drop-shadow(0 0 8px rgba(255, 71, 126, 0.5));
    animation: heartPop 0.3s ease-out;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

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

/* Heart Particles Animation */
.heart-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    color: #ff477e;
    font-size: 1.5rem;
    animation: floatHeart 1s ease-out forwards;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(0.5) rotate(20deg);
        opacity: 0;
    }
}


/* Stock / Availability */
.stock-info {
    margin: 12px 0;
    padding: 0 4px;
}

.stock-info > div:first-child {
    flex-wrap: wrap !important;
    gap: 4px;
}

.stock-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.stock-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--price-green), #4ade80);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
}

.qty-btn {
    border: none;
    background: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
}

.qty-val {
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--accent) !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.3);
    -webkit-appearance: none;
}

.add-to-cart-btn:hover {
    background: #4A3022 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(92, 64, 51, 0.4);
}

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

.qty-selector {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    border-radius: 12px;
    padding: 2px;
    height: 46px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qty-btn {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #1d1d1f;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.qty-btn:active {
    background: rgba(0, 0, 0, 0.05);
}

/* ====== CLUBE DE FIDELIDADE ====== */
.loyalty-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.loyalty-bar {
    background: #eee;
    border-radius: 10px;
    height: 8px;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
}

.loyalty-fill {
    background: linear-gradient(90deg, var(--accent) 0%, #A98770 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .container {
        padding: 15px 12px 100px 12px;
    }
    .products-grid {
        gap: 20px 10px;
    }
    .flow-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    .flow-btn .btn-text {
        transform: translateX(-6px);
    }
    .flow-btn:hover .btn-text {
        transform: translateX(6px);
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* TOAST PREMIUM — Sistema de Alertas Modernos Glassmorphic     */
/* ═══════════════════════════════════════════════════════════ */

#toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: calc(100% - 40px);
    max-width: 400px;
}

.toast-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #8e8e93;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.toast-item.toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-item.toast-hiding {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.6, 1);
}

/* Tipo: sucesso (ok) */
.toast-item.ok {
    border-left-color: #22c55e;
}

.toast-item.ok .toast-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* Tipo: informação (info / processando) */
.toast-item.info {
    border-left-color: var(--accent);
}

.toast-item.info .toast-icon {
    color: var(--accent);
    background: rgba(88, 101, 216, 0.1);
}

/* Tipo: erro (err) */
.toast-item.err {
    border-left-color: #ef4444;
}

.toast-item.err .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    background: rgba(142, 142, 147, 0.1);
    color: #8e8e93;
    transition: all 0.3s ease;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-sub {
    font-size: 0.64rem;
    color: #8e8e93;
    margin-top: 2px;
    font-weight: 500;
}

/* Dark mode desativado para manter estética do menu claro */

.checkout-summary-card {
    background: linear-gradient(135deg, #F9FBFF 0%, #FFFFFF 100%);
    border: 1px solid #E8ECFF;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(88, 101, 216, 0.08);
    transition: all 0.3s ease;
}

.checkout-summary-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(88, 101, 216, 0.12);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E8ECFF;
    gap: 12px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row .label i {
    color: var(--accent);
    width: 16px;
    font-size: 0.9rem;
}

.summary-row .value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1d1d1f;
    text-align: right;
}

.section-title {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8e8e93 !important;
    margin-bottom: 6px !important;
    margin-top: 10px !important;
    padding: 0 4px;
}

.section-title:first-child {
    margin-top: 0 !important;
}

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

/* Apple Segmented Control - High Contrast */
.delivery-type-options {
    display: flex;
    gap: 4px;
    background: #F5F5F7;
    padding: 2px;
    border-radius: 8px;
    margin: 4px 0 8px 0;
    border: 1px solid #E5E5EA;
}

.delivery-opt {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px 2px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #8e8e93;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.delivery-opt i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.delivery-opt:hover {
    background: rgba(88, 101, 216, 0.05);
    color: #1d1d1f;
}

.delivery-opt.active {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFF 100%);
    color: #1d1d1f;
    box-shadow: 0 4px 12px rgba(88, 101, 216, 0.15);
    border: 1px solid var(--accent);
}

.delivery-opt.active i {
    color: var(--accent-teal);
    opacity: 1;
}

.delivery-opt.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent;
    color: #c7c7cc;
}

.delivery-opt.disabled i {
    color: #c7c7cc;
}

#schedule-fields {
    padding: 6px 8px;
    background: linear-gradient(135deg, #F9FBFF 0%, #FFFFFF 100%);
    border-radius: 8px;
    margin-top: 4px;
    border: 1px solid #E8ECFF;
}

/* === GLASS CONTAINER DO CLIENTE === */
.glass-container {
  position: relative;
  display: flex;
  background: transparent;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 
    0px 4px 16px rgba(0, 0, 0, 0.1), 
    0px 8px 24px rgba(0, 0, 0, 0.1),
    0px 16px 56px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.glass-filter {
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(10px) saturate(1.5);
  filter: url(#lg-dist);
  isolation: isolate;
}

.glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35); /* Dock escuro igual o print 2 */
}

.glass-specular {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: 
    0 0 2px 1px rgba(255, 255, 255, 0.9) inset,
    0 0 10px 4px rgba(255, 255, 255, 0.6) inset,
    0px 4px 16px rgba(255, 255, 255, 0.4) inset,
    0px 8px 24px rgba(255, 255, 255, 0.3) inset,
    0px 16px 56px rgba(255, 255, 255, 0.2) inset;
  pointer-events: none;
}

/* Cart Addons - Upsell Section */
.cart-addons {
    margin-top: 25px;
    padding: 20px 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.cart-addons h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #3E2723;
    padding: 0 5px;
}

.addons-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.addons-scroller::-webkit-scrollbar {
    display: none;
}

.addon-card {
    min-width: 130px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.addon-card:active {
    transform: scale(0.95);
}

.addon-card.added {
    border-color: var(--accent-teal);
    background: #fff;
    box-shadow: 0 4px 15px rgba(30, 168, 150, 0.15);
}

.addon-card img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 12px;
}

.addon-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.addon-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    height: 1.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.addon-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--price-green);
}

.addon-action {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #666;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Order Details Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-modal.open {
    display: flex;
}

.order-modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f5f5f7;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
}

.order-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.order-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #86868b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.order-modal-close:hover {
    color: #1d1d1f;
    background: #f5f5f7;
    border-radius: 50%;
}

.order-modal-body {
    padding: 16px;
}

.order-detail-section {
    margin-bottom: 16px;
}

.order-detail-section:last-child {
    margin-bottom: 0;
}

.order-detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8e8e93;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.order-detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.4;
}

.order-items-list {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e5e5ea;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-name {
    font-weight: 600;
    color: #1d1d1f;
    flex: 1;
    font-size: 0.9rem;
}

.order-item-qty {
    font-size: 0.9rem;
    color: #86868b;
    margin-right: 12px;
}

.order-item-price {
    font-weight: 600;
    color: var(--accent);
    min-width: 70px;
    text-align: right;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
}

.order-summary-row.total {
    border-top: 2px solid #f5f5f7;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: #1d1d1f;
}

.order-summary-row.total .value {
    color: var(--accent);
    font-size: 1.2rem;
}

.addon-card.added .addon-action {
    background: var(--accent-teal);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════ */
/* PAYMENT METHODS — Estilo Moderno e Limpo                      */
/* ═══════════════════════════════════════════════════════════ */

.payment-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border: 1px solid #E5E5EA;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFF 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-method-item:hover {
    border-color: #D5D5DC;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.payment-method-item:has(input:checked) {
    border-color: var(--accent);
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F8FF 100%);
    box-shadow: 0 6px 20px rgba(88, 101, 216, 0.1);
}

.payment-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.payment-method-item input[type="radio"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    cursor: pointer;
    accent-color: var(--accent);
    transition: all 0.2s;
}

.payment-label-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.payment-icon-right {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #1d1d1f;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════ */
/* PIX MODAL — Estilo Moderno e Premium                         */
/* ═══════════════════════════════════════════════════════════ */

.pix-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    /* Superior ao drawer do carrinho (2000) */
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    animation: pixFadeIn 0.3s ease-out forwards;
}

.pix-modal.active {
    display: flex;
}

@keyframes pixFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pix-modal-content {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FBFF 100%);
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(88, 101, 216, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: pixModalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pixModalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

.pix-success-icon {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 16px;
    animation: pixScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pixScaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#pix-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

#pix-modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.pix-qr-container {
    background: #FFFFFF;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(88, 101, 216, 0.08);
    border: 1px solid #E5E7EB;
    margin: 0 auto 16px auto;
    width: 174px;
    height: 174px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pix-qr-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
}

.pix-instruction {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.pix-code-container {
    display: flex;
    width: 100%;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

#pix-code-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 12px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #4B5563;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#btn-copy-pix {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    padding: 0 16px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s, transform 0.1s;
}

#btn-copy-pix:hover {
    background: #4A3022;
}

#btn-copy-pix:active {
    transform: scale(0.96);
}

.pix-btn-close {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, #4A3022 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(88, 101, 216, 0.25);
    transition: all 0.3s ease;
}

.pix-btn-close:hover {
    box-shadow: 0 8px 20px rgba(88, 101, 216, 0.35);
    transform: translateY(-1px);
}

.pix-btn-close:active {
    transform: translateY(1px);
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY TABS (GOURMET) - Pílulas Navegáveis
   ═══════════════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

.gourmet-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 4px 4px 10px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-bottom: 1px solid transparent;
}

.gourmet-tabs::-webkit-scrollbar {
    display: none;
}

.gourmet-tab-btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #E5E7EB;
    background: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.gourmet-tab-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.gourmet-tab-btn.active {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(88, 101, 216, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ═══════════════════════════════════════════════════════════
   BADGE NOVIDADE (GOURMET)
   ═══════════════════════════════════════════════════════════ */
.gourmet-badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFB800, #F59E0B);
    color: #fff;
    padding: 0px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    gap: 4px;
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ═══════════════════════════════════════════════════════════
   CHIP DE LINHA DE PRODUTO (GOURMET)
   ═══════════════════════════════════════════════════════════ */
.gourmet-product-line {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    margin-left: 4px;
}

.gourmet-product-line.classica {
    background: #E6D5B8;
    color: #5C4033;
}

.gourmet-product-line.bistro {
    background: #D9C3A6;
    color: #4A3022;
}

.gourmet-product-line.memorias {
    background: #CBB093;
    color: #3E2416;
}

.gourmet-product-line.especiais {
    background: #8C6A53;
    color: #FFFFFF;
}

/* Margem para alinhar o preço */
.price-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 15px;
    padding-left: 4px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   MENU INFERIOR (BOTTOM NAV)
   ═══════════════════════════════════════════════════════════ */
.bottom-menu {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 15px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
    z-index: 1000;
    border-radius: 60px;
    width: calc(100% - 30px);
    max-width: 380px;
}

/* Efeito Liquid Glass / Holográfico */
.bottom-menu::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    z-index: -1;
    border-radius: 65px;
    background: linear-gradient(90deg,
            #ffb6c1,
            /* Rosa claro */
            #e6e6fa,
            /* Lilás */
            #b0e0e6,
            /* Azul claro */
            #ffffe0,
            /* Amarelo clarinho */
            #ffb6c1
            /* Volta ao rosa */
        );
    background-size: 300% 300%;
    animation: auraAnimation 8s linear infinite;
    filter: blur(8px);
    opacity: 0.85;
}

@keyframes auraAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bottom-menu .menu-item {
    color: #3E2416 !important;
    font-size: 1.35rem;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    transition: all 0.2s ease;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
    z-index: 2;
    /* Ficar acima da lente */
}

/* Bolha mágica que desliza (Lente Liquid Glass) */
.menu-lens {
    position: absolute;
    top: 50%;
    left: 0;
    height: 52px;
    width: 52px;
    /* Vai ser ajustado via JS */
    border-radius: 50px;
    transform: translate(-50%, -50%);
    /* O X é dinâmico no JS */
    pointer-events: none;
    /* Deixa o clique passar */
    z-index: 1;
    /* Abaixo dos ícones */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Efeito de Vidro e Refração Holográfica */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) contrast(110%);
    -webkit-backdrop-filter: blur(10px) contrast(110%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 0 10px rgba(255, 255, 255, 0.8),
        inset 3px 3px 8px rgba(255, 182, 193, 0.5),
        /* Prisma rosa */
        inset -3px -3px 8px rgba(176, 224, 230, 0.6),
        /* Prisma ciano */
        0 4px 15px rgba(0, 0, 0, 0.08);
}

.bottom-menu .menu-item:hover,
.bottom-menu .menu-item.active {
    color: #8C6A53 !important;
    transform: scale(1.05);
}

.close-cart {
    color: #FFFFFF !important;
    font-size: 2rem;
    cursor: pointer;
}

.bottom-menu .menu-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #FF3B30;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1.5px solid #FFFFFF;
}

/* Balão do Avatar (Chat Bubble) */
.avatar-chat-bubble {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    background: #FFFFFF;
    color: #3E2416;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: normal;
    width: max-content;
    max-width: 110px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    border: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.35;
}

.avatar-chat-bubble::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #FFFFFF;
}

.avatar-chat-bubble.show-bubble {
    animation: popBubble 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.avatar-chat-bubble.hide-bubble {
    animation: hideBubble 0.4s ease forwards;
}

@keyframes popBubble {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8) translateX(10px);
    }

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

@keyframes hideBubble {
    0% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }
}

/* ═══════════════════════════════════════════════════════════
   MENU INFERIOR (BOTTOM NAV) - LIQUID GLASS
   ═══════════════════════════════════════════════════════════ */
.bottom-menu {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 380px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 10px 15px;
  border-radius: 60px;
  
  /* Efeito Liquid Glass Minimalista (Imagem 3) */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.bottom-menu .menu-item {
  color: #3E2416 !important; /* Marrom escuro */
  font-size: 1.35rem;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  transition: all 0.2s ease;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  z-index: 2; /* Acima da lente */
}

/* Lente animada (Selecionado) - Marrom Claro */
.menu-lens {
  display: none !important;
}
.flow-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    border-radius: 100px;
    border: 1.5px solid rgba(51, 51, 51, 0.4);
    background: transparent;
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111;
    cursor: pointer;
    transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
}
.flow-btn:hover {
    border-color: transparent;
    color: white;
    border-radius: 12px;
}
.flow-btn:active {
    transform: scale(0.95);
}
.flow-btn .arr-left {
    position: absolute;
    width: 16px;
    height: 16px;
    left: -25%;
    stroke: #111111;
    fill: none;
    z-index: 9;
    transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flow-btn:hover .arr-left {
    left: 16px;
    stroke: white;
}
.flow-btn .btn-text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 800ms ease-out;
}
.flow-btn:hover .btn-text {
    transform: translateX(12px);
}
.flow-btn .btn-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #3E2416;
    border-radius: 50%;
    opacity: 0;
    transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.flow-btn:hover .btn-circle {
    width: 300px;
    height: 300px;
    opacity: 1;
}
.flow-btn .arr-right {
    position: absolute;
    width: 16px;
    height: 16px;
    right: 16px;
    stroke: #111111;
    fill: none;
    z-index: 9;
    transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flow-btn:hover .arr-right {
    right: -25%;
    stroke: white;
}
