/* =====================================================
   SABOR ENERGÉTICO - Design Inspirado na Mansão Maromba
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Lato:wght@400;700&display=swap');

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    /* Colors - Inspired by Mansão Maromba */
    --header-bg: #FFFFFF;
    --header-text: #333333;
    --bg-main: #FFFFFF;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --btn-green: #3CB532;
    --btn-green-hover: #2E9026;
    --accent-orange: #FE6902;
    --border-color: #E0E0E0;
    --price-old: #999999;
    --badge-discount: #333333;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --container-padding: 20px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);

    /* Transitions */
    --transition: 0.3s ease;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* =====================================================
   Container
   ===================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =====================================================
   Header
   ===================================================== */
.header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

@media (min-width: 769px) {
    .header-container {
        padding: 15px 0;
    }
}

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

.logo img {
    height: 50px;
}

.logo-text {
    color: var(--header-text);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--header-text);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: opacity var(--transition);
}

.nav-link:hover {
    opacity: 0.8;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    color: var(--header-text);
    font-size: 1.3rem;
    transition: opacity var(--transition);
    position: relative;
}

.header-icon:hover {
    opacity: 0.8;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--btn-green);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #333333;
}

/* =====================================================
   Delivery Banner
   ===================================================== */
.delivery-banner {
    background: var(--btn-green);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.delivery-banner .delivery-icon {
    font-size: 1.1rem;
}

.delivery-banner strong {
    font-weight: 700;
}

/* =====================================================
   Age Warning Banner
   ===================================================== */
.age-banner {
    background: linear-gradient(90deg, #1a1a1a 0%, #333 100%);
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.age-badge {
    background: var(--btn-green);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.age-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =====================================================
   Hero Banner
   ===================================================== */
.hero-banner {
    display: none;
}

@media (max-width: 768px) {
    .hero-banner {
        display: block;
        width: 100%;
    }

    .hero-banner-img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Logo Image */
.logo-img {
    height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

/* =====================================================
   Section Titles
   ===================================================== */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* =====================================================
   Product Carousel
   ===================================================== */
.products-carousel-container {
    position: relative;
    padding: 0 50px;
}

.products-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--bg-light);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-pagination {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* =====================================================
   Product Card
   ===================================================== */
.product-card {
    flex: 0 0 calc(25% - 23px);
    min-width: 250px;
    scroll-snap-align: start;
    text-align: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--badge-discount);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    z-index: 1;
}

.product-image {
    padding: 20px;
    margin-bottom: 15px;
}

.product-image img {
    height: 200px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
    transition: transform var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-name {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 10px;
    min-height: 44px;
}

.product-name a {
    color: inherit;
}

.product-name a:hover {
    text-decoration: underline;
}

.product-price {
    margin-bottom: 15px;
}

.product-price .current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.product-price .original {
    font-size: 0.9rem;
    color: var(--price-old);
    text-decoration: line-through;
    margin-left: 8px;
}

.product-buy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-decoration: underline;
    transition: opacity var(--transition);
}

.product-buy-link:hover {
    opacity: 0.7;
}

/* =====================================================
   Category Banners (Linha Premium)
   ===================================================== */
.category-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-banner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1.2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform var(--transition);
}

.category-banner:hover {
    transform: scale(1.02);
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.category-banner:hover img {
    transform: scale(1.05);
}

.category-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.category-banner-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* =====================================================
   Products Grid (for pages)
   ===================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: #f5f5f5;
    color: #333333;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #666666;
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.7;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: #666666;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #333333;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #666666;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background var(--transition);
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
}

/* =====================================================
   WhatsApp Float Button
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: transform var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-green {
    background: var(--btn-green);
    color: white;
}

.btn-green:hover {
    background: var(--btn-green-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   Product Detail Page
   ===================================================== */
.product-detail-page {
    padding: 30px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--text-medium);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    text-align: center;
    padding: 40px;
    margin-bottom: 20px;
}

.product-main-image img {
    max-height: 400px;
    margin: 0 auto;
}

.product-share {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    background: white;
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--bg-light);
}

.product-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-info .price-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.product-info .price-installments {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.quantity-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.quantity-btn {
    width: 44px;
    height: 44px;
    background: white;
    font-size: 1.2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.quantity-btn:hover {
    background: var(--bg-light);
}

.quantity-input {
    width: 50px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.btn-buy {
    flex: 1;
}

.shipping-info {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.shipping-info label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.shipping-icon {
    font-size: 1.5rem;
}

.shipping-details {
    flex: 1;
}

.shipping-details strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.shipping-details p {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin: 0;
}

.shipping-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--btn-green);
}

.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.product-description p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 10px;
}

.product-description em {
    color: var(--text-medium);
    font-style: italic;
}

/* Similar Products */
.similar-products {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

/* =====================================================
   Cart Page
   ===================================================== */
.cart-page {
    padding: 30px 0;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.cart-items {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.1rem;
}

.clear-cart-btn {
    font-size: 0.85rem;
    color: var(--text-medium);
    text-decoration: underline;
    background: none;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    background: var(--bg-light);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.cart-item-image img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

.cart-item-info h3 {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.cart-item-price {
    font-weight: 700;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.cart-item-remove:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.cart-empty {
    padding: 60px 20px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty h3 {
    margin-bottom: 10px;
}

.cart-empty p {
    color: var(--text-medium);
    margin-bottom: 25px;
}

.cart-summary {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-row span:first-child {
    color: var(--text-medium);
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-summary .btn {
    margin-top: 20px;
}

/* =====================================================
   Checkout Page
   ===================================================== */
.checkout-page {
    padding: 30px 0;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.checkout-form {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
}

.form-section {
    margin-bottom: 35px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.form-section h3 .step-number {
    width: 28px;
    height: 28px;
    background: var(--btn-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--btn-green);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--btn-green);
}

.payment-option input {
    display: none;
}

.payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-option.selected .payment-radio {
    border-color: var(--btn-green);
}

.payment-option.selected .payment-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--btn-green);
    border-radius: 50%;
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-info p {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.order-summary {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.order-items {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.order-item:last-child {
    margin-bottom: 0;
}

.order-item-image {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 5px;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 3px;
}

.order-item-info p {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.order-item-price {
    font-size: 0.9rem;
    font-weight: 600;
}

.order-totals {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.total-row span:first-child {
    color: var(--text-medium);
}

.total-row.grand-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* =====================================================
   Toast Notifications
   ===================================================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--btn-green);
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: var(--btn-green);
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
}

.toast-close {
    background: none;
    color: var(--text-medium);
    padding: 5px;
    font-size: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        gap: 40px;
    }

    .cart-container,
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .category-banners {
        grid-template-columns: 1fr;
    }

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

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-item-quantity,
    .cart-item-price,
    .cart-item-remove {
        grid-column: 2;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .age-banner {
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-width: 100%;
    }

    .carousel-slide img {
        height: 300px;
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--header-bg);
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: left var(--transition);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav .nav-link {
    display: block;
    color: #333333;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* =====================================================
   Cart Modal
   ===================================================== */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.cart-modal-overlay.active {
    display: block;
}

.cart-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 2001;
    width: 90%;
    max-width: 450px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-modal-header h3 {
    font-size: 1.1rem;
    color: var(--btn-green);
    margin: 0;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cart-modal-close:hover {
    color: var(--text-dark);
}

.cart-modal-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-modal-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-modal-item:last-child {
    border-bottom: none;
}

.cart-modal-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-modal-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-modal-item-info {
    flex: 1;
}

.cart-modal-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.cart-modal-item-info p {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin: 0;
}

.cart-modal-item-price {
    font-weight: 700;
    color: var(--btn-green);
    white-space: nowrap;
}

.cart-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--border-color);
    font-weight: 700;
}

.cart-modal-total span:last-child {
    font-size: 1.2rem;
    color: var(--btn-green);
}

.cart-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-modal-footer .btn {
    flex: 1;
    text-align: center;
}

/* =====================================================
   Payment Page
   ===================================================== */
.payment-page {
    padding: 40px 0 60px;
    min-height: 60vh;
}

.payment-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.payment-info {
    background: linear-gradient(135deg, var(--btn-green), #2E9026);
    color: white;
    padding: 30px;
    text-align: center;
}

.payment-status {
    margin-bottom: 20px;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.status-icon.pending .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.payment-status h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.payment-status p {
    opacity: 0.9;
    margin: 0;
}

.payment-amount {
    background: rgba(255,255,255,0.15);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.payment-amount .label {
    font-size: 0.95rem;
}

.payment-amount .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.payment-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.timer-icon {
    font-size: 1.1rem;
}

.pix-container {
    padding: 30px;
    text-align: center;
}

.pix-qrcode {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    background: white;
    padding: 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.pix-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pix-code {
    text-align: left;
}

.pix-code label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.pix-code-input {
    display: flex;
    gap: 10px;
}

.pix-code-input textarea,
.pix-code-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: monospace;
    background: var(--bg-light);
    resize: none;
    word-break: break-all;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    background: var(--btn-green);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--btn-green-hover);
}

.copy-icon {
    font-size: 1.1rem;
}

.payment-instructions {
    padding: 25px 30px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.payment-instructions h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.payment-instructions ol {
    list-style: decimal;
    padding-left: 20px;
}

.payment-instructions li {
    padding: 5px 0;
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Payment Error */
.payment-error {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FF4444;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.payment-error h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.payment-error p {
    color: var(--text-medium);
    margin-bottom: 25px;
}

/* Payment Success */
.payment-success {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--btn-green);
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.payment-success h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.payment-success p {
    color: var(--text-medium);
    margin-bottom: 10px;
}

.payment-success .success-detail {
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Payment Page Responsive */
@media (max-width: 480px) {
    .payment-info {
        padding: 25px 20px;
    }

    .pix-container {
        padding: 20px;
    }

    .pix-code-input {
        flex-direction: column;
    }

    .btn-copy {
        justify-content: center;
    }

    .payment-instructions {
        padding: 20px;
    }
}

/* =====================================================
   Checkout Loading Overlay
   ===================================================== */
#checkout-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#checkout-loading .loading-content {
    text-align: center;
    color: white;
}

#checkout-loading .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--btn-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

#checkout-loading p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* =====================================================
   PIX QR Code Canvas
   ===================================================== */
.pix-qrcode {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    background: white;
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qrcode canvas {
    max-width: 100%;
    max-height: 100%;
}

/* =====================================================
   Checkout Multi-Step
   ===================================================== */

/* Progress Steps Indicator */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.checkout-steps .step.active {
    opacity: 1;
}

.checkout-steps .step.completed {
    opacity: 1;
}

.checkout-steps .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #666;
    transition: all 0.3s ease;
}

.checkout-steps .step.active .step-number {
    background: var(--btn-green);
    color: white;
}

.checkout-steps .step.completed .step-number {
    background: var(--btn-green);
    color: white;
}

.checkout-steps .step-label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.checkout-steps .step-line {
    width: 80px;
    height: 3px;
    background: #E0E0E0;
    margin: 0 20px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.checkout-steps .step-line.completed {
    background: var(--btn-green);
}

/* Form Steps */
.form-step {
    animation: fadeIn 0.3s ease;
}

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

/* Step Navigation Buttons */
.step-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.step-buttons .btn {
    flex: 1;
    padding: 16px 30px;
}

.btn-outline-green {
    background: transparent;
    border: 2px solid var(--btn-green);
    color: var(--btn-green);
    font-weight: 600;
}

.btn-outline-green:hover {
    background: var(--btn-green);
    color: white;
}

/* Delivery Time Badge */
.delivery-time-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border: 2px solid var(--btn-green);
    color: #1B5E20;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 1rem;
    animation: slideDown 0.4s ease;
}

.delivery-time-badge .delivery-icon {
    font-size: 1.4rem;
}

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

/* Secure Checkout Badge */
.secure-checkout {
    text-align: center;
    margin-top: 15px;
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Responsive Checkout Steps */
@media (max-width: 768px) {
    .checkout-steps {
        padding: 15px 0;
    }

    .checkout-steps .step-label {
        display: none;
    }

    .checkout-steps .step-line {
        width: 50px;
        margin: 0 10px;
    }

    .checkout-steps .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-buttons {
        flex-direction: column;
    }

    .step-buttons .btn {
        width: 100%;
    }
}
