/* ========================================================
   El Shaib - Cart & Checkout Stylesheet (Modern & Lean)
   ======================================================== */

/* --- Cart Header --- */
.cart-header-section {
    background: linear-gradient(135deg, #1B4332 0%, #0d3520 60%, #006C48 100%);
    padding: 1.85rem 0;
}
.cart-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cart-header-icon {
    width: 52px;
    height: 52px;
    background: rgba(116, 198, 157, 0.18);
    border: 1px solid rgba(116, 198, 157, 0.35);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #74C69D);
    font-size: 1.35rem;
}
.cart-header-content h1 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}
.cart-header-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    margin: 0;
}
.cart-item-count {
    background: var(--primary, #40916C);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    margin-right: 0.35rem;
}

/* --- Cart Content Section --- */
.cart-content-section {
    padding: 2.5rem 0 3.5rem;
    background: #F8FAF9;
    min-height: 480px;
}

/* Empty Cart Button (container and icon provided by components.css) */
.cart-empty-btn {
    background: linear-gradient(135deg, #1B4332 0%, #006C48 100%);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.25);
    transition: all 0.25s ease;
}
.cart-empty-btn:hover {
    background: linear-gradient(135deg, #006C48 0%, #40916C 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.35);
}

/* Table Header (Desktop) */
.cart-table-header {
    display: grid;
    grid-template-columns: 2.8fr 1fr 1.3fr 1.1fr 48px;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 800;
    color: #64748B;
    border: 1px solid #E2E8F0;
    margin-bottom: 0.85rem;
}
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Cart Item Card */
.cart-item {
    display: grid;
    grid-template-columns: 2.8fr 1fr 1.3fr 1.1fr 48px;
    align-items: center;
    background: #fff;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.3s ease, opacity 0.3s ease;
}
.cart-item:hover {
    border-color: rgba(64, 145, 108, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.cart-item-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cart-item-img {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: block;
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cart-item-img:hover img {
    transform: scale(1.08);
}
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.cart-item-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #012D1D;
    text-decoration: none;
    line-height: 1.35;
    transition: color 0.2s;
}
.cart-item-name:hover {
    color: #006C48;
}
.cart-item-meta {
    font-size: 0.78rem;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.cart-item-category {
    display: inline-block;
    background: #E8F5E9;
    color: #006C48;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    width: fit-content;
}
.cart-item-price-mobile {
    display: none;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1B4332;
    margin-top: 0.2rem;
}

/* Price & Total Columns */
.cart-item-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}
.ci-currency {
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
}
.cart-item-total {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}
.ci-total-value {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1B4332;
}

/* Item Quantity Controls (styling provided by components.css .ci-qty) */
.cart-item-qty {
    display: flex;
    align-items: center;
}

/* Remove Action Button */
.cart-item-remove {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ci-remove-btn {
    width: 36px;
    height: 36px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #EF4444;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}
.ci-remove-btn:hover {
    background: #EF4444;
    color: #fff;
    border-color: #EF4444;
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

/* Cart Actions Bar */
.cart-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
}
.cart-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: rgba(64, 145, 108, 0.08);
    color: #006C48;
    border: 1.5px solid rgba(64, 145, 108, 0.25);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cart-continue-btn:hover {
    background: #006C48;
    color: #fff;
    border-color: #006C48;
    transform: translateX(-2px);
}
.cart-continue-btn i {
    transition: transform 0.2s;
}
.cart-continue-btn:hover i {
    transform: translateX(3px);
}
.cart-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    background: transparent;
    color: #EF4444;
    border: 1.5px solid #FECACA;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cart-clear-btn:hover {
    background: #FEF2F2;
    border-color: #EF4444;
}

/* --- Order Summary Card --- */
.cart-summary {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 85px;
}
.cart-summary h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #012D1D;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.cart-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #475569;
}
.cs-row span:first-child {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cs-icon {
    font-size: 0.85rem;
    color: #64748B;
}
.cs-value {
    font-weight: 700;
    color: #0F172A;
}
.cs-delivery--free {
    background: #D8F3DC;
    color: #006C48;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.18rem 0.65rem;
    border-radius: 6px;
}
.cs-discount {
    color: #EF4444;
}
.cs-divider {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 1rem 0;
}
.cs-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}
.cs-total-row span:first-child {
    font-size: 1.1rem;
    font-weight: 800;
    color: #012D1D;
}
.cs-total-value {
    font-size: 1.55rem;
    font-weight: 900;
    color: #1B4332;
}

/* Coupon Code Input */
.cs-coupon label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.45rem;
}
.cs-coupon-input-group {
    display: flex;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-coupon-input-group:focus-within {
    border-color: #40916C;
    box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}
.cs-coupon-input-group input {
    flex: 1;
    border: none;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    background: #FAFAFA;
}
.cs-coupon-input-group button {
    padding: 0.6rem 1.15rem;
    background: #006C48;
    color: #fff;
    border: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cs-coupon-input-group button:hover {
    background: #1B4332;
}
.cs-coupon-applied-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E8F5E9;
    border: 1.5px dashed #2D6A4F;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
}
.cs-coupon-code-badge {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1B4332;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cs-coupon-remove-btn {
    background: none;
    border: none;
    color: #DC2626;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.cs-coupon-remove-btn:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #991B1B;
}

/* Checkout Button */
.cs-checkout-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #1B4332 0%, #006C48 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(27, 67, 50, 0.28);
    transition: all 0.2s ease;
}
.cs-checkout-btn:hover {
    background: linear-gradient(135deg, #006C48 0%, #40916C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.38);
}

/* Payment Methods */
.cs-payment-methods {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cs-payment-methods > span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
}
.cs-payment-icons {
    display: flex;
    gap: 0.5rem;
}
.cs-payment-icons span {
    width: 34px;
    height: 26px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.88rem;
}

/* Trust Badges in Summary */
.cs-trust {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    background: #F0FDF4;
    border: 1px solid #D8F3DC;
    border-radius: 10px;
    padding: 0.65rem 0.5rem;
}
.cs-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
}
.cs-trust-item i {
    font-size: 0.95rem;
    color: #40916C;
}
.cs-trust-item span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #1B4332;
}

/* --- Features Strip Section --- */
.cart-features-strip {
    padding: 2.5rem 0;
    background: #fff;
    border-top: 1px solid #E2E8F0;
}
.cf-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #D8F3DC;
}
.cf-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #D8F3DC;
    color: #006C48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.cf-card strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #012D1D;
    margin-bottom: 0.15rem;
}
.cf-card span {
    font-size: 0.76rem;
    color: #64748B;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .cart-summary {
        margin-top: 1.5rem;
        position: static;
    }
}
@media (max-width: 767.98px) {
    .cart-table-header {
        display: none;
    }
    .cart-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.85rem;
        padding: 1rem;
    }
    .cart-item-product {
        grid-column: 1 / -1;
    }
    .cart-item-price {
        display: none;
    }
    .cart-item-price-mobile {
        display: block;
    }
    .cart-item-total {
        font-size: 1rem;
    }
    .cart-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-continue-btn,
    .cart-clear-btn {
        justify-content: center;
        width: 100%;
    }
    .cart-header-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================
   Smart Cross-Sell Booster (Cart Page)
   ======================================================== */
.cart-cross-sell-box {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.cart-cs-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F1F5F9;
}
.cart-cs-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cart-cs-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #E8F5E9;
    color: #006C48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.cart-cs-title-group h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #012D1D;
    margin-bottom: 0.2rem;
}
.cart-cs-title-group p {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0;
}
.cart-cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.cart-cs-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #F8FAFC;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}
.cart-cs-item:hover {
    background: #FFFFFF;
    border-color: #006C48;
    box-shadow: 0 4px 12px rgba(0, 108, 72, 0.08);
}
.cart-cs-thumb {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #E2E8F0;
}
.cart-cs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-cs-details {
    flex-grow: 1;
    min-width: 0;
}
.cart-cs-cat {
    display: block;
    font-size: 0.7rem;
    color: #006C48;
    font-weight: 700;
}
.cart-cs-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1E293B;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0.15rem 0;
}
.cart-cs-name:hover {
    color: #006C48;
}
.cart-cs-price {
    font-size: 0.82rem;
    color: #006C48;
}
.cart-cs-old {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: #94A3B8;
    margin-right: 0.35rem;
}
.btn-cart-cs-add {
    background: #006C48;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.btn-cart-cs-add:hover {
    background: #014D33;
    transform: scale(1.05);
}

