/* Da Fazenda - Produtos Coloniais */
/* Tema Rústico */

:root {
    --rustic-brown: #5C4033;
    --rustic-dark-brown: #3E2723;
    --rustic-beige: #D4C5B0;
    --rustic-light-beige: #F5F0E8;
    --rustic-olive: #7A8450;
    --rustic-gold: #D4AF37;
    --rustic-dark-green: #4A5D3F;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--rustic-light-beige);
    color: var(--rustic-dark-brown);
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
}

/* Botões */
.btn-primary {
    background-color: var(--rustic-olive);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--rustic-dark-green);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--rustic-gold);
    color: var(--rustic-dark-brown);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: #c09e2f;
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Cards */
.product-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--rustic-beige);
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--rustic-brown);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rustic-olive);
}

/* Loading */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--rustic-beige);
    border-top: 4px solid var(--rustic-olive);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px rgba(0,0,0,0.3);
}

/* Form */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--rustic-beige);
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--rustic-olive);
}

/* Header fixed */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--rustic-olive);
}

/* Hide/Show */
.hidden {
    display: none !important;
}
