:root {
    --primary-pink: #ff85a2;
    --deep-pink: #f72585;
    --soft-pink: #fff0f3;
    --header-footer-pink: rgb(255, 218, 235);
    --gold: #c5a059;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --white: #ffffff;
    --font-main: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
header {
    height: var(--header-height);
    background: var(--header-footer-pink);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--deep-pink);
    transition: var(--transition);
}

.nav-desktop a:hover { color: var(--deep-pink); }
.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a.active { color: var(--deep-pink); }
.nav-desktop a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.icon-btn {
    background: none; border: none;
    font-size: 1.3rem; cursor: pointer;
    color: var(--text-dark); position: relative;
    transition: var(--transition);
    padding: 6px;
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: var(--deep-pink); }

#cart-count {
    position: absolute;
    top: 0px; right: 0px;
    background: var(--deep-pink);
    color: white; font-size: 0.6rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* ─── MOBILE MENU ─────────────────────────────────────────────────────────── */
.menu-toggle {
    display: none;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
    cursor: pointer;
}

.nav-mobile {
    position: fixed; top: 0; left: -100%;
    width: 100%; height: 100vh;
    background: white; z-index: 2000;
    padding: 30px; transition: var(--transition);
    overflow-y: auto;
}

.nav-mobile .logo-mobile { display: none; text-align: center; margin-bottom: 40px; }
.nav-mobile .logo-mobile img { height: 80px; width: auto; }
.nav-mobile.active { left: 0; }
.nav-mobile.active .logo-mobile { display: block; }

.nav-mobile ul { list-style: none; }
.nav-mobile li { margin-bottom: 20px; }
.nav-mobile a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.8rem;
    font-family: var(--font-main);
    font-weight: 700;
    transition: var(--transition);
}
.nav-mobile a:hover { color: var(--deep-pink); }

/* ─── HERO CAROUSEL ──────────────────────────────────────────────────────── */
.hero-carousel {
    margin-top: var(--header-height);
    height: 550px;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}

.carousel-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

.carousel-content {
    position: relative; z-index: 2;
    padding: 0 20px;
}

.carousel-content h2 {
    font-size: 3.8rem;
    font-family: var(--font-main);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    padding: 14px 36px;
    background: var(--deep-pink);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(247,37,133,0.4);
}

.btn-hero:hover {
    background: #d91d6f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247,37,133,0.5);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: white; width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer;
    font-size: 1rem; transition: var(--transition);
    backdrop-filter: blur(5px);
}
.carousel-btn:hover { background: rgba(255,255,255,0.35); }
.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }

.carousel-dots {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}

.carousel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer; transition: var(--transition);
    border: none;
}
.carousel-dot.active { background: white; transform: scale(1.3); }

/* ─── CATEGORY CARDS ─────────────────────────────────────────────────────── */
.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0 60px;
}

.cat-card {
    height: 380px; border-radius: 20px;
    overflow: hidden; position: relative;
    text-decoration: none; transition: var(--transition);
    display: block;
}

.cat-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover img { transform: scale(1.05); }

.cat-card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: white;
}

.cat-card-overlay h3 { font-family: var(--font-main); font-size: 1.8rem; margin-bottom: 5px; }
.cat-card-overlay span { font-size: 0.85rem; opacity: 0.85; }

/* ─── PRODUCTS CAROUSEL ──────────────────────────────────────────────────── */
.products-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-carousel {
    overflow: hidden;
    flex: 1;
    border-radius: 12px;
    min-width: 0;
}

.products-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 5px;
}

.prod-carousel-btn {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-pink);
    color: var(--deep-pink);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 5;
}
.prod-carousel-btn:hover { background: var(--soft-pink); transform: scale(1.05); }
.prod-carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.prod-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.prod-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ddd; cursor: pointer;
    transition: var(--transition); border: none;
}
.prod-dot.active { background: var(--deep-pink); transform: scale(1.3); }

.carousel-loading {
    width: 100%;
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
}

/* ─── SEARCH ──────────────────────────────────────────────────────────────── */
.search-container { margin: 20px 0 30px; position: relative; }

.search-input {
    width: 100%; padding: 16px 50px 16px 25px;
    border: 2px solid var(--soft-pink);
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--deep-pink);
    box-shadow: 0 5px 20px rgba(247,37,133,0.1);
}

/* ─── PRODUCTS GRID ───────────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.loading-placeholder {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}
.loading-placeholder p { margin-top: 15px; }

.product-card {
    background: white; border-radius: 20px;
    padding: 12px; border: 1px solid #f0f0f0;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.product-card img {
    width: 100%; height: 240px;
    object-fit: cover; border-radius: 14px;
    transition: transform 0.4s ease;
    flex-shrink: 0;
}
.product-card:hover img { transform: scale(1.02); }

.product-info {
    padding: 14px 8px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info .cat-label {
    font-size: 0.7rem; color: var(--deep-pink);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; display: block; margin-bottom: 6px;
}

.product-info h3 {
    font-size: 1rem; margin-bottom: 8px;
    color: var(--text-dark);
    flex: 1;
}

.product-info .price {
    color: var(--deep-pink); font-weight: 800; font-size: 1.2rem;
    margin-bottom: 12px; display: block;
}

.btn-add {
    width: 100%; padding: 11px;
    background: var(--soft-pink);
    color: var(--deep-pink);
    border: none; border-radius: 10px;
    font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: var(--transition);
    font-family: var(--font-secondary);
    min-height: 44px;
}
.btn-add:hover {
    background: var(--deep-pink);
    color: white;
}

/* ─── PRODUCT CARD — CAROUSEL VARIANT ────────────────────────────────────── */
.product-card-carousel {
    flex-shrink: 0;
    width: 220px;
    background: white; border-radius: 20px;
    padding: 10px; border: 1px solid #f0f0f0;
    transition: var(--transition); cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card-carousel:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-card-carousel img {
    width: 100%; height: 200px;
    object-fit: cover; border-radius: 12px;
    flex-shrink: 0;
}

.product-card-carousel .product-info {
    padding: 12px 6px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-carousel .product-info h3 { font-size: 0.9rem; flex: 1; }
.product-card-carousel .product-info .price { font-size: 1.05rem; }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 62px; height: 62px;
    background: #25d366; color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 999; text-decoration: none;
    transition: var(--transition);
}
.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37,211,102,0.5);
}

/* ─── MODAL CART ──────────────────────────────────────────────────────────── */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000; backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background: white; width: 95%;
    max-width: 480px; margin: 40px auto;
    border-radius: 25px; padding: 24px;
    max-height: 90vh; overflow-y: auto;
}

/* ─── CART ITEM ROW ───────────────────────────────────────────────────────── */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f5f5;
}

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

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-size: 0.82rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

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

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 28px; height: 28px;
    border-radius: 8px;
    border: 1.5px solid var(--header-footer-pink);
    background: var(--soft-pink);
    color: var(--deep-pink);
    font-weight: 700; font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
}
.cart-qty-btn:hover { background: var(--header-footer-pink); }

.cart-qty-num {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 22px;
    text-align: center;
    color: var(--text-dark);
}

.cart-item-subtotal {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--deep-pink);
    min-width: 64px;
    text-align: right;
    flex-shrink: 0;
}

.cart-remove-btn {
    background: none; border: none;
    color: #ccc; cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.2s;
    flex-shrink: 0;
    padding: 4px;
    line-height: 1;
}

/* ─── PRODUCT DETAIL MODAL ───────────────────────────────────────────────── */
.product-detail-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2500; backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
    overflow-y: auto;
}

.product-detail-modal.active { display: flex; }

.product-detail-content {
    background: white; width: 95%;
    max-width: 620px; border-radius: 25px;
    padding: 24px; max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    margin: auto;
}

.product-detail-header {
    display: flex; justify-content: flex-end; margin-bottom: 15px;
}

.product-detail-close {
    background: none; border: none;
    font-size: 2rem; color: #ccc;
    cursor: pointer; transition: var(--transition);
    line-height: 1;
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
}
.product-detail-close:hover { color: var(--deep-pink); }

.product-detail-image {
    width: 100%; height: 300px;
    object-fit: cover; border-radius: 15px; margin-bottom: 20px;
}

.product-detail-name {
    font-family: var(--font-main); font-size: 1.9rem;
    color: var(--text-dark); margin-bottom: 8px;
}

.product-detail-price {
    font-size: 1.6rem; color: var(--deep-pink);
    font-weight: 800; margin-bottom: 20px;
}

.product-detail-section {
    margin-bottom: 18px; padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}
.product-detail-section:last-of-type { border-bottom: none; }

.product-detail-label {
    font-weight: 700; color: var(--deep-pink);
    font-size: 0.82rem; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 6px; display: block;
}

.product-detail-text {
    color: var(--text-muted); line-height: 1.6; font-size: 0.95rem;
}

.quantity-selector {
    display: flex; align-items: center;
    gap: 15px; margin-bottom: 20px;
}

.quantity-btn {
    background: var(--soft-pink);
    border: 1px solid var(--header-footer-pink);
    width: 44px; height: 44px; border-radius: 10px;
    cursor: pointer; font-weight: 700; color: var(--deep-pink);
    transition: var(--transition); font-size: 1.2rem;
    font-family: var(--font-secondary);
    display: flex; align-items: center; justify-content: center;
}
.quantity-btn:hover { background: var(--header-footer-pink); }

.quantity-input {
    width: 60px; height: 44px; text-align: center;
    border: 1px solid var(--header-footer-pink);
    border-radius: 8px; font-weight: 700;
    font-size: 1rem; color: var(--text-dark); outline: none;
}

.add-to-cart-btn {
    width: 100%; padding: 15px;
    background: var(--deep-pink); color: white;
    border: none; border-radius: 12px;
    font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: var(--transition);
    font-family: var(--font-secondary);
    min-height: 52px;
}
.add-to-cart-btn:hover {
    background: #d91d6f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247,37,133,0.35);
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
    background: var(--header-footer-pink) !important;
}

/* ─── TABLET (≤ 900px) ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .cat-card { height: 280px; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ─── MOBILE (≤ 768px) ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --header-height: 64px; }

    /* Nav */
    .nav-desktop { display: none; }
    .menu-toggle { display: flex; font-size: 1.4rem; color: var(--deep-pink); }

    /* Logo menor */
    .logo img { height: 46px; }

    /* Hero */
    .hero-carousel { height: 360px; }
    .carousel-content h2 { font-size: 2rem; }
    .carousel-content p { font-size: 0.9rem; }
    .btn-hero { padding: 12px 28px; font-size: 0.82rem; }
    .carousel-btn { width: 38px; height: 38px; font-size: 0.85rem; }
    .carousel-btn-prev { left: 10px; }
    .carousel-btn-next { right: 10px; }

    /* Categorias — 1 coluna */
    .category-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .cat-card { height: 200px; }
    .cat-card-overlay h3 { font-size: 1.4rem; }

    /* Grid produtos */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card { padding: 8px; border-radius: 14px; }
    .product-card img { height: 150px; border-radius: 10px; }
    .product-info h3 { font-size: 0.82rem; }
    .product-info .price { font-size: 0.95rem; margin-bottom: 8px; }
    .btn-add { font-size: 0.78rem; padding: 8px; }

    /* Carrossel de produtos */
    .product-card-carousel { width: 160px; }
    .product-card-carousel img { height: 145px; }
    .product-card-carousel .product-info h3 { font-size: 0.8rem; }
    .product-card-carousel .product-info .price { font-size: 0.9rem; }
    .prod-carousel-btn { width: 36px; height: 36px; }

    /* Modal produto */
    .product-detail-content { padding: 16px; border-radius: 20px; }
    .product-detail-image { height: 220px; border-radius: 12px; }
    .product-detail-name { font-size: 1.3rem; }
    .product-detail-price { font-size: 1.35rem; }

    /* Modal carrinho */
    .modal-content { padding: 18px; margin: 20px auto; border-radius: 20px; }

    /* Carrinho itens */
    .cart-item-subtotal { min-width: 52px; font-size: 0.8rem; }
    .cart-item-name { font-size: 0.78rem; }

    /* WhatsApp */
    .whatsapp-float { width: 54px; height: 54px; font-size: 26px; bottom: 20px; right: 16px; }

    /* Títulos de seção */
    h2[style*="2.5rem"] { font-size: 1.8rem !important; }
}

/* ─── MOBILE PEQUENO (≤ 480px) ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    /* Hero */
    .hero-carousel { height: 280px; }
    .carousel-content h2 { font-size: 1.55rem; }
    .carousel-content p { display: none; }
    .btn-hero { padding: 10px 22px; font-size: 0.78rem; }

    /* Grid produtos — 2 colunas mesmo no menor */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card img { height: 130px; }

    /* Cart item — ocultar subtotal para caber melhor */
    .cart-item-subtotal { display: none; }

    /* Título seção */
    h2[style*="2.5rem"] { font-size: 1.5rem !important; }
}

/* ─── MOBILE MÍNIMO (≤ 360px) ───────────────────────────────────────────── */
@media (max-width: 360px) {
    .product-card img { height: 110px; }
    .product-info h3 { font-size: 0.75rem; }
    .product-info .price { font-size: 0.88rem; }
    .logo img { height: 40px; }
}
