@extends('layouts.welcome')

@section('content')

<style>
    .cart-section{
        padding: 90px 0;
    }

    .cart-card,
    .summary-card{
        background: #fff;
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: 0 10px 35px rgba(0,0,0,.04);
    }

    .cart-card{
        padding: 28px;
    }

    .summary-card{
        padding: 28px;
        position: sticky;
        top: 24px;
    }

    .cart-title{
        font-size: 34px;
        font-weight: 700;
        color: #1f1f1f;
        margin-bottom: 8px;
    }

    .cart-subtitle{
        font-size: 14px;
        color: #7a726b;
        margin-bottom: 0;
    }

    .cart-item{
        padding: 24px 0;
        border-bottom: 1px solid rgba(0,0,0,.06);
    }

    .cart-item:first-child{
        padding-top: 0;
    }

    .cart-item:last-child{
        border-bottom: none;
        padding-bottom: 0;
    }

    .cart-image{
        width: 120px;
        height: 120px;
        border-radius: 18px;
        overflow: hidden;
        background: #f4f1ec;
        flex-shrink: 0;
    }

    .cart-image img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cart-product-title{
        font-size: 22px;
        font-weight: 600;
        color: #1f1f1f;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .cart-product-meta{
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cart-product-meta span{
        padding: 6px 10px;
        background: #f6f1eb;
        font-size: 11px;
        font-weight: 600;
        color: #5f5348;
    }

    .cart-price{
        font-size: 24px;
        font-weight: 700;
        color: #1f1f1f;
    }

    .qty-box{
        display: flex;
        align-items: center;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
    }

    .qty-btn{
        width: 42px;
        height: 42px;
        border: none;
        background: #f8f5f1;
        font-size: 18px;
        color: #4b4138;
    }

    .qty-input{
        width: 54px;
        height: 42px;
        border: none;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        color: #1f1f1f;
        outline: none;
    }

    .remove-btn{
        border: none;
        background: transparent;
        color: #b02a37;
        font-size: 13px;
        font-weight: 600;
        padding: 0;
    }

    .summary-title{
        font-size: 22px;
        font-weight: 700;
        color: #1f1f1f;
        margin-bottom: 24px;
    }

    .summary-row{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding-bottom: 18px;
        margin-bottom: 18px;
        border-bottom: 1px solid rgba(0,0,0,.06);
    }

    .summary-row:last-of-type{
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .summary-label{
        color: #6f665f;
        font-size: 14px;
    }

    .summary-value{
        font-size: 15px;
        font-weight: 600;
        color: #1f1f1f;
    }

    .summary-total .summary-label,
    .summary-total .summary-value{
        font-size: 18px;
        font-weight: 700;
        color: #1f1f1f;
    }

    .coupon-box{
        margin-top: 28px;
    }

    .coupon-label{
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #4d433b;
    }

    .coupon-group{
        display: flex;
        gap: 10px;
    }



    .apply-btn{
        min-width: 120px;
        border: none;
        background: #9a8b77;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .12em;
    }

    .checkout-btn{
        width: 100%;
        min-height: 56px;
        border: none;
        background: #1f1f1f;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .14em;
        margin-top: 28px;
        transition: .25s ease;
    }

    .checkout-btn:hover{
        background: #000;
    }

    .continue-link{
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
        font-size: 13px;
        font-weight: 600;
        color: #5d5248;
        text-decoration: none;
    }

    .continue-link:hover{
        color: #000;
    }

    @media (max-width: 991.98px){

        .summary-card{
            position: relative;
            top: auto;
        }
    }

    @media (max-width: 767.98px){

        .cart-section{
            padding: 70px 0;
        }

        .cart-card,
        .summary-card{
            padding: 22px 18px;
            border-radius: 20px;
        }

        .cart-item{
            padding: 20px 0;
        }

        .cart-image{
            width: 95px;
            height: 95px;
            border-radius: 16px;
        }

        .cart-product-title{
            font-size: 17px;
            margin-bottom: 8px;
        }

        .cart-price{
            font-size: 20px;
        }

        .qty-btn{
            width: 38px;
            height: 38px;
        }

        .qty-input{
            height: 38px;
            width: 48px;
        }

        .coupon-group{
            flex-direction: column;
        }

        .apply-btn{
            width: 100%;
            min-height: 52px;
        }
    }
</style>

<section class="cart-section">
    <div class="container">

        <div class="row g-3">
            <div class="col-12 col-lg-8">

                <div class="cart-card">

                    <div class="mb-4">
                        <h1 class="cart-title">
                            Your Cart
                        </h1>

                        <p class="cart-subtitle">
                            Review your selected luxury bags before checkout.
                        </p>
                    </div>

                    <div class="cart-item">

                        <div class="d-flex align-items-center gap-3 gap-md-4">

                            <div class="cart-image">
                                <img src="{{ asset('assets/images/bag.webp') }}" alt="">
                            </div>

                            <div class="flex-grow-1">

                                <div class="d-flex justify-content-between align-items-start gap-3">

                                    <div>

                                        <h3 class="cart-product-title">
                                            Signature Leather Tote Bag
                                        </h3>

                                        <div class="cart-product-meta">
                                            <span>Black</span>
                                            <span>Classic</span>
                                        </div>

                                        <div class="cart-price mt-3">
                                            ₦180,000
                                        </div>

                                    </div>

                                    <div class="d-flex flex-column align-items-end gap-3">

                                        <div class="qty-box">

                                            <button class="qty-btn">
                                                -
                                            </button>

                                            <input type="text"
                                                class="qty-input"
                                                value="1">

                                            <button class="qty-btn">
                                                +
                                            </button>

                                        </div>

                                         <button class="remove-btn">
                                            Remove
                                        </button>

                                    </div>

                                </div>

                            </div>

                        </div>

                    </div>

                    <div class="cart-item">

                        <div class="d-flex align-items-center gap-3 gap-md-4">

                            <div class="cart-image">
                                <img src="{{ asset('assets/images/bag2.webp') }}" alt="">
                            </div>

                            <div class="flex-grow-1">

                                <div class="d-flex justify-content-between align-items-start gap-3">
                                    <div>

                                        <h3 class="cart-product-title">
                                            Elegant Nude Crossbody Bag
                                        </h3>

                                        <div class="cart-product-meta">
                                            <span>Nude</span>
                                            <span>Modern</span>
                                        </div>

                                        <div class="cart-price mt-3">
                                            ₦220,000
                                        </div>

                                    </div>

                                    <div class="d-flex flex-column align-items-end gap-3">


                                        <div class="qty-box">

                                            <button class="qty-btn">
                                                -
                                            </button>

                                            <input type="text"
                                                class="qty-input"
                                                value="1">

                                            <button class="qty-btn">
                                                +
                                            </button>

                                        </div>

                                         <button class="remove-btn">
                                            Remove
                                        </button>

                                    </div>

                                </div>

                            </div>

                        </div>

                    </div>

                    <a href="#" class="continue-link">
                        Continue Shopping
                    </a>

                </div>

            </div>

            <div class="col-12 col-lg-4">
                <div class="summary-card">

                    <h2 class="summary-title">
                        Order Summary
                    </h2>

                    <div class="summary-row">
                        <div class="summary-label">
                            Subtotal
                        </div>

                        <div class="summary-value">
                            ₦400,000
                        </div>
                    </div>

                    <div class="summary-row">
                        <div class="summary-label">
                            Delivery
                        </div>

                        <div class="summary-value">
                            ₦10,000
                        </div>
                    </div>

                    <div class="summary-row">
                        <div class="summary-label">
                            Discount
                        </div>

                        <div class="summary-value">
                            - ₦0
                        </div>
                    </div>

                    <div class="summary-row summary-total">
                        <div class="summary-label">
                            Total
                        </div>

                        <div class="summary-value">
                            ₦410,000
                        </div>
                    </div>

                    <div class="coupon-box">

                        <div class="coupon-label">
                            Promo Code
                        </div>

                        <div class="coupon-group">

                            <input type="text"
                                class="form-control"
                                placeholder="Enter promo code">

                            <button class="apply-btn">
                                Apply
                            </button>

                        </div>

                    </div>

                    <button class="checkout-btn">
                        Proceed to Checkout
                    </button>

                </div>

            </div>

        </div>

    </div>
</section>

@endsection