<!doctype html>
<html lang="fr">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Panier - ATARA</title>
    <link rel="icon" type="image/svg+xml" href="{{ asset('favicon.svg') }}">
    <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
    
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    
    <style>
        :root {
            --primary-color: #8B5CF6;
            --secondary-color: #D946EF;
            --accent-color: #F59E0B;
            --dark-color: #14233c;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            width: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: 'Poppins', sans-serif;
            font-size: 16px;
            background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
        }

        h1, h2, h3, h4 {
            font-family: 'Playfair Display', serif;
            line-height: 1.2;
        }

        .header-section {
            background: linear-gradient(135deg, var(--dark-color), #1e3a5f);
            padding: 1rem 0;
            width: 100%;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        .site-logo {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 800;
            color: #fff;
            text-decoration: none;
            white-space: nowrap;
        }

        .site-logo i {
            color: var(--accent-color);
        }

        .navbar {
            flex-wrap: wrap;
            padding: 0 !important;
        }

        .nav-shell {
            background: linear-gradient(135deg, rgba(10, 16, 35, 0.95), rgba(16, 24, 46, 0.95));
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 16px;
            padding: 12px 16px;
            box-shadow: 0 18px 50px rgba(0,0,0,0.35);
            backdrop-filter: blur(10px);
            gap: 16px;
        }

        .navbar-nav {
            gap: 8px;
        }

        .navbar-nav a {
            color: #e5e7eb !important;
            padding: 10px 14px !important;
            border-radius: 10px;
            transition: all 0.25s ease;
            font-size: clamp(0.82rem, 1.8vw, 0.98rem);
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            font-weight: 700;
            background: transparent;
        }

        .navbar-nav a:hover {
            background: rgba(139, 92, 246, 0.28);
            color: #fff !important;
        }

        .navbar-nav a.active {
            background: rgba(255,255,255,0.14);
            color: #fff !important;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
        }

        .navbar-toggler {
            border-color: rgba(255,255,255,0.3);
            margin-left: auto;
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        .btn--base {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            padding: clamp(10px, 2vw, 12px) clamp(20px, 5vw, 35px);
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            border: none;
            transition: all 0.3s;
            font-size: 0.95rem;
            white-space: nowrap;
            display: inline-block;
        }

        .btn--base:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
            color: #fff;
        }

        .action-card {
            display: flex;
            align-items: stretch;
            gap: 12px;
            flex-wrap: wrap;
            background: linear-gradient(135deg, rgba(12, 18, 38, 0.95), rgba(17, 25, 46, 0.95));
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px;
            padding: 10px 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.35);
        }

        .action-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 8px 10px;
            border-right: 1px solid rgba(255,255,255,0.1);
        }

        .action-section:last-child {
            border-right: none;
        }

        .action-section.cart-section {
            justify-content: center;
        }

        .action-header {
            font-size: 0.7rem;
            font-weight: 900;
            letter-spacing: 0.8px;
            color: #cbd5f5;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .btn-action {
            border-radius: 10px;
            padding: 8px 12px;
            font-weight: 700;
            border: 2px solid rgba(255,255,255,0.18);
            background: rgba(255,255,255,0.08);
            color: #fff;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            transition: all 0.25s ease;
            white-space: nowrap;
        }

        .btn-action:hover {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-color: transparent;
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
            color: #fff;
        }

        .btn-cart {
            border-radius: 10px;
            padding: 8px 12px;
            font-weight: 700;
            border: none;
            background: linear-gradient(135deg, #0ea5e9, #2563eb);
            color: #fff;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
            transition: all 0.25s ease;
        }

        .btn-cart:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
            color: #fff;
        }

        .cart-badge {
            background: #ef4444;
            color: #fff;
            font-weight: 800;
            border-radius: 999px;
            padding: 2px 7px;
            font-size: 0.75rem;
        }

        @media (max-width: 992px) {
            .nav-shell {
                padding: 14px;
            }

            .action-card {
                width: 100%;
            }
        }

        .page-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: clamp(40px, 10vw, 80px) 1rem;
            color: #fff;
            text-align: center;
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .page-header h1 {
            font-size: clamp(2rem, 8vw, 3rem);
            font-weight: 800;
            position: relative;
            z-index: 2;
        }

        .cart-section {
            padding: clamp(40px, 10vw, 60px) 0;
        }

        .breadcrumb-nav {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: clamp(20px, 5vw, 40px);
            font-size: clamp(0.85rem, 2vw, 0.95rem);
        }

        .breadcrumb-nav a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s;
        }

        .breadcrumb-nav a:hover {
            color: var(--secondary-color);
        }

        .breadcrumb-nav .separator {
            color: #ccc;
        }

        .cart-table {
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 5px 30px rgba(0,0,0,0.08);
            margin-bottom: clamp(20px, 5vw, 40px);
        }

        .table-responsive-wrapper {
            overflow-x: auto;
        }

        .table {
            margin-bottom: 0;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
        }

        .table thead {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            border: none;
        }

        .table th {
            padding: clamp(15px, 3vw, 20px);
            font-weight: 700;
            border: none;
        }

        .table tbody tr {
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.3s;
        }

        .table tbody tr:hover {
            background: #f9fafb;
        }

        .table td {
            padding: clamp(15px, 3vw, 20px);
            vertical-align: middle;
        }

        .product-info {
            display: flex;
            align-items: center;
            gap: clamp(10px, 3vw, 15px);
        }

        .product-image {
            width: clamp(50px, 10vw, 80px);
            height: clamp(50px, 10vw, 80px);
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .product-details h4 {
            margin: 0 0 5px 0;
            font-size: clamp(0.9rem, 2vw, 1rem);
            color: #333;
        }

        .product-details p {
            margin: 0;
            color: #999;
            font-size: clamp(0.8rem, 1.5vw, 0.85rem);
        }

        .quantity-control {
            display: flex;
            align-items: center;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            overflow: hidden;
        }

        .quantity-control button {
            background: none;
            border: none;
            color: var(--primary-color);
            padding: 5px 10px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 700;
        }

        .quantity-control button:hover {
            background: #f0f0f0;
        }

        .quantity-control input {
            width: 40px;
            text-align: center;
            border: none;
            padding: 5px 0;
            font-weight: 600;
            color: #333;
        }

        .quantity-control input:focus {
            outline: none;
        }

        .price {
            font-weight: 700;
            color: var(--primary-color);
            font-size: clamp(0.95rem, 2vw, 1.1rem);
        }

        .remove-btn {
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
            transition: color 0.3s;
            font-size: 1.1rem;
        }

        .remove-btn:hover {
            color: #e74c3c;
        }

        .cart-empty {
            text-align: center;
            padding: clamp(40px, 10vw, 80px) 20px;
            color: #666;
        }

        .cart-empty i {
            font-size: 3rem;
            color: #ddd;
            margin-bottom: 15px;
        }

        .cart-summary {
            background: #fff;
            border-radius: 20px;
            padding: clamp(25px, 5vw, 40px);
            box-shadow: 0 5px 30px rgba(0,0,0,0.08);
            max-width: 400px;
            margin-left: auto;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f0f0f0;
            font-size: clamp(0.9rem, 2vw, 1rem);
        }

        .summary-row.total {
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            font-weight: 800;
            color: var(--primary-color);
            border: none;
            margin-bottom: 0;
            padding: 0;
        }

        .summary-row.total span:last-child {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .checkout-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            border: none;
            padding: clamp(14px, 2vw, 16px);
            border-radius: 50px;
            font-weight: 700;
            font-size: clamp(1rem, 2vw, 1.05rem);
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
            margin-top: 20px;
        }

        .checkout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
        }

        .continue-shopping {
            display: inline-block;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
            margin-top: 10px;
        }

        .continue-shopping:hover {
            color: var(--secondary-color);
        }

        .footer-section {
            background: linear-gradient(135deg, #14233c, #1e3a5f);
            color: #fff;
            padding: clamp(30px, 5vw, 40px) 1rem;
            width: 100%;
        }

        .footer-section a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-section a:hover {
            color: var(--accent-color);
        }

        @media (max-width: 768px) {
            .cart-summary {
                max-width: 100%;
                margin-left: 0;
                margin-top: clamp(20px, 5vw, 40px);
            }

            .product-info {
                flex-wrap: wrap;
            }
        }
    </style>
</head>

<body>
    <header class="header-section">
        <div class="container">
            <nav class="navbar navbar-expand-lg">
                <a class="site-logo" href="{{ route('home') }}">
                    <i class="fas fa-gem"></i> <span class="d-none d-sm-inline">ATARA</span><span class="d-sm-none">B.E</span>
                </a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <div class="nav-shell d-flex flex-column flex-lg-row align-items-center w-100">
                        <ul class="navbar-nav ms-lg-auto me-lg-auto">
                            <li class="nav-item"><a href="{{ route('home') }}" class="nav-link">Accueil</a></li>
                            <li class="nav-item"><a href="{{ route('about') }}" class="nav-link">À Propos</a></li>
                            <li class="nav-item"><a href="{{ route('shop.index') }}" class="nav-link">Boutique</a></li>
                            <li class="nav-item"><a href="{{ route('public.blog') }}" class="nav-link">Blog</a></li>
                            <li class="nav-item"><a href="{{ route('public.newsletter') }}" class="nav-link">Newsletter</a></li>
                            <li class="nav-item"><a href="{{ route('plan') }}" class="nav-link">Plan d'investissement</a></li>
                            <li class="nav-item"><a href="{{ route('contact') }}" class="nav-link">Contact</a></li>
                        </ul>
                        <div class="action-card ms-lg-3">
                            <div class="action-section">
                                <div class="action-header">ESPACE MEMBRE</div>
                                <div class="action-buttons">
                                    <a href="{{ route('member.login') }}" class="btn-action">
                                        <i class="fas fa-sign-in-alt"></i> LOGIN
                                    </a>
                                    <a href="{{ route('member.register') }}" class="btn-action">
                                        <i class="fas fa-user-plus"></i> REGISTER
                                    </a>
                                </div>
                            </div>
                            <div class="action-section">
                                <div class="action-header">ESPACE VENDEUR</div>
                                <div class="action-buttons">
                                    <a href="{{ route('seller.login') }}" class="btn-action">
                                        <i class="fas fa-store"></i> LOGIN
                                    </a>
                                    <a href="{{ route('seller.register') }}" class="btn-action">
                                        <i class="fas fa-user-plus"></i> REGISTER
                                    </a>
                                </div>
                            </div>
                            <div class="action-section cart-section">
                                <a href="{{ route('cart.index') }}" class="btn-cart">
                                    <i class="fas fa-shopping-cart"></i> Panier
                                    <span class="cart-badge" id="cart-count">3</span>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </nav>
        </div>
    </header>

    <section class="page-header">
        <div class="container">
            <h1><i class="fas fa-shopping-cart me-3"></i>Mon Panier</h1>
        </div>
    </section>

    <section class="cart-section">
        <div class="container">
            <div class="breadcrumb-nav">
                <a href="{{ route('home') }}">Accueil</a>
                <span class="separator">→</span>
                <a href="{{ route('shop.index') }}">Boutique</a>
                <span class="separator">→</span>
                <span>Panier</span>
            </div>

            <div class="row">
                <div class="col-12 col-lg-8">
                    <div class="cart-table">
                        <div class="table-responsive-wrapper">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>Produit</th>
                                        <th>Prix</th>
                                        <th>Quantité</th>
                                        <th>Sous-total</th>
                                        <th></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <!-- Product Item 1 -->
                                    <tr>
                                        <td>
                                            <div class="product-info">
                                                <div class="product-image">
                                                    <i class="fas fa-ring"></i>
                                                </div>
                                                <div class="product-details">
                                                    <h4>Collier Diamant Premium</h4>
                                                    <p>Or 18 carats - Diamant 1,5ct</p>
                                                </div>
                                            </div>
                                        </td>
                                        <td><span class="price">125,000 XOF</span></td>
                                        <td>
                                            <div class="quantity-control">
                                                <button>−</button>
                                                <input type="number" value="1" min="1">
                                                <button>+</button>
                                            </div>
                                        </td>
                                        <td><span class="price">125,000 XOF</span></td>
                                        <td>
                                            <button class="remove-btn" title="Supprimer">
                                                <i class="fas fa-trash"></i>
                                            </button>
                                        </td>
                                    </tr>

                                    <!-- Product Item 2 -->
                                    <tr>
                                        <td>
                                            <div class="product-info">
                                                <div class="product-image">
                                                    <i class="fas fa-bracelet"></i>
                                                </div>
                                                <div class="product-details">
                                                    <h4>Bracelet Tennis</h4>
                                                    <p>Diamants - 7 pouces</p>
                                                </div>
                                            </div>
                                        </td>
                                        <td><span class="price">85,000 XOF</span></td>
                                        <td>
                                            <div class="quantity-control">
                                                <button>−</button>
                                                <input type="number" value="1" min="1">
                                                <button>+</button>
                                            </div>
                                        </td>
                                        <td><span class="price">85,000 XOF</span></td>
                                        <td>
                                            <button class="remove-btn" title="Supprimer">
                                                <i class="fas fa-trash"></i>
                                            </button>
                                        </td>
                                    </tr>

                                    <!-- Product Item 3 -->
                                    <tr>
                                        <td>
                                            <div class="product-info">
                                                <div class="product-image">
                                                    <i class="fas fa-ear"></i>
                                                </div>
                                                <div class="product-details">
                                                    <h4>Boucles Perles Luxe</h4>
                                                    <p>Perles de culture - Or blanc</p>
                                                </div>
                                            </div>
                                        </td>
                                        <td><span class="price">45,000 XOF</span></td>
                                        <td>
                                            <div class="quantity-control">
                                                <button>−</button>
                                                <input type="number" value="1" min="1">
                                                <button>+</button>
                                            </div>
                                        </td>
                                        <td><span class="price">45,000 XOF</span></td>
                                        <td>
                                            <button class="remove-btn" title="Supprimer">
                                                <i class="fas fa-trash"></i>
                                            </button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <div style="text-align: center;">
                        <a href="{{ route('shop.index') }}" class="continue-shopping">
                            <i class="fas fa-arrow-left me-2"></i>Continuer vos achats
                        </a>
                    </div>
                </div>

                <!-- Cart Summary -->
                <div class="col-12 col-lg-4">
                    <div class="cart-summary">
                        <h3 style="font-size: clamp(1.1rem, 3vw, 1.3rem); margin-bottom: 20px; color: #333;">Résumé de la Commande</h3>

                        <div class="summary-row">
                            <span>Sous-total:</span>
                            <span>255,000 XOF</span>
                        </div>

                        <div class="summary-row">
                            <span>Livraison:</span>
                            <span>5,000 XOF</span>
                        </div>

                        <div class="summary-row">
                            <span>Taxes:</span>
                            <span>12,800 XOF</span>
                        </div>

                        <div class="summary-row total">
                            <span>Total:</span>
                            <span>272,800 XOF</span>
                        </div>

                        <button class="checkout-btn">
                            <i class="fas fa-lock me-2"></i>Procéder au Paiement
                        </button>

                        <div style="margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; text-align: center; font-size: clamp(0.85rem, 2vw, 0.95rem); color: #666;">
                            <i class="fas fa-shield-alt" style="color: var(--primary-color);"></i>
                            <span> Paiement 100% sécurisé</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <footer class="footer-section">
        <div class="container">
            <div class="row gy-3">
                <div class="col-12 col-sm-6 text-center text-sm-start">
                    <p>&copy; 2025 ATARA. Tous droits réservés.</p>
                </div>
                <div class="col-12 col-sm-6 text-center text-sm-end">
                    <a href="{{ route('home') }}" class="me-3">Accueil</a>
                    <a href="{{ route('about') }}" class="me-3">À Propos</a>
                    <a href="{{ route('contact') }}">Contact</a>
                </div>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
