/* ============================================================
   IKAME — single-produk.css
   Semua class berawalan sp- (single produk)
   ============================================================ */

/* ── BREADCRUMB ─────────────────────────────────────────── */
.sp-breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 11px 0;
    font-size: 12.5px;
    color: var(--text-muted);
}

.sp-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.sp-breadcrumb a:hover {
    color: var(--accent-dark);
}

.sp-breadcrumb .bi-chevron-right {
    font-size: 10px;
    color: var(--border);
}

.sp-breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

/* ── MAIN SECTION ───────────────────────────────────────── */
.sp-section {
    padding: 36px 0 48px;
    background: var(--white);
}


/* ── GALLERY ────────────────────────────────────────────── */
/* WRAPPER GAMBAR UTAMA */
.sp-main-wrap{
    width:100%;
}

/* bikin area selalu kotak */
.sp-main-wrap a{
    display:block;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:12px;
    background:#fff;
}

/* gambar isi penuh */
#mainProductImage{
    width:100%;
    height:100%;
    object-fit:contain; /* atau cover */
    display:block;
}

/* thumbnail juga 1:1 */
.ws-thumb{
    aspect-ratio:1 / 1;
    overflow:hidden;
}

.ws-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* default: aman, tidak zoom */
#mainProductImage {

    width: 100%;
    height: 100%;

    object-fit: contain;

}


/* hanya landscape yang dipaksa penuh */
#mainProductImage.is-landscape {

    object-fit: cover;

}


/* gambar kotak jangan zoom */
#mainProductImage.is-square {

    object-fit: contain;

}


/* portrait juga aman */
#mainProductImage.is-portrait {

    object-fit: contain;

}

.sp-main-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sp-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    display: block;
    transition: transform 0.4s ease;
}

.sp-main-wrap:hover .sp-main-img {
    transform: scale(1.04);
}

.sp-zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sp-main-wrap:hover .sp-zoom-hint {
    opacity: 1;
}

/* Badge promo di gambar */
.sp-promo-badge {
    position: absolute;
    /* top: 14px;
    left: 14px; */
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    z-index: 1;
}



/* ── INFO PANEL ─────────────────────────────────────────── */
.sp-info {}

.sp-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sp-cat-badge {
    display: inline-block;
    background: var(--light-2);
    color: var(--accent-dark);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px 12px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sp-title {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 8px;
}

.sp-sku {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sp-sku span {
    font-weight: 600;
    color: var(--text);
}

/* Stok */
.sp-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.sp-stock--in {
    background: #e8f8ed;
    color: #1a7a3c;
    border: 1px solid #b6e8c8;
}

.sp-stock--out {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* Harga */
.sp-price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 20px;
    background: var(--light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
}

.sp-price-regular {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    width: 100%;
    margin-bottom: -6px;
}

.sp-price-main {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.sp-price-disc {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

.sp-price-hubungi {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-dark);
    font-style: italic;
}

/* Short desc */
.sp-short-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* CTA */
.sp-cta-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sp-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    flex: 1;
    min-width: 150px;
    transition: var(--transition);
}

.sp-cta-btn i {
    font-size: 22px;
    flex-shrink: 0;
}

.sp-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sp-cta-text small {
    font-size: 10.5px;
    font-weight: 400;
    opacity: 0.85;
}

.sp-cta-text strong {
    font-size: 14px;
    font-weight: 600;
}

.sp-btn-wa {
    background: #25d366;
    color: #fff;
}

.sp-btn-wa:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.sp-btn-telp {
    background: var(--primary);
    color: var(--white);
}

.sp-btn-telp:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Marketplace */
.sp-mp-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-mp-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.sp-mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius);
    border: 2px solid;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    background: var(--white);
    transition: var(--transition);
}

.sp-mp-btn:hover {
    transform: translateY(-2px);
}

.sp-mp-tokped {
    border-color: #42b549;
    color: #42b549;
}

.sp-mp-tokped:hover {
    background: #42b549;
    color: #fff;
}

.sp-mp-shopee {
    border-color: #ee4d2d;
    color: #ee4d2d;
}

.sp-mp-shopee:hover {
    background: #ee4d2d;
    color: #fff;
}

.sp-mp-lazada {
    border-color: #0f146d;
    color: #0f146d;
}

.sp-mp-lazada:hover {
    background: #0f146d;
    color: #fff;
}

/* Meta box */
.sp-meta-box {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.sp-meta-item i {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── DETAIL SECTION (Tab) ───────────────────────────────── */
.sp-detail-section {
    padding: 48px 0;
    background: var(--light);
    border-top: 1px solid var(--border);
}

.sp-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0;
}

.sp-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius) var(--radius) 0 0;
    letter-spacing: 0.02em;
}

.sp-tab-btn:hover {
    color: var(--text);
    background: var(--white);
}

.sp-tab-btn.active {
    color: var(--primary);
    background: var(--light);
    border-bottom-color: var(--accent);
}

.sp-tab-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.sp-tab-panel {
    display: none;
    padding: 15px 17px;
}

.sp-tab-panel.active {
    display: block;
}

/* Deskripsi content */
.sp-desc-content {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text);
    transition: max-height 0.4s ease;
    position: relative;
}

.sp-desc-content h2,
.sp-desc-content h3,
.sp-desc-content h4 {
    font-weight: 700;
    margin: 1rem 0 0.3rem;
    color: var(--primary);
}

.sp-desc-content h2 {
    font-size: 1.3rem;
}

.sp-desc-content h3 {
    font-size: 1.1rem;
}

.sp-desc-content p {
    margin-bottom: 1rem;
}

.sp-desc-content ul,
.sp-desc-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.sp-desc-content li {
    margin-bottom: 6px;
}

.sp-desc-content img {
    max-width: 100%;
    border-radius: var(--radius);
    /* margin: 1rem 0; */
    margin: 0rem 0;
}

/* Collapsed state */
.sp-desc--collapsed {
    max-height: 320px;
    overflow: hidden;
}

.sp-desc--collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
    pointer-events: none;
}

/* Toggle button */
.sp-desc-toggle {
    text-align: center;
    padding-top: 14px;
    position: relative;
    z-index: 1;
}

.sp-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.sp-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

/* Spesifikasi tabel */
.sp-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.sp-spec-table tr {
    border-bottom: 1px solid var(--border);
}

.sp-spec-table tr:last-child {
    border-bottom: none;
}

.sp-spec-table tr:hover {
    background: var(--light);
}

.sp-spec-table th {
    width: 36%;
    padding: 5px 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--light);
    border-right: 2px solid var(--border);
    vertical-align: top;
}

.sp-spec-table td {
    padding: 5px 6px;
    font-weight: 500;
    color: var(--text);
    vertical-align: top;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .sp-gallery-col {
        position: static;
    }

    .sp-main-wrap {
        /* max-width: 480px; */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 12px;
    }
}

@media (max-width: 767px) {
    .sp-section {
        padding: 24px 0 36px;
    }

    .sp-title {
        font-size: 1.5rem;
    }

    .sp-price-main {
        font-size: 1.65rem;
    }

    .sp-tab-panel {
        padding: 0px 16px;
    }

    .sp-tab-btn {
        padding: 10px 14px;
        font-size: 12.5px;
    }

    .sp-spec-table th {
        width: 42%;
        font-size: 11px;
        padding: 10px 10px;
    }

    .sp-spec-table td {
        padding: 10px 10px;
    }

    .sp-detail-section {
        padding: 32px 0;
    }
}


/* ==========================
   Benefit / Trust Box
========================== */
.sp-benefit-box {
    margin: 0px 0;

    padding: 14px;

    /* border: 1px solid #ececec; */

    border-radius: 14px;

    background: #fff;
}

.sp-benefit-title {
    font-size: 15px;

    font-weight: 400;

    margin-bottom: 14px;

    color: #111827;
}

/* GRID WRAP */
.sp-benefit-list {

    display: flex;

    flex-wrap: wrap !important;

    gap: 6px;
}

/* ITEM */
.sp-benefit-item {

    display: flex;

    align-items: center;

    gap: 12px;

    /* min-width:220px; */

    flex: 1 1 calc(50% - 8px);

    padding: 5px 8px;

    border: 2px solid #ffffff;

    border-radius: 12px;

    background: #eeeeee;

    transition: .2s;
}

.sp-benefit-item:hover {

    border-color: #f5a623;

    background: #fffdf8;

    transform: translateY(-1px);
}

.sp-benefit-item i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    color: #3858e9;
    font-size: 17px;
    border: 1px solid #eee;
}

.sp-benefit-item span {

    font-size: 14px;

    line-height: 1.45;

    color: #374151;

    font-weight: 500;
}

/* MOBILE */
@media(max-width:768px) {

    .sp-benefit-item {

        flex: 1 1 100%;

        min-width: unset;
    }

}

/* =========================================================
   THUMB
========================================================= */

.ws-thumb-wrap {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
}

.ws-thumb {
    width: 75px;
    height: 75px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.ws-thumb.active {
    border-color: #00BFFF;
}

.ws-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
