.singleProduk{
    display: block;
    position: relative;
    margin-top: 4rem;
    background-color: #fff;
    width: 100%;
    padding: 6rem 9% 5rem 9%;
}

/* Breadcrumb */
.bread{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    font-size:14px;
    color:#888;
}

.bread a{
    text-decoration:none;
    color:#2e7d32;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:5px;
}

.bread a:hover{
    opacity:.7;
}

.bread .sep{
    color:#bbb;
    font-size:12px;
}

.bread .current{
    font-weight:600;
    color:#111;
}

/* GRID */
.singleGrid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:2rem;
    margin-top:1.5rem;
    align-items:start;
}
.gridKiri{
    width: 100%;
    overflow-x: hidden;
}
.mainThumbnail{
    width: 100%;
    height: 500px;
    object-position: center;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 1rem;
}
.galleryLoop{
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior:smooth; /* biar halus */
    -ms-overflow-style:none;  /* IE & Edge */
    scrollbar-width:none;
}
.galleryLoop::-webkit-scrollbar{
    display:none;            /* Chrome, Safari */
}
.galleryLoop img{
    width: 90px;
    height: 90px;
    object-position: center;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}

/* =========================
   RIGHT SIDE PRODUCT INFO
========================= */
.productInfoWrap{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
}

/* Badge */
.productBadge{
    width:max-content;
    padding:6px 14px;
    font-size:12px;
    font-weight:600;
    border-radius:50px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.productBadge.best{
    background:#ffe9b3;
    color:#b78103;
}

.productBadge.new{
    background:#e3f7ec;
    color:#1b8a4b;
}

/* Title */
.productTitle{
    font-size:34px;
    font-weight:700;
    line-height:1.3;
    margin:0;
}

/* Price */
.productPrice{
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

.priceFinal{
    font-size:28px;
    font-weight:700;
    color:#2e7d32;
}

.priceOriginal{
    text-decoration:line-through;
    color:#aaa;
    font-size:18px;
}

.priceDiscount{
    background:#ffeded;
    color:#d32f2f;
    font-size:13px;
    font-weight:600;
    padding:4px 8px;
    border-radius:6px;
}

/* Stock */
.productStock{
    font-size:14px;
}

.productStock span{
    font-weight:600;
}

.status-in_stock span{
    color:#2e7d32;
}

.status-pre_order span{
    color:#f57c00;
}

.status-sold_out span{
    color:#d32f2f;
}

.produk-tabel{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    margin-top:2rem;
    font-size:14px;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    border:1px solid #e6f2ea; /* outer border hijau soft */
}

/* HEADER HIJAU MUDA TRANSPARAN */
.produk-tabel thead{
    background:rgba(46,125,50,0.08); /* hijau sangat soft */
}

.produk-tabel th{
    text-align:left;
    padding:14px 18px;
    font-weight:600;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#2e7d32;
}

/* BODY */
.produk-tabel tbody tr{
    background:#fff;
}

.produk-tabel td{
    padding:14px 18px;
    border-top:1px solid #e6f2ea; /* border antar row */
    color:#444;
}

/* BORDER VERTICAL */
.produk-tabel td + td{
    border-left:1px solid #f0f5f2;
}

/* HOVER */
.produk-tabel tbody tr:hover{
    background:rgba(46,125,50,0.04);
}

/* First column emphasis */
.produk-tabel td:first-child{
    font-weight:600;
    color:#1b5e20;
    width:40%;
}

/* Excerpt */
.productExcerpt{
    font-size:15px;
    line-height:1.7;
    color:#555;
}

/* Actions */
.productActions{
    margin-top:1rem;
}

.btnOrder{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:14px 28px;
    background:#25D366;
    color:#fff;
    border-radius:50px;
    font-weight:600;
    text-decoration:none;
    transition:0.3s ease;
    font-size: 14px;
}

.btnOrder:hover{
    background:#1ebe5d;
    transform:translateY(-2px);
}

.btnDisabled{
    padding:14px 28px;
    background:#ddd;
    border:none;
    border-radius:50px;
    font-weight:600;
    color:#666;
    cursor:not-allowed;
}

/* =========================
   PRODUCT CONTENT AREA
========================= */
.produkContent{
    line-height:1.8;
    font-size:16px;
    color:#444;
    width: 100%;
    max-width: 800px;
    margin: 4rem auto 1rem auto;
}

/* Headings */
.produkContent h1,
.produkContent h2,
.produkContent h3,
.produkContent h4,
.produkContent h5,
.produkContent h6{
    margin-top:2.5rem;
    margin-bottom:1rem;
    font-weight:700;
    line-height:1.3;
    color:#1b5e20;
}

.produkContent h1{ font-size:32px; }
.produkContent h2{ font-size:26px; }
.produkContent h3{ font-size:22px; }
.produkContent h4{ font-size:18px; }
.produkContent h5{ font-size:16px; }
.produkContent h6{ font-size:14px; }

/* Paragraph */
.produkContent p{
    margin-bottom:25px;
}

/* Strong & Bold */
.produkContent strong{
    font-weight:600;
    color:#222;
}

/* Links */
.produkContent a{
    color:#2e7d32;
    text-decoration:none;
    font-weight:500;
}

.produkContent a:hover{
    text-decoration:underline;
}

/* Lists */
.produkContent ul,
.produkContent ol{
    margin-bottom:25px;
    padding-left:1.5rem;
}

.produkContent ul li{
    margin-bottom:.6rem;
    list-style:disc;
}

.produkContent ol li{
    margin-bottom:.6rem;
    list-style:decimal;
}

/* Blockquote */
.produkContent blockquote{
    margin:2rem 0;
    padding:1.5rem;
    background:#f4f9f6;
    border-left:4px solid #2e7d32;
    font-style:italic;
    color:#555;
    border-radius:8px;
}

/* Images */
.produkContent img{
    max-width:100%;
    height:auto;
    border-radius:12px;
    margin:1.5rem 0;
}

/* Image alignment */
.produkContent .alignleft{
    float:left;
    margin:0 1.5rem 1rem 0;
}

.produkContent .alignright{
    float:right;
    margin:0 0 1rem 1.5rem;
}

.produkContent .aligncenter{
    display:block;
    margin:2rem auto;
}

/* Tables */
.produkContent table{
    width:100%;
    border-collapse:collapse;
    margin:2rem 0;
    font-size:14px;
}

.produkContent table th,
.produkContent table td{
    border:1px solid #e6f2ea;
    padding:12px 15px;
    text-align:left;
}

.produkContent table th{
    background:rgba(46,125,50,0.08);
    font-weight:600;
    color:#2e7d32;
}

/* HR */
.produkContent hr{
    border:none;
    border-top:1px solid #e6f2ea;
    margin:3rem 0;
}

/* Code */
.produkContent code{
    background:#f4f4f4;
    padding:3px 6px;
    border-radius:4px;
    font-size:14px;
}

.produkContent pre{
    background:#f4f4f4;
    padding:1.5rem;
    overflow:auto;
    border-radius:8px;
    margin-bottom:2rem;
}

/* WP Gallery */
.produkContent .gallery{
    margin:2rem 0;
}

.produkContent .gallery img{
    border-radius:10px;
}

/* Products Section ====================== */
.relatedProduk{
    margin-top:6rem;
    margin-bottom: 5rem;
}

.relatedTitle{
    font-size:24px;
    margin-bottom:2rem;
}
/* Product Grid */
.gProductGrid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem;
}

/* Card */
.gProductCard{
    position: relative;
    background: rgba(255,255,255,.85);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 1rem 2.2rem rgba(0,0,0,.08);
    transition: 0.3s;
}

.gProductCard:hover{
    transform: translateY(-12px);
    box-shadow: 0 1.8rem 3.2rem rgba(0,0,0,.12);
}

/* Badge */
.gProductBadge{
    position: absolute;
    top: 15px;
    left: 15px;
    padding: .6rem 1.2rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    z-index: 2;
}

.gProductBadge.best{
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.gProductBadge.new{
    background: linear-gradient(90deg, #2ecc71, #1e8f4d);
}

/* Image */
.gProductImg{
    width: 100%;
    height: 220px;
    background: linear-gradient(120deg, rgba(46,204,113,.15), rgba(255,255,255,.75));
    overflow: hidden;
}

.gProductImg img{
    width: 100%;
    height: 220px;
    filter: drop-shadow(0px 14px 20px rgba(0,0,0,.10));
    transition: 0.3s;
    object-position: center;
    object-fit: cover;
}

.gProductCard:hover .gProductImg img{
    transform: scale(1.08);
}

/* Info */
.gProductInfo{
    padding: 2.2rem 2rem;
}

.gProductInfo h3{
    font-size: 1.9rem;
    font-weight: 900;
    color: #222;
}

.gProductInfo p{
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #666;
    line-height: 1.7;
    min-height: 55px;
}

/* Price */
.gProductPrice{
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newPrice{
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--darkGreen);
}

.oldPrice{
    font-size: 1.4rem;
    font-weight: 700;
    color: #888;
    text-decoration: line-through;
}

/* Order Button */
.gOrderBtn{
    margin-top: 1.8rem;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: .8rem;
    padding: 1.1rem;
    border-radius: 14px;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--green), var(--darkGreen));
    color: #fff;
    box-shadow: 0 .8rem 1.6rem rgba(46,204,113,.22);
}

.gOrderBtn:hover{
    transform: translateY(-2px);
}

/* Modal Popup */
.gModal{
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    padding: 2rem;
}

.gModal.active{
    opacity: 1;
    visibility: visible;
}

.gModalBox{
    position: relative;
    max-width: 800px;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2rem 4rem rgba(0,0,0,.25);
    animation: modalZoom 0.35s ease;
}

.gModalBox img{
    width: 100%;
    display: block;
    max-height: 80vh;
    object-fit: cover;
}

.gModalClose{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,.6);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.gModalClose i{
    font-size: 2rem;
    color: #fff;
}

.gModalClose:hover{
    background: rgba(46,204,113,.9);
}

.produkTags {
    margin-top: 25px;
}

.produkTags h3,
.produkTags span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.produkTags ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.produkTags li {
    display: inline-block;
    margin: 0 8px 8px 0;
}

.produkTags a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 30px;
    background: rgba(0, 128, 0, 0.08);
    color: #0a7d32;
    text-decoration: none;
    border: 1px solid rgba(0, 128, 0, 0.2);
    transition: all 0.3s ease;
}

.produkTags a:hover {
    background: #0a7d32;
    color: #fff;
    border-color: #0a7d32;
}

@media(max-width:780px){
    .singleProduk{
        padding: 5.5rem 4% 1.6rem 4%;
    }
    .bread{
        font-size: 12px;
    }
    .singleGrid{
        grid-template-columns: 1fr;
    }
    .gProductGrid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:560px){
    .bread span.current{
        display: none;
    }
    .mainThumbnail{
        height: 300px;
    }
    .gProductGrid{
        grid-template-columns: 1fr;
    }
}