.apu-reel-wrapper {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}
.apu-reel-wrapper * { box-sizing: border-box; }

.apu-reel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 4px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.apu-reel::-webkit-scrollbar { height: 8px; }
.apu-reel::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.apu-reel::-webkit-scrollbar-track { background: transparent; }

.apu-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.apu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.apu-card-media {
    width: 100%;
    height: 190px;
    background: #f2f2f2;
}
.apu-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.apu-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
}

.apu-card-info {
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.apu-umkm-info {
    display: flex;
    align-items: center;
    gap: 5px;
}
.apu-umkm-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.apu-umkm-nama {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apu-produk-nama {
    font-weight: 600;
    font-size: 12.5px;
    color: #222;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.apu-produk-harga {
    font-weight: 700;
    color: #e63946;
    font-size: 12.5px;
}

.apu-btn-order {
    margin-top: 4px;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
}
.apu-btn-order:hover { background: #1ebe5b; }

.apu-empty { color: #888; }

/* Modal */
.apu-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.apu-modal-overlay.apu-modal-open { display: flex; }

.apu-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}
.apu-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 6px;
}
.apu-modal-umkm {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.apu-modal-umkm img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.apu-modal-umkm span {
    font-weight: 600;
    font-size: 14px;
}
.apu-modal-foto {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f2f2;
    margin-bottom: 12px;
}
.apu-modal-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apu-modal h3#apu-modal-produk-nama {
    margin: 0 0 6px;
    font-size: 18px;
}
.apu-modal-harga {
    font-weight: 700;
    color: #e63946;
    margin-bottom: 10px;
    font-size: 15px;
}
.apu-modal-deskripsi {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    white-space: pre-line;
}
.apu-btn-checkout {
    display: block;
    text-align: center;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
}
.apu-btn-checkout:hover { background: #1ebe5b; color: #fff; }
