

/* ============================================
   Cart Section Card
   ============================================ */
.cart-section-card {
    background-color: var(--webyan-white);
    border-radius: var(--webyan-radius);
    box-shadow: var(--webyan-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    /* overflow: hidden; */
    border-radius: 10px !important;
    border: 1px solid #f1f1f4;
    position: relative !important;
    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .03);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(29, 59, 139, 0.03), rgba(39, 196, 244, 0.03));
    border-bottom: 1px solid var(--webyan-border);
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--webyan-dark-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .section-title i {
        font-size: 1.3rem;
        color: var(--webyan-sky-blue);
    }

.items-count {
    background: linear-gradient(135deg, var(--webyan-sky-blue), var(--webyan-dark-blue));
    color: var(--webyan-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
}

/* ============================================
   Cart Items List
   ============================================ */
.cart-items-list {
    padding: 0.5rem;
}

.cart-item-card {
    padding: 1.25rem;
    border-radius: var(--webyan-radius-sm);
    border: 1px solid transparent;
    margin-bottom: 0.5rem;
    transition: var(--webyan-transition);
}

    .cart-item-card:hover {
        background-color: var(--webyan-light-bg);
        border-color: var(--webyan-border);
    }

    .cart-item-card:last-child {
        margin-bottom: 0;
    }

.item-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: var(--webyan-radius-sm);
    overflow: hidden;
    background-color: var(--webyan-light-bg);
    flex-shrink: 0;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--webyan-dark-blue), var(--webyan-sky-blue));
}

.service-icon {
    font-size: 2.5rem;
    color: var(--webyan-white);
}

.donation-image {
    position: relative;
}

    .donation-image::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(29, 59, 139, 0.1), rgba(39, 196, 244, 0.1));
        border-radius: var(--webyan-radius-sm);
    }

.item-details {
    flex: 1;
}

.item-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.badge-product {
    background-color: rgba(29, 59, 139, 0.1);
    color: var(--webyan-dark-blue);
}

.badge-service {
    background-color: rgba(39, 196, 244, 0.15);
    color: #0891b2;
}

.badge-donation {
    background-color: rgba(236, 201, 75, 0.2);
    color: #b7791f;
}

.item-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--webyan-text-dark);
    margin-bottom: 0.25rem;
}

.item-description {
    font-size: 0.85rem;
    color: var(--webyan-text-muted);
    margin-bottom: 0;
}

.quantity-wrapper {
    min-width: 120px;
}

.quantity-input-group {
    width: 130px;
}

.btn-quantity {
    background-color: var(--webyan-light-bg);
    border: 1px solid var(--webyan-border);
    color: var(--webyan-dark-blue);
    padding: 0.5rem 0.75rem;
    transition: var(--webyan-transition);
}

    .btn-quantity:hover {
        background-color: var(--webyan-sky-blue);
        border-color: var(--webyan-sky-blue);
        color: var(--webyan-white);
    }

.quantity-input {
    text-align: center;
    font-weight: 600;
    border-color: var(--webyan-border);
}

    .quantity-input:focus {
        border-color: var(--webyan-sky-blue);
        box-shadow: 0 0 0 3px rgba(39, 196, 244, 0.15);
    }

.service-type-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--webyan-light-bg);
    color: var(--webyan-text-muted);
    font-size: 0.85rem;
    border-radius: var(--webyan-radius-xs);
}

.donation-input-group {
    width: 150px;
}

.donation-amount-input {
    text-align: center;
    font-weight: 600;
    border-color: var(--webyan-border);
}

    .donation-amount-input:focus {
        border-color: var(--webyan-sky-blue);
        box-shadow: 0 0 0 3px rgba(39, 196, 244, 0.15);
    }

.donation-input-group .input-group-text {
    background-color: var(--webyan-light-bg);
    border-color: var(--webyan-border);
    color: var(--webyan-text-muted);
    font-size: 0.85rem;
}

.item-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--webyan-dark-blue);
}

.donation-price {
    color: var(--webyan-success);
}

.btn-delete {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(229, 62, 62, 0.08);
    color: var(--webyan-danger);
    border: none;
    border-radius: 50%;
    transition: var(--webyan-transition);
}

    .btn-delete:hover {
        background-color: var(--webyan-danger);
        color: var(--webyan-white);
        transform: scale(1.1);
    }

/* ============================================
   Order Summary Card
   ============================================ */
.order-summary-card {
    background-color: var(--webyan-white);
    border-radius: var(--webyan-radius);
    box-shadow: var(--webyan-shadow);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    border-radius: 10px !important;
    border: 1px solid #f1f1f4;
    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .03);
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--webyan-dark-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--webyan-light-bg);
}

    .summary-title i {
        font-size: 1.4rem;
        color: var(--webyan-sky-blue);
    }

.summary-details {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--webyan-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .summary-label i {
        font-size: 1rem;
        color: var(--webyan-sky-blue);
    }

.summary-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--webyan-text-dark);
}

.summary-divider {
    margin: 0.5rem 0;
    border-color: var(--webyan-border);
    opacity: 0.5;
}

.discount-value {
    color: var(--webyan-success);
}

.shipping-value {
    color: var(--webyan-success);
    font-weight: 700;
}

.total-row .summary-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--webyan-text-dark);
}

.total-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--webyan-dark-blue);
}

/* ============================================
   Coupon Section
   ============================================ */
.coupon-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--webyan-light-bg);
    border-radius: var(--webyan-radius-sm);
}

.coupon-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--webyan-text-dark);
    margin-bottom: 0.75rem;
}

.coupon-input-group {
    border-radius: var(--webyan-radius-xs);
    overflow: hidden;
}

.coupon-input {
    border: 1px solid var(--webyan-border);
    border-radius: var(--webyan-radius-xs) 0 0 var(--webyan-radius-xs);
    font-size: 0.9rem;
}

    .coupon-input:focus {
        border-color: var(--webyan-sky-blue);
        box-shadow: 0 0 0 3px rgba(39, 196, 244, 0.15);
    }

    .coupon-input::placeholder {
        color: var(--webyan-text-muted);
    }

.btn-coupon {
    background-color: var(--webyan-dark-blue);
    color: var(--webyan-white);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    transition: var(--webyan-transition);
}

    .btn-coupon:hover {
        background-color: var(--webyan-sky-blue);
        color: var(--webyan-white);
    }

/* ============================================
   Summary Action Buttons
   ============================================ */
.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--webyan-dark-blue), var(--webyan-sky-blue));
    color: var(--webyan-white);
    border: none;
    border-radius: var(--webyan-radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--webyan-transition);
}

    .btn-checkout:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(29, 59, 139, 0.35);
        color: var(--webyan-white);
    }

    .btn-checkout i {
        font-size: 1.1rem;
    }

.btn-continue-shopping {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background-color: transparent;
    color: var(--webyan-sky-blue);
    border: 2px solid var(--webyan-sky-blue);
    border-radius: var(--webyan-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--webyan-transition);
}

    .btn-continue-shopping:hover {
        background-color: var(--webyan-sky-blue);
        color: var(--webyan-white);
    }

/* ============================================
   Security Badge
   ============================================ */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(72, 187, 120, 0.08);
    border-radius: var(--webyan-radius-xs);
    color: var(--webyan-success);
    font-size: 0.8rem;
    font-weight: 600;
}

    .security-badge i {
        font-size: 1rem;
    }



@media (max-width: 991.98px) {
    .order-summary-card {
        position: static;
        margin-top: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {

    .page-title {
        font-size: 1.5rem;
    }

    .cart-item-card .row {
        flex-direction: column;
        text-align: center;
    }

    .item-image-wrapper {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }

    .item-details {
        text-align: center;
    }

        .item-details > div:first-child {
            justify-content: center !important;
        }

        .item-details > div:last-child {
            flex-direction: column;
            align-items: center !important;
        }

    .quantity-wrapper {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 1rem 0 2rem;
    }

    .cart-section-card {
        border-radius: var(--webyan-radius-sm);
    }

    .section-header {
        padding: 1rem;
    }

    .cart-item-card {
        padding: 1rem;
    }

    .order-summary-card {
        padding: 1rem;
        border-radius: var(--webyan-radius-sm);
    }

    .total-value {
        font-size: 1.2rem;
    }

    .btn-checkout {
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }
}


@media print {
    .header-section,
    .footer-section,
    .btn-delete,
    .quantity-input-group,
    .summary-actions,
    .coupon-section {
        display: none !important;
    }

    .order-summary-card {
        position: static;
        box-shadow: none;
        border: 1px solid var(--webyan-border);
    }

    .cart-section-card {
        box-shadow: none;
        border: 1px solid var(--webyan-border);
    }
}
