/* =====================================================
   DETAIL PRODUK
===================================================== */

.detail-wrapper {
    width: 86%;
    max-width: 1050px;
    margin: 35px auto 60px;
}


/* =====================================================
   TOMBOL KEMBALI
===================================================== */

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 13px;

    margin-bottom: 18px;

    background: #e8f5ec;
    color: #0b6b43;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    transition: 0.3s ease;
}

.detail-back:hover {
    background: #0b6b43;
    color: white;

    transform: translateX(-3px);
}


/* =====================================================
   CARD DETAIL
===================================================== */

.detail-card {
    display: grid;

    grid-template-columns: 42% 58%;

    background: #ffffff;

    border: 1px solid #e6eee9;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(23, 61, 46, 0.08);
}


/* =====================================================
   BAGIAN GAMBAR
===================================================== */

.detail-image-box {
    min-height: 430px;

    background: #f1f6f3;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


.detail-image-box img {
    width: 100%;
    height: 100%;

    min-height: 430px;

    object-fit: cover;

    display: block;

    transition: 0.4s ease;
}


.detail-image-box img:hover {
    transform: scale(1.03);
}


/* =====================================================
   JIKA FOTO TIDAK ADA
===================================================== */

.detail-no-image {
    width: 100%;
    height: 100%;
    min-height: 430px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #91a099;

    background: #f1f6f3;
}


.detail-no-image i {
    font-size: 42px;
    color: #b4c4bd;
}


.detail-no-image span {
    font-size: 11px;
}


/* =====================================================
   KONTEN DETAIL
===================================================== */

.detail-content {
    padding: 35px 38px;
}


/* =====================================================
   KATEGORI
===================================================== */

.detail-category {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 11px;

    background: #e8f5ec;

    color: #0b6b43;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.4px;
}


.detail-category i {
    font-size: 10px;
}


/* =====================================================
   NAMA PRODUK
===================================================== */

.detail-content h1 {
    font-family: "Playfair Display", serif;

    color: #193e30;

    font-size: 31px;

    line-height: 1.2;

    margin: 13px 0 16px;

    font-weight: 800;
}


/* =====================================================
   HARGA
===================================================== */

.detail-price-label {
    color: #87968f;

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 2px;
}


.detail-price {
    color: #0b6b43;

    font-size: 24px;

    font-weight: 800;

    margin-bottom: 18px;
}


/* =====================================================
   SELLER
===================================================== */

.seller-box {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 12px;

    margin-bottom: 18px;

    background: #f7faf8;

    border: 1px solid #e7eeea;

    border-radius: 11px;
}


.seller-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e2f3e9;

    color: #0b6b43;

    border-radius: 10px;

    font-size: 14px;
}


.seller-box span {
    display: block;

    color: #899891;

    font-size: 9px;

    margin-bottom: 2px;
}


.seller-box strong {
    display: block;

    color: #193e30;

    font-size: 12px;

    margin-bottom: 2px;
}


.seller-box small {
    color: #7b8983;

    font-size: 9px;
}


.seller-box small i {
    color: #0b6b43;

    margin-right: 3px;
}


/* =====================================================
   DESKRIPSI
===================================================== */

.description-box {
    padding: 14px 16px;

    margin-bottom: 18px;

    background: #ffffff;

    border-left: 3px solid #0b6b43;

    box-shadow:
        0 4px 15px rgba(23, 61, 46, 0.05);
}


.description-box h3 {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #193e30;

    font-size: 12px;

    margin-bottom: 7px;
}


.description-box h3 i {
    color: #0b6b43;

    font-size: 11px;
}


.description-box p {
    color: #718078;

    font-size: 11px;

    line-height: 1.7;

    margin: 0;
}


/* =====================================================
   JUMLAH PESANAN
===================================================== */

.quantity-area {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 13px 0;

    margin-bottom: 15px;

    border-top: 1px solid #edf1ee;

    border-bottom: 1px solid #edf1ee;
}


.quantity-area strong {
    display: block;

    color: #193e30;

    font-size: 11px;

    margin-bottom: 2px;
}


.quantity-area span {
    display: block;

    color: #8a9892;

    font-size: 9px;
}


/* =====================================================
   CONTROL JUMLAH
===================================================== */

.quantity-control {
    display: flex;

    align-items: center;

    border: 1px solid #dce6e0;

    border-radius: 8px;

    overflow: hidden;

    background: white;
}


.quantity-control button {
    width: 30px;
    height: 30px;

    border: none;

    background: #e8f5ec;

    color: #0b6b43;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.quantity-control button:hover {
    background: #0b6b43;

    color: white;
}


.quantity-control input {
    width: 40px;
    height: 30px;

    border: none;

    border-left: 1px solid #e0e8e3;
    border-right: 1px solid #e0e8e3;

    outline: none;

    text-align: center;

    color: #193e30;

    font-size: 11px;

    font-weight: 700;

    background: white;
}


/* Menghilangkan tombol bawaan input number */

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;

    margin: 0;
}


/* =====================================================
   TOMBOL WHATSAPP
===================================================== */

.btn-pesan {
    width: 100%;

    border: none;

    padding: 12px 16px;

    border-radius: 9px;

    background: #0b6b43;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    font-family: "DM Sans", sans-serif;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition: 0.3s ease;

    box-shadow:
        0 7px 18px rgba(11, 107, 67, 0.18);
}


.btn-pesan:hover {
    background: #075334;

    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(11, 107, 67, 0.24);
}


.btn-pesan i:first-child {
    font-size: 16px;
}


.btn-pesan i:last-child {
    font-size: 10px;

    transition: 0.3s ease;
}


.btn-pesan:hover i:last-child {
    transform: translateX(4px);
}


/* =====================================================
   TOMBOL DISABLED
===================================================== */

.btn-pesan:disabled {
    background: #aebbb5;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;
}


/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 900px) {

    .detail-wrapper {
        width: 90%;
    }

    .detail-card {
        grid-template-columns: 1fr;
    }

    .detail-image-box,
    .detail-image-box img,
    .detail-no-image {
        min-height: 330px;
    }

    .detail-content {
        padding: 28px 30px;
    }

}


/* =====================================================
   RESPONSIVE MOBILE
===================================================== */

@media (max-width: 600px) {

    .detail-wrapper {
        width: 92%;

        margin: 25px auto 40px;
    }

    .detail-back {
        font-size: 10px;

        padding: 7px 11px;

        margin-bottom: 14px;
    }

    .detail-card {
        border-radius: 14px;
    }

    .detail-image-box,
    .detail-image-box img,
    .detail-no-image {
        min-height: 250px;
    }

    .detail-content {
        padding: 23px 20px;
    }

    .detail-category {
        font-size: 9px;

        padding: 5px 9px;
    }

    .detail-content h1 {
        font-size: 25px;

        margin: 10px 0 13px;
    }

    .detail-price {
        font-size: 21px;

        margin-bottom: 15px;
    }

    .seller-box {
        padding: 10px;
    }

    .description-box {
        padding: 12px 13px;
    }

    .quantity-area {
        align-items: flex-start;

        flex-direction: column;
    }

    .quantity-control {
        align-self: flex-start;
    }

    .btn-pesan {
        font-size: 10px;

        padding: 11px 13px;
    }

}