/* 
Theme Name: LarisManis WP Child
Theme URI: https://www.tokopress.id/downloads/larismanis/
Author: TokoPressID
Author URI: https://www.tokopress.id
Description: A specialized TokoPressID theme optimized for selling products through WooCommerce, especially for the Indonesian market.
Version: 3.5.3
Template: larismanis-wp
Tags: one-column, two-columns, blog, e-commerce
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* Please add your custom CSS code below this line. */
/* NAMA PRODUK 1 BARIS */

.products .woocommerce-loop-product__title{
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;

font-size:13px;
line-height:1.3;
display:block;
}

/* HAPUS JUDUL VARIASI (SATUAN) */

.products .variations label,
.single-product .variations label{
display:none !important;
}
/* REVIEW UI SHOPEE

.review-wrap{
    background:#fff;
    padding:15px;
    border-radius:10px;
    font-family:'Plus Jakarta Sans',sans-serif;
}

/* SUMMARY */
.review-summary{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    border:1px solid #eee;
    padding:15px;
    border-radius:8px;
    margin-bottom:20px;
}

.rating-left{
    min-width:120px;
}

.rating-score{
    font-size:28px;
    color:#ee4d2d;
    font-weight:700;
}

.rating-score span{
    font-size:14px;
    color:#999;
}

/* FILTER */
.rating-filter{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.rating-filter button{
    padding:6px 12px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
    border-radius:6px;
    font-size:13px;
}

.rating-filter button.active{
    border-color:#ee4d2d;
    color:#ee4d2d;
}

/* REVIEW ITEM */
.review-item{
    border-top:1px solid #eee;
    padding:15px 0;
}

.review-header{
    display:flex;
    gap:10px;
    align-items:center;
}

.review-content{
    margin:10px 0;
    font-size:14px;
    line-height:1.5;
}

.review-images{
    display:flex;
    gap:8px;
    margin-top:10px;
}

.review-images img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:6px;
}

/* FOOTER */
.review-footer{
    margin-top:10px;
    font-size:13px;
    color:#888;
    cursor:pointer;
}

/*css review 

/*
Theme Name: NamaTheme Child
Template: namatheme
Version: 1.0.0
Text Domain: namatheme-child
*/

.woocommerce .button.ulasan{
    background:#666;
    color:#fff;
    border-radius:6px;
    padding:10px 14px;
    text-decoration:none;
    border:none;
}
.woocommerce .button.ulasan:hover{
    color:#fff;
    opacity:.9;
}

.ntc-review-page{
    max-width:760px;
    margin:0 auto;
    padding:10px 0 30px;
}

.ntc-review-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 0 0 1px #eee;
    margin-bottom:24px;
}

.ntc-review-product-top{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:18px 18px 10px;
    border-bottom:1px solid #f1f1f1;
}

.ntc-review-thumb img{
    width:72px;
    height:72px;
    object-fit:cover;
    border-radius:10px;
}

.ntc-review-product-name{
    font-size:20px;
    line-height:1.4;
    font-weight:500;
    color:#222;
}
.ntc-review-product-name a{
    color:#222;
    text-decoration:none;
}

.ntc-review-form{
    padding:16px 18px 24px;
}

.ntc-rating-wrap{
    margin:8px 0 16px;
}

.ntc-stars{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.ntc-star{
    font-size:58px;
    line-height:1;
    color:#ddd;
    cursor:pointer;
    transition:.2s;
    user-select:none;
}

.ntc-star.active{
    color:#ffc107;
}

.ntc-field-block{
    margin-bottom:22px;
}

.ntc-label{
    display:block;
    font-size:18px;
    font-weight:700;
    color:#222;
    margin-bottom:12px;
}

.ntc-review-textarea{
    width:100%;
    min-height:180px;
    border:2px solid #dfe4ea;
    border-radius:20px;
    padding:22px;
    font-size:18px;
    line-height:1.6;
    color:#333;
    resize:vertical;
    box-sizing:border-box;
}

.ntc-review-textarea::placeholder{
    color:#8a8f98;
}

.ntc-upload-box{
    border:2px dashed #d9dce2;
    border-radius:20px;
    padding:26px 20px;
    display:flex;
    align-items:center;
    gap:14px;
    font-size:18px;
    color:#555;
    cursor:pointer;
    position:relative;
}

.ntc-upload-box input[type="file"]{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.ntc-upload-icon{
    font-size:28px;
    line-height:1;
}

.ntc-help-text{
    display:block;
    margin-top:8px;
    color:#7a7a7a;
    font-size:13px;
}

.ntc-check-row{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:18px;
    color:#333;
    cursor:pointer;
}

.ntc-check-row input[type="checkbox"]{
    width:24px;
    height:24px;
}

.ntc-submit-row{
    display:flex;
    justify-content:flex-end;
    margin-top:18px;
}

.ntc-submit-btn{
    background:#08b354 !important;
    color:#fff !important;
    border:none !important;
    border-radius:16px !important;
    min-width:200px;
    min-height:64px;
    font-size:22px;
    font-weight:700;
    padding:14px 28px !important;
    box-shadow:none !important;
}

.ntc-submit-btn:hover{
    opacity:.92;
}

.ntc-review-media-list{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:16px;
}

.ntc-review-media-item img,
.ntc-review-media-item video{
    max-width:220px;
    border-radius:12px;
    display:block;
}

@media (max-width: 767px){
    .ntc-review-page{
        max-width:100%;
    }

    .ntc-review-product-name{
        font-size:18px;
    }

    .ntc-star{
        font-size:50px;
    }

    .ntc-review-textarea{
        min-height:150px;
        font-size:17px;
        padding:18px;
    }

    .ntc-upload-box{
        font-size:17px;
        padding:22px 18px;
    }

    .ntc-submit-row{
        justify-content:stretch;
    }

    .ntc-submit-btn{
        width:100%;
        min-width:100%;
    }
}

/* kasih jarak antar action */
.woocommerce table.shop_table.my_account_orders .button,
.woocommerce table.my_account_orders .button,
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-button {
    margin-right: 8px;
    margin-bottom: 6px;
}

/* style khusus tombol ulasan */
.woocommerce a.woocommerce-button.button.ulasan,
.woocommerce .button.ulasan,
.woocommerce-account .woocommerce-MyAccount-content a.ulasan {
    display: inline-block;
    background: #666 !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    line-height: 1.2;
    border: 0 !important;
}

.woocommerce a.woocommerce-button.button.ulasan:hover,
.woocommerce .button.ulasan:hover,
.woocommerce-account .woocommerce-MyAccount-content a.ulasan:hover {
    background: #555 !important;
    color: #fff !important;
}

.my-order-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}

.my-order-actions .btn-order-action{
    display:inline-block;
    padding:8px 14px;
    border-radius:4px;
    text-decoration:none;
    color:#fff;
    font-size:14px;
    line-height:1.2;
    border:none;
}

.my-order-actions .btn-lihat{
    background:#666;
}

.my-order-actions .btn-ulasan{
    background:#666;
}

.my-order-actions .btn-order-action:hover{
    color:#fff;
    opacity:.9;
}

.ntc-review-media-list{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:14px;
}

.ntc-review-media-item{
    max-width:180px;
}

.ntc-review-media-item img,
.ntc-review-media-item video{
    display:block;
    width:100%;
    height:auto;
    border-radius:10px;
    border:1px solid #e5e5e5;
}

.ntc-review-media-list{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:14px;
}

.ntc-review-media-item{
    max-width:180px;
}

.ntc-review-media-item img,
.ntc-review-media-item video{
    display:block;
    width:100%;
    height:auto;
    border-radius:10px;
    border:1px solid #e5e5e5;
}

.ntc-review-media-list{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:14px;
}

.ntc-review-media-item{
    max-width:180px;
}

.ntc-review-media-item img,
.ntc-review-media-item video{
    display:block;
    width:100%;
    height:auto;
    border-radius:10px;
    border:1px solid #e5e5e5;
}

.ntc-review-media-list{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:12px !important;
    margin-top:14px !important;
}

.ntc-review-media-item{
    max-width:180px !important;
}

.ntc-review-media-item img,
.ntc-review-media-item video{
    display:block !important;
    width:100% !important;
    height:auto !important;
    border-radius:10px !important;
    border:1px solid #e5e5e5 !important;
}

/* =========================
   BADGE HABIS - LOOP PRODUK
   ========================= */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product .custom-outofstock-badge,
.woocommerce-page ul.products li.product .custom-outofstock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 34px;
    padding: 0 14px;
    background: #e53935;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    pointer-events: none;
}

/* =========================
   BADGE HABIS - SINGLE PRODUK
   ========================= */
.single-product div.product .woocommerce-product-gallery {
    position: relative;
}

.single-product div.product .woocommerce-product-gallery .custom-outofstock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 38px;
    padding: 0 16px;
    background: #e53935;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    pointer-events: none;
}

/* Hanya untuk katalog/shop */
.woocommerce ul.products li.product.vw-is-outofstock a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product.vw-is-outofstock a.woocommerce-LoopProduct-link {
    position: relative;
    display: block;
}

/* Badge pojok kiri atas */
.woocommerce ul.products li.product.vw-is-outofstock a.woocommerce-LoopProduct-link::before,
.woocommerce-page ul.products li.product.vw-is-outofstock a.woocommerce-LoopProduct-link::before {
    content: "Habis";
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9;
    background: #e53935;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    pointer-events: none;
}

/* Kalau mau versi miring, pakai ini, dan nonaktifkan block badge kotak di atas */
/*
.woocommerce ul.products li.product.vw-is-outofstock a.woocommerce-LoopProduct-link::before,
.woocommerce-page ul.products li.product.vw-is-outofstock a.woocommerce-LoopProduct-link::before {
    content: "Habis";
    position: absolute;
    top: 14px;
    left: -28px;
    z-index: 9;
    width: 110px;
    text-align: center;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 32px;
    height: 32px;
    transform: rotate(-35deg);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    pointer-events: none;
}
*/