:root {
    --primary: #dd3333;
    --primary-dark: #b32929;
    --primary-light: #e74c4c;
    --secondary: #1a1a1a;
    --accent: #ffd700;
    --accent-light: #ffed4a;
    --text: #2d3748;
    --text-light: #718096;
    --background: #ffffff;
    --surface: #f8f9fa;
    --gradient: linear-gradient(135deg, #dd3333 0%, #ff6b6b 100%);
    --gradient-light: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    --spacing-section: 4rem;
    --spacing-content: 1.5rem;
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
    background: var(--gradient);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-content);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 101;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 10px;
    padding: 6px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

header.scrolled .logo-text strong {
    color: var(--primary);
}

header.scrolled .logo-text span {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

header.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent);
    outline: none;
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a:focus {
    color: var(--primary);
}

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

header.scrolled .nav-links a::after {
    background: var(--primary);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.cta-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: #128C7E;
    color: white;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cta-button.primary {
    background: var(--primary);
}

.cta-button.primary:hover,
.cta-button.primary:focus {
    background: var(--primary-dark);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

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

.mobile-menu {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient);
    padding-top: 80px;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-content);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    padding-right: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: var(--accent);
    font-size: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title .gradient-text {
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-button:hover,
.secondary-button:focus {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    border-color: white;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
    color: var(--text);
    text-align: center;
    max-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary);
}

.floating-card:nth-child(1) {
    top: 35%;
    left: 54%;
    animation-delay: 0s;
    margin-left: -90px;
    margin-top: -60px;
}

.floating-card:nth-child(2) {
    top: 54%;
    right: 1%;
    animation-delay: 2s;
    margin-top: -60px;
}

.floating-card:nth-child(3) {
    top: 50%;
    left: 10%;
    animation-delay: 4s;
    margin-top: -60px;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(-1deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(1deg); 
    }
}

/* Products Section */
.products-section {
    padding: var(--spacing-section) 0;
    background: var(--surface);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-content);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Products Grid Styles - Layout com thumbnail lateral compacta */
.products-grid-container {
    margin: 2rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 100px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 80px;
    min-width: 80px;
    height: auto;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 6px;
}

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

.product-image-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    font-size: 1.2rem;
    border-radius: 6px;
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-stock {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    align-self: flex-start;
}

.stock-available {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

.stock-last-unit {
    background: #fffaf0;
    color: #dd6b20;
    border: 1px solid #fed7aa;
}

.stock-low {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #fc8181;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

#load-more-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    min-width: 200px;
    justify-content: center;
}

#load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#load-more-btn .loading {
    display: none;
}

#load-more-btn.loading .loading {
    display: inline-block;
}

#load-more-btn.loading .button-text {
    display: none;
}

.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Loading States */
.products-loading,
.products-error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--surface);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.products-error i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.products-error p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Status Section */
.status-section {
    padding: var(--spacing-section) 0;
    background: white;
}

.status-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-content);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.status-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--text);
    transition: var(--transition);
}

.status-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-open {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-open .status-dot {
    background: #16a34a;
}

.status-closed .status-dot {
    background: #dc2626;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.holiday-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    display: none;
    color: #856404;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-content);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    position: relative;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-text h2 {
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
    color: white;
    line-height: 1.2;
}

.footer-logo-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-column p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-column p a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover,
.footer-column a:focus {
    color: white;
    transform: translateX(3px);
    outline: none;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

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

.social-links a:hover,
.social-links a:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Payment Methods in Footer */
.footer-payment {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-payment h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

.footer-payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.footer-payment-icon:hover {
    transform: translateY(-2px);
}

.footer-payment-icon i {
    font-size: 1.25rem;
    color: white;
}

.footer-payment-icon span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 3rem;
        --spacing-content: 1rem;
    }

    .nav-links {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin-top: 20px;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-visual {
        height: 400px;
        margin-top: 2rem;
    }

    .floating-card {
        padding: 1rem;
        max-width: 140px;
    }

    .floating-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .floating-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .floating-card p {
        font-size: 0.7rem;
    }

    .floating-card:nth-child(1) {
        top: 10%;
        left: 35%;
        transform: translateX(-50%);
        animation-delay: 0s;
        margin: 0;
    }

    .floating-card:nth-child(2) {
        top: 50%;
        right: 5%;
        transform: translateY(-50%);
        animation-delay: 2s;
        margin: 0;
    }

    .floating-card:nth-child(3) {
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
        animation-delay: 4s;
        margin: 0;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .product-card {
        min-height: 90px;
    }
    
    .product-image {
        width: 70px;
        min-width: 70px;
    }
    
    .product-image img {
        width: 50px;
        height: 50px;
    }
    
    .product-image-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .product-info {
        padding: 0.875rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }

    .footer-payment-icons {
        gap: 0.75rem;
    }

    .footer-payment-icon i {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .footer-column:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-visual {
        height: 350px;
    }

    .floating-card {
        max-width: 120px;
        padding: 0.75rem;
    }

    .floating-card:nth-child(1) {
        top: 15%;
    }

    .floating-card:nth-child(2) {
        right: 3%;
    }

    .floating-card:nth-child(3) {
        left: 3%;
    }

    .products-grid {
        gap: 0.875rem;
    }
    
    .product-card {
        min-height: 85px;
    }
    
    .product-image {
        width: 65px;
        min-width: 65px;
    }
    
    .product-image img {
        width: 45px;
        height: 45px;
    }
    
    .product-image-placeholder {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.85rem;
    }
    
    .product-description {
        font-size: 0.7rem;
    }
    
    .product-stock {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-button, .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-payment-icons {
        gap: 0.5rem;
    }
}

/* Para tablets em modo retrato */
@media (max-width: 1024px) and (min-width: 769px) {
    .floating-card:nth-child(1) {
        top: 30%;
        left: 50%;
        margin-left: -70px;
    }

    .floating-card:nth-child(2) {
        top: 55%;
        right: 5%;
        margin-top: -50px;
    }

    .floating-card:nth-child(3) {
        top: 55%;
        left: 5%;
        margin-top: -50px;
    }
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}