@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #8B5E3C;
    --secondary: #FDECEC;
    --accent: #FF0032;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f0f0f0;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* Header/Hero Section */
.hero {
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
}

.hero-title span {
    display: block;
}

.product-slider {
    position: relative;
    margin: 20px 0;
}

.slider-image {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    border: none;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border: 1px solid #ccc;
    border-radius: 50%;
}

.dot.active {
    background: #ccc;
}

/* Offer Banner */
.offer-banner {
    background: #FFF5F5;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    border-top: 1px solid #FFEEF0;
    border-bottom: 1px solid #FFEEF0;
}

.offer-label {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.offer-status {
    color: var(--text-muted);
}

.status-badge {
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* Price Section */
.price-container {
    padding: 20px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.main-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.discount-badge {
    background: #F1F1F1;
    color: #666;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.product-label {
    background: #F1F1F1;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.stars {
    color: #FFB800;
    display: flex;
    gap: 2px;
}

/* Shipping Section */
.info-section {
    padding: 15px 20px;
    border-top: 8px solid #F5F5F5;
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.info-icon {
    color: #3B82F6;
    font-size: 20px;
}

.info-content h4 {
    font-size: 14px;
    font-weight: 500;
}

.info-content p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Coupons */
.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.coupon-card {
    border: 1px solid #B7E4E9;
    background: #F6FFFF;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-info h5 {
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
}

.coupon-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.resgatar-btn {
    background: #00BCC9;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

/* Reviews Section */
.reviews-section {
    padding: 20px;
    border-top: 8px solid #F5F5F5;
}

.reviews-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.review-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 20px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.review-stars {
    margin-bottom: 10px;
}

.review-img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 14px;
    color: #444;
}

/* About Section */
.about-section {
    padding: 20px;
    border-top: 8px solid #F5F5F5;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #EEE;
}

.brand-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.brand-info span {
    font-size: 12px;
    color: #666;
}

.seguir-btn {
    margin-left: auto;
    background: #F1F1F1;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
}

.features-list {
    margin-bottom: 15px;
}

.features-list p {
    margin-bottom: 8px;
}

.usage-instructions p {
    font-size: 13px;
    color: #555;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-item {
    animation: fadeIn 0.5s ease forwards;
}

/* =========================================
   RESPONSIVE LAYOUT (DESKTOP)
   ========================================= */

@media (min-width: 768px) {
    .app-container {
        max-width: 1100px;
        margin: 40px auto;
        border-radius: 16px;
        overflow: hidden;
    }

    .product-grid-wrapper {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 20px;
        padding: 20px;
        align-items: start;
    }

    .product-gallery {
        position: sticky;
        top: 20px;
        background: #fff;
        border-radius: var(--border-radius);
        border: 1px solid #f0f0f0;
    }

    .hero {
        padding: 40px 30px;
    }

    .slider-image {
        max-height: 500px;
    }

    .product-details-column {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .offer-banner {
        border-radius: 8px;
        margin-top: 10px;
    }

    .price-container {
        border: 1px solid #f0f0f0;
        border-radius: var(--border-radius);
        background: #fff;
    }

    .info-section {
        border-top: none;
        border: 1px solid #f0f0f0;
        border-radius: var(--border-radius);
        background: #fff;
        margin-bottom: 10px;
    }

    /* Bottom Sections */
    .bottom-content-wrapper {
        padding: 20px;
        background: #fff;
    }

    #reviews-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }

    .review-item {
        border: 1px solid #f0f0f0;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 0;
    }

    .about-section {
        border-top: 4px solid #f5f5f5;
        padding: 40px 20px;
    }
}

/* =========================================
   STICKY FOOTER
   ========================================= */

.app-container {
    padding-bottom: 90px;
    /* Garante que o conteúdo final não fique oculto */
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.footer-content {
    width: 100%;
    max-width: 480px;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .footer-content {
        max-width: 1100px;
    }
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 38px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-icon-btn:hover {
    color: #FF0032;
}

.footer-icon-btn i {
    font-size: 18px;
}

.footer-icon-btn span {
    font-size: 10px;
    font-weight: 500;
}

.btn-cart {
    flex: 1;
    background: #FFF5F7;
    color: #FF0032;
    border: none;
    padding: 14px 2px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-buy {
    flex: 1.1;
    background: #FF0032;
    color: #fff;
    border: none;
    padding: 14px 2px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-cart:hover,
.btn-buy:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.btn-cart:active,
.btn-buy:active {
    transform: translateY(0);
}