/* =================================
   PRODUCT DETAIL BASE
================================= */
@font-face {
    font-family: 'LatoFont';
    src: url('../fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LatoFont';
    src: url('../fonts/Lato-Black.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LatoFont';
    src: url('../fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: 'LatoFont', sans-serif;
}

.product-detail {
    padding: 50px;
    background: #fff;
}

.masculine-detail {
    bottom: 0;
}

.pd-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* =================================
   GALLERY – VERTICAL
================================= */
.pd-gallery.vertical {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}


/* THUMB */
.pd-thumb-vertical {
    width: 140px;
    height: 520px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    position: relative;

}

.pd-thumb-vertical .swiper-wrapper {
    display: flex;
    flex-direction: column;
}

.pd-thumb-vertical .swiper-slide {
    width: 100%;
    height: 100px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0.5;

}

.pd-thumb-vertical .swiper-slide-thumb-active {
    opacity: 1;
    outline: 2px solid #000;
    outline-offset: -2px;
}




.pd-thumb-vertical img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    object-fit: contain;
    mix-blend-mode: multiply;
    /* opsional */
}




/* MAIN IMAGE */
.pd-main {
    width: 520px;
    height: 520px;
}

.pd-main .swiper-slide {
    height: 100%;
}

/* =================================
   IMAGE + SIMPLE HOVER ZOOM
================================= */
.pd-img-zoom {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f6f6f6;
}

.pd-img-zoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
    will-change: transform;
}

.pd-img-zoom:hover img {
    transform: scale(1.35);
    cursor: zoom-in;
}

/* =================================
   PRODUCT INFO
================================= */
.pd-info {
    max-width: 480px;
}

.pd-category {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 10px;
}

.pd-title {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pd-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* =================================
   DESCRIPTION MORE / LESS
================================= */
.pd-desc {
    margin-bottom: 30px;
}

.pd-short-desc {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    max-height: 72px;
    overflow: hidden;
    transition: max-height .4s ease;
}

.pd-desc.open .pd-short-desc {
    max-height: 500px;
}

.pd-toggle {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #000;
    font-weight: 500;
}

/* =================================
   QTY
================================= */
.pd-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.pd-qty input {
    width: 60px;
    height: 32px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

/* =================================
   ACTION BUTTONS
================================= */
.pd-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

/* .btn-cart {
    flex: 1;
    padding: 14px;
    border: 1px solid #000;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
} */

.btn-cart {
    flex: 1;
    padding: 14px;
    background: #000;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* =================================
   META
================================= */
.pd-meta {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: #555;
}

.pd-meta li {
    margin-bottom: 8px;
}

.pd-info-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    max-width: 480px;
}

.pd-category {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
}

.pd-title {
    font-size: 28px;
    margin: 10px 0;
}

.pd-price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}




/* =========
variant
============ */


.pd-variants {
    margin: 24px 0;
}

.variant-label {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: initial;
}

.variant-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    text-transform: uppercase;
}

.variant-card {
    width: 90px;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: all .25s ease;
    background: #fff;
}

.variant-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 6px;
}

.variant-card:hover {
    border-color: #000;
}

.variant-card.active {
    border-color: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.variant-name {
    font-size: 12px;
    display: block;
}

.variant-stock {
    font-size: 10px;
    color: #777;
}










.pd-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pd-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* accourdion */

.pd-accordion {
    max-width: 1200px;
    margin: 60px auto;
    border-top: 1px solid #e5e5e5;
}

.pd-acc-item {
    border-bottom: 1px solid #e5e5e5;
}

.pd-acc-header {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}


.pd-acc-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.pd-acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    font-size: 15px;
    line-height: 1.7;
}

.pd-acc-item.active .pd-acc-content {
    max-height: 1000px;
    /* aman untuk konten panjang */
    padding-bottom: 20px;
}

.pd-acc-item.active .pd-acc-icon {
    transform: rotate(45deg);
    /* + jadi x */
}



/* ===============================
   FOOTER STRIP
================================ */

/* footer */

.delco-footer {
    padding: 24px 0;
}

.footer-divider {
    height: 15px;
    background: #fdaa0f;
    /* kuning */
    margin-bottom: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-right {
    display: flex;
    gap: 16px;
}

.footer-right img {
    height: 36px;
    width: auto;
}

.social-icon {
    text-decoration: none;
    font-weight: 600;
    color: #000;
    font-size: 14px;

}

.delco-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.delco-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    margin: 5px 0;
}

.delco-container {
    display: flex;
    align-items: center;
}

/* pastikan logo tetap kiri */
.delco-logo {
    flex-shrink: 0;
}

/* PUSH toggle ke kanan */
.delco-toggle {
    margin-left: auto;
}


/*diskon */

.pd-price {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Harga coret */
.pd-price del {
    color: #999;
    font-size: 14px;
}

/* Harga diskon */
.pd-price ins {
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

/* Badge DISCOUNT */
.pd-price::after {
    content: attr(data-discount);
}

/* Badge style */
.pd-price[data-discount]::after {
    content: attr(data-discount);
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pd-variant-alert {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #fff3f3;
    color: #c00;
    border: 1px solid #f5c2c2;
    border-radius: 6px;
    font-size: 14px;
}


@media (max-width: 768px) {

    .product-detail {
        padding: 4px;
        background: #fff;
    }

    /* WRAPPER */
    .product-detail .pd-wrapper {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 5px;
    }

    /* =========================
       GALLERY
    ========================== */
    /* 1️⃣ RESET DESKTOP STYLE */
    .pd-gallery.vertical {
        display: flex !important;
        flex-direction: row;
        width: 100%;
        flex-wrap: nowrap;
        align-content: center;
        align-items: stretch;
        margin-top: 25%;
    }

    .pd-thumb-vertical .swiper-wrapper {
        display: inline;
        flex-direction: column;
    }

    .pd-thumb-vertical .swiper-slide {
        width: 100%;
        height: auto;
        cursor: pointer;
        border-radius: 10px;
        overflow: hidden;
        opacity: 0.5;

    }

    .pd-thumb-vertical {
        width: 76px;
        height: auto;
        overflow: hidden;
        border-radius: 12px;
        background: #fff;
        position: relative;
    }


    /* 3️⃣ MAIN IMAGE DI BAWAH */
    .pd-main {
        order: 2;
        width: 100%;
        height: auto !important;
    }

    .pd-main .swiper-wrapper,
    .pd-main .swiper-slide {
        width: 100%;
        height: auto !important;
    }

    .pd-main img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* =========================
       INFO CARD
    ========================== */
    .pd-info-card {
        padding: 10px;
    }

    /* TAGS */
    .pd-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }

    .pd-badge {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 20px;
        background: #f2f2f2;
    }

    /* TITLE */
    .pd-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    /* PRICE */
    .pd-price {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
    }

    /* =========================
       QTY
    ========================== */
    .pd-qty {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        font-size: 24px;
    }

    .pd-qty input {
        width: 60px;
        text-align: center;
    }

    /* =========================
       ACTION BUTTON
    ========================== */
    .pd-actions {
        margin-bottom: 16px;
    }

    .pd-actions .btn-cart {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        border-radius: 8px;
    }

    /* META LIST */
    .pd-meta {
        padding-left: 0;
        list-style: none;
        font-size: 14px;
    }

    .pd-meta li {
        margin-bottom: 6px;
    }

    /* =========================
       ACCORDION
    ========================== */



    .pd-acc-item {
        border-bottom: 1px solid #eee;
        max-width: 100%;
    }

    .pd-acc-header {
        width: 100%;
        padding: 14px 0;
        background: none;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        font-weight: 500;
    }

    .pd-accordion {
        border-top: 1px solid #eee;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);

    }

    .pd-acc-item {
        padding: 0 16px;
    }

    .pd-acc-content {
        display: none;
        padding-bottom: 16px;
        font-size: 14px;
        line-height: 1.6;
        text-decoration-color: #000;

    }




    .pd-acc-item {
        width: auto;
    }

    .pd-acc-item.active .pd-acc-content {
        display: block;
    }

    .pd-acc-icon {
        font-size: 18px;
    }

    .pd-acc-item.active .pd-acc-content {
        max-height: auto;
        /* aman untuk konten panjang */
        padding-bottom: 20px;
    }


    .social-icon {
        text-decoration: none;
        font-weight: 110;
        color: #000;
        font-size: 10px;

    }

    .footer-right img {
        height: 24px;
        width: auto;
    }

    /* footer */

    .delco-footer {
        padding: 24px 0;
    }

    .footer-divider {
        height: 15px;
        background: #fdaa0f;
        /* kuning */
        margin-bottom: 20px;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 24px;
        font-size: 10px;
    }

    .footer-logo {
        height: 36px;
        width: auto;
    }

    .footer-right {
        display: flex;
        gap: 16px;
    }

    .footer-right img {
        height: 36px;
        width: auto;
    }

    .social-icon {
        text-decoration: none;
        font-weight: 600;
        color: #000;
        font-size: 14px;

    }

    .delco-toggle {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
    }

    .delco-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #ffffff;
        margin: 5px 0;
    }

    .delco-container {
        display: flex;
        align-items: center;
    }

    /* pastikan logo tetap kiri */
    .delco-logo {
        flex-shrink: 0;
    }

    /* PUSH toggle ke kanan */
    .delco-toggle {
        margin-left: auto;
    }


}