/* =============================================
   VARIÁVEIS E RESET
   ============================================= */

:root {
    --primary-yellow: #FFD700;
    --primary-dark: #1a1a1a;
    --primary-light: #f5f5f5;
    --accent-teal: #20a39e;
    --accent-red: #e74c3c;
    --accent-green: #27ae60;
    --border-color: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

/* =============================================
   HEADER
   ============================================= */

.header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
}

.logo svg {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-yellow);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn,
.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    position: relative;
}

.login-btn:hover,
.cart-btn:hover {
    color: var(--primary-yellow);
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-yellow);
    color: var(--primary-dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* =============================================
   PROMO BANNER
   ============================================= */

.promo-banner {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffc700 100%);
    color: var(--primary-dark);
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* =============================================
   PRODUCT GALLERY
   ============================================= */

.product-gallery {
    position: relative;
}

.carousel {
    position: relative;
    background-color: var(--primary-light);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-dark);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

/* =============================================
   PRODUCT INFO
   ============================================= */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background-color: var(--accent-teal);
    color: white;
}

.badge-bestseller {
    background-color: var(--primary-yellow);
    color: var(--primary-dark);
}

.product-info h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stars {
    font-size: 1.25rem;
    color: var(--primary-yellow);
}

.review-count {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =============================================
   PRICING
   ============================================= */

.pricing {
    padding: 1.5rem;
    background-color: var(--primary-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-yellow);
}

.price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.original-price {
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.current-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.discount-badge {
    background-color: var(--accent-red);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

.installment {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.payment-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pix-discount,
.priority-shipping {
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 500;
}

/* =============================================
   PROMOTION SECTION
   ============================================= */

.promotion-section {
    padding: 1.5rem;
    background-color: var(--primary-light);
    border-radius: 8px;
    border: 2px dashed var(--primary-yellow);
}

.promotion-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.promotion-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.promo-option:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.promo-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-yellow);
}

.promo-option span {
    font-weight: 600;
    color: var(--text-dark);
}

/* =============================================
   STOCK INFO
   ============================================= */

.stock-info {
    padding: 1rem;
    background-color: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid var(--primary-yellow);
}

.stock-info p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.stock-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, #ffc700 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* =============================================
   CTA BUTTON
   ============================================= */

.buy-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffc700 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.buy-btn:active {
    transform: translateY(0);
}

/* =============================================
   SHIPPING CALCULATOR
   ============================================= */

.shipping-calculator {
    padding: 1.5rem;
    background-color: var(--primary-light);
    border-radius: 8px;
}

.shipping-calculator h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.shipping-input-group {
    display: flex;
    gap: 0.75rem;
}

.shipping-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.shipping-input-group input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.calc-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calc-btn:hover {
    background-color: #333;
}

.shipping-result {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--accent-green);
    min-height: 1.2rem;
    font-weight: 600;
}

/* =============================================
   BENEFITS
   ============================================= */

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background-color: var(--primary-light);
    border-radius: 8px;
    border-top: 3px solid var(--primary-yellow);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.benefit-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.benefit-text p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* =============================================
   DESCRIPTION SECTION
   ============================================= */

.description-section {
    background-color: var(--primary-light);
    padding: 3rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 4rem;
}

.description-content {
    max-width: 1200px;
    margin: 0 auto;
}

.description-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
}

.description-content > p {
    font-size: 1.05rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-yellow);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* =============================================
   REVIEWS SECTION
   ============================================= */

.reviews-section {
    margin-bottom: 4rem;
}

.reviews-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.review-header strong {
    color: var(--text-dark);
}

.review-stars {
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

.review-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* =============================================
   MODAL
   ============================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.modal-btn {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffc700 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modal-btn-secondary {
    background-color: var(--primary-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.modal-btn-secondary:hover {
    background-color: var(--border-color);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        gap: 1rem;
        flex-direction: column;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .description-content h2 {
        font-size: 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .carousel-btn.prev {
        left: 0.5rem;
    }

    .carousel-btn.next {
        right: 0.5rem;
    }

    .promotion-options {
        flex-direction: column;
    }

    .shipping-input-group {
        flex-direction: column;
    }

    .shipping-input-group input,
    .calc-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-menu {
        display: none;
    }

    .promo-banner {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .main-content {
        padding: 1rem;
    }

    .product-container {
        gap: 1.5rem;
    }

    .product-info h1 {
        font-size: 1.25rem;
    }

    .current-price {
        font-size: 1.25rem;
    }

    .original-price {
        font-size: 0.85rem;
    }

    .discount-badge {
        font-size: 0.8rem;
    }

    .pricing,
    .promotion-section,
    .shipping-calculator {
        padding: 1rem;
    }

    .description-section {
        padding: 1.5rem 1rem;
    }

    .description-content h2 {
        font-size: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .reviews-section h2 {
        font-size: 1.25rem;
    }

    .review-card {
        padding: 1rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}
