/* ─────────────────────────────────────────
    Base
───────────────────────────────────────── */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #f0f0f0;
}

/* ─────────────────────────────────────────
    Card shell
    Width: 163.5px (Figma fixed), border-radius 12, overflow hidden
───────────────────────────────────────── */
.product-card {
    width: 100% !important;
    min-height: 460px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 45px;
    padding: 0 12px 12px;
    box-sizing: border-box;
}

.card-actions .btn-konsultasi,
.card-actions .btn-serupa {
    width: 100%;
    box-sizing: border-box;
}

.card-actions .btn-konsultasi {
    margin: 0;
}

/* ─────────────────────────────────────────
    Image section
───────────────────────────────────────── */
.card-img-section {
    position: relative;
    background-color: #fff;
}

.card-img-section img,
.card-img-placeholder {
    width: 100%;
    height: 100px;
    display: block;
    object-fit: cover;
}

.card-img-placeholder {
    background-color: #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 4px;
}

.card-img-placeholder .placeholder-icon {
    font-size: 24px;
}

.card-img-placeholder .placeholder-text {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 500;
}

/* Dot status — top-left absolute */
.dot-status {
    position: absolute;
    top: 8px;
    left: 8px;
    border: 2px solid #ffffff;
    z-index: 1;
}

/* Badge "N" — top-right absolute */
.badge-n {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f59e0b;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ─────────────────────────────────────────
Badge strip (Generik / Obat Resep)
Sits between image and body, bg same as image area
───────────────────────────────────────── */
.card-badge-strip {
    background-color: #f5f5f5;
    padding: 6px 8px 0 8px;
}

.badge-generik {
    position: absolute;
    bottom: 20px;
    left: 12px;
    /* width: 20px; */
    height: 20px;
    display: inline-block;
    background-color: #DDD5E9;
    color: #542C8F;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

.badge-originator {
    position: absolute;
    bottom: 20px;
    left: 12px;
    /* width: 20px; */
    height: 20px;
    display: inline-block;
    background-color: #D1E0D2;
    color: #1A661E;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

.badge-branded {
    position: absolute;
    bottom: 20px;
    left: 12px;
    /* width: 20px; */
    height: 20px;
    display: inline-block;
    background-color: #E4DBD0;
    color: #774B12;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

/* ─────────────────────────────────────────
Card body — padding: 8px (top auto-layout gap)
───────────────────────────────────────── */
.card-body-inner {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0;
    min-height: 180px;
}

.text-product-name {
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ① Mega Esa Farma — size:12, Manrope Regular, lh:16 */
.text-seller {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #6b7280;
    margin-bottom: 8px;
}

/* ② Product name — size:14, Manrope Regular, lh:18 */
.text-product-name {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #111827;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge "Obat Resep" inline */
.badge-obat-resep {
    display: inline-block;
    color: #ffffff;
    background-color: #ef4444;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    /* line-height: 1; */
    padding: 0px 4px;
    border-radius: 3px;
    /* border: 1px solid #ef4444; */
    vertical-align: middle;
    margin-right: 3px;
    white-space: nowrap;
}

/* ③ Discount row — "10%" badge + Rp12.000 strikethrough */
.price-discount-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

/* "10%" badge */
.badge-discount {
    background-color: #ffffff;
    color: #DE724A;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #DE724A;
}

/* ④ Rp12.000 strikethrough — Manrope Medium, size:12, lh:16, strikethrough */
.text-price-original {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* ⑤ Rp11.200 final price — Manrope SemiBold, color: #DE724A */
.text-price-final {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: #DE724A;
    margin-bottom: 0;
}

.text-price-normal {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: #484848;
    margin-bottom: 0;
}

/* Plain price (no discount) — Manrope Bold, black */
.text-price-plain {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: #111827;
    margin-bottom: 0;
}

/* "/ Kaplet" unit text — Manrope Bold, size:12 */
.text-price-unit {
    font-size: 12px;
    font-weight: 700;
}

/* ⑥ 128 Terjual — Manrope Regular, size:12, lh:16 */
.text-terjual {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #6b7280;
    margin-top: auto;
    padding-top: 8px;
    /* padding-bottom: 8px; */
}

/* ─────────────────────────────────────────
Tombol Mulai Konsultasi
───────────────────────────────────────── */
.btn-konsultasi {
    display: block;
    width: 100%;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    color: #2563eb;
    background-color: #ffffff;
    border: 1.5px solid #2563eb;
    border-radius: 8px;
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-konsultasi:hover {
    background-color: #eff6ff;
}

/* ─────────────────────────────────────────
⑦ Produk Serupa footer — Manrope Bold, size:12, lh:16
───────────────────────────────────────── */
.btn-serupa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 3px;
    padding-top: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    color: #374151;
    background-color: transparent;
    border: none;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.15s ease;
}


.btn-serupa .chevron {
    font-size: 11px;
    color: #6b7280;
}

.badge-pre-order {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(33, 33, 33, 0.50);
    color: #111827;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    /* line-height: 1; */
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 3;
    backdrop-filter: blur(2px);
}

.card-img-section.pre-order::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 2;
}