/**
 * com_products — gaya dasar katalog & detail (netral, tanpa identitas brand).
 * Cukup untuk tampil rapi tanpa template; identitas visual final (warna, serif,
 * bayangan) digarap di template tpl_universa. Property di sini sengaja struktural
 * saja agar aman ditimpa CSS template.
 */

/* ====== Katalog (grid) ====== */
.uni-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.uni-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
}

/* Stretched-link: seluruh kartu clickable (judul = link utama). */
.uni-pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.uni-pcard-more { position: relative; z-index: 2; }

/* Tombol back (detail) */
.uni-product-back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-weight: 600; color: #d6336c; text-decoration: none; }

.uni-pcard-media { position: relative; display: block; overflow: hidden; line-height: 0; }

.uni-pcard-img,
.uni-pcard-ph {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.uni-pcard-ph { background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%); }

.uni-pcard-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #d6336c;
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .4rem .8rem;
    line-height: 1;
}

.uni-pcard-body { display: flex; flex-direction: column; flex: 1; gap: .45rem; padding: 1.1rem 1.2rem 1.25rem; }
.uni-pcard-cat { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #d6336c; }
.uni-pcard-title { font-size: 1.1rem; font-weight: 600; line-height: 1.3; margin: 0; }
.uni-pcard-title a { color: inherit; text-decoration: none; }
.uni-pcard-price { font-weight: 700; color: #d6336c; margin: .1rem 0 0; }
.uni-pcard-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; color: #d6336c; text-decoration: none; }

/* ====== Detail ====== */
.uni-product-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .uni-product-layout { grid-template-columns: 1fr 1fr; } }

.uni-product-stage { margin: 0; overflow: hidden; line-height: 0; }
.uni-product-stage-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.uni-product-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .6rem; margin-top: .75rem; }
.uni-product-thumb { padding: 0; border: 1px solid #e9ecef; background: none; overflow: hidden; cursor: pointer; line-height: 0; }
.uni-product-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.uni-btn-whatsapp { display: inline-flex; align-items: center; gap: .5rem; }

/* ====== Tabel harga (di dalam deskripsi produk) ====== */
.uni-product-description h3 {
    margin-top: 1.75rem;
    font-size: 1.15rem;
    color: #d6336c;
}

.uni-product-description .table-responsive {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.uni-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.uni-price-table th,
.uni-price-table td {
    padding: .55rem .75rem;
    border: 1px solid #f0d4e0;
    text-align: left;
    vertical-align: middle;
}

.uni-price-table thead th {
    background: #fdf2f7;
    color: #d6336c;
    font-weight: 600;
    white-space: nowrap;
}

.uni-price-table .text-center {
    text-align: center;
}

.uni-price-table tbody tr:nth-child(even) {
    background: #fbf5f8;
}

/* Kolom tarif (kanan) rata kanan & tidak terpotong */
.uni-price-table td:last-child,
.uni-price-table th:last-child {
    text-align: right;
    white-space: nowrap;
}
