/* Main Styles */
.main-container {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-search input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.hero-search button {
    padding: 18px 40px;
    background: #fd7e14;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search button:hover {
    background: #e8690c;
}

/* Products Section */
.products-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.products-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fd7e14;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #17a2b8;
    margin-bottom: 8px;
}

.product-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-meta .bi-star-fill {
    color: #ffc107;
}

/* Mensaje vacío / error en products-section */
.zoco-empty-msg {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.zoco-empty-msg i {
    font-size: 48px;
    color: #ccc;
}

/* Tarjeta de producto como enlace */
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Modal "Conviértete en vendedor" — botones de acción ──────────────────────
   Reutiliza el sistema .zoco-modal de auth.css;
   solo se definen los estilos propios del footer de este modal.
────────────────────────────────────────────────────────────────────────────── */
.btn-cta-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cta-modal--primary {
    background: #fd7e14;
    color: #fff;
    box-shadow: 0 4px 14px rgba(253, 126, 20, 0.35);
}

.btn-cta-modal--primary:hover {
    background: #e8690c;
    box-shadow: 0 6px 18px rgba(253, 126, 20, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.btn-cta-modal--secondary {
    background: transparent;
    color: #17a2b8;
    border: 2px solid #17a2b8;
}

.btn-cta-modal--secondary:hover {
    background: #17a2b8;
    color: #fff;
}

.btn-cta-modal--cancel {
    background: transparent;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 20px;
}

.btn-cta-modal--cancel:hover {
    color: #444;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #fd7e14 0%, #e8690c 100%);
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
}

.cta-content h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-content p {
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    padding: 18px 45px;
    background: white;
    color: #fd7e14;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}
