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

html {
    /* No mobile, o background será aplicado aqui para evitar esticamento */
    min-height: 100vh;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* Fundo branco padrão - será sobrescrito pelo tema quando carregar (sem !important para permitir sobrescrita) */
    background: #ffffff;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.menu-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.menu-header {
    /* Fundo será aplicado dinamicamente pelo tema - inicialmente branco para evitar roxo */
    background: #ffffff;
    color: #333333;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.menu-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.logo-container {
    margin-bottom: 20px;
    margin-top: var(--logo-offset, 0);
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.restaurant-logo {
    max-width: calc(180px * var(--logo-scale, 1));
    max-height: calc(180px * var(--logo-scale, 1));
    width: auto;
    height: auto;
    border-radius: 20px;
    background: white;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.restaurant-logo:hover {
    transform: scale(1.05);
}

body.logo-no-background .restaurant-logo {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.menu-header h1,
#restaurant-name {
    font-size: var(--font-size-restaurant-name, 2.5em);
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: var(--restaurant-name-offset, 0);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    color: var(--restaurant-name-color, var(--text-color, #333333));
}

.menu-header p,
#restaurant-description {
    font-size: var(--font-size-restaurant-description, 1.1em);
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: var(--restaurant-description-color, var(--text-color, #555555));
}

#menu-content {
    padding: 50px 40px;
    background: #fafbfc;
}

/* Elementos decorativos temáticos */
.theme-decorative-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
    transition: transform 0.3s ease;
}

.theme-decorative-element:hover {
    opacity: 0.5;
}

.theme-decorative-corner {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.theme-decorative-corner.top-left {
    top: 0;
    left: 0;
}

.theme-decorative-corner.top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.theme-decorative-corner.bottom-left {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.theme-decorative-corner.bottom-right {
    bottom: 0;
    right: 0;
    transform: scale(-1);
}

.theme-decorative-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 300px 300px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    top: 0;
    left: 0;
}

.menu-header .theme-decorative-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
}

/* Efeito de confete caindo */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF1493;
    top: -10px;
    animation: confetti-fall linear infinite;
    border-radius: 50%;
}

.confetti:nth-child(1) { left: 10%; animation-duration: 3s; animation-delay: 0s; background: #FF1493; }
.confetti:nth-child(2) { left: 20%; animation-duration: 4s; animation-delay: 0.5s; background: #FFD700; }
.confetti:nth-child(3) { left: 30%; animation-duration: 3.5s; animation-delay: 1s; background: #00CED1; }
.confetti:nth-child(4) { left: 40%; animation-duration: 4.5s; animation-delay: 0.2s; background: #FF1493; }
.confetti:nth-child(5) { left: 50%; animation-duration: 3.8s; animation-delay: 0.8s; background: #FFD700; }
.confetti:nth-child(6) { left: 60%; animation-duration: 4.2s; animation-delay: 1.2s; background: #00CED1; }
.confetti:nth-child(7) { left: 70%; animation-duration: 3.6s; animation-delay: 0.4s; background: #FF1493; }
.confetti:nth-child(8) { left: 80%; animation-duration: 4.3s; animation-delay: 0.9s; background: #FFD700; }
.confetti:nth-child(9) { left: 90%; animation-duration: 3.9s; animation-delay: 1.1s; background: #00CED1; }
.confetti:nth-child(10) { left: 15%; animation-duration: 4.1s; animation-delay: 0.3s; background: #FF1493; }
.confetti:nth-child(11) { left: 25%; animation-duration: 3.7s; animation-delay: 0.7s; background: #FFD700; }
.confetti:nth-child(12) { left: 35%; animation-duration: 4.4s; animation-delay: 1.3s; background: #00CED1; }
.confetti:nth-child(13) { left: 45%; animation-duration: 3.4s; animation-delay: 0.1s; background: #FF1493; }
.confetti:nth-child(14) { left: 55%; animation-duration: 4.6s; animation-delay: 0.6s; background: #FFD700; }
.confetti:nth-child(15) { left: 65%; animation-duration: 3.3s; animation-delay: 1.4s; background: #00CED1; }
.confetti:nth-child(16) { left: 75%; animation-duration: 4.7s; animation-delay: 0.5s; background: #FF1493; }
.confetti:nth-child(17) { left: 85%; animation-duration: 3.2s; animation-delay: 1.5s; background: #FFD700; }
.confetti:nth-child(18) { left: 95%; animation-duration: 4.8s; animation-delay: 0.8s; background: #00CED1; }

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Efeito de pegadas de coelho passando pela tela (Páscoa) */
.rabbit-footprints-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.rabbit-footprint {
    position: absolute;
    display: flex;
    gap: 15px;
    animation: rabbit-walk linear infinite;
}

.rabbit-paw {
    display: inline-block;
    width: 24px;
    height: 30px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    box-shadow: 0 3px 8px rgba(255, 107, 157, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.rabbit-paw::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 10px;
    background: rgba(255, 217, 61, 0.6);
    border-radius: 50%;
    top: 6px;
    left: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.rabbit-paw::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 8px;
    background: rgba(255, 217, 61, 0.6);
    border-radius: 50%;
    top: 10px;
    left: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.right-paw::after {
    left: 13px;
}

/* Animações individuais para cada pegada */
.rabbit-footprint:nth-child(1) { 
    top: 15%; 
    animation-duration: 8s; 
    animation-delay: 0s; 
    transform: scale(0.8);
}

.rabbit-footprint:nth-child(2) { 
    top: 25%; 
    animation-duration: 7s; 
    animation-delay: 1s; 
    transform: scale(0.9);
}

.rabbit-footprint:nth-child(3) { 
    top: 35%; 
    animation-duration: 9s; 
    animation-delay: 0.5s; 
    transform: scale(0.85);
}

.rabbit-footprint:nth-child(4) { 
    top: 45%; 
    animation-duration: 8.5s; 
    animation-delay: 1.5s; 
    transform: scale(0.9);
}

.rabbit-footprint:nth-child(5) { 
    top: 55%; 
    animation-duration: 7.5s; 
    animation-delay: 2s; 
    transform: scale(0.8);
}

.rabbit-footprint:nth-child(6) { 
    top: 65%; 
    animation-duration: 8.2s; 
    animation-delay: 0.3s; 
    transform: scale(0.85);
}

.rabbit-footprint:nth-child(7) { 
    top: 20%; 
    animation-duration: 9.5s; 
    animation-delay: 2.5s; 
    transform: scale(0.9);
}

.rabbit-footprint:nth-child(8) { 
    top: 30%; 
    animation-duration: 7.8s; 
    animation-delay: 1.2s; 
    transform: scale(0.8);
}

.rabbit-footprint:nth-child(9) { 
    top: 40%; 
    animation-duration: 8.8s; 
    animation-delay: 0.8s; 
    transform: scale(0.85);
}

.rabbit-footprint:nth-child(10) { 
    top: 50%; 
    animation-duration: 7.2s; 
    animation-delay: 1.8s; 
    transform: scale(0.9);
}

.rabbit-footprint:nth-child(11) { 
    top: 60%; 
    animation-duration: 9.2s; 
    animation-delay: 0.4s; 
    transform: scale(0.8);
}

.rabbit-footprint:nth-child(12) { 
    top: 70%; 
    animation-duration: 8.3s; 
    animation-delay: 2.2s; 
    transform: scale(0.85);
}

@keyframes rabbit-walk {
    0% {
        left: -50px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100vw;
        opacity: 0;
    }
}

/* Tema Pizzaria 3D */
.pizzaria-3d-theme {
    perspective: 1200px;
}

.pizzaria-3d-theme .menu-container {
    transform-style: preserve-3d;
    animation: pizzaria-entrance 0.8s ease-out;
}

@keyframes pizzaria-entrance {
    0% {
        transform: rotateX(-10deg) translateY(50px);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg) translateY(0);
        opacity: 1;
    }
}

.pizzaria-3d-theme .menu-header {
    background: linear-gradient(135deg, #DC143C 0%, #FF6347 50%, #FFD700 100%);
    transform: translateZ(20px);
    box-shadow: 
        0 15px 35px rgba(220, 20, 60, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.pizzaria-3d-theme .menu-header::before {
    content: '🍕';
    font-size: 200px;
    position: absolute;
    opacity: 0.12;
    left: -50px;
    top: -50px;
    animation: pizzaria-float-left 8s ease-in-out infinite;
    transform: translateZ(-10px);
    pointer-events: none;
}

.pizzaria-3d-theme .menu-header::after {
    content: '🍕';
    font-size: 150px;
    position: absolute;
    opacity: 0.1;
    right: -30px;
    bottom: -30px;
    animation: pizzaria-float-right 10s ease-in-out infinite;
    transform: translateZ(-15px);
    pointer-events: none;
}

@keyframes pizzaria-float-left {
    0%, 100% {
        transform: translateZ(-10px) translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateZ(-10px) translateY(-20px) rotate(15deg);
    }
}

@keyframes pizzaria-float-right {
    0%, 100% {
        transform: translateZ(-15px) translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateZ(-15px) translateY(-25px) rotate(-15deg);
    }
}

.pizzaria-3d-theme .category-section {
    transform: translateZ(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
}

.pizzaria-3d-theme .category-section:hover {
    transform: translateZ(40px) rotateY(-3deg) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(220, 20, 60, 0.35),
        0 10px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pizzaria-3d-theme .category-title {
    background: linear-gradient(135deg, #DC143C 0%, #FF6347 100%);
    color: white;
    transform: translateZ(15px);
    box-shadow: 
        0 10px 25px rgba(220, 20, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pizzaria-3d-theme .category-title:hover {
    transform: translateZ(30px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(220, 20, 60, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #FF6347 0%, #FFD700 100%);
}

.pizzaria-3d-theme .product-card {
    transform: translateZ(5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #FFD700;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.pizzaria-3d-theme .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.pizzaria-3d-theme .product-card:hover::before {
    opacity: 1;
}

.pizzaria-3d-theme .product-card:hover {
    transform: translateZ(35px) rotateX(3deg) scale(1.03);
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.4),
        0 8px 20px rgba(220, 20, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-left-color: #DC143C;
    border-left-width: 6px;
    z-index: 10;
}

.pizzaria-3d-theme .product-card > * {
    position: relative;
    z-index: 1;
}

.pizzaria-3d-theme .products-grid {
    transform-style: preserve-3d;
}

.pizzaria-3d-theme .products-grid .product-card:nth-child(odd) {
    animation: pizzaria-stagger-odd 0.6s ease-out;
}

.pizzaria-3d-theme .products-grid .product-card:nth-child(even) {
    animation: pizzaria-stagger-even 0.6s ease-out;
}

@keyframes pizzaria-stagger-odd {
    0% {
        transform: translateZ(5px) translateX(-30px);
        opacity: 0;
    }
    100% {
        transform: translateZ(5px) translateX(0);
        opacity: 1;
    }
}

@keyframes pizzaria-stagger-even {
    0% {
        transform: translateZ(5px) translateX(30px);
        opacity: 0;
    }
    100% {
        transform: translateZ(5px) translateX(0);
        opacity: 1;
    }
}

.pizzaria-3d-theme .restaurant-logo {
    transform: translateZ(25px);
    animation: pizzaria-logo-rotate 3s ease-in-out infinite;
    box-shadow: 
        0 15px 40px rgba(220, 20, 60, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.5);
}

@keyframes pizzaria-logo-rotate {
    0%, 100% {
        transform: translateZ(25px) rotateY(0deg) scale(1);
    }
    50% {
        transform: translateZ(25px) rotateY(5deg) scale(1.05);
    }
}

.pizzaria-3d-theme .restaurant-logo:hover {
    animation: pizzaria-logo-hover 0.5s ease-out;
}

@keyframes pizzaria-logo-hover {
    0% {
        transform: translateZ(25px) rotateY(0deg) scale(1);
    }
    50% {
        transform: translateZ(40px) rotateY(15deg) scale(1.1);
    }
    100% {
        transform: translateZ(30px) rotateY(0deg) scale(1.05);
    }
}

.loading {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 1.2em;
    font-weight: 500;
}

#toggle-all-categories,
#toggle-all-categories-bottom {
    background: rgba(102, 126, 234, 0.1) !important;
    color: var(--primary-color, #667eea) !important;
    border: 1.5px solid rgba(102, 126, 234, 0.3) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: inherit !important;
}

#toggle-all-categories:hover,
#toggle-all-categories-bottom:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

#toggle-all-categories:active,
#toggle-all-categories-bottom:active {
    transform: translateY(0) !important;
}

.category-section {
    margin-bottom: 50px;
    position: relative;
    z-index: auto;
    overflow: hidden;
}

.category-section.collapsed-section {
    margin-bottom: 15px;
}

.category-title {
    font-size: var(--font-size-category-title, 1.5em);
    font-weight: 600;
    color: var(--text-color, #1a1a1a);
    margin-bottom: 0;
    padding: 14px 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: visible;
    z-index: 1;
    isolation: isolate;
}

.category-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.category-title:hover::before {
    left: 100%;
}

.category-title:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    transform: translateX(8px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.category-title:active {
    transform: translateX(4px) scale(0.98);
}

.category-name {
    flex: 1;
    letter-spacing: -0.3px;
}

.category-icon {
    font-size: 1.4em;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.category-toggle-icon {
    font-size: 0.9em;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color, #667eea);
    margin-left: auto;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.products-grid.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    visibility: hidden;
}

.products-grid.expanded {
    max-height: none;
    opacity: 1;
    margin-top: 17px;
    margin-bottom: 0;
    visibility: visible;
    animation: fadeInUp 0.4s ease-out;
    position: relative;
    z-index: 1;
    padding-top: 8px;
    overflow: visible;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-close-button {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 5px 0;
}

.category-close-button button {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 6px rgba(102, 126, 234, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-close-button button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-close-button button:hover::before {
    width: 300px;
    height: 300px;
}

.category-close-button button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-close-button button:active {
    transform: translateY(-1px);
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: var(--product-border-width, 1.5px) solid var(--product-border-color, rgba(102, 126, 234, 0.15));
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.02);
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.product-header-container {
    position: relative;
    padding: 20px 20px 0 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.product-category-label {
    align-self: flex-end;
    text-align: right;
    font-size: var(--category-label-font-size, 0.75em);
    color: var(--category-label-color, #667eea);
    opacity: var(--category-label-opacity, 0.7);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
    z-index: 10;
    pointer-events: none;
    width: 100%;
}

.product-header-container .product-name {
    padding: 0;
    margin: 0;
    width: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 20;
    pointer-events: none;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--product-border-color, rgba(102, 126, 234, 0.15));
    filter: brightness(0.98);
}

.product-image-container {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    overflow: clip;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    z-index: 1;
    padding: 8px;
    box-sizing: border-box;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}


.discount-badge {
    position: absolute;
    top: 22px;
    left: -35px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 10px 35px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-image-container::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5em;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.product-image-container:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.product-image-container:hover .product-image {
    filter: brightness(0.7);
}

.product-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.product-image {
    width: auto;
    height: auto;
    max-width: calc(96% - 2px);
    max-height: calc(96% - 2px);
    margin: auto;
    align-self: center;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: 16px;
    clip-path: inset(0 round 16px);
    -webkit-clip-path: inset(0 round 16px);
    position: relative;
    z-index: 0;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.product-card:hover .product-image {
    transform: scale(1.01);
}

.product-card > div:not(.product-image-container):not(.product-header-container) {
    padding: 20px;
}

.product-name {
    font-size: var(--font-size-product-name, 1.3em);
    font-weight: 600;
    color: var(--text-color, #1a1a1a);
    margin-bottom: 0 !important;
    letter-spacing: -0.3px;
    line-height: 1 !important;
    padding-bottom: 0 !important;
}

.product-description {
    color: #64748b;
    font-size: var(--font-size-description, 0.95em);
    line-height: 1.2;
    margin-bottom: -10px;
    min-height: auto;
    font-weight: 400;
    margin-top: 3px;
    padding-top: 0;
    padding-bottom: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

/* Respeitar estilos inline definidos pelo editor RTE (cor, tamanho, fundo) */
.product-description span[style],
.product-description font[color],
.product-description font[style] {
    line-height: inherit;
}

.product-price {
    font-size: var(--font-size-price, 1.5em);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -10px;
    margin-bottom: 0;
    padding-top: 0;
    letter-spacing: -0.5px;
    flex-wrap: wrap;
    position: relative;
}

.product-price .original-price {
    font-size: 0.85em;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #94a3b8;
    background-clip: unset;
}

.product-price .discounted-price {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price:not(.has-discount) {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discount-time-info {
    margin-top: -6px;
    font-size: var(--font-size-discount-time, 0.85em);
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.1;
    position: relative;
}

.discount-time-label {
    font-weight: 500;
}

.discount-time-countdown {
    font-weight: 700;
    color: var(--primary-color, #667eea);
}

.discount-stock-info {
    margin-top: -6px;
    font-size: var(--font-size-discount-stock, 0.85em);
    color: #64748b;
    font-weight: 500;
    line-height: 1.1;
    position: relative;
}

.empty-message {
    text-align: center;
    padding: 60px 40px;
    color: #94a3b8;
    font-size: 1.15em;
    font-weight: 500;
}

.menu-footer {
    background: transparent !important;
    padding: 4px 20px !important;
    margin-top: 30px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Oculto até o rodapé ser preenchido (evita style= inline para CSP) */
.menu-footer.u-hidden {
    display: none;
}

.footer-title {
    text-align: center;
    font-size: 0.75em !important;
    font-weight: 500;
    margin-bottom: 4px !important;
    opacity: 1;
    letter-spacing: 0.5px;
    color: #475569;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px !important;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 1;
    background: transparent !important;
    border: none !important;
}

.footer-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: block;
    filter: none !important;
    mix-blend-mode: normal !important;
}


.footer-link:hover .footer-icon-img {
    transform: scale(1.1);
    filter: none !important;
}

@media (max-width: 768px) {
    .menu-footer {
        padding: 20px;
        margin-top: 30px;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .footer-link {
        padding: 8px 16px;
        font-size: 0.85em;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .menu-container {
        border-radius: 16px;
    }

    .menu-header {
        padding: 40px 20px;
    }

    .menu-header h1 {
        font-size: 2em;
    }

    .menu-header p {
        font-size: 1em;
    }

    #menu-content {
        padding: 30px 5px;
    }

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

    .category-title {
        font-size: var(--font-size-category-title, 1.4em);
        padding: 18px 20px;
    }
    
    .product-name {
        font-size: var(--font-size-product-name, 1.2em);
    }
    
    .product-price {
        font-size: var(--font-size-price, 1.4em);
    }
    
    .product-description {
        font-size: var(--font-size-description, 0.95em);
    }
    
    .discount-time-info {
        font-size: var(--font-size-discount-time, 0.85em);
    }
    
    .discount-stock-info {
        font-size: var(--font-size-discount-stock, 0.85em);
    }

    .product-image-container {
        height: auto;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        margin: 0 auto;
        display: block;
        object-fit: contain;
        object-position: center center;
    }
    
    /* Correção para campo de busca e botão no mobile */
    #search-toggle-container {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }
    
    #product-search-input-menu {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 16px !important;
        padding: 7px 14px !important;
    }
    
    #toggle-all-categories,
    #toggle-all-categories-bottom {
        font-size: 0.75em !important;
        padding: 6px 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-width: fit-content !important;
    }
    
    #toggle-all-categories span,
    #toggle-all-categories-bottom span {
        display: inline-block !important;
    }
}

@media (max-width: 480px) {
    .menu-header {
        padding: 30px 15px;
    }

    .menu-header h1 {
        font-size: 1.7em;
    }

    #menu-content {
        padding: 20px 5px;
    }

    .category-title {
        font-size: var(--font-size-category-title, 1.3em);
        padding: 16px 18px;
    }
    
    .product-name {
        font-size: var(--font-size-product-name, 1.1em);
    }
    
    .product-price {
        font-size: var(--font-size-price, 1.3em);
    }
    
    .product-description {
        font-size: var(--font-size-description, 0.9em);
    }
    
    .discount-time-info {
        font-size: var(--font-size-discount-time, 0.8em);
    }
    
    .discount-stock-info {
        font-size: var(--font-size-discount-stock, 0.8em);
    }
    
    /* Correção para campo de busca e botão no mobile pequeno */
    #search-toggle-container {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 0 15px !important;
    }
    
    #product-search-input-menu {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 16px !important;
        padding: 6px 12px !important;
    }
    
    #toggle-all-categories,
    #toggle-all-categories-bottom {
        font-size: 0.7em !important;
        padding: 5px 10px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-width: fit-content !important;
    }
    
    #toggle-all-categories span,
    #toggle-all-categories-bottom span {
        font-size: 0.8em !important;
    }
}

/* Modal de imagem */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Modal de Aviso */
.alert-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    /* Bloquear scroll e interação fora do modal */
    touch-action: none;
    user-select: none;
}

.alert-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    width: 500px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* Permitir scroll apenas dentro do modal */
    overflow: hidden;
    z-index: 10002;
}

/* Reduzir custo visual em telas grandes (desktop) */
@media (min-width: 1024px) {
    .alert-modal {
        backdrop-filter: none;
        animation: none;
        background-color: rgba(0, 0, 0, 0.6);
    }
    .alert-modal-content {
        animation: none;
        will-change: transform;
    }
}

.alert-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.alert-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.alert-modal-close.u-hidden {
    display: none;
}

.alert-modal-carousel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    position: relative;
}

.alert-modal-footer-controls {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 0px;
    display: none;
}

.alert-modal-slides {
    width: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 0;
}

.alert-modal-slides::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.alert-modal-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 10px 70px 10px;
    box-sizing: border-box;
    position: relative;
    min-height: 100%;
}

.alert-modal-arrow {
    position: absolute;
    bottom: 15px;
    font-size: 24px;
    color: var(--primary-color, #667eea);
    animation: arrowPulse 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 10002;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.alert-modal-arrow-next {
    right: 20px;
}

.alert-modal-arrow-back {
    left: 20px;
    animation: arrowPulseBack 2s ease-in-out infinite;
}

.alert-modal-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.alert-modal-arrow:active {
    transform: scale(0.95);
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(5px);
    }
}

@keyframes arrowPulseBack {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-5px);
    }
}

.alert-modal-icon {
    font-size: 32px;
    margin-bottom: 0px;
    flex-shrink: 0;
}

.alert-modal-text {
    font-size: 1.1em;
    color: #333;
    text-align: center;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    width: 100%;
    margin-top: 5px;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 5px;
}

.alert-modal-links {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.alert-modal-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    word-break: break-all;
}

.alert-modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.alert-modal-link:active {
    transform: translateY(0);
}

.alert-modal-indicators-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

.alert-modal-indicators {
    display: none;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.alert-modal-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.alert-modal-indicator.active {
    background: var(--primary-color, #667eea);
    width: 30px;
    border-radius: 5px;
}

.alert-modal-indicator:hover {
    background: var(--primary-color, #667eea);
    opacity: 0.7;
}

.alert-modal-button {
    position: fixed;
    top: calc(50% + 41vh + 0.5px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10003;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.alert-modal-button:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.alert-modal-button.u-hidden {
    display: none;
}

.alert-modal-button:active {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .alert-modal-content {
        width: 90%;
        padding: 25px 20px 15px 20px;
        max-width: 400px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .alert-modal-button {
        top: calc(47% + 31vh + 0.5px);
        padding: 8px 16px;
        font-size: 0.8em;
    }
    
    .alert-modal-slide {
        padding: 0 5px 60px 5px;
    }

    .alert-modal-arrow {
        bottom: 15px;
        font-size: 20px;
        width: 32px;
        height: 32px;
    }

    .alert-modal-arrow-next {
        right: 15px;
    }

    .alert-modal-arrow-back {
        left: 15px;
    }
    
    .alert-modal-icon {
        font-size: 28px;
        margin-bottom: 0px;
    }
    
    .alert-modal-text {
        font-size: 1em;
        margin-top: 5px;
        max-height: 350px;
    }
    
    .alert-modal-links {
        margin-top: 20px;
        gap: 8px;
    }
    
    .alert-modal-link {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    .alert-modal-indicator {
        width: 8px;
        height: 8px;
    }
    
    .alert-modal-indicator.active {
        width: 25px;
    }
    
    .alert-modal-footer-controls {
        gap: 10px;
    }
    
    .alert-modal-button {
        padding: 8px 16px;
        font-size: 0.8em;
    }
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3em;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.image-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.image-modal-caption {
    color: white;
    font-size: 1.2em;
    font-weight: 500;
    margin-top: 20px;
    text-align: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 80%;
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .image-modal-content img {
        max-height: 80vh;
    }

    .image-modal-close {
        top: -40px;
        font-size: 2.5em;
        width: 40px;
        height: 40px;
    }

    .image-modal-caption {
        font-size: 1em;
        margin-top: 15px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .image-modal-close {
        top: 10px;
        right: 10px;
        font-size: 2em;
        width: 35px;
        height: 35px;
        background: rgba(0, 0, 0, 0.5);
    }

    .image-modal-caption {
        font-size: 0.9em;
        margin-top: 10px;
        padding: 8px 16px;
    }
}

/* Tema Pizzaria Premium - Versão Inovadora e Magnífica */
.pizzaria-premium-theme {
    perspective: 1500px;
    position: relative;
}

.pizzaria-premium-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 99, 71, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pizzaria-premium-bg 20s ease-in-out infinite;
}

@keyframes pizzaria-premium-bg {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, 20px) scale(1.1);
        opacity: 0.8;
    }
}

.pizzaria-premium-theme .menu-container {
    transform-style: preserve-3d;
    animation: pizzaria-premium-entrance 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 220, 0.98) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 215, 0, 0.03) 10px,
            rgba(255, 215, 0, 0.03) 20px
        );
    border: 3px solid;
    border-image: linear-gradient(135deg, #DC143C, #FFD700, #FF6347, #FF4500, #DC143C) 1;
    box-shadow: 
        0 30px 80px rgba(220, 20, 60, 0.3),
        0 10px 30px rgba(255, 215, 0, 0.2),
        inset 0 0 50px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pizzaria-premium-theme .menu-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            rgba(255, 215, 0, 0.05) 30deg,
            transparent 60deg,
            rgba(220, 20, 60, 0.05) 90deg,
            transparent 120deg
        );
    animation: pizzaria-premium-rotate 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pizzaria-premium-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pizzaria-premium-entrance {
    0% {
        transform: rotateX(-15deg) translateY(100px) scale(0.9);
        opacity: 0;
    }
    60% {
        transform: rotateX(5deg) translateY(-10px) scale(1.02);
    }
    100% {
        transform: rotateX(0deg) translateY(0) scale(1);
        opacity: 1;
    }
}

.pizzaria-premium-theme .menu-header {
    background: 
        linear-gradient(135deg, #DC143C 0%, #FF6347 25%, #FFD700 50%, #FFA500 75%, #DC143C 100%);
    background-size: 300% 300%;
    animation: pizzaria-premium-gradient 8s ease infinite;
    transform: translateZ(30px);
    box-shadow: 
        0 20px 50px rgba(220, 20, 60, 0.5),
        0 10px 25px rgba(255, 215, 0, 0.3),
        inset 0 0 50px rgba(255, 255, 255, 0.2),
        inset 0 -10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid rgba(255, 255, 255, 0.3);
}

@keyframes pizzaria-premium-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pizzaria-premium-theme .menu-header::before {
    content: '🍕 🍕 🍕 🍕 🍕';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 80px;
    opacity: 0.08;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pizzaria-premium-pizza-float 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 99, 71, 0.3);
}

.pizzaria-premium-theme .menu-header::after {
    content: '🧀 🍅 🌿 🧄 🫒';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 50px;
    opacity: 0.1;
    animation: pizzaria-premium-ingredients 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pizzaria-premium-pizza-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
    }
    50% {
        transform: translateY(-40px) rotate(-5deg) scale(1.05);
    }
    75% {
        transform: translateY(-20px) rotate(3deg) scale(1.08);
    }
}

@keyframes pizzaria-premium-ingredients {
    0%, 100% {
        transform: translateX(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateX(-30px) rotate(180deg);
        opacity: 0.15;
    }
}

.pizzaria-premium-theme .menu-header h1 {
    font-size: 3em;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD700 50%, #FFFFFF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pizzaria-premium-text-shine 3s ease infinite;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 50px rgba(220, 20, 60, 0.4);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    font-weight: 900;
}

@keyframes pizzaria-premium-text-shine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pizzaria-premium-theme .menu-header p {
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    font-weight: 500;
    font-size: 1.2em;
}

.pizzaria-premium-theme .restaurant-logo {
    transform: translateZ(40px);
    animation: pizzaria-premium-logo 4s ease-in-out infinite;
    box-shadow: 
        0 20px 50px rgba(220, 20, 60, 0.6),
        0 10px 25px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 99, 71, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    border: 5px solid;
    border-image: linear-gradient(135deg, #FFD700, #DC143C, #FF6347, #FFD700) 1;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.pizzaria-premium-theme .restaurant-logo::before {
    content: '⭐';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 30px;
    animation: pizzaria-premium-star 2s ease-in-out infinite;
    z-index: 3;
}

.pizzaria-premium-theme .restaurant-logo::after {
    content: '⭐';
    position: absolute;
    bottom: -10px;
    left: -10px;
    font-size: 25px;
    animation: pizzaria-premium-star 2s ease-in-out infinite 1s;
    z-index: 3;
}

@keyframes pizzaria-premium-star {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.3);
        opacity: 0.8;
    }
}

@keyframes pizzaria-premium-logo {
    0%, 100% {
        transform: translateZ(40px) rotateY(0deg) scale(1);
        box-shadow: 
            0 20px 50px rgba(220, 20, 60, 0.6),
            0 10px 25px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: translateZ(50px) rotateY(10deg) scale(1.05);
        box-shadow: 
            0 30px 70px rgba(220, 20, 60, 0.7),
            0 15px 35px rgba(255, 215, 0, 0.6);
    }
}

.pizzaria-premium-theme .restaurant-logo:hover {
    animation: pizzaria-premium-logo-hover 0.6s ease-out;
}

@keyframes pizzaria-premium-logo-hover {
    0% {
        transform: translateZ(40px) rotateY(0deg) scale(1);
    }
    50% {
        transform: translateZ(60px) rotateY(20deg) scale(1.15) rotateZ(5deg);
    }
    100% {
        transform: translateZ(45px) rotateY(0deg) scale(1.05);
    }
}

.pizzaria-premium-theme #menu-content {
    background: 
        linear-gradient(180deg, 
            rgba(255, 248, 220, 0.3) 0%,
            rgba(255, 255, 255, 0.95) 20%,
            rgba(255, 255, 255, 0.98) 100%
        );
    position: relative;
    z-index: 1;
}

.pizzaria-premium-theme .category-section {
    transform: translateZ(15px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 35px;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 5px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.pizzaria-premium-theme .category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, #DC143C, #FFD700, #FF6347, #DC143C);
    background-size: 200% 200%;
    animation: pizzaria-premium-border 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

@keyframes pizzaria-premium-border {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pizzaria-premium-theme .category-section:hover {
    transform: translateZ(50px) rotateY(-5deg) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(220, 20, 60, 0.4),
        0 15px 35px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.pizzaria-premium-theme .category-title {
    background: 
        linear-gradient(135deg, 
            #DC143C 0%,
            #FF6347 25%,
            #FF8C00 50%,
            #FFD700 75%,
            #DC143C 100%
        );
    background-size: 250% 250%;
    animation: pizzaria-premium-title-gradient 5s ease infinite;
    color: white;
    transform: translateZ(20px);
    box-shadow: 
        0 15px 35px rgba(220, 20, 60, 0.5),
        0 8px 20px rgba(255, 215, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 
        0 3px 15px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes pizzaria-premium-title-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pizzaria-premium-theme .category-title::before {
    content: '🍕';
    position: absolute;
    left: 20px;
    font-size: 1.5em;
    animation: pizzaria-premium-emoji-bounce 2s ease-in-out infinite;
    opacity: 0.9;
}

.pizzaria-premium-theme .category-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: pizzaria-premium-shine 3s ease-in-out infinite;
}

@keyframes pizzaria-premium-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pizzaria-premium-emoji-bounce {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

.pizzaria-premium-theme .category-title:hover {
    transform: translateZ(35px) scale(1.03);
    box-shadow: 
        0 20px 45px rgba(220, 20, 60, 0.6),
        0 10px 25px rgba(255, 215, 0, 0.4),
        inset 0 2px 15px rgba(255, 255, 255, 0.5);
    background-size: 300% 300%;
}

.pizzaria-premium-theme .products-grid {
    transform-style: preserve-3d;
    gap: 20px;
    padding: 15px 0;
}

.pizzaria-premium-theme .product-card {
    transform: translateZ(10px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 6px solid;
    border-image: linear-gradient(180deg, #FFD700, #FFA500, #FF6347) 1;
    background: 
        linear-gradient(135deg, 
            rgba(255, 248, 220, 0.5) 0%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(255, 248, 220, 0.3) 100%
        );
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.pizzaria-premium-theme .product-card::before {
    content: '🧀';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    opacity: 0.15;
    animation: pizzaria-premium-cheese-float 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.pizzaria-premium-theme .product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

@keyframes pizzaria-premium-cheese-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-10px) rotate(15deg) scale(1.1);
        opacity: 0.25;
    }
}

.pizzaria-premium-theme .product-card:hover::after {
    opacity: 1;
}

.pizzaria-premium-theme .product-card:hover {
    transform: translateZ(40px) rotateX(5deg) rotateY(-3deg) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(255, 215, 0, 0.5),
        0 15px 30px rgba(220, 20, 60, 0.4),
        0 0 40px rgba(255, 99, 71, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    border-left-width: 8px;
    border-image: linear-gradient(180deg, #DC143C, #FF6347, #FFD700, #FFA500) 1;
    z-index: 10;
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 248, 220, 0.8) 100%
        );
}

.pizzaria-premium-theme .product-card > * {
    position: relative;
    z-index: 1;
}

.pizzaria-premium-theme .product-name {
    font-weight: 700;
    color: #2C1810;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1.15em;
}

.pizzaria-premium-theme .product-price {
    font-weight: 800;
    color: #DC143C;
    text-shadow: 0 2px 5px rgba(220, 20, 60, 0.3);
    font-size: 1.3em;
}

.pizzaria-premium-theme .product-discount {
    background: linear-gradient(135deg, #DC143C, #FF6347);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(220, 20, 60, 0.4);
    animation: pizzaria-premium-discount-pulse 2s ease-in-out infinite;
}

@keyframes pizzaria-premium-discount-pulse {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(220, 20, 60, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 5px 20px rgba(220, 20, 60, 0.6);
        transform: scale(1.05);
    }
}

.pizzaria-premium-theme .products-grid .product-card:nth-child(odd) {
    animation: pizzaria-premium-stagger-odd 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pizzaria-premium-theme .products-grid .product-card:nth-child(even) {
    animation: pizzaria-premium-stagger-even 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pizzaria-premium-stagger-odd {
    0% {
        transform: translateZ(10px) translateX(-50px) rotateY(-10deg);
        opacity: 0;
    }
    100% {
        transform: translateZ(10px) translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes pizzaria-premium-stagger-even {
    0% {
        transform: translateZ(10px) translateX(50px) rotateY(10deg);
        opacity: 0;
    }
    100% {
        transform: translateZ(10px) translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

/* Efeitos extras para tema premium */
.pizzaria-premium-theme .category-icon {
    animation: pizzaria-premium-icon-rotate 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes pizzaria-premium-icon-rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

.pizzaria-premium-theme .product-image {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pizzaria-premium-theme .product-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.pizzaria-premium-theme .product-image img {
    transition: transform 0.4s ease;
}

.pizzaria-premium-theme .product-image:hover img {
    transform: scale(1.1);
}

/* Efeito especial no título do restaurante */
.pizzaria-premium-theme #restaurant-name {
    position: relative;
    display: inline-block;
}

.pizzaria-premium-theme #restaurant-name::after {
    content: '⭐';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    animation: pizzaria-premium-star-spin 2s ease-in-out infinite;
}

.pizzaria-premium-theme #restaurant-name::before {
    content: '⭐';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    animation: pizzaria-premium-star-spin 2s ease-in-out infinite 1s;
}

@keyframes pizzaria-premium-star-spin {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) rotate(180deg) scale(1.3);
        opacity: 0.8;
    }
}

/* Footer animado */
.pizzaria-premium-theme .menu-footer {
    background: linear-gradient(135deg, #DC143C 0%, #FF6347 50%, #DC143C 100%);
    background-size: 200% 200%;
    animation: pizzaria-premium-footer-gradient 6s ease infinite;
    border-top: 3px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 -10px 30px rgba(220, 20, 60, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

@keyframes pizzaria-premium-footer-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.pizzaria-premium-theme .menu-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 215, 0, 0.5),
        transparent
    );
    animation: pizzaria-premium-wave 3s ease-in-out infinite;
}

@keyframes pizzaria-premium-wave {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

/* Menu Horizontal de Categorias */
.categories-horizontal-menu {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.categories-horizontal-menu::-webkit-scrollbar {
    height: 6px;
}

.categories-horizontal-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.categories-horizontal-menu::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
}

.categories-horizontal-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.category-horizontal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: var(--font-size-category-title, 1.5em);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #334155;
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.category-horizontal-btn.active {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    border: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.category-horizontal-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.15);
    color: #1f2937;
    transform: translateY(-2px);
}

.category-horizontal-btn .category-name-horizontal {
    color: inherit;
}

#show-all-categories-btn {
    color: #334155;
    font-weight: 600;
}

#view-coupon-btn {
    color: #334155;
    font-weight: 600;
}

#show-all-categories-btn:hover {
    color: #1f2937;
}

#view-coupon-btn:hover {
    color: #1f2937;
}

.products-container {
    padding: 0 20px;
}

.show-all-categories-btn {
    font-size: var(--font-size-category-title, 1.5em);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Estilo para modo "mostrar todas categorias" - wrap sem scroll lateral */
.categories-horizontal-menu.show-all-categories-mode {
    flex-wrap: wrap !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

.categories-horizontal-menu.show-all-categories-mode .category-horizontal-btn {
    flex: 0 1 auto;
    min-width: fit-content;
    max-width: calc(50% - 6px);
    width: auto;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 16px;
    hyphens: none;
    /* Garantir que palavras não quebrem */
}

/* Impedir quebra dentro de palavras - quebrar apenas em espaços */
.categories-horizontal-menu.show-all-categories-mode .category-horizontal-btn .category-name-horizontal {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: inline;
    line-height: 1.3;
    hyphens: none;
    /* Usar break-word apenas em espaços, nunca dentro de palavras */
}

/* Ajustes para telas médias - permitir 3 por linha */
@media (min-width: 600px) {
    .categories-horizontal-menu.show-all-categories-mode .category-horizontal-btn {
        max-width: calc(33.333% - 8px);
    }
}

/* Ajustes para telas grandes - permitir 4 por linha */
@media (min-width: 900px) {
    .categories-horizontal-menu.show-all-categories-mode .category-horizontal-btn {
        max-width: calc(25% - 9px);
    }
}

/* Ajustes para telas muito grandes - permitir 5 por linha */
@media (min-width: 1200px) {
    .categories-horizontal-menu.show-all-categories-mode .category-horizontal-btn {
        max-width: calc(20% - 10px);
    }
}

/* Ajustes para telas extra grandes - permitir 6 por linha */
@media (min-width: 1600px) {
    .categories-horizontal-menu.show-all-categories-mode .category-horizontal-btn {
        max-width: calc(16.666% - 10px);
    }
}

/* Garantir que o campo de busca sempre fique primeiro */
#search-container {
    order: -1;
}

#menu-content {
    display: flex;
    flex-direction: column;
}

#menu-content > #search-container {
    order: -999;
}

/* Botão Voltar ao Topo */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top-btn.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, var(--secondary-color, #764ba2) 0%, var(--primary-color, #667eea) 100%);
}

.back-to-top-btn:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ========================================
   TEMA DOCERIA - Efeitos Visuais
   ======================================== */

body.doceria-theme .menu-container {
    background: rgba(255, 248, 249, 0.98);
    box-shadow: 
        0 20px 60px rgba(183, 28, 28, 0.15),
        0 0 0 1px rgba(200, 16, 46, 0.08);
}

body.doceria-theme .menu-header h1 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Preços em vermelho */
body.doceria-theme .product-price,
body.doceria-theme .price {
    color: #B71C1C !important;
    font-weight: 700;
}

/* Footer */
body.doceria-theme .menu-footer {
    background: linear-gradient(135deg, #B71C1C, #880E4F) !important;
}

/* Scrollbar */
body.doceria-theme ::-webkit-scrollbar {
    width: 8px;
}

body.doceria-theme ::-webkit-scrollbar-track {
    background: #FFF0F3;
}

body.doceria-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C62828, #880E4F);
    border-radius: 4px;
}

/* Botão voltar ao topo */
body.doceria-theme .back-to-top-btn {
    background: linear-gradient(135deg, #B71C1C 0%, #880E4F 100%) !important;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
}

body.doceria-theme .back-to-top-btn:hover {
    background: linear-gradient(135deg, #C62828 0%, #AD1457 100%) !important;
}
