/* ==========================================
   Outer Layout & Header Styling
   ========================================== */
.cart-wrapper {
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    min-height: 325px;
}

.cart-header-bar {
    background-color: #f1f5f9;
    border-left: 4px solid #1062fe;
    padding: 12px 20px;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
}

    .cart-header-bar h1 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1e293b;
        margin: 0;
    }

.cart-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

/* ==========================================
   Item Cards & Product Links
   ========================================== */
.empty-cart-card {
    background-color: transparent;
    border: none;
}

.cart-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    font-family: Segoe UI, -apple-system, BlinkMacSystemFont, sans-serif !important;
    ;
}

    .cart-item-card:hover {
        border-color: #cbd5e1;
    }

.product-title a:hover {
    color: #1062fe !important;
}

.product-info-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.cart-item-img-wrap {
    flex-shrink: 0;
    width: 80px;
}

    .cart-item-img-wrap img {
        max-width: 100%;
        height: auto;
    }

.cart-item-details {
    flex: 1 1 auto;
    min-width: 0;
}

.product-actions-price {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    white-space: nowrap;
}

/* ==========================================
   Order Summary Right Column Card
   ========================================== */
.cart-summary-col {
    padding: 0 4px;
    font-family: Segoe UI, -apple-system, BlinkMacSystemFont, sans-serif;
}

    .cart-summary-col .card {
        background-color: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        overflow: hidden;
    }

    .cart-summary-col .card-body {
        padding: 20px !important;
    }

/* ==========================================
   Input + Button Inline Flex Groups
   ========================================== */
.input-button-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-bottom: 12px;
}

    .input-button-group .form-control,
    .input-button-group input {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 12px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
        box-sizing: border-box !important;
        height: 38px !important;
    }

    .input-button-group .btn,
    .input-button-group button {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 0 16px !important;
        height: 38px !important;
        border-radius: 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

/* ==========================================
   Line Item Rows & Breakdown Details
   ========================================== */
.summary-details {
    margin: 12px 0;
}

.summary-line-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f5f9;
}

    .summary-line-item:last-child {
        border-bottom: none;
    }

.summary-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: 700;
    border-top: 2px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 14px;
}

/* ==========================================
   Primary Action Button
   ========================================== */
.cart-summary-col .btn-primary,
.checkout-btn {
    width: 100% !important;
    background-color: #1062fe !important;
    border-color: #1062fe !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease;
}

    .cart-summary-col .btn-primary:hover,
    .checkout-btn:hover {
        background-color: #0052e0 !important;
        border-color: #0052e0 !important;
    }

/* ==========================================
   Mobile Responsive Adjustments (<= 768px)
   ========================================== */
@media (max-width: 768px) {
    .cart-wrapper {
        padding: 12px !important;
    }

    .cart-item-card,
    .cart-item-card .card-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
    }

    .product-info-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .cart-item-card .product-image {
        width: 70px !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }

    .cart-item-card .product-details {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .product-actions-price {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding-top: 12px !important;
        border-top: 1px dashed #e2e8f0 !important;
    }

        .product-actions-price select {
            width: auto !important;
            max-width: 100px !important;
        }

    .cart-item-card .product-price {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        text-align: right !important;
    }
}

.input-group {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

    .input-group .form-control {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .input-group .btn {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border: 1px solid #cbd5e1 !important;
        border-left: none !important;
        background-color: #f8fafc !important;
        color: #475569 !important;
    }

        .input-group .btn:hover {
            background-color: #f1f5f9 !important;
            color: #0f172a !important;
        }
/* Fix validation summary bullet points */
.validation-summary-errors,
.validation-summary-errors ul {
    list-style: none !important;
}

    .validation-summary-errors li {
        list-style-type: none !important;
        display: block !important;
    }

        .validation-summary-errors li::before {
            content: none;
        }



/* Order Summary Heading */
.cart-summary-col h5,
.cart-summary-col .summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 16px;
}

/* Intermediate Line Items (Subtotal, Shipping) */
.summary-line-item {
    font-size: 0.9rem !important;
    color: #334155 !important;
    padding: 8px 0 !important;
}

    .summary-line-item .price {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
    }

    /* Shipping Text Accent */
    .summary-line-item.shipping-item {
        color: #15803d !important; /* Soft Green */
    }

    .summary-line-item .estimated-time {
        font-size: 0.75rem !important;
        color: #64748b !important;
        font-weight: 400 !important;
        margin-top: 2px;
    }

/* Final Total Row (Most Prominent) */
.summary-total {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    border-top: 2px solid #e2e8f0 !important;
    padding-top: 14px !important;
    margin-top: 10px !important;
}

    .summary-total .total-price {
        font-size: 1rem !important;
        font-weight: 800 !important;
        color: #1062fe !important; /* Primary Accent Color */
    }


.text-primary {
    color: #0f172a;
}

.checkout-btn-wrap,
.cart-summary-col .btn-primary {
    margin-top: 18px !important;
}
/* Order Summary Typography & Spacing Overrides */

/* Subtotal & Shipping Labels */
.summary-line-item,
.summary-line-item span,
.summary-line-item div {
    font-size: 1rem !important; /* 16px font size */
    color: #1e293b !important; /* Dark slate for high contrast */
}

    /* ETA Caption */
    .summary-line-item .text-muted,
    .summary-line-item .text-secondary {
        font-size: 0.875rem !important; /* 14px for subtext */
        color: #475569 !important;
    }

/* Total Label & Price */
.summary-total {
    border-top: 2px solid #e2e8f0 !important;
    padding-top: 16px !important;
    margin-top: 12px !important;
}

    .summary-total span {
        font-size: 1.25rem !important; /* 20px */
        font-weight: 700 !important;
        color: #0f172a !important;
    }

/* Button Spacing */
.input-group {
    margin-bottom: 20px !important; /* Forces 20px gap between coupon input & checkout button */
}

/* Force vertical separation between coupon form and checkout CTA */
.cart-summary-col form + div,
.cart-summary-col .btn-primary {
    margin-top: 24px !important;
}

/* Ensure left and right columns align at the very top */
.cart-main-row {
    align-items: flex-start !important;
}

.text-Green {
    color: rgba(0,123,121) !important;
}

@media (min-width: 992px) {
    .detail-page-full {
        min-height: 55vh;
    }
}
