/* =========================================================
   FRONTEND
   ========================================================= */

body {
    background: #f8f9fa;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    background: linear-gradient(
        180deg,
        #f8fbff 0%,
        #f8f9fa 100%
    );
}


.hero-card {
    background: #ffffff;

    border-radius: 24px;

    padding: 48px;

    text-align: center;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;

    overflow: hidden;
}


.product-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}


.product-image {
    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;
}


.product-placeholder,
.detail-placeholder {

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e9ecef;

    color: #6c757d;

    font-size: 48px;

    font-weight: 700;

    min-height: 220px;
}


.detail-placeholder {
    min-height: 420px;
}


/* =========================================================
   FEATURE
   ========================================================= */

.feature-box {

    background: #ffffff;

    border: 1px solid #e9ecef;

    border-radius: 18px;

    padding: 30px;

    height: 100%;
}


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

.footer-link {

    color: #adb5bd;

    text-decoration: none;

    line-height: 2;
}


.footer-link:hover {

    color: #ffffff;

    text-decoration: none;
}


/* =========================================================
   CHECKOUT
   ========================================================= */

.checkout-page {
    width: 100%;
}


/* HEADER */

.checkout-heading h1 {

    font-size: 30px;

    line-height: 1.3;
}


.checkout-heading p {

    font-size: 14px;
}


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

.checkout-card,
.checkout-summary {

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 25px;
}


.checkout-card-header {

    margin-bottom: 20px;
}


/* =========================================================
   PRODUK CHECKOUT
   ========================================================= */

.checkout-product {

    display: flex;

    align-items: center;

    gap: 16px;

    width: 100%;
}


/* FOTO PRODUK */

.checkout-product-image {

    width: 85px !important;

    height: 65px !important;

    min-width: 85px !important;

    max-width: 85px !important;

    flex: 0 0 85px;

    overflow: hidden;

    border-radius: 10px;

    background: #f1f3f5;

    border: 1px solid #e9ecef;
}


.checkout-product-image img {

    width: 100% !important;

    height: 100% !important;

    max-width: none !important;

    max-height: none !important;

    display: block;

    object-fit: cover;
}


.checkout-no-image {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e9ecef;

    color: #6c757d;

    font-size: 20px;

    font-weight: 700;
}


/* INFORMASI PRODUK */

.checkout-product-info {

    min-width: 0;

    flex: 1;

    overflow: hidden;
}


.checkout-product-info h4 {

    margin: 0 0 3px;

    font-size: 17px;

    line-height: 1.4;

    word-break: break-word;
}


.checkout-product-info .small {

    font-size: 12px;
}


.checkout-price {

    margin-top: 8px;

    color: #0d6efd;

    font-size: 18px;

    font-weight: 700;
}


/* =========================================================
   DATA PEMBELI
   ========================================================= */

.checkout-customer {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.checkout-customer-item {

    min-width: 0;
}


.checkout-customer-item small {

    display: block;

    margin-bottom: 4px;

    font-size: 12px;
}


/* =========================================================
   RINGKASAN PEMBAYARAN
   ========================================================= */

.checkout-summary {

    position: sticky;

    top: 90px;
}


.checkout-summary-row {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 15px;

    font-size: 14px;
}


.checkout-summary-product {

    max-width: 60%;

    text-align: right;

    word-break: break-word;
}


.checkout-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.checkout-total span {

    color: #495057;

    font-weight: 600;
}


.checkout-total strong {

    color: #0d6efd;

    font-size: 21px;

    white-space: nowrap;
}


.checkout-form {

    margin-top: 22px;
}


.checkout-form .btn {

    min-height: 46px;

    font-weight: 600;
}


.checkout-notice {

    margin-top: 15px;

    text-align: center;

    line-height: 1.5;
}


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

@media (max-width: 991px) {

    .checkout-summary {

        position: static;
    }

}


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

@media (max-width: 767px) {

    .checkout-heading {

        margin-bottom: 20px;
    }


    .checkout-heading h1 {

        font-size: 23px;

        line-height: 1.3;
    }


    .checkout-heading p {

        font-size: 13px;

        line-height: 1.5;
    }


    .checkout-card,
    .checkout-summary {

        padding: 17px;

        border-radius: 13px;
    }


    .checkout-card-header {

        margin-bottom: 15px;
    }


    .checkout-card-header h5,
    .checkout-summary h5 {

        font-size: 16px;
    }


    /* FOTO */

    .checkout-product {

        gap: 12px;

        align-items: center;
    }


    .checkout-product-image {

        width: 70px !important;

        height: 52px !important;

        min-width: 70px !important;

        max-width: 70px !important;

        flex-basis: 70px;
    }


    .checkout-product-image img {

        width: 100% !important;

        height: 100% !important;

        object-fit: cover;
    }


    .checkout-no-image {

        font-size: 16px;
    }


    /* INFORMASI */

    .checkout-product-info h4 {
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.35;

    display: -webkit-box;
    display: box;

    -webkit-line-clamp: 2;
    line-clamp: 2;

    -webkit-box-orient: vertical;
    box-orient: vertical;

    overflow: hidden;
}


    .checkout-product-info .small {

        font-size: 11px;
    }


    .checkout-price {

        margin-top: 5px !important;

        font-size: 16px;
    }


    /* PEMBELI */

    .checkout-customer {

        grid-template-columns: 1fr;

        gap: 14px;
    }


    .checkout-customer-item {

        padding-bottom: 12px;

        border-bottom: 1px solid #f0f0f0;
    }


    .checkout-customer-item:last-child {

        padding-bottom: 0;

        border-bottom: 0;
    }


    /* RINGKASAN */

    .checkout-summary {

        position: static;

        margin-top: 0;
    }


    .checkout-summary-row {

        font-size: 13px;

        margin-bottom: 12px;
    }


    .checkout-summary-product {

        max-width: 55%;

        font-size: 12px;
    }


    .checkout-total {

        align-items: flex-start;
    }


    .checkout-total span {

        font-size: 13px;
    }


    .checkout-total strong {

        font-size: 19px;
    }


    .checkout-form {

        margin-top: 20px;
    }


    .checkout-form .btn {

        min-height: 48px;

        font-size: 14px;
    }


    .checkout-notice {

        font-size: 11px;

        line-height: 1.5;
    }

}


/* =========================================================
   HP KECIL
   ========================================================= */

@media (max-width: 400px) {

    .checkout-card,
    .checkout-summary {

        padding: 14px;

        border-radius: 11px;
    }


    .checkout-heading h1 {

        font-size: 21px;
    }


    .checkout-heading p {

        font-size: 12px;
    }


    .checkout-product {

        gap: 10px;
    }


    .checkout-product-image {

        width: 62px !important;

        height: 48px !important;

        min-width: 62px !important;

        max-width: 62px !important;

        flex-basis: 62px;
    }


    .checkout-product-image img {

        width: 100% !important;

        height: 100% !important;

        object-fit: cover;
    }


    .checkout-no-image {

        font-size: 14px;
    }


    .checkout-product-info h4 {

        font-size: 13px;
    }


    .checkout-product-info .small {

        font-size: 10px;
    }


    .checkout-price {

        font-size: 15px;
    }


    .checkout-total strong {

        font-size: 18px;
    }


    .checkout-form .btn {

        min-height: 46px;

        font-size: 13px;
    }

}