/* --- Shopping Cart Page Styles (เพิ่มส่วนนี้) --- */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child {
    border-bottom: none;
}

.item-selection {
    flex-shrink: 0;
}
.item-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.item-price {
    text-align: right;
    font-weight: 600;
}
/* .item-quantity { width: 15%; } */
.item-remove {
    flex-shrink: 0;
}

.carrier-logo-cart {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.item-info .number-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.item-quantity .form-control {
    width: 60px;
    margin: 0 auto;
}

.summary-row,
.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.total-row {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Checkout Page - FINAL LAYOUT Styles (เพิ่ม/แก้ไขส่วนนี้) --- */
.checkout-box {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    /* height: 100%; */
}

.checkout-section-title {
    font-family: var(--font-heading);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.payment-method-group .form-check:not(:last-child) {
    margin-bottom: 1rem;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.review-item-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
}

.review-item-v2 .item-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-item-v2 .item-details img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.review-item-v2 .item-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.review-item-v2 .item-number {
    font-family: var(--font-heading);
    font-weight: 600;
}

.review-item-v2 .item-price-final {
    font-weight: 600;
}

.summary-box-final {
    background-color: #f8f9fa;
}
.summary-box-final .total-row {
    color: var(--dark-color);
}
.summary-box-final .total-row span:last-child {
    color: var(--primary-color);
}

.verification-box {
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #fff8e1; /* สีพื้นหลังเหลืองอ่อน */
    border: 1px solid #ffeeba;
}
.verification-box h4 {
    font-family: var(--font-heading);
}

/* --- Order Confirmation Page Styles (เพิ่มส่วนนี้) --- */
.confirmation-section h4 {
    margin-bottom: 1rem;
}

.confirmation-section p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.confirmation-section p strong {
    font-family: var(--font-heading);
    color: var(--dark-color);
    display: inline-block;
    width: 120px; /* จัดให้หัวข้อตรงกัน */
}

.selected-payment-method {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
}

/* --- Order Detail Page Styles (เพิ่มส่วนนี้) --- */
.order-dl {
    font-size: 1rem;
}
.order-dl dt {
    font-weight: 600;
    color: #6c757d;
    float: left;
    width: 110px;
    clear: left;
}
.order-dl dd {
    margin-left: 120px;
    margin-bottom: 0.75rem;
}


/* --- Step Indicator Styles  --- */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 0 15px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: fit-content;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.step.active .step-circle {
    background-color: #0d6efd;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: 500;
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 10px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-line {
        width: 40px;
        margin: 0 5px;
        margin-bottom: 20px;
    }

    .step-indicator {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-label {
        font-size: 9px;
    }

    .step-line {
        width: 30px;
        margin: 0 3px;
        margin-bottom: 18px;
    }
}
