/* ============================================
   MIMAM KODE - UI/UX Production v3.0
   Mobile-first • 99% uso em telemóvel
   ============================================ */

/* === RESET & BASE (mobile-first) === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #d63384;
    --primary-rgb: 214, 51, 132;
    --secondary: #ff6b9d;
    --accent: #ffc1cc;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --text: #333;
    --text-muted: #666;
    --border: #e8e8e8;
    --success: #198754;
    --error: #dc3545;
    --warning: #ffc107;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 12px;
    --touch: 44px; /* mínimo para toque acessível */
    --safe-top: env(safe-area-inset-top, 0);
    --safe-bottom: env(safe-area-inset-bottom, 0);
    --safe-left: env(safe-area-inset-left, 0);
    --safe-right: env(safe-area-inset-right, 0);
    --primary-color: var(--primary);
    --border-color: var(--border);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text);
    line-height: 1.5;
    background: var(--light);
    overflow-x: hidden;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    padding-bottom: var(--safe-bottom);
}

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

@media (min-width: 640px) {
    .container { padding: 0 1.25rem; }
}
@media (min-width: 1024px) {
    .container { padding: 0 1.5rem; }
}

/* === BUTTONS (touch-friendly) === */
.btn {
    min-height: var(--touch);
    padding: 0 1.25rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.btn--primary, .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover, .btn-primary:hover,
.btn--primary:focus-visible, .btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn--secondary, .btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn--secondary:hover, .btn-secondary:hover { background: var(--primary); color: white; }
.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn--outline:hover { background: var(--primary); color: white; }
.btn--hero {
    background: white;
    color: var(--primary);
    font-size: 1.05rem;
    padding: 0.875rem 1.75rem;
    box-shadow: var(--shadow-lg);
}
.btn--hero:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.btn--block, .btn-block { width: 100%; }

/* === HEADER (mobile-first) === */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 0;
    padding-top: max(0.75rem, var(--safe-top));
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-height: var(--touch);
    text-decoration: none;
    color: inherit;
}
.logo:hover { opacity: 0.95; transform: scale(1.02); }
.logo:focus { outline: none; color: inherit; }
.logo-img { height: 44px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 1.1rem; }
.logo-tagline { font-size: 0.65rem; font-style: italic; opacity: 0.9; }

.search-container {
    order: 4;
    width: 100%;
    position: relative;
    flex: 1 1 100%;
}
.search-input {
    width: 100%;
    min-height: var(--touch);
    padding: 0 3rem 0 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,0.8); }
.search-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.3);
}
.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
}
.nav.active {
    display: flex !important;
}
.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    min-height: var(--touch);
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.nav-link:hover { background: rgba(214,51,132,0.08); }
.nav-link.active { background: rgba(214,51,132,0.12); }
.cart-link {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch);
    min-height: var(--touch);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.35rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
}

/* Desktop: search inline, nav visible */
@media (min-width: 768px) {
    .header .container { flex-wrap: nowrap; }
    .search-container {
        order: 0;
        flex: 1 1 auto;
        max-width: 320px;
        margin: 0 0.5rem;
        width: auto;
    }
    .nav {
        display: flex;
        flex-direction: row;
        width: auto;
        background: transparent;
        padding: 0;
        margin-top: 0;
        box-shadow: none;
        gap: 0.25rem;
    }
    .nav-link {
        color: white;
        padding: 0.5rem 0.75rem;
        min-height: auto;
    }
    .nav-link:hover { background: rgba(255,255,255,0.15); color: white; }
    .nav-link.active { background: rgba(255,255,255,0.2); color: white; }
    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 0.75rem;
        right: 0.75rem;
        height: 2px;
        background: white;
        border-radius: 1px;
    }
    .nav-link { position: relative; }
    .mobile-menu-toggle { display: none; }
}

/* === HERO SLIDER (mobile) === */
.hero-slider {
    position: relative;
    min-height: 320px;
    height: 45vh;
    max-height: 420px;
    overflow: hidden;
}
.slider-container { position: relative; height: 100%; }
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 90%;
    padding: 1.5rem 1rem;
}
.badge-promo {
    display: inline-block;
    background: var(--warning);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}
.slide-content h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}
.slide-content p { font-size: 0.95rem; margin-bottom: 1.25rem; opacity: 0.95; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
}
.slider-btn:hover { background: rgba(255,255,255,0.5); }
.slider-btn--prev { left: 0.5rem; }
.slider-btn--next { right: 0.5rem; }
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.dot.active { background: white; width: 24px; border-radius: 4px; }

@media (min-width: 640px) {
    .hero-slider { min-height: 380px; height: 50vh; max-height: 480px; }
    .slide-content h1 { font-size: 2.25rem; }
    .slide-content p { font-size: 1.1rem; }
}
@media (min-width: 1024px) {
    .hero-slider { height: 500px; max-height: none; }
    .slide-content h1 { font-size: 3rem; }
    .slide-content p { font-size: 1.25rem; }
}

/* === BENEFITS BAR === */
.benefits-bar { background: white; padding: 0.875rem 0; box-shadow: var(--shadow-sm); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem 0.5rem;
    align-items: start;
}
.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    min-height: 0;
    padding: 0.25rem 0;
}
.benefit i { font-size: 1.35rem; color: var(--primary); flex-shrink: 0; }
.benefit-text strong { font-size: 0.65rem; color: var(--dark); display: block; margin-bottom: 0; line-height: 1.2; }
.benefit-text span { font-size: 0.6rem; color: var(--text-muted); line-height: 1.2; }

@media (min-width: 480px) {
    .benefits-bar { padding: 1rem 0; }
    .benefits-grid { gap: 0.5rem 0.75rem; }
    .benefit i { font-size: 1.6rem; }
    .benefit-text strong { font-size: 0.75rem; }
    .benefit-text span { font-size: 0.65rem; }
}
@media (min-width: 768px) {
    .benefits-bar { padding: 1.5rem 0; }
    .benefits-grid { gap: 1rem 1.5rem; }
    .benefit {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 0.75rem;
    }
    .benefit i { font-size: 2.25rem; }
    .benefit-text strong { font-size: 0.95rem; margin-bottom: 0.15rem; }
    .benefit-text span { font-size: 0.8rem; }
}

/* === SECTION TITLE === */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
}
@media (min-width: 640px) {
    .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
}
@media (min-width: 1024px) {
    .section-title { font-size: 2.25rem; margin-bottom: 3rem; }
}

/* === TABS === */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.tab {
    min-height: var(--touch);
    padding: 0 1.25rem;
    border: 2px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === PRODUCTS GRID (mobile 2 cols) === */
.products-featured { padding: 2rem 0; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.product-card {
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}
.product-card:hover { box-shadow: var(--shadow-md); }
@media (pointer: fine) {
    .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}
.product-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--warning);
    color: var(--dark);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.7rem;
    z-index: 10;
}
.product-badge--new { background: var(--success); color: white; }
.product-badge--sale { background: var(--error); color: white; }
.product-image {
    width: 100%;
    aspect-ratio: 1;
    max-height: 180px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }
.product-info { padding: 0.75rem; }
.product-category {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}
.product-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--dark); line-height: 1.3; }
.product-description { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 0.5rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.product-price-promo .price-original { text-decoration: line-through; color: #999; font-size: 0.8rem; }
.product-price-promo .price-sale { color: var(--error); font-size: 1.1rem; font-weight: 700; }
.add-to-cart {
    min-height: 36px;
    padding: 0 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.add-to-cart:hover { filter: brightness(1.05); box-shadow: var(--shadow-sm); }
.product-link { text-decoration: none; color: inherit; display: block; }

@media (min-width: 640px) {
    .products-grid { gap: 1rem; }
    .product-name { font-size: 1rem; }
    .product-image { max-height: 220px; }
}
@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
    .product-image { max-height: 250px; aspect-ratio: 1; }
    .product-info { padding: 1rem; }
}

/* === CATEGORIES === */
.categories-showcase { padding: 2rem 0; background: white; }
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.category-card-large {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.category-card-large:hover { box-shadow: var(--shadow-md); }
.category-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-info { padding: 1.25rem; text-align: center; }
.category-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--dark); }
.category-info p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.5; }

@media (min-width: 768px) {
    .categories-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
    .category-image { height: 220px; }
    .category-info h3 { font-size: 1.5rem; }
}

/* === TESTIMONIALS === */
.testimonials { padding: 2rem 0; background: var(--light); }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.testimonial-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.stars { color: var(--warning); font-size: 1rem; margin-bottom: 0.75rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}
.author-info strong { color: var(--dark); font-size: 0.95rem; display: block; }
.author-info span { color: #999; font-size: 0.8rem; }

@media (min-width: 640px) {
    .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
}

/* === INSTAGRAM FEED === */
.instagram-feed { padding: 2rem 0; text-align: center; }
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.instagram-post {
    display: block;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}
.instagram-post:hover { opacity: 0.95; }
.instagram-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    gap: 0.5rem;
}
.instagram-placeholder span { font-size: 0.8rem; font-weight: 600; }

@media (min-width: 640px) {
    .instagram-grid { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
}

/* === NEWSLETTER === */
.newsletter {
    padding: 2rem 0;
    padding-bottom: max(2rem, calc(1rem + var(--safe-bottom)));
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.newsletter-content { display: flex; flex-direction: column; align-items: stretch; gap: 1.5rem; text-align: center; }
.newsletter-text h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.newsletter-text p { font-size: 0.95rem; opacity: 0.95; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 100%; }
.newsletter-form input {
    width: 100%;
    min-height: var(--touch);
    padding: 0 1.25rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.8); }
.newsletter-form input:focus { outline: none; border-color: white; background: rgba(255,255,255,0.25); }

@media (min-width: 768px) {
    .newsletter-content { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
    .newsletter-form { flex-direction: row; flex: 1; max-width: 420px; }
    .newsletter-text h2 { font-size: 2rem; }
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0 1.5rem;
    padding-bottom: max(1.5rem, calc(1rem + var(--safe-bottom)));
    margin-top: 3rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 { font-size: 1.35rem; color: var(--accent); margin-bottom: 0.75rem; }
.footer-section h4 { font-size: 0.9rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-section .tagline { color: var(--accent); font-style: italic; font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-section p { line-height: 1.6; color: rgba(255,255,255,0.75); margin-bottom: 1rem; font-size: 0.9rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a, .footer-section ul li { color: rgba(255,255,255,0.75); text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.footer-section ul li a:hover { color: var(--accent); }
.footer-section ul li i { color: var(--primary); width: 18px; flex-shrink: 0; }
.social-links { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.social-links a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.footer-bottom p { margin: 0.25rem 0; font-size: 0.85rem; }
.footer-bottom a { color: var(--accent); text-decoration: none; }

@media (min-width: 640px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 1024px) {
    .footer-content { grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
}

/* === WHATSAPP FLOAT (safe area) === */
.whatsapp-float {
    position: fixed;
    bottom: max(1rem, var(--safe-bottom));
    right: max(1rem, var(--safe-right));
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4); }

/* === NEWSLETTER POPUP === */
.newsletter-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
}
.newsletter-popup.active { display: flex; }
.newsletter-popup-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    max-width: 100%;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
@media (min-width: 480px) {
    .newsletter-popup-content { width: 90%; max-width: 420px; padding: 2rem; }
}
.popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-close:hover { background: var(--light); color: var(--dark); }
.popup-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.newsletter-popup-content h3 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.35rem; }
.newsletter-popup-content p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.popup-form { display: flex; flex-direction: column; gap: 0.75rem; }
.popup-form input {
    min-height: var(--touch);
    padding: 0 1.25rem;
    border: 2px solid var(--border);
    border-radius: 999px;
    font-size: 1rem;
}
.popup-form input:focus { outline: none; border-color: var(--primary); }
.newsletter-popup-content small { color: #999; font-size: 0.8rem; margin-top: 0.75rem; display: block; }

/* ========== PÁGINAS INTERNAS ========== */

/* Page header (carrinho, checkout, etc.) */
.page-header {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}
.page-header h1 {
    font-size: 1.35rem;
    color: var(--dark);
    margin: 0;
}
@media (min-width: 640px) {
    .page-header h1 { font-size: 1.75rem; }
}

/* Formulários (checkout, marcação, login, registro) */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: var(--touch);
    padding: 0 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
.form-group textarea {
    min-height: 120px;
    padding: 1rem;
    resize: vertical;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .form-row { grid-template-columns: repeat(2, 1fr); }
}

/* Checkout */
.checkout-section { padding: 1.5rem 0 3rem; }
.page-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
}
.checkout-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.checkout-form-container {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.checkout-form h2 {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.checkout-form h2:first-child { margin-top: 0; }
.payment-info { margin: 1rem 0; }
.payment-info p { font-size: 0.9rem; color: var(--text-muted); }
.checkout-summary {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(80px + var(--safe-top));
}
.checkout-summary h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}
#checkout-items .cart-item-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
#checkout-items .cart-item-row:last-child { border-bottom: none; }
.summary-totals { margin-top: 1rem; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}
.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--border);
}

@media (min-width: 768px) {
    .checkout-content { flex-direction: row; align-items: flex-start; }
    .checkout-form-container { flex: 1; }
    .checkout-summary { width: 360px; flex-shrink: 0; }
}

/* Carrinho */
.cart-section { padding: 1rem 0 3rem; }
.cart-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cart-items { min-height: 200px; }
.empty-cart {
    text-align: center;
    padding: 2.5rem 1rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.empty-cart i { font-size: 3rem; color: var(--border); margin-bottom: 1rem; display: block; }
.empty-cart h2 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--dark); }
.empty-cart p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.cart-summary {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--dark); }
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.95rem; }
.cart-summary .summary-row.total { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-top: 0.5rem; padding-top: 0.75rem; border-top: 2px solid var(--border); }
.cart-summary .btn { margin-top: 1rem; }
.cart-item-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: center;
}
.cart-item-image { width: 80px; height: 80px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); overflow: hidden; background: var(--light); }
.cart-item-card img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-details h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--dark); }
.cart-item-price { font-weight: 700; color: var(--primary); }
.cart-item-remove {
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: var(--light);
    color: var(--error);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .cart-content { flex-direction: row; align-items: flex-start; }
    .cart-items { flex: 1; }
    .cart-summary { width: 320px; flex-shrink: 0; position: sticky; top: calc(80px + var(--safe-top)); }
}

/* Login / Registro */
.login-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-top: max(1rem, var(--safe-top));
    padding-bottom: max(1rem, var(--safe-bottom));
}
.login-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: 1.5rem; }
.login-header h1 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.35rem; }
.login-header p { color: var(--text-muted); font-size: 0.9rem; }
#alert-container { margin-bottom: 1rem; }
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

/* Marcação */
.marcacao-container { padding: 1.5rem 0 3rem; }
.marcacao-header { text-align: center; margin-bottom: 1.5rem; }
.marcacao-header h1 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.35rem; }
.marcacao-header p { color: var(--text-muted); font-size: 0.95rem; }
.marcacao-form {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.sinal-info {
    background: linear-gradient(135deg, rgba(214,51,132,0.1), rgba(255,107,157,0.1));
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
}
.sinal-info h3 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--dark); }
.sinal-info .valor { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.marcacao-form h2 { font-size: 1.1rem; color: var(--dark); margin-bottom: 1rem; }

@media (min-width: 640px) {
    .marcacao-header h1 { font-size: 1.75rem; }
    .marcacao-form { padding: 2rem; }
}

/* ========== PÁGINA DE DETALHES DO PRODUTO ========== */
.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.product-back-link:hover { color: var(--secondary); opacity: 0.9; }
.product-back-link i { font-size: 0.85rem; }
.product-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}
.product-loading i { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 0.75rem; }
.product-loading p { font-size: 0.95rem; margin: 0; }
.product-details-section {
    padding: 1rem 0 2.5rem;
    padding-bottom: max(2.5rem, calc(1rem + var(--safe-bottom)));
}
.product-details-content {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid rgba(0,0,0,0.06);
}
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
}
.product-details-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 380px;
    background: linear-gradient(180deg, var(--light) 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 1rem;
}
.product-main-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.product-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.product-details-image > div[style*="position: absolute"] {
    border-radius: 0 var(--radius-sm) 0 1.25rem;
}
.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.product-thumbnails::-webkit-scrollbar { height: 4px; }
.product-thumbnails::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.thumbnail-img,
.thumbnail-emoji {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
}
.thumbnail-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-emoji { font-size: 1.5rem; }
.thumbnail-img.active,
.thumbnail-emoji.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(214, 51, 132, 0.2);
}
.thumbnail-img:hover,
.thumbnail-emoji:hover { border-color: var(--secondary); }

.product-details-info { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.product-details-info .product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.product-details-name,
.product-details-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
}
.product-details-price,
.product-details-info .product-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0 0 0; }
.product-details-description,
.product-details-info .product-description { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; margin: 0.5rem 0 0 0; }
.product-details-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0.75rem 0 0 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.feature-item i { color: var(--success); font-size: 1rem; flex-shrink: 0; }
.product-quantity-selector { margin: 0.5rem 0 0 0; }
.product-quantity-selector label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--light);
}
.quantity-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: white;
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.quantity-btn:hover { background: var(--light); color: var(--primary); }
.quantity-display { min-width: 2.5rem; text-align: center; font-weight: 600; font-size: 1rem; color: var(--dark); }
.product-details-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.product-details-actions .btn { min-height: 50px; font-size: 1rem; }
.product-details-actions .btn-large { padding: 0.875rem 1.5rem; }
.btn-secondary.btn-large { border-width: 2px; }

.related-products { padding: 2rem 0 3rem; background: var(--light); }
.related-products .section-title { margin-bottom: 1.5rem; }
.related-products .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.related-products .product-card .product-image { max-height: 160px; }
.related-products .product-info { padding: 0.75rem; }
.related-products .product-name { font-size: 0.9rem; }

@media (min-width: 640px) {
    .product-details-section { padding: 1.5rem 0 3rem; }
    .product-details-info { padding: 1.5rem; }
    .product-details-name, .product-details-info h1 { font-size: 1.55rem; }
    .related-products .products-grid { gap: 1.25rem; }
}
@media (min-width: 768px) {
    .product-details-grid { grid-template-columns: 1fr 1fr; gap: 0; min-height: 420px; }
    .product-details-image { max-height: none; aspect-ratio: 1; padding: 1.5rem; }
    .product-details-info { padding: 2rem 2.25rem; justify-content: center; }
    .product-details-name, .product-details-info h1 { font-size: 1.75rem; }
    .product-details-actions { flex-direction: row; flex-wrap: wrap; margin-top: 1.5rem; }
    .product-details-actions .btn { flex: 1; min-width: 160px; }
    .related-products .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .related-products .products-grid { gap: 1.5rem; }
}

/* Search results dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.search-results.active { display: block; }
.search-results a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    min-height: var(--touch);
}
.search-results a:hover { background: var(--light); }
.search-results img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }

/* Success page (checkout-success, marcação confirmada) */
.success-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    padding-bottom: max(2rem, calc(1rem + var(--safe-bottom)));
}
.success-box {
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}
.success-box h1 { font-size: 1.5rem; color: var(--dark); margin-bottom: 0.5rem; }
.success-box p { color: var(--text-muted); margin-bottom: 0.75rem; font-size: 0.95rem; line-height: 1.5; }
.order-details {
    background: var(--light);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    text-align: left;
}
.order-details h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--dark); }
.order-details p { margin: 0.35rem 0; font-size: 0.9rem; }
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.btn-group .btn { width: 100%; }
@media (min-width: 480px) {
    .btn-group { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .btn-group .btn { width: auto; }
}
