/* ============================================
   MARKETPLACE CSS
   Estilos da vitrine pública de lojas
   ============================================ */

body { font-family: 'Inter', sans-serif; margin: 0; background-color: #f9f9f9; color: #333; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: white; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.logo { font-size: 24px; font-weight: 800; color: #ea1d2c; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.nav-links { display: flex; gap: 15px; align-items: center; }
.btn-cta { background: #ea1d2c; color: white !important; padding: 10px 20px; border-radius: 50px; font-weight: 700; text-decoration: none; font-size: 14px; transition: 0.2s; }
.btn-cta:hover { background: #c01320; transform: translateY(-1px); }
.btn-account { background: #f3f4f6; color: #1f2937 !important; border-radius: 50px; padding: 10px 15px; display: flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 600; font-size: 14px; }

/* HERO */
.hero { text-align: center; padding: 60px 20px 40px; background: white; border-bottom: 1px solid #f0f0f0; }
.hero h1 { font-size: 36px; margin: 0 0 10px; color: #111; letter-spacing: -1px; }
.hero p { color: #666; margin-bottom: 25px; font-size: 16px; }

.location-btn {
    background: #fff0f1; color: #ea1d2c; border: 1px solid #ea1d2c;
    padding: 8px 16px; border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 30px; transition: 0.2s;
}
.location-btn:hover { background: #ea1d2c; color: white; }

.search-wrapper { position: relative; max-width: 600px; margin: 0 auto; }
.search-wrapper i { position: absolute; left: 20px; top: 18px; color: #ea1d2c; font-size: 18px; }
.search-input {
    width: 100%; padding: 16px 16px 16px 50px; border: 1px solid #e5e7eb; border-radius: 12px;
    box-sizing: border-box; font-size: 16px; transition: 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.03); outline: none;
}
.search-input:focus { border-color: #ea1d2c; box-shadow: 0 4px 20px rgba(234, 29, 44, 0.15); }

/* CATEGORIAS */
.cat-section { padding: 30px 5% 10px; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.cat-card {
    min-width: 90px; background: white; border-radius: 16px; padding: 15px 10px; text-align: center;
    text-decoration: none; color: #4b5563; display: flex; flex-direction: column; align-items: center;
    transition: 0.2s; border: 1px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cat-card:hover { transform: translateY(-5px); border-color: #ea1d2c; color: #ea1d2c; }
.cat-icon { font-size: 32px; margin-bottom: 8px; display: block; }
.cat-name { font-size: 12px; font-weight: 700; }

/* LOJAS */
.stores-section { padding: 40px 5% 80px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 22px; font-weight: 800; margin-bottom: 25px; color: #111; display: flex; align-items: center; gap: 8px; }
.grid-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; }

.store-card {
    display: flex; background: white; border: 1px solid #f3f4f6; border-radius: 16px; overflow: hidden;
    text-decoration: none; color: inherit; transition: 0.2s; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.store-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: #e5e7eb; }

.store-closed { filter: grayscale(100%); opacity: 0.7; }
.store-closed:hover { filter: grayscale(0%); opacity: 1; }

.store-img { width: 110px; height: 110px; object-fit: cover; background: #eee; }
.store-info { padding: 15px 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.store-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; color: #1f2937; }
.store-meta { font-size: 12px; color: #6b7280; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.badge-dist { background: #eff6ff; color: #2563eb; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 11px; }
.badge-closed-overlay {
    position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7);
    color: white; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: 0.5px; z-index: 10;
}

/* WHATSAPP FLOAT */
.float-zap {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 1000;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    transition: all 0.3s; animation: pulse-zap 2s infinite;
}
.float-zap:hover { transform: scale(1.1); background-color: #20b857; }
@keyframes pulse-zap {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .grid-stores { grid-template-columns: 1fr; }
    .cat-section { justify-content: flex-start; padding-left: 20px; }
    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 28px; }
    .float-zap { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
}
