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

:root {
    /* Paleta Praiana Tropical (Inspirada no Cardápio Varandas) */
    --sand-bg: #f8f4ed;
    --sand-surface: #fdfbf7;
    --sand-card: #ffffff;
    --sand-border: #eadfcb;
    --sand-border-dark: #d5c3ab;
    --sand-muted: #8c8273;

    /* Terracota & Coral (Destaques, Selo Varandas, Carnes & Botões) */
    --terracotta: #b32624;
    --terracotta-hover: #961e1c;
    --terracotta-light: #fdf2f2;
    --terracotta-border: rgba(179, 38, 36, 0.25);
    --coral-orange: #ea580c;
    --coral-glow: #f97316;

    /* Azul Turquesa & Oceano (Placa "Vamos à Praia", Moquecas & Frutos do Mar) */
    --ocean-turquoise: #0284c7;
    --ocean-teal: #0891b2;
    --ocean-light: #f0f9ff;
    --ocean-dark: #0369a1;
    --ocean-border: rgba(2, 132, 199, 0.25);

    /* Verde Tropical (Folhagens de Palmeira, Costela-de-Adão, Saladas) */
    --palm-green: #15803d;
    --palm-light: #f0fdf4;
    --palm-dark: #166534;

    /* Dourado Solar (Estrelas, Novidade, Detalhes) */
    --sun-gold: #f59e0b;
    --sun-amber: #d97706;
    --sun-yellow: #fde047;

    /* Tipografia & Contrastes */
    --text-main: #1c1917;
    --text-heading: #292524;
    --text-muted: #57534e;
    --text-subtle: #78716c;
    --text-light: #a8a29e;

    /* Fontes */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Caveat', cursive;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--sand-bg);
    background: radial-gradient(ellipse at top, #faf7f2 0%, #f4ede2 60%, #eee3d1 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle sand grain overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Typography Helpers */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-script { font-family: var(--font-script); }
.text-terracotta { color: var(--terracotta); }
.text-turquoise { color: var(--ocean-turquoise); }
.text-palm { color: var(--palm-green); }
.text-gold { color: var(--sun-amber); }
.text-sand-muted { color: var(--text-subtle); }

/* Hero Banner Praiano */
.praia-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 290px;
    overflow: hidden;
    background-color: #f5efe6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 44px 16px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.praia-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('../images/beach-hero-bg.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.82;
    pointer-events: none;
}

.praia-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(247, 243, 237, 0.25) 0%, rgba(248, 244, 237, 0.92) 85%, rgba(248, 244, 237, 1) 100%);
    pointer-events: none;
}

.restaurant-badge-logo {
    position: relative;
    z-index: 5;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--terracotta);
    outline: 2px solid var(--sun-gold);
    outline-offset: 2px;
    box-shadow: 0 8px 24px rgba(179, 38, 36, 0.22), 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    background-color: #ffffff;
    margin-bottom: 14px;
}

.restaurant-main-title {
    position: relative;
    z-index: 5;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    text-align: center;
    color: var(--text-heading);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .restaurant-main-title { font-size: 3.5rem; }
    .praia-hero-wrapper { min-height: 350px; }
}

.coastal-subtitle-divider {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.coastal-subtitle-divider .line {
    height: 2px;
    width: 50px;
    background: linear-gradient(90deg, transparent, var(--terracotta));
    border-radius: 2px;
}

.coastal-subtitle-divider .line.right {
    background: linear-gradient(90deg, var(--terracotta), transparent);
}

.coastal-subtitle-divider span {
    font-family: var(--font-script);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--terracotta);
    letter-spacing: 0.05em;
}

.restaurant-desc {
    position: relative;
    z-index: 5;
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 560px;
    text-align: center;
    margin: 12px auto 0;
    line-height: 1.55;
    font-weight: 400;
}

.restaurant-meta-bar {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.restaurant-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--sand-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.restaurant-meta-item i {
    color: var(--coral-orange);
}

.btn-waiter-praia {
    background: linear-gradient(135deg, var(--ocean-turquoise) 0%, var(--ocean-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

.btn-waiter-praia:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(2, 132, 199, 0.4);
    color: #ffffff;
}

/* Sticky Category Navigation Bar */
.praia-nav-sticky {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 244, 237, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sand-border);
    box-shadow: 0 4px 16px rgba(28, 25, 23, 0.05);
}

.praia-nav-scroll {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.praia-nav-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--sand-border);
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.category-pill:hover {
    color: var(--terracotta) !important;
    border-color: var(--terracotta-border);
    background: #ffffff;
    transform: translateY(-1px);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--terracotta) 0%, #961e1c 100%);
    color: #ffffff !important;
    font-weight: 700;
    border-color: var(--terracotta);
    box-shadow: 0 3px 12px rgba(179, 38, 36, 0.3);
    transform: translateY(-1px);
}

/* Search Input */
.praia-search-box {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.praia-form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--sand-border);
    border-radius: 9999px;
    padding: 10px 20px 10px 42px;
    color: var(--text-main);
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.praia-form-control:focus {
    outline: none;
    border-color: var(--ocean-turquoise);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-icon-inside {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
}

/* Main Container */
.menu-main-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 16px 120px;
    position: relative;
    z-index: 1;
}

/* Beach Card (Container das Categorias) */
.beach-card {
    position: relative;
    background: var(--sand-card);
    border: 1px solid var(--sand-border);
    border-radius: 1.25rem;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(28, 25, 23, 0.02);
    scroll-margin-top: 86px;
}

@media (min-width: 768px) {
    .beach-card {
        padding: 34px;
    }
}

/* Top decorative wave stripe on card */
.beach-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--coral-orange) 50%, var(--ocean-turquoise) 100%);
    border-radius: 0 0 4px 4px;
}

/* Category Title & Badge */
.category-header-wrap {
    text-align: center;
    margin-bottom: 22px;
}

.category-badge-accent {
    display: inline-block;
    font-family: var(--font-script);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--coral-orange);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-heading);
    margin: 0 0 6px;
}

.category-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 540px;
    line-height: 1.5;
}

/* Subcategory Title */
.subcategory-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--terracotta);
    border-bottom: 2px dashed var(--sand-border);
    padding-bottom: 6px;
    margin: 24px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subcategory-title::before {
    content: "🌴";
    font-size: 1.1rem;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 36px 0;
    gap: 16px;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--sand-border-dark) 100%);
}

.section-divider::after {
    background: linear-gradient(90deg, var(--sand-border-dark) 0%, transparent 100%);
}

.section-divider-icon {
    color: var(--coral-orange);
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Menu Item Row */
.menu-item-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--sand-border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background-color 0.2s ease;
}

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

.menu-item-thumb {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--sand-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .menu-item-thumb { width: 92px; height: 92px; }
}

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

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.item-name {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.item-price {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--terracotta);
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 576px) {
    .item-price {
        font-size: 0.95rem;
    }
}

.item-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 5px 0 0;
    line-height: 1.48;
    font-weight: 400;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-add-praia {
    background: linear-gradient(135deg, var(--terracotta) 0%, #961e1c 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(179, 38, 36, 0.25);
}

.btn-add-praia:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(179, 38, 36, 0.35);
    color: #ffffff;
}

.badge-dietary {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--sand-bg);
    color: var(--text-muted);
    font-weight: 600;
    border: 1px solid var(--sand-border);
}

/* Customization Hint Tag (Legenda de Personalizáveis) */
.item-customization-tag {
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff9f6;
    border: 1px solid rgba(179, 38, 36, 0.15);
    border-left: 3px solid var(--terracotta);
    border-radius: 6px;
}

.item-customization-tag .custom-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--terracotta);
    margin-bottom: 3px;
}

.item-customization-tag .custom-badge i {
    font-size: 0.75rem;
}

.item-customization-tag .custom-details {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #4b5563;
}

.item-customization-tag .custom-opt-line {
    display: block;
    margin-top: 2px;
}

.item-customization-tag .custom-opt-label {
    color: var(--text-heading);
    font-weight: 600;
}

.item-customization-tag .custom-opt-extras {
    color: #b45309;
}

.item-customization-tag .custom-opt-extras .custom-opt-label {
    color: #92400e;
}

/* Floating Bottom Order Bar */
.praia-bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    max-width: 600px;
    margin: 0 auto;
    z-index: 9999;
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 10px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: space-between;
}

.praia-bottom-bar.show {
    display: flex;
}

.praia-bottom-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.praia-item-count-badge {
    background: var(--sun-gold);
    color: #1c1917;
    font-weight: 800;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.praia-bottom-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-view-order {
    background: linear-gradient(135deg, var(--terracotta) 0%, #961e1c 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(179, 38, 36, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-view-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(179, 38, 36, 0.5);
}

/* Modals & Overlays */
.praia-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

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

@media (min-width: 640px) {
    .praia-modal {
        align-items: center;
        padding: 20px;
    }
}

.praia-modal-content {
    background: #ffffff;
    border: 1px solid var(--sand-border);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
    .praia-modal-content {
        border-radius: 20px;
    }
}

.praia-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sand-border);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.praia-modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.btn-close-modal:hover {
    color: var(--terracotta);
}

.praia-input {
    width: 100%;
    background: var(--sand-bg);
    border: 1px solid var(--sand-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: var(--font-body);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.praia-input:focus {
    outline: none;
    border-color: var(--terracotta);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(179, 38, 36, 0.1);
}

/* Stepper */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--sand-border);
    border-radius: 8px;
    background: var(--sand-bg);
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-heading);
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.qty-btn:hover {
    background: var(--sand-border);
}

.qty-num {
    padding: 0 10px;
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.95rem;
}

/* Footer Tropical */
.praia-footer {
    text-align: center;
    padding: 40px 16px 60px;
    color: var(--text-subtle);
    font-size: 0.85rem;
}

.praia-footer-icon {
    font-size: 1.5rem;
    color: var(--coral-orange);
    margin-bottom: 8px;
}
