/* =========================================================
   Nomina Produk Slider — Frontend CSS
   ========================================================= */

.nomina-produk-scope {
    width: 100%;
    box-sizing: border-box;
}

.nomina-produk-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 12px;
}

/* Owl Carousel custom nav */
.nomina-produk-scope .owl-nav button {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 28px;
    height: 28px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    z-index: 10;
    transition: background .2s, box-shadow .2s;
    color: #333 !important;
}

.nomina-produk-scope .owl-nav button:hover {
    background: #f5f5f5 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.nomina-produk-scope .owl-nav .owl-prev { left: -14px; }
.nomina-produk-scope .owl-nav .owl-next { right: -14px; }

.nomina-produk-scope .owl-dots {
    text-align: center;
    margin-top: 10px;
}

.nomina-produk-scope .owl-dot span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    transition: background .2s;
}

.nomina-produk-scope .owl-dot.active span {
    background: #555;
}

/* Slide item — harus 100% lebar owl-item */
.nomina-produk-slide-item {
    padding: 4px;
    width: 100%;
    box-sizing: border-box;
}

.nomina-produk-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.nomina-produk-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* Image */
.nomina-produk-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 1 / 1;
}

.nomina-produk-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.nomina-produk-card:hover .nomina-produk-img-wrap img {
    transform: scale(1.04);
}

/* Badge */
.nomina-produk-badge-diskon {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ee4d2d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
    line-height: 1.4;
}

/* Info */
.nomina-produk-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nomina-produk-nama {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.nomina-produk-nama:hover {
    color: #ee4d2d;
}

/* Harga */
.nomina-produk-harga-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nomina-produk-harga-asli {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
}

.nomina-produk-harga {
    font-size: 13px;
    font-weight: 700;
    color: #ee4d2d;
}

/* Beli button */
.nomina-produk-beli {
    display: block;
    text-align: center;
    background: #ee4d2d;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-top: 4px;
    transition: background .2s;
}

.nomina-produk-beli:hover {
    background: #d43f21;
}
