/* ═══════════════════════════════════════
   Delícias da Jade — Estilos
═══════════════════════════════════════ */

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

:root {
    --primary-purple: #c8a2d0;
    --dark-purple: #8b5a9e;
    --light-purple: #e8d5ed;
    --dark-text: #2d1b3d;
    --light-bg: #fdfbfe;
    --white: #ffffff;
    --error-red: #e74c3c;
    --success-green: #27ae60;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background: var(--light-bg);
    overflow-x: hidden;
    padding-top: 70px; /* Espaço para navbar fixa */
}

/* ── NAVBAR FIXA ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(139, 90, 158, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(139, 90, 158, 0.2);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-purple);
    transition: transform 0.3s ease;
}

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

.navbar-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark-purple);
    transition: width 0.3s ease;
}

.navbar-menu a:hover {
    color: var(--dark-purple);
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* ── BOTÃO VOLTAR AO TOPO ── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(139, 90, 158, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(139, 90, 158, 0.4);
}

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

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle cx="200" cy="150" r="100" fill="%23ffffff" opacity="0.04"/><circle cx="900" cy="600" r="150" fill="%23ffffff" opacity="0.04"/><circle cx="1100" cy="200" r="80" fill="%23ffffff" opacity="0.04"/><circle cx="100" cy="650" r="120" fill="%23ffffff" opacity="0.04"/></svg>') center/cover;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06) translateY(-15px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

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

.logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.25));
    animation: scaleIn 0.8s ease-out;
}

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

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.8rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-purple);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ── BOTÕES ── */
.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width .5s, height .5s;
}

.btn:hover::after {
    width: 350px;
    height: 350px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--white);
    color: var(--dark-purple);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.btn-primary:focus {
    outline: 3px solid var(--dark-purple);
    outline-offset: 3px;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.btn-secondary:focus {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

/* ── COMPARTILHADOS ── */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.6rem;
    color: var(--dark-purple);
}

.section-subtitle {
    text-align: center;
    color: var(--dark-text);
    font-size: 1rem;
    margin-bottom: 3.5rem;
    opacity: 0.75;
}

/* ── CARDÁPIO ── */
.menu-section {
    padding: 6rem 2rem;
    background: var(--white);
    position: relative;
}

.menu-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.menu-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.menu-card {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--white) 100%);
    border-radius: 28px;
    padding: 2.2rem;
    box-shadow: 0 8px 35px rgba(139, 90, 158, 0.12);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 55px rgba(139, 90, 158, 0.22);
}

.menu-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--dark-purple);
    margin-bottom: 1.2rem;
}

.cake-types {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cake-type {
    background: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dark-purple);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(139, 90, 158, 0.1);
}

.flavor-list {
    list-style: none;
}

.flavor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flavor-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--dark-purple);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.flavor-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 90, 158, 0.12);
}

.flavor-item:hover::before {
    transform: scaleY(1);
}

.flavor-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.flavor-price {
    font-weight: 700;
    color: var(--dark-purple);
    font-size: 1.1rem;
}

/* ── GALERIA ── */
.gallery-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--light-purple) 100%);
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.gallery-item {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 8px 35px rgba(139, 90, 158, 0.18);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.04) rotate(1deg);
    box-shadow: 0 18px 55px rgba(139, 90, 158, 0.28);
}

.gallery-item:focus {
    outline: 3px solid var(--dark-purple);
    outline-offset: 3px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139, 90, 158, 0.82) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-close:focus {
    outline: 3px solid var(--white);
    outline-offset: 3px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

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

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: var(--white);
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ── PEDIDO ── */
.pedido-section {
    padding: 6rem 2rem;
    background: var(--white);
    text-align: center;
    position: relative;
}

.pedido-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
}

.pedido-box {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--light-bg);
    border-radius: 28px;
    padding: 2.5rem 2.2rem;
    box-shadow: 0 15px 50px rgba(139, 90, 158, 0.16);
    position: relative;
    overflow: hidden;
}

.pedido-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-purple), var(--dark-purple));
}

.pedido-box label {
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-purple);
    letter-spacing: 0.2px;
    margin-bottom: -4px;
}

.required {
    color: var(--error-red);
}

.pedido-box select,
.pedido-box input,
.pedido-box textarea {
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 2px solid var(--light-purple);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-text);
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.pedido-box select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b5a9e' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.pedido-box textarea {
    min-height: 88px;
    resize: vertical;
}

.pedido-box select:focus,
.pedido-box input:focus,
.pedido-box textarea:focus {
    border-color: var(--dark-purple);
    box-shadow: 0 0 0 4px rgba(139, 90, 158, 0.12);
}

.pedido-box select:hover,
.pedido-box input:hover,
.pedido-box textarea:hover {
    border-color: var(--primary-purple);
}

.pedido-box input.error,
.pedido-box select.error,
.pedido-box textarea.error {
    border-color: var(--error-red);
}

.error-message {
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: -0.5rem;
    display: none;
    text-align: left;
}

.error-message.show {
    display: block;
}

.input-hint {
    color: var(--dark-text);
    opacity: 0.6;
    font-size: 0.75rem;
    margin-top: -0.5rem;
    text-align: left;
}

/* ── CONTROLE DE QUANTIDADE ── */
.quantidade-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantidade-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--light-purple);
    background: var(--white);
    color: var(--dark-purple);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantidade-btn:hover {
    background: var(--light-purple);
    border-color: var(--dark-purple);
}

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

.quantidade-btn:focus {
    outline: 3px solid var(--dark-purple);
    outline-offset: 2px;
}

#quantidade {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Remove setas do input number */
#quantidade::-webkit-outer-spin-button,
#quantidade::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#quantidade[type=number] {
    -moz-appearance: textfield;
}

.preco-preview {
    background: linear-gradient(135deg, var(--light-purple), #f3e8f8);
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px dashed var(--primary-purple);
    margin: 0.2rem 0;
}

.preco-label {
    font-size: 0.85rem;
    color: var(--dark-text);
    opacity: 0.75;
}

.preco-valor {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark-purple);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    margin-top: 0.4rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transform: translate(-50%, -50%);
    transition: width .5s, height .5s;
}

.btn-whatsapp:hover::after {
    width: 500px;
    height: 500px;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:focus {
    outline: 3px solid #25d366;
    outline-offset: 3px;
}

.btn-whatsapp svg,
.btn-whatsapp span {
    position: relative;
    z-index: 1;
}

/* ── LOADING OVERLAY ── */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(139, 90, 158, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ── TOAST NOTIFICATION ── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-green);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 4000;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 300px;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--error-red);
}

/* ── CONTATO ── */
.contact-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--white) 100%);
    text-align: center;
}

.contact-info {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 1.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-card {
    flex: 1;
    min-width: 240px;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    border-radius: 22px;
    color: var(--white);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 18px 50px rgba(139, 90, 158, 0.38);
}

.contact-card:focus {
    outline: 3px solid var(--dark-purple);
    outline-offset: 3px;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}

.contact-card p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.contact-card .handle {
    margin-top: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 1;
}

/* ── FOOTER ── */
footer {
    background: var(--dark-purple);
    color: var(--white);
    padding: 1.8rem 2rem;
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

footer p + p {
    margin-top: 0.3rem;
}

footer .desenvolv {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

footer .desenvolv a {
    color: var(--light-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.3rem;
}

footer .desenvolv a:hover {
    color: var(--white);
    text-decoration: underline;
}

footer .desenvolv a:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ── ANIMAÇÕES DE SCROLL ── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }

    .navbar-container {
        padding: 0.6rem 1rem;
    }

    .navbar-logo {
        font-size: 1.1rem;
    }

    .navbar-logo img {
        width: 35px;
        height: 35px;
    }

    .navbar-menu {
        gap: 1rem;
    }

    .navbar-menu a {
        font-size: 0.85rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 680px) {
    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .menu-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
    }

    .pedido-box {
        padding: 2rem 1.2rem;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }

    .navbar-menu {
        display: none; /* Oculta menu em mobile - pode adicionar menu hamburguer futuramente */
    }

    .toast {
        min-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .quantidade-control {
        flex-wrap: nowrap;
    }

    .quantidade-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

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

/* Foco visível para navegação por teclado */
*:focus-visible {
    outline: 3px solid var(--dark-purple);
    outline-offset: 3px;
}

/* Skip to content para leitores de tela */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark-purple);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ════════════════════════════════════════
   CARRINHO DE COMPRAS
════════════════════════════════════════ */

/* ── Botão Adicionar ao Carrinho ── */
.btn-adicionar {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 90, 158, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-adicionar::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transform: translate(-50%, -50%);
    transition: width .5s, height .5s;
}

.btn-adicionar:hover::after { width: 500px; height: 500px; }

.btn-adicionar:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(139, 90, 158, 0.45);
}

.btn-adicionar:focus {
    outline: 3px solid var(--dark-purple);
    outline-offset: 3px;
}

/* ── Animação de "bounce" ao adicionar ── */
@keyframes bounceIn {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08); }
    70%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}
.btn-adicionar.added { animation: bounceIn 0.4s ease; }

/* ── Wrapper do Carrinho ── */
.carrinho-wrapper {
    max-width: 540px;
    margin: 2rem auto 0;
    background: var(--light-bg);
    border-radius: 28px;
    box-shadow: 0 15px 50px rgba(139, 90, 158, 0.16);
    overflow: hidden;
    display: none; /* Fica oculto até ter itens */
}

.carrinho-wrapper.visivel { display: block; }

/* ── Cabeçalho do Carrinho ── */
.carrinho-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    background: linear-gradient(90deg, var(--primary-purple), var(--dark-purple));
    color: white;
}

.carrinho-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-limpar-carrinho {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-limpar-carrinho:hover {
    background: rgba(255,255,255,0.32);
}

/* ── Lista de Itens ── */
.carrinho-lista {
    list-style: none;
    padding: 0.8rem 1.2rem;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

/* scrollbar sutil */
.carrinho-lista::-webkit-scrollbar { width: 5px; }
.carrinho-lista::-webkit-scrollbar-track { background: transparent; }
.carrinho-lista::-webkit-scrollbar-thumb {
    background: var(--light-purple);
    border-radius: 99px;
}

/* ── Cada item do carrinho ── */
.carrinho-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 10px rgba(139,90,158,0.08);
    animation: slideDown 0.3s ease;
    border-left: 4px solid var(--primary-purple);
}

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

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

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

.carrinho-item-detalhe {
    font-size: 0.78rem;
    color: var(--dark-text);
    opacity: 0.6;
    margin-top: 0.15rem;
}

.carrinho-item-preco {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-purple);
    white-space: nowrap;
}

.btn-remover-item {
    background: #fde8e8;
    border: none;
    color: var(--error-red);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.btn-remover-item:hover {
    background: var(--error-red);
    color: white;
    transform: scale(1.1);
}

/* ── Rodapé (total + dados + botão) ── */
.carrinho-footer {
    padding: 1.2rem 1.8rem 1.8rem;
    border-top: 2px solid var(--light-purple);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.carrinho-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--light-purple), #f3e8f8);
    border: 2px dashed var(--primary-purple);
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
}

.carrinho-total span {
    font-size: 0.85rem;
    color: var(--dark-text);
    opacity: 0.75;
}

.carrinho-total strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark-purple);
}

/* ── Campos de dados do cliente ── */
.carrinho-dados {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.carrinho-dados label {
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-purple);
}

.carrinho-dados input,
.carrinho-dados textarea {
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 2px solid var(--light-purple);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-text);
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    width: 100%;
}

.carrinho-dados input:focus,
.carrinho-dados textarea:focus {
    border-color: var(--dark-purple);
    box-shadow: 0 0 0 4px rgba(139, 90, 158, 0.12);
}

.carrinho-dados input.error { border-color: var(--error-red); }

.carrinho-dados textarea {
    min-height: 75px;
    resize: vertical;
}

/* ── Badge contador no título ── */
.carrinho-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--dark-purple);
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-left: 0.4rem;
}

/* ── Responsivo ── */
@media (max-width: 680px) {
    .carrinho-wrapper { margin: 1.5rem 0 0; }
    .carrinho-footer  { padding: 1rem 1.2rem 1.4rem; }
    .carrinho-header  { padding: 1rem 1.2rem; }
    .carrinho-total strong { font-size: 1.4rem; }
}
