/* =============================================
   AGRÍCOLA MIRANTE — ESTILOS PRINCIPAIS
   ============================================= */

:root {
    --green-deep:   #1a3a1f;
    --green-mid:    #2d6a35;
    --green-light:  #4a9455;
    --gold:         #c8a84b;
    --gold-light:   #e8c86a;
    --cream:        #f8f4ec;
    --cream-dark:   #ede8dc;
    --text-dark:    #1a1a1a;
    --text-mid:     #4a4a4a;
    --text-light:   #8a8a8a;
    --white:        #ffffff;
    --red:          #c0392b;
    --shadow:       0 4px 24px rgba(26,58,31,0.12);
    --shadow-lg:    0 12px 48px rgba(26,58,31,0.18);
    --radius:       12px;
    --radius-sm:    8px;
    --transition:   all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
    background: var(--green-deep);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

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

.logo-icon { font-size: 2rem; }

.logo-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1.1;
}

.logo-tag {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.site-nav a:hover { color: var(--gold-light); }

.btn-cart {
    background: var(--gold);
    color: var(--green-deep) !important;
    font-weight: 700 !important;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem !important;
}

.btn-cart:hover { background: var(--gold-light) !important; }

.cart-count {
    background: var(--green-deep);
    color: var(--gold-light);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-light) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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.03'%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-inner {
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(200,168,75,0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span { color: var(--gold-light); }

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--green-deep);
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,168,75,0.4);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ---- STATS ---- */
.stats {
    background: var(--white);
    padding: 48px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--green-mid);
    font-weight: 900;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ---- SECTION TITLES ---- */
.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-mid);
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--green-deep);
}

/* ---- PRODUTOS GRID ---- */
.produtos-section { padding: 80px 0; }

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.produto-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.card-img {
    background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
    padding: 40px;
    text-align: center;
    font-size: 5rem;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--green-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.3rem;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.card-body .unidade {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-mid);
    flex: 1;
    margin-bottom: 20px;
}

.card-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--green-mid);
    font-weight: 900;
    margin-bottom: 16px;
}

.card-price small {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

.btn-add-cart {
    flex: 1;
    background: var(--green-mid);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ---- DIFERENCIAIS ---- */
.features-section {
    background: var(--green-deep);
    padding: 80px 0;
}

.features-section .section-title .label { color: var(--gold); }
.features-section .section-title h2 { color: var(--white); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(200,168,75,0.2);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255,255,255,0.09);
    border-color: var(--gold);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }

.feature-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ---- CTA ---- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.cta-section h2 { font-size: 2.5rem; color: var(--green-deep); margin-bottom: 12px; }
.cta-section p  { color: var(--text-mid); margin-bottom: 32px; font-size: 1.05rem; }

/* ---- FOOTER ---- */
.site-footer {
    background: #111;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-name { color: var(--gold-light); font-size: 1.2rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.5); }

.footer-links h4, .footer-contact h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links a, .footer-links p, .footer-contact p {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- CARRINHO ---- */
.page-hero {
    background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-hero h1 { font-size: 2.5rem; }
.page-hero p { opacity: 0.7; margin-top: 8px; }

.cart-section { padding: 64px 0; }

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

.cart-items-box, .order-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cream-dark);
}

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

.cart-item-icon { font-size: 2.5rem; background: var(--cream); padding: 16px; border-radius: var(--radius-sm); }

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 1rem; color: var(--green-deep); margin-bottom: 4px; }
.cart-item-info p  { font-size: 0.85rem; color: var(--text-light); }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 30px; height: 30px;
    border: 1px solid var(--cream-dark);
    background: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover { background: var(--green-mid); color: white; border-color: var(--green-mid); }
.cart-item-qty span { font-weight: 700; min-width: 24px; text-align: center; }
.cart-item-price { font-weight: 700; color: var(--green-mid); font-size: 1.1rem; }

.btn-remove {
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; opacity: 0.5; transition: var(--transition);
}
.btn-remove:hover { opacity: 1; color: var(--red); }

.summary-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-deep);
    border-bottom: none;
    padding-top: 16px;
}

.btn-checkout {
    width: 100%;
    background: var(--green-mid);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: var(--transition);
}

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

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-cart .icon { font-size: 4rem; margin-bottom: 16px; }
.empty-cart h3 { font-size: 1.5rem; color: var(--green-deep); margin-bottom: 8px; }

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

.form-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.form-box h3 {
    font-size: 1.2rem;
    color: var(--green-deep);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cream-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--green-mid);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(45,106,53,0.1);
}

.secure-badge {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--text-light);
    margin-top: 12px;
}

/* ---- ALERTS ---- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- CONTATO ---- */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 80px 0;
}

.contact-info h2 { font-size: 2rem; color: var(--green-deep); margin-bottom: 16px; }
.contact-info p  { color: var(--text-mid); margin-bottom: 32px; }

.contact-item {
    display: flex; gap: 16px; align-items: flex-start;
    margin-bottom: 24px;
}

.contact-item .icon { font-size: 1.5rem; }
.contact-item h4 { font-size: 0.9rem; color: var(--green-deep); font-weight: 700; }
.contact-item p  { font-size: 0.9rem; color: var(--text-mid); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .cart-layout, .checkout-layout, .contato-grid, .footer-inner { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .site-nav { gap: 14px; }
    .site-nav a:not(.btn-cart) { display: none; }
    .hero { padding: 60px 0; }
}

/* ---- HERO DECO ---- */
.hero-deco {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    line-height: 1.6;
    opacity: 0.18;
    writing-mode: vertical-rl;
    letter-spacing: 8px;
    pointer-events: none;
}

/* ---- BANNERS SECUNDÁRIOS ---- */
.banners-section {
    background: var(--white);
    padding: 0;
    margin-top: -2px;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.banner-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 32px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.banner-card:last-child { border-right: none; }

.banner-green { background: var(--green-deep); color: var(--white); }
.banner-gold  { background: var(--gold); color: var(--green-deep); }
.banner-dark  { background: #111; color: var(--white); }

.banner-icon { font-size: 2.2rem; flex-shrink: 0; }

.banner-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.banner-card p {
    font-size: 0.82rem;
    opacity: 0.75;
}

/* ---- PROMO BANNER FAIXA ---- */
.promo-banner {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    padding: 20px 0;
}

.promo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-tag {
    background: var(--green-deep);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.promo-inner p {
    font-size: 0.95rem;
    color: var(--green-deep);
    font-weight: 500;
}

.promo-inner .btn-primary {
    background: var(--green-deep);
    color: var(--gold-light);
    padding: 10px 24px;
    font-size: 0.88rem;
}

.promo-inner .btn-primary:hover {
    background: #0d1f10;
}

/* ---- TRUST BANNER ---- */
.trust-banner {
    background: var(--cream-dark);
    padding: 64px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.trust-item { padding: 24px 16px; }

.trust-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 14px;
}

.trust-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ---- FOOTER update ---- */
.footer-brand .logo-icon { font-size: 1.5rem; margin-right: 8px; }

@media (max-width: 768px) {
    .banners-grid { grid-template-columns: 1fr; }
    .banner-card  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .promo-inner  { text-align: center; }
    .hero-deco    { display: none; }
}
