/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #1f2937;
    background-image: linear-gradient(to bottom right, #f0fdf4, #fef9c3);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

.hidden {
    display: none !important;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* Header e Navegação */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-button {
    display: none;
    color: #16a34a;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16a34a;
}

.logo span {
    color: #f59e0b;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #16a34a;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #f59e0b;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-button, .admin-button {
    color: #16a34a;
    transition: color 0.3s;
    position: relative;
}

.cart-button:hover, .admin-button:hover {
    color: #f59e0b;
}

.cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    padding: 0.5rem 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.5rem 0;
    text-align: left;
}

/* Faixa deslizante */
.marquee {
    background-color: #f59e0b;
    color: #166534;
    white-space: nowrap;
    overflow: hidden;
    padding: 0.5rem 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

.marquee-text {
    font-weight: bold;
    font-size: 1.125rem;
}

.marquee-spacer {
    margin: 0 2rem;
}

/* Carrinho Lateral */
.cart-sidebar {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: flex-end;
}

.cart-content {
    width: 100%;
    max-width: 28rem;
    background-color: white;
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-button {
    color: #6b7280;
}

.close-button:hover {
    color: #374151;
}

.empty-cart {
    text-align: center;
    color: #6b7280;
    margin: 2rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item-info {
    display: flex;
    gap: 0.75rem;
}

.cart-item-image {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.25rem;
}

.cart-item-details h3 {
    font-weight: 500;
}

.cart-item-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.quantity-button {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decrease-button {
    background-color: #e5e7eb;
}

.increase-button {
    background-color: #22c55e;
    color: white;
}

.cart-item-price {
    text-align: right;
}

.cart-item-total {
    font-weight: 500;
}

.cart-item-each {
    font-size: 0.875rem;
    color: #6b7280;
}

.cart-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-button {
    width: 100%;
    background-color: #16a34a;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: background-color 0.3s;
}

.checkout-button:hover {
    background-color: #15803d;
}

/* Admin Mode Alert */
.admin-alert {
    background-color: #fef9c3;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-content {
    display: flex;
    align-items: center;
}

.alert-title {
    font-weight: 700;
}

.alert-message {
    font-size: 0.875rem;
}

.exit-admin-button {
    margin-left: auto;
    background-color: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.exit-admin-button:hover {
    background-color: #d97706;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: linear-gradient(to right, #16a34a, #22c55e);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-button {
    display: inline-block;
    background-color: #f59e0b;
    color: #166534;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background-color: #fbbf24;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    height: 16rem;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    transition: opacity 1s;
    opacity: 0;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.carousel-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.carousel-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-control.prev {
    left: 0.5rem;
}

.carousel-control.next {
    right: 0.5rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.3);
}

.carousel-dot.active {
    background-color: white;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background-color: white;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.product-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.product-card.admin-mode {
    border: 1px dashed #d1d5db;
}

.product-image-container {
    position: relative;
    height: 8rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-image:hover {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 1.25rem;
    right: 0.10rem;
    background-color: #f59e0b;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.product-info {
    padding: 0.5rem;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.product-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #16a34a;
}

.add-to-cart {
    background-color: #22c55e;
    color: white;
    padding: 0.25rem;
    border-radius: 9999px;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #16a34a;
}

.admin-controls {
    display: flex;
    gap: 0.25rem;
}

.edit-button {
    padding: 0.125rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.edit-button:hover {
    background-color: #2563eb;
}

.feature-button {
    padding: 0.125rem;
    border-radius: 0.25rem;
    transition: opacity 0.3s;
}

.feature-button.featured {
    background-color: #f59e0b;
    color: white;
}

.feature-button.not-featured {
    background-color: #d1d5db;
    color: white;
}

.feature-button:hover {
    opacity: 0.8;
}

.product-edit-form {
    padding: 0.5rem;
}

.edit-form-group {
    margin-bottom: 0.75rem;
}

.edit-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.edit-form-input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
}

.edit-form-actions {
    display: flex;
    gap: 0.25rem;
}

.save-button {
    flex: 1;
    background-color: #22c55e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-button svg {
    margin-right: 0.25rem;
}

.cancel-button {
    flex: 1;
    background-color: #d1d5db;
    color: #4b5563;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-card {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background-color: #ecfdf5;
    color: #16a34a;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon .icon {
    width: 2rem;
    height: 2rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.testimonial-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    background-color: #ecfdf5;
    color: #16a34a;
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.testimonial-name {
    font-weight: 600;
}

.rating {
    color: #f59e0b;
}

.testimonial-text {
    color: #4b5563;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: #ecfdf5;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
}

.contact-form {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-button {
    background-color: #16a34a;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #15803d;
}

.contact-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 1rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #16a34a;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.contact-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #6b7280;
}

.social-media {
    margin-top: 1.5rem;
}

.social-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #16a34a;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #15803d;
}

.social-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Footer */
.footer {
    background-color: #166534;
    color: white;
    padding: 2.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-desc {
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: #86efac;
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: white;
    transition: color 0.3s;
    text-align: left;
}

.footer-link:hover {
    color: #86efac;
}

.newsletter-text {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    color: #1f2937;
}

.newsletter-button {
    background-color: #f59e0b;
    color: #166534;
    font-weight: 700;
    padding: 0 1rem;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    transition: background-color 0.3s;
}

.newsletter-button:hover {
    background-color: #d97706;
}

/* Media Queries para Responsividade */
@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .hero-text {
        width: 50%;
        text-align: left;
        margin-right: 2rem;
        margin-bottom: 0;
    }
    
    .hero-carousel {
        width: 50%;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .menu-button {
        display: none;
    }
    
    .main-nav {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .carousel-container {
        height: 24rem;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
}