/* ==========================================
   APIÁRIO COIMBRA - Style Sheet Completo
   Tema: Mel (Amarelo/Laranja), Branco, Marrom
   Mobile-First | Bootstrap 5 Compatível
   ========================================== */

:root {
    --honey-gold: #FFD700;
    --honey-orange: #FF8C00;
    --honey-brown: #8B4513;
    --honey-dark: #3E2723;
    --cream-bg: #FFF9E6;
    --white: #FFFFFF;
    --text-main: #2C1810;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
    --success: #22C55E;
    --danger: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE & RESET ===== */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--cream-bg);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 76px; /* Espaço para navbar fixa */
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--honey-orange); }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--honey-brown), var(--honey-dark));
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--white) !important;
    letter-spacing: -0.5px;
}

.navbar-brand img { height: 36px; margin-right: 8px; }

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--honey-dark) !important;
    background: var(--honey-gold);
    transform: translateY(-1px);
}

.navbar-toggler { border: 2px solid rgba(255,255,255,0.5); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(255,215,0,0.4); }

.cart-btn { position: relative; }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--honey-brown);
}

/* ===== HERO CAROUSEL ===== */
.carousel-item { height: 520px; }
.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.1);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.55);
    padding: 1.8rem 2rem;
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    max-width: 600px;
    left: 8%;
    right: auto;
    bottom: 12%;
    text-align: left;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--honey-gold);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
}

/* ===== SEÇÕES & TÍTULOS ===== */
.section { padding: 4rem 0; }
.section-title { margin-bottom: 2.5rem; text-align: center; }
.section-title h2 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--honey-dark);
    margin-bottom: 0.5rem;
}
.accent-bar {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--honey-gold), var(--honey-orange));
    border-radius: 2px;
    margin: 0 auto;
}

/* ===== CARDS DE PRODUTO ===== */
.product-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--honey-orange);
    color: var(--white);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--honey-brown);
    margin: 0.5rem 0;
}

/* ===== SELETOR DE QUANTIDADE ===== */
.qty-wrapper {
    display: inline-flex;
    align-items: center;
    background: #F8F5F0;
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 4px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--white);
    color: var(--honey-brown);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.qty-btn:hover { background: var(--honey-gold); color: var(--honey-dark); }
.qty-btn:active { transform: scale(0.95); }

.qty-input {
    width: 42px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--white);
    font-weight: 600;
    color: var(--honey-dark);
    padding: 0;
}
.qty-input:focus {
    outline: none;
    border-color: var(--honey-gold);
    box-shadow: none;
}

/* ===== BOTÕES ===== */
.btn-honey {
    background: linear-gradient(135deg, var(--honey-gold), var(--honey-orange));
    color: var(--honey-dark);
    font-weight: 600;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-honey:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.35);
    color: var(--honey-dark);
}
.btn-honey:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-brown {
    background: var(--honey-brown);
    color: var(--white);
    font-weight: 500;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-brown:hover { background: var(--honey-dark); color: var(--white); }

.btn-outline-honey {
    border: 2px solid var(--honey-orange);
    color: var(--honey-orange);
    background: transparent;
    font-weight: 500;
}
.btn-outline-honey:hover {
    background: var(--honey-orange);
    color: var(--white);
    border-color: var(--honey-orange);
}

/* ===== CARRINHO ===== */
.cart-container { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.cart-table th {
    background: linear-gradient(135deg, var(--honey-brown), var(--honey-dark));
    color: var(--white);
    font-weight: 600;
    padding: 1rem;
    border: none;
}
.cart-table td { padding: 1rem; vertical-align: middle; border-bottom: 1px solid var(--border-light); }
.cart-img { width: 55px; height: 55px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.cart-footer { background: #F9FAFB; padding: 1.5rem; border-radius: 0 0 var(--radius) var(--radius); }

/* ===== CHECKOUT & PIX ===== */
.pix-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.qr-wrapper {
    background: var(--white);
    padding: 1.2rem;
    border-radius: var(--radius);
    display: inline-block;
    border: 2px dashed var(--honey-gold);
    margin: 1rem 0;
}
.pix-code-input {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    background: #F9FAFB;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-light);
}
.copy-feedback { color: var(--success); font-size: 0.85rem; font-weight: 500; opacity: 0; transition: opacity 0.3s; }
.copy-feedback.show { opacity: 1; }

/* ===== AUTENTICAÇÃO & FORMULÁRIOS ===== */
.auth-card, .contact-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.auth-header {
    background: linear-gradient(135deg, var(--honey-brown), var(--honey-dark));
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}
.form-control, .form-select {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--honey-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}
.form-label { font-weight: 500; color: var(--honey-dark); margin-bottom: 0.4rem; }

/* ===== DIFERENCIAIS ===== */
.diff-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid transparent;
}
.diff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--honey-gold);
}
.diff-icon { font-size: 2.5rem; margin-bottom: 1rem; display: inline-block; }

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--honey-dark), #2E1B1B);
    color: rgba(255,255,255,0.85);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
}
footer h4 { color: var(--white); font-weight: 700; margin-bottom: 1.2rem; position: relative; padding-bottom: 0.6rem; }
footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 45px; height: 3px; background: var(--honey-gold); border-radius: 2px; }
footer a { color: rgba(255,255,255,0.75); transition: var(--transition); }
footer a:hover { color: var(--honey-gold); transform: translateX(4px); }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 0.6rem;
    transition: var(--transition);
    font-size: 1.1rem;
}
.social-links a:hover { background: var(--honey-gold); color: var(--honey-dark); transform: translateY(-3px); }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ===== TOASTS & UTILITÁRIOS ===== */
.toast-notification { animation: slideInRight 0.3s ease; z-index: 1050; backdrop-filter: blur(4px); }
.bg-honey { background-color: var(--honey-gold); }
.text-honey { color: var(--honey-orange); }
.text-brown { color: var(--honey-brown); }

/* ===== ANIMAÇÕES ===== */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp 0.5s ease forwards; }

/* ===== RESPONSIVO ===== */
@media (max-width: 991px) {
    .carousel-item { height: 400px; }
    .carousel-caption { max-width: 85%; padding: 1.2rem; }
    .section { padding: 3rem 0; }
}

@media (max-width: 768px) {
    body { padding-top: 68px; }
    .carousel-item { height: 320px; }
    .carousel-caption { display: none; }
    .navbar-collapse {
        background: rgba(62, 39, 35, 0.98);
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        margin-top: 0.5rem;
    }
    .nav-link { padding: 0.75rem 1rem !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .product-card .card-body { padding: 1rem; }
    .cart-table th, .cart-table td { padding: 0.8rem 0.5rem; font-size: 0.9rem; }
}

@media (max-width: 576px) {
    .carousel-item { height: 260px; }
    .section-title h2 { font-size: 1.6rem; }
    .auth-card, .contact-card { box-shadow: var(--shadow-sm); }
    .qty-wrapper { transform: scale(0.9); transform-origin: center; }
}

/* ===== ACESSIBILIDADE & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

@media print {
    .navbar, .carousel, footer, .btn, .qty-wrapper, .toast-notification { display: none !important; }
    body { background: #fff; color: #000; padding-top: 0; }
    .section { padding: 1rem 0; }
}