/**
 * Pasar Desa - Halaman publik (Lapak)
 */

.page-pasar-desa .pasar-main {
    padding: 1.5rem 1rem 3rem;
}

.pasar-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 4vw, 1.5rem);
}

.pasar-breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.pasar-breadcrumb a {
    color: #1e40af;
    text-decoration: none;
}

.pasar-breadcrumb a:hover {
    text-decoration: underline;
}

.pasar-breadcrumb .sep {
    margin: 0 0.35rem;
}

.pasar-title {
    font-size: 1.75rem;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pasar-title i {
    color: #b45309;
}

.pasar-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.25rem 0;
}

/* Filters */
.pasar-filters {
    margin-bottom: 1.5rem;
}

.pasar-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.pasar-input-search {
    flex: 1;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.pasar-select-kategori {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    min-width: 160px;
}

.pasar-btn-filter {
    padding: 0.5rem 1rem;
    background: #b45309;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pasar-btn-filter:hover {
    background: #92400e;
}

/* Grid */
.pasar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.pasar-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.pasar-card:hover {
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.12);
    border-color: #b45309;
    transform: translateY(-2px);
}

.pasar-card-foto {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pasar-card-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pasar-card-foto.no-foto .no-foto,
.pasar-card-foto .no-foto {
    font-size: 2.5rem;
    color: #94a3b8;
}

.pasar-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
}

.pasar-card-name {
    font-size: 1.05rem;
    margin: 0 0 0.35rem 0;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pasar-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: #b45309;
    margin: 0 0 0.5rem 0;
}

.pasar-card-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.pasar-card-seller {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.pasar-card-seller i {
    margin-right: 0.25rem;
    width: 1em;
    color: #b45309;
}

.pasar-empty {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1.5rem;
    color: #92400e;
    text-align: center;
}

.pasar-empty p {
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pasar-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #b45309;
    font-weight: 500;
    text-decoration: none;
}

.pasar-btn-back:hover {
    text-decoration: underline;
    color: #92400e;
}

/* Detail */
.pasar-detail-wrap {
    max-width: 900px;
}

.pasar-detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 720px) {
    .pasar-detail-layout {
        grid-template-columns: 1fr;
    }
}

.pasar-detail-foto {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.pasar-detail-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pasar-detail-foto.no-foto .no-foto,
.pasar-detail-foto .no-foto {
    font-size: 3rem;
    color: #94a3b8;
}

.pasar-detail-name {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.3;
}

.pasar-detail-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #b45309;
    margin: 0 0 0.75rem 0;
}

.pasar-detail-badge {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.pasar-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pasar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.pasar-btn-wa {
    background: #25d366;
    color: #fff;
}

.pasar-btn-wa:hover {
    background: #1da851;
    color: #fff;
}

.pasar-btn-tel {
    background: #fff;
    color: #b45309;
    border: 1px solid #b45309;
}

.pasar-btn-tel:hover {
    background: #b45309;
    color: #fff;
}

.pasar-detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.pasar-detail-section-title {
    font-size: 0.95rem;
    color: #78350f;
    margin: 0 0 0.5rem 0;
}

.pasar-detail-section-title i {
    margin-right: 0.5rem;
    width: 1em;
    color: #b45309;
}

.pasar-detail-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

.pasar-detail-text a {
    color: #b45309;
    text-decoration: none;
}

.pasar-detail-text a:hover {
    text-decoration: underline;
}

.pasar-back-wrap {
    margin: 1.5rem 0 0 0;
}
