/* ==========================================================================
   CSS STYLING - DOCERIA DA JU LANDING PAGE
   ========================================================================== */

/* --- CSS Variables & Custom Design System --- */
:root {
    /* Color Palette */
    --color-primary: #5C2C16;       /* Chocolate Brown */
    --color-primary-dark: #3D1B0D;  /* Dark Cocoa */
    --color-primary-light: #8E5B42; /* Milk Chocolate */
    
    --color-secondary: #E61E3B;     /* Strawberry Red */
    --color-secondary-hover: #C5132D;
    
    --color-sweet-pink: #FFDFE5;    /* Delicate sweet pink border/tabs */
    --color-pastel-bg: #FFF0F2;     /* Creamy background pink */
    --color-pastel-cream: #FFFAF8;  /* Ultra light vanilla cream */
    
    --color-white: #FFFFFF;
    --color-text-main: #4A3A35;     /* Dark warm gray/brown for text */
    --color-text-muted: #83726C;    /* Muted warm gray/brown */
    --color-gold: #FFC107;          /* Yellow star rating gold */
    --color-success: #28A745;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --font-signature: 'Great Vibes', cursive;
    
    /* Layout & Spacing */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --container-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(92, 44, 22, 0.05), 0 2px 4px -1px rgba(92, 44, 22, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(92, 44, 22, 0.08), 0 4px 6px -2px rgba(92, 44, 22, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(92, 44, 22, 0.1), 0 10px 10px -5px rgba(92, 44, 22, 0.04);
    --shadow-premium: 0 25px 50px -12px rgba(92, 44, 22, 0.15);
}

/* --- Base & Reset Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-pastel-cream);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

button, input, textarea {
    font-family: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-smooth);
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-red { color: var(--color-secondary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(92, 44, 22, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 44, 22, 0.4);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-sweet-pink);
}

.btn-secondary:hover {
    background-color: var(--color-pastel-bg);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* Section Header styling */
.section-header {
    margin-bottom: 60px;
}

.subtitle {
    font-family: var(--font-signature);
    font-size: 2.2rem;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 12px auto 0;
    border-radius: 50px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* --- Header & Navigation --- */
.header {
    height: var(--header-height);
    background-color: rgba(255, 250, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 223, 229, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 250, 248, 0.95);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--color-sweet-pink);
}

.navbar-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    transition: var(--transition-smooth);
}

.logo:hover .logo-svg {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.logo-tagline {
    font-family: var(--font-signature);
    font-size: 1.1rem;
    color: var(--color-secondary);
    line-height: 0.9;
    margin-top: 2px;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-secondary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Actions in Navbar */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-trigger {
    background-color: var(--color-pastel-bg);
    color: var(--color-primary);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.cart-trigger:hover {
    background-color: var(--color-sweet-pink);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-pastel-cream);
    animation: popBadge 0.3s ease-out;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    padding: 4px;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 50px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 140px;
    background: linear-gradient(135deg, var(--color-pastel-cream) 0%, var(--color-pastel-bg) 100%);
    overflow: hidden;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

.hero-bg-accent {
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 30, 59, 0.06) 0%, rgba(255, 240, 242, 0) 70%);
    top: -250px;
    right: -250px;
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(230, 30, 59, 0.1);
    color: var(--color-secondary);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(230, 30, 59, 0.15);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(92, 44, 22, 0.08);
}

.hero-title span {
    font-family: var(--font-signature);
    background: linear-gradient(270deg, var(--color-secondary), #ff6b81, var(--color-secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
    font-size: 4.8rem;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    margin-right: 6px;
    font-weight: 400;
}

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

.hero-lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.feature-tag:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
}

.feature-tag i {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(92, 44, 22, 0.2));
    animation: floatHero 6s ease-in-out infinite;
}

/* Floating Elements - Organic Blob Design */
.floating-circle {
    position: absolute;
    z-index: 1;
    background: linear-gradient(135deg, var(--color-sweet-pink) 0%, rgba(255, 240, 242, 0.8) 100%);
    animation: morphBlob 8s ease-in-out infinite alternate;
}

@keyframes morphBlob {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.circle-1 {
    width: 380px;
    height: 380px;
    top: -5%;
    left: 0%;
    opacity: 0.8;
    filter: blur(10px);
}

.circle-2 {
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, var(--color-pastel-cream) 100%);
    bottom: 0%;
    right: 0%;
    opacity: 0.9;
    animation-delay: 2s;
    filter: blur(5px);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 1);
    padding: 16px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(92, 44, 22, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--color-gold);
}

.c-card-1 {
    top: 20%;
    right: -20px;
    animation: floatCard1 4s ease-in-out infinite;
}

.c-card-2 {
    bottom: 20%;
    left: -20px;
    animation: floatCard2 5s ease-in-out infinite;
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(140% + 1.3px);
    height: 55px;
    transform: rotateY(180deg);
}

.wave-divider .shape-fill {
    fill: var(--color-pastel-cream);
}

/* --- Cardápio Section --- */
.cardapio {
    padding: 100px 0;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    background-color: var(--color-white);
    border: 2px solid var(--color-sweet-pink);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    background-color: var(--color-pastel-bg);
    color: var(--color-primary);
}

.tab-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(92, 44, 22, 0.25);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.menu-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 223, 229, 0.4);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    opacity: 1;
    transform: scale(1);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-sweet-pink);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.15;
    overflow: hidden;
    background-color: var(--color-pastel-bg);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.menu-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-badge-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--color-sweet-pink);
    box-shadow: var(--shadow-sm);
}

.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-price {
    display: none;
}

.cart-summary {
    display: none;
}

.btn-add-to-cart {
    background-color: var(--color-pastel-bg);
    color: var(--color-primary);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--color-sweet-pink);
}

.btn-add-to-cart:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 8px rgba(92, 44, 22, 0.15);
}

/* Hidden elements class */
.menu-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

/* --- Cart Drawer System --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-premium);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(92, 44, 22, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--color-sweet-pink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-pastel-bg);
}

.cart-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-cart {
    font-size: 2.2rem;
    color: var(--color-primary-light);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-cart:hover {
    color: var(--color-secondary);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Empty cart state */
.cart-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-muted);
}

.cart-empty i {
    font-size: 4rem;
    color: var(--color-sweet-pink);
    margin-bottom: 20px;
}

.cart-empty p {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.cart-empty .sub {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    max-width: 250px;
    margin: 0 auto;
}

/* Cart list items */
.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 223, 229, 0.4);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-pastel-bg);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    background-color: var(--color-pastel-bg);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-sweet-pink);
    color: var(--color-primary);
}

.qty-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.qty-num {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 16px;
    text-align: center;
}

.btn-remove-item {
    color: var(--color-text-muted);
    font-size: 1rem;
    padding: 4px;
    margin-left: 6px;
}

.btn-remove-item:hover {
    color: var(--color-secondary);
}

/* Cart Footer */
.cart-footer {
    padding: 24px;
    background-color: var(--color-pastel-bg);
    border-top: 1px solid var(--color-sweet-pink);
}

.cart-summary {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.summary-row strong {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.cart-info-alert {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background-color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    line-height: 1.3;
}

/* Drawer forms */
.cart-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary-light);
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--color-sweet-pink);
    font-size: 0.9rem;
    color: var(--color-text-main);
    background-color: var(--color-white);
    transition: var(--transition-fast);
}

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

.btn-submit-order {
    margin-top: 8px;
}

/* --- Sobre Nós Section --- */
.sobre {
    padding: 100px 0;
    background-color: var(--color-pastel-bg);
}

.sobre-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.sobre-visual {
    flex: 1.1;
    position: relative;
}

.grid-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
}

.grid-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--color-white);
    transition: var(--transition-smooth);
}

.grid-img:hover {
    transform: scale(1.03) rotate(1deg);
    z-index: 3;
    border-color: var(--color-sweet-pink);
}

.img-1 { border-radius: 40px 16px 16px 16px; }
.img-2 { border-radius: 16px 40px 16px 16px; }
.img-3 { border-radius: 16px 16px 16px 40px; }
.img-4 { border-radius: 16px 16px 40px 16px; }

.sobre-content {
    flex: 0.9;
}

.about-p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-top: 4px;
}

/* --- Testimonials Section --- */
.depoimentos {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 223, 229, 0.4);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-sweet-pink);
}

.t-rating {
    display: flex;
    gap: 4px;
    color: var(--color-gold);
    font-size: 1rem;
    margin-bottom: 20px;
}

.t-text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

.author-loc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--color-pastel-cream);
}

.faq-wrapper {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 223, 229, 0.4);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--color-sweet-pink);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--color-primary-light);
    transition: var(--transition-smooth);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.faq-answer p {
    padding-bottom: 20px;
}

/* Open FAQ State */
.faq-item.active {
    border-color: var(--color-sweet-pink);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--color-secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Safe upper bound */
}

/* --- Contact & Footer Section --- */
.contato {
    padding: 100px 0 0;
    background-color: var(--color-pastel-bg);
    position: relative;
}

.contato-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--color-sweet-pink);
}

.contato-info-box h2 {
    font-size: 2.4rem;
    margin: 8px 0 16px;
}

.contato-info-box p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

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

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-item i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid var(--color-sweet-pink);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 0.95rem;
    color: var(--color-primary);
}

.info-item span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Instagram mock integration */
.insta-embed-mock {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-sweet-pink);
    overflow: hidden;
    padding: 24px;
}

.insta-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.insta-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-sweet-pink);
}

.insta-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insta-meta strong {
    font-size: 0.95rem;
    color: var(--color-primary);
}

.insta-meta span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.insta-grid-pics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.grid-pic-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-pastel-bg);
}

.grid-pic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.grid-pic-item:hover img {
    transform: scale(1.1);
}

.insta-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 223, 229, 0.4);
    border-bottom: 1px solid rgba(255, 223, 229, 0.4);
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.insta-stats strong {
    color: var(--color-primary);
}

.footer-bottom {
    padding: 30px 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- Scroll Elements & Extras --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes floatHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes popBadge {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-title span {
        font-size: 3.8rem;
    }
    
    .sobre-container, .hero-container {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        gap: 50px;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .sobre-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .contato-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-premium);
        flex-direction: column;
        padding: 100px 40px;
        gap: 24px;
        transition: var(--transition-smooth);
        z-index: 1000;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .mobile-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
    
    .btn-nav-contact {
        display: none; /* Hide in header, show only mobile/hero */
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-title span {
        font-size: 3rem;
    }
    
    .floating-card {
        padding: 10px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .menu-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cart-drawer {
        max-width: 100%;
        right: -100%;
    }
}

/* ==========================================================================
   DRIPPING GLAZE PRELOADER
   ========================================================================== */
.preloader-glaze {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #FFB7C5; /* Strawberry creamy pink background */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    overflow: hidden;
}

.preloader-glaze.loaded {
    transform: translateY(100vh); /* slides down organic frosting drip style */
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    color: #5C2C16; /* Gourmet chocolate color */
    z-index: 10;
    animation: contentFadeOut 0.4s ease forwards;
    animation-delay: 0.75s; /* Fade out content right before sliding down */
}

@keyframes contentFadeOut {
    to { opacity: 0; transform: scale(0.92); }
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #5C2C16 0%, #3B1B0C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulsePretext 1.5s infinite ease-in-out;
}

@keyframes pulsePretext {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.preloader-dripping {
    position: absolute;
    top: -155px; /* Dripping outline extends above the box to simulate dripping down when sliding down */
    left: 0;
    width: 100%;
    height: 160px;
    pointer-events: none;
    transform: rotate(180deg);
}

.preloader-dripping svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   IMMERSIVE HERO UPDATES
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-sparkles-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.4) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.floating-sweets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.sweet-item {
    position: absolute;
    font-size: 1.8rem;
    filter: drop-shadow(0 4px 8px rgba(92, 44, 22, 0.2));
    user-select: none;
    transition: transform 0.1s ease-out;
}

/* Floating keyframes and placements */
.sweet-1 { top: 12%; left: 8%; animation: floatSweetNormal 6s infinite ease-in-out; }
.sweet-2 { top: 78%; left: 12%; animation: floatSweetNormal 7s infinite ease-in-out 1s; font-size: 2.2rem; }
.sweet-3 { top: 22%; left: 45%; animation: floatSweetSlow 8s infinite ease-in-out 0.5s; }
.sweet-4 { top: 15%; right: 15%; animation: floatSweetFast 5s infinite ease-in-out; font-size: 2.1rem; }
.sweet-5 { top: 55%; right: 8%; animation: floatSweetNormal 6.5s infinite ease-in-out 1.5s; }
.sweet-6 { top: 82%; left: 42%; animation: floatSweetSlow 9s infinite ease-in-out; }
.sweet-7 { top: 45%; left: 5%; animation: floatSweetNormal 8s infinite ease-in-out 2s; }
.sweet-8 { top: 62%; right: 45%; animation: floatSweetFast 5.5s infinite ease-in-out 0.8s; }

@keyframes floatSweetNormal {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

@keyframes floatSweetSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-8deg); }
}

@keyframes floatSweetFast {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(18deg); }
}

/* Typing text animation styles */
.typing-text-wrapper {
    position: relative;
    display: inline-block;
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 4px;
}

.typing-cursor {
    font-weight: 300;
    color: var(--color-primary);
    animation: blinkCursor 0.8s infinite;
    -webkit-text-fill-color: var(--color-primary); /* prevent clipping */
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-img-shadow-glow {
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 80%;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(230, 30, 59, 0.3) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    border-radius: 50%;
}

.visual-wrapper {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.25s ease-out;
}

/* ==========================================================================
   CHATBOT WIDGET STYLES (INNOVATIVE CAKE REDESIGN)
   ========================================================================== */

/* Toggle Button - Innovative Cake design */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FFFAF8 0%, var(--color-pastel-bg) 100%);
    border: 3px solid var(--color-sweet-pink);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(230, 30, 59, 0.2), inset 0 2px 5px rgba(255,255,255,0.8);
    z-index: 1040;
    transition: var(--transition-smooth);
    cursor: pointer;
    animation: floatCake 4s ease-in-out infinite;
}

.chatbot-toggle-cake {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-msg-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 15px 30px rgba(230, 30, 59, 0.3);
}

.chatbot-toggle:hover .chat-msg-icon {
    transform: scale(1.1);
    color: var(--color-secondary);
}

.cake-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 1.35rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    animation: wiggleCake 3s ease-in-out infinite;
}

@keyframes wiggleCake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.08); }
}

@keyframes floatCake {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-sweet-pink);
    top: 0;
    left: 0;
    pointer-events: none;
    animation: chatPulse 2.5s infinite;
}

/* Adjust Back to top button to sit above the chatbot */
.back-to-top {
    bottom: 115px;
    width: 48px;
    height: 48px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-sweet-pink);
}

.back-to-top:hover {
    background-color: var(--color-pastel-bg);
}

/* Chatbot Window - Layer Cake Design */
.chatbot-window {
    position: fixed;
    bottom: 115px;
    right: 30px;
    width: 380px;
    max-height: 580px;
    height: 80vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 30px; /* Highly styled rounded corners representing cake tier */
    border: 3px solid rgba(255, 223, 229, 0.8);
    box-shadow: 0 30px 60px rgba(92, 44, 22, 0.22);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: visible; /* To allow toppers to stick out */
    transform: translateY(30px) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Cake Topper Overlays */
.chatbot-cake-toppers {
    position: absolute;
    top: -24px;
    left: 40px;
    display: flex;
    gap: 8px;
    pointer-events: none;
    z-index: 100;
}

.chatbot-topper {
    padding: 4px 12px;
    background: #FFF;
    border: 2px solid var(--color-sweet-pink);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    animation: topperWiggle 4s ease-in-out infinite;
}

.topper-ju {
    font-family: 'Great Vibes', cursive;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #FFF0F2 0%, #FFF 100%);
    color: var(--color-secondary);
    padding: 0px 14px;
    transform: rotate(-10deg);
}

.topper-crown {
    transform: rotate(8deg);
    animation-delay: 0.5s;
    font-size: 0.9rem;
}

@keyframes topperWiggle {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-4px) rotate(-6deg); }
}

/* Chat Header Wrapper & Dripping effect */
.chat-header-wrapper {
    display: flex;
    flex-direction: column;
    z-index: 10;
    border-radius: 26px 26px 0 0;
    overflow: hidden;
}

.chat-header-dripping {
    width: 100%;
    height: 16px;
    margin-top: -2px;
    overflow: hidden;
    pointer-events: none;
}

.chat-header-dripping svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Chat Header */
.chatbot-window .chat-header {
    background: linear-gradient(135deg, var(--color-pastel-bg) 0%, rgba(255, 223, 229, 0.9) 100%);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-avatar-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar-container {
    position: relative;
    display: inline-block;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(92, 44, 22, 0.08);
    border: 2px solid var(--color-sweet-pink);
}

/* Birthday Candle Topper */
.chat-candle-topper {
    position: absolute;
    top: -10px;
    right: -4px;
    width: 7px;
    height: 18px;
    background: linear-gradient(to right, #FFF 0%, #FFDFE5 100%);
    border: 1px solid #FF8DA1;
    border-radius: 3px;
    transform: rotate(12deg);
}

.chat-candle-topper .candle-wick {
    position: absolute;
    top: -4px;
    left: 2px;
    width: 1px;
    height: 4px;
    background-color: #444;
}

.chat-candle-topper .candle-flame {
    position: absolute;
    top: -9px;
    left: -1px;
    width: 7px;
    height: 8px;
    background: radial-gradient(circle, #FFA500 0%, #FF4500 100%);
    border-radius: 50% 50% 20% 20%;
    animation: flickerPreloader 0.12s infinite alternate;
    transform-origin: bottom center;
}

.chat-status {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.chat-online {
    font-size: 0.78rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.chat-online .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    display: inline-block;
    animation: pulseDot 1.5s infinite;
}

.btn-close-chat {
    font-size: 1.3rem;
    color: #E61E3B;
    background-color: #FFF0F2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--color-sweet-pink);
    transition: var(--transition-smooth);
}

.btn-close-chat:hover {
    background-color: #C5132D;
    color: white;
    transform: scale(1.1) rotate(15deg);
}

/* Chat Body - High fidelity layer cake filling effect */
.chatbot-window .chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* Multilayer cake representation: Strawberry mousse, creamy sponge, chocolate fudge */
    background: linear-gradient(
        180deg,
        #FFF4F6 0%,      /* Strawberry Mousse Layer */
        #FFF4F6 30%,
        #FFFBEA 30%,     /* Creamy Sponge Layer */
        #FFFBEA 60%,
        #ECE0D8 60%,     /* Chocolate Fudge Layer */
        #ECE0D8 100%
    );
    background-size: 100% 280px; /* Repeats delicious layers vertically */
}

/* Rich customizable scrollbar (Looks like dripping chocolate drizzle) */
.chatbot-window .chat-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-window .chat-body::-webkit-scrollbar-track {
    background: rgba(92, 44, 22, 0.05);
}

.chatbot-window .chat-body::-webkit-scrollbar-thumb {
    background-color: #5C2C16; /* Chocolate fudge */
    border-radius: 10px;
}

.chat-message {
    max-width: 82%;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    animation: bubblePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-message p {
    margin-bottom: 0;
}

/* Whipped Cream Swirl Bubble */
.bot-msg {
    background-color: #FFFFFF;
    color: var(--color-text-main);
    border-radius: 20px 20px 20px 4px;
    align-self: flex-start;
    box-shadow: 0 6px 15px rgba(92, 44, 22, 0.06);
    border: 2.5px solid var(--color-sweet-pink);
    font-weight: 550;
    position: relative;
}

.bot-msg::before {
    content: "🧁";
    position: absolute;
    bottom: -10px;
    left: -16px;
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Gourmet Chocolate Cookie Bubble */
.user-msg {
    background: linear-gradient(135deg, #7C452C 0%, #5C2C16 100%);
    color: var(--color-white);
    border-radius: 20px 20px 4px 20px;
    align-self: flex-end;
    box-shadow: 0 6px 15px rgba(92, 44, 22, 0.15);
    font-weight: 550;
    border: 1.5px solid #FFD5DC;
}

/* Chat Typing Indicator */
.chat-typing-indicator {
    align-self: flex-start;
    background-color: var(--color-white);
    border-radius: 20px 20px 20px 4px;
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 4px;
    align-items: center;
    border: 2px solid var(--color-sweet-pink);
}

.chat-typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary-light);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

/* Chat Footer Input - Luxury Golden Rimmed White Porcelain Cake Platter */
.chatbot-window .chat-footer {
    padding: 16px 20px;
    background-color: #FFFAF8;
    border-top: 4px solid #D4AF37; /* Metallic gold rim */
    box-shadow: 0 -4px 15px rgba(92, 44, 22, 0.05);
    border-radius: 0 0 26px 26px;
}

.chat-input-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-form input {
    flex: 1;
    padding: 11px 18px;
    border-radius: 50px;
    border: 2px solid var(--color-sweet-pink);
    font-size: 0.88rem;
    transition: var(--transition-fast);
    background-color: #FFF;
    color: var(--color-text-main);
}

.chat-input-form input:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(230, 30, 59, 0.1);
    outline: none;
}

.btn-send-chat {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-send-chat:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.08) rotate(-8deg);
}

/* Animations */
@keyframes chatPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes bubblePop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
        height: 70vh;
    }
    
    .chatbot-toggle {
        right: 20px;
        bottom: 20px;
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }
    
    .back-to-top {
        right: 23px;
        bottom: 85px;
        width: 42px;
        height: 42px;
    }
}

