/* Variáveis de Cores Temáticas - Saúde, Natureza e Paz */
:root {
    --primary-color: #2F4F4F; /* Dark Slate Gray (Verde escuro chique) */
    --primary-light: #52796F; /* Verde suave */
    --accent-color: #CAD2C5; /* Verde bem clarinho pastel */
    --bg-color: #FAFAFA; /* Fundo limpo, não é 100% branco para não cansar o olho */
    --text-main: #2b2b2b;
    --text-light: #6e6e6e;
    --white: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fcfcfc;
    color: var(--text-main);
    overflow-x: hidden; /* Evita arrasto para o lado */
}

main {
    overflow-x: hidden; /* Segurança extra */
}

/* Tipografia especial para títulos, dá uma cara luxuosa */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* ================= Navbar ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.logo-icon {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.cart-btn, .login-btn {
    background: var(--white);
    border: 1px solid var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
}

.cart-btn:hover, .login-btn:hover {
    background-color: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #E07A5F; /* Cor terrosa para destaque */
    color: var(--white);
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.booking-section h2 {
    font-size: 3rem;
}

/* Padding padrao dos cards de informacao e agendamento no desktop */
.booking-card, .info-card {
    padding: 40px;
}

/* ================= Hero Section ================= */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 15s infinite;
    will-change: opacity;
    transform: translateZ(0); /* Força GPU no mobile */
}

/* Delay para cada imagem */
.carousel-item:nth-child(1) { animation-delay: 0s; }
.carousel-item:nth-child(2) { animation-delay: 5s; }
.carousel-item:nth-child(3) { animation-delay: 10s; }

@keyframes heroFade {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    33%  { opacity: 1; }
    43%  { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.6);
    padding: 60px;
    border-radius: 40px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    animation: slideUp 1s ease-out;
}

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

.hero-content h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botões base */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(47, 79, 79, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 79, 79, 0.3);
}

.w-100 {
    width: 100%;
}

/* ================= Vitrine de Produtos ================= */
.products-section {
    padding: 5rem 5%;
}

.products-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
}

.product-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.4rem;
    color: #E07A5F;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.product-card .btn-primary {
    margin-top: auto;
    text-align: center;
    padding: 12px;
}

/* ================= Modal de Login Admin ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 79, 79, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh; /* Altura máxima */
    overflow-y: auto; /* Rolagem se for muito grande */
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    scrollbar-width: thin;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.modal h2 {
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(82, 121, 111, 0.2);
}

/* ================= Toasts (Notificações tipo Stihl) ================= */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 30000; /* Aumentado para ficar acima de tudo */
    pointer-events: none;
}

.toast {
    background: var(--white);
    color: var(--text-main);
    padding: 16px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--primary-light);
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    border-left-color: #E07A5F;
}

.toast.success {
    border-left-color: #2e7d32;
}

.toast.info {
    border-left-color: #009ee3;
}

.toast i {
    color: var(--primary-light);
}

.toast.error i {
    color: #E07A5F;
}

/* ================= Badge e Status de Estoque do Admin ================= */
.status-bar { width: 8px; flex-shrink: 0; }
.status-green { background-color: #52796F; } 
.status-yellow { background-color: #f5b041; }
.status-red { background-color: #ff6b6b; }

.badge-status { padding: 4px 10px; border-radius: 8px; font-size: 0.75rem; font-weight: bold; display: inline-block; text-transform: uppercase;}
.badge-green { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.badge-yellow { background: #fff8e1; color: #f57f17; border: 1px solid #ffecb3; }
.badge-red { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ================= Abas do Dashboard ================= */
.dash-tab {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.dash-tab:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.02);
}

.dash-tab.active-tab {
    color: var(--primary-color);
    border-bottom-color: var(--primary-light);
    background: white;
}

.star-review:hover {
    transform: scale(1.2);
}

/* ================= Footer Style ================= */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 5% 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin-top: 20px;
    opacity: 0.7;
    line-height: 1.6;
    max-width: 300px;
}

.footer-nav h4, .footer-contact h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.6;
    transition: 0.3s;
}

.footer-nav ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: white;
    opacity: 0.5;
    transition: 0.3s;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        margin: 20px auto;
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #1eb954;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    width: 32px;
    height: 32px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}
/* ================= Seção de Agendamento (Pills) ================= */
#day-pills-container, #time-pills-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#day-pills-container::-webkit-scrollbar {
    display: none;
}

/* PC: mostra 5 pills via max-width. Mobile: sobrescrito por media query para 3 pills */
#day-pills-container {
    overflow: hidden; /* Setas controlam o scroll */
    max-width: calc(85px * 5 + 10px * 4); /* Máximo de 5 pills no desktop */
    min-width: 0; /* Permite que o container encolha além do seu conteúdo sem transbordar (Flexbox fix) */
    touch-action: pan-y; /* Permite scroll vertical da página mesmo arrastando aqui */
    -webkit-overflow-scrolling: touch;
}

.day-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    height: 100px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.day-pill:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.day-pill.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(47, 79, 79, 0.2);
    transform: scale(1.05);
}

.day-pill span {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
}

.day-pill.active span {
    opacity: 0.9;
}

.day-pill strong {
    font-size: 1.6rem;
    margin: 4px 0;
    font-family: 'Outfit';
}

.time-pill {
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 600;
    background: white;
    color: var(--text-main);
}

.time-pill:hover {
    border-color: var(--primary-light);
    background: #f0f7f4;
}

.time-pill.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(47, 79, 79, 0.2);
}

/* ================= Menu do Cliente (Dashboard) ================= */
.menu-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.menu-item:hover {
    background: #fafafa;
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.menu-item i {
    color: var(--primary-color);
}

/* ================= Checkout Multi-Step Premium ================= */

/* --- Backdrop e container do modal --- */
.checkout-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease;
}

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

.checkout-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 560px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

/* --- Cabeçalho fixo do modal --- */
.checkout-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.checkout-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkout-header-top h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

.checkout-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.checkout-close-btn:hover {
    background: #eee;
    transform: scale(1.1);
}

/* --- Barra de progresso de Steps --- */
.checkout-steps-bar {
    display: flex;
    align-items: center;
    gap: 0;
}

.checkout-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.checkout-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #eee;
    z-index: 0;
    transition: background 0.4s ease;
}

.checkout-step-item.done:not(:last-child)::after,
.checkout-step-item.active:not(:last-child)::after {
    background: var(--primary-light);
}

.checkout-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #bbb;
    z-index: 1;
    transition: all 0.3s ease;
    position: relative;
}

.checkout-step-item.active .checkout-step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(47, 79, 79, 0.35);
}

.checkout-step-item.done .checkout-step-circle {
    border-color: var(--primary-light);
    background: var(--primary-light);
    color: white;
}

.checkout-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.checkout-step-item.active .checkout-step-label {
    color: var(--primary-color);
}

.checkout-step-item.done .checkout-step-label {
    color: var(--primary-light);
}

/* --- Corpo scrollável do modal --- */
.checkout-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.checkout-body::-webkit-scrollbar {
    width: 4px;
}

.checkout-body::-webkit-scrollbar-track {
    background: transparent;
}

.checkout-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* --- Rodapé fixo com botões --- */
.checkout-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(47, 79, 79, 0.25);
}

.checkout-btn-primary:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 79, 79, 0.3);
}

.checkout-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-btn-primary.green {
    background: #1a9e5c;
    box-shadow: 0 4px 15px rgba(26, 158, 92, 0.3);
}

.checkout-btn-primary.green:hover {
    background: #158a4e;
}

.checkout-btn-back {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #eee;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-btn-back:hover {
    background: #fafafa;
    border-color: #ddd;
}

/* ---- Step 1: Itens do Pedido ---- */
.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
}

.checkout-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

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

.checkout-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-cat {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.checkout-item-price {
    font-weight: 700;
    color: #E07A5F;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.checkout-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.checkout-total-row span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.checkout-total-row.main {
    font-size: 1.05rem;
}

.checkout-total-row.main strong {
    font-size: 1.5rem;
    color: #E07A5F;
    font-weight: 900;
}

/* ---- Step 2: Métodos de Pagamento ---- */
.checkout-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method-card {
    padding: 20px 14px;
    border: 2px solid #eee;
    border-radius: 18px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.payment-method-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 79, 79, 0.08);
}

.payment-method-card.selected {
    border-color: var(--primary-color);
    background: #f5f9f8;
    box-shadow: 0 6px 20px rgba(47, 79, 79, 0.15);
}

.payment-method-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.payment-method-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.payment-method-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.payment-method-desc {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.payment-method-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-em-breve {
    background: #fff3e0;
    color: #e65100;
}

.payment-selected-check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payment-method-card.selected .payment-selected-check {
    opacity: 1;
    transform: scale(1);
}

/* ---- Formulário de Cartão ---- */
.card-form-container {
    animation: slideDown 0.3s ease;
}

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

/* Preview visual do cartão de crédito */
.credit-card-preview {
    width: 100%;
    max-width: 320px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #52796F 60%, #354f52 100%);
    margin: 0 auto 20px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(47, 79, 79, 0.35);
    color: white;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.credit-card-preview::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.credit-card-preview::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -20px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.card-chip {
    width: 36px;
    height: 26px;
    border-radius: 5px;
    background: linear-gradient(135deg, #f0d060 0%, #c8a800 100%);
    position: relative;
    z-index: 1;
}

.card-number-preview {
    font-size: 1.1rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 1;
    position: relative;
    font-family: 'Courier New', monospace;
}

.card-bottom-preview {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1;
    position: relative;
}

.card-holder-label, .card-expiry-label {
    font-size: 0.6rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.card-holder-name {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-expiry-val {
    font-size: 0.82rem;
    font-weight: 600;
}

.mp-logo-mini {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* Inputs do formulário do cartão */
.card-form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-field-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
    background: #fafafa;
}

.card-input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 3px rgba(82, 121, 111, 0.15);
}

.card-input::placeholder {
    color: #ccc;
}

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

/* ---- Pix QR Code ---- */
.pix-container {
    text-align: center;
    animation: slideDown 0.3s ease;
}

.pix-qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border: 3px solid #009ee3;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0faff, #e8f7ff);
    gap: 8px;
}

.pix-logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #009ee3;
    letter-spacing: -1px;
    font-family: 'Outfit', sans-serif;
}

.pix-qr-sub {
    font-size: 0.7rem;
    color: #009ee3;
    opacity: 0.7;
}

.pix-info-text {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

.pix-mp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #009ee3;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-top: 12px;
}

/* ---- Step 3: Confirmação ---- */
.checkout-confirm-section {
    margin-bottom: 18px;
}

.checkout-confirm-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.checkout-confirm-box {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-confirm-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.checkout-confirm-row span:first-child {
    color: var(--text-light);
}

.checkout-confirm-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

.checkout-method-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f7f4;
    border: 1px solid var(--accent-color);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

/* ---- Tela de Sucesso ---- */
.checkout-success-screen {
    text-align: center;
    padding: 20px 10px 10px;
    animation: slideDown 0.4s ease;
}

.success-icon-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

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

.checkout-success-screen h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.checkout-success-screen p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 24px;
}

.success-order-id {
    display: inline-block;
    background: #f0f7f4;
    border: 1px solid var(--accent-color);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* ---- Badges Admin ---- */
.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}
.badge-yellow { background-color: #fff9db; color: #f59f00; }
.badge-blue { background-color: #e7f5ff; color: #339af0; }
.badge-green { background-color: #ebfbee; color: #2b8a3e; }
.badge-red { background-color: #fff5f5; color: #fa5252; }

/* ---- Responsivo ---- */

@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        width: 100% !important;
        margin: 0 !important;
        overflow-x: hidden;
    }

    .nav-links {
        display: none; /* Oculta os links em telas pequenas/médias para evitar quebra horizontal do cabeçalho */
    }

    .hero-content {
        padding: 40px 20px;
        border-radius: 24px;
        margin: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .booking-section {
        padding: 40px 15px !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .booking-section .responsive-grid {
        width: 100% !important;
        padding: 0 !important;
    }

    .booking-section h2 {
        font-size: clamp(1.6rem, 8vw, 2.22rem) !important; /* Fonte fluida que se adapta ao tamanho da tela */
        text-align: center;
        line-height: 1.2 !important;
        word-break: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
    }

    .booking-section p {
        word-break: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
    }

    .booking-card {
        padding: 24px 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 330px !important; /* Diminui o tamanho (espremido) */
        box-sizing: border-box !important;
    }

    .info-card {
        padding: 24px 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand, .footer-nav, .footer-contact {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .logo {
        justify-content: center;
    }
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 3% !important;
    }

    .logo {
        gap: 6px !important;
        font-size: 1.1rem !important;
    }

    .logo img {
        height: 38px !important;
    }

    .logo span {
        display: block;
        max-width: 100px;
        line-height: 1 !important;
        font-size: 0.9rem !important;
        white-space: normal !important; /* Permite quebrar mas de forma controlada */
    }

    .nav-actions {
        gap: 6px !important;
    }

    .cart-btn, .login-btn {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        font-size: 1.1rem !important;
    }

    /* Modais menores no Celular */
    #dynamic-modal-content, .public-product-modal, .modal {
        max-width: 92% !important;
        margin: 10px auto;
        padding: 25px 20px !important; /* Menos padding no mobile */
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .product-card {
        padding: 10px !important;
        min-width: 0 !important; /* Evita que o flex/grid force largura */
    }

    .product-card img {
        height: 140px !important;
        margin-bottom: 10px !important;
    }

    .product-title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        height: 2.4rem; /* Força 2 linhas */
        overflow: hidden;
    }

    .product-price {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    /* Remove as setas no mobile, o usuario arrasta com o dedo! Libera a largura inteira! */
    .btn-scroll-days {
        display: none !important;
    }

    /* Impede o "arrastar pro lado" da página toda no agendamento */
    #day-pills-container {
        display: flex !important;
        overflow-x: auto !important; /* Mostra scroll ou permite arraste no celular */
        padding: 5px 0 !important;
        gap: 8px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .swipe-hint {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .swipe-hint i {
        width: 14px;
        height: 14px;
    }

    .day-pill {
        min-width: calc((100% - 8px * 2) / 3) !important; /* Mostra exatamente 3 pills */
        padding: 12px 2px !important; /* Menos padding para ficar "fininho" */
        min-height: 85px !important; /* Mantém a altura elegante */
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .day-pill span { font-size: 0.70rem !important; }
    .day-pill strong { font-size: 1.15rem !important; margin: 2px 0 !important; }

    /* Horários em 3 colunas no mobile */
    #time-pills-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .time-pill {
        width: 100% !important;
        padding: 12px 5px !important;
        font-size: 0.9rem !important;
    }
    }
}

/* Fix Status Badge no Painel Admin */
.badge-status {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100px;
    display: inline-block;
    vertical-align: middle;
}

/* Estilo para a Logo Imagem */
.logo img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 50%; /* Torna a logo circular */
}

.footer-brand .logo img {
    max-height: 60px;
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 1500; /* Abaixo dos modais (2000) */
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}
