/* ======================================================
   Sarekam CSS — cart.css
   Extracted from index.html | Phase 1 Refactor
   DO NOT add styles from other sections to this file.
   ====================================================== */

        .cart-badge {
            background: #e53935;
            color: #fff;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 2px 6px;
            border-radius: 10px;
            position: absolute;
            top: -5px;
            right: -8px;
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal-panel {
            background: #fff;
            width: 90%;
            max-width: 500px;
            border-radius: 12px;
            padding: 30px;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }

        .service-list-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .service-info h4 {
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .service-info p {
            font-size: 0.9rem;
            color: #666;
        }

        .service-price {
            font-weight: 800;
            color: var(--primary);
            font-size: 1.2rem;
        }

        .add-btn {
            background: var(--white);
            border: 1px solid #e0e0e0;
            color: #1ea050;
            padding: 8px 24px;
            border-radius: 8px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s ease;
            text-transform: uppercase;
        }

        .add-btn:hover {
            background: #f0fdf4;
            border-color: #1ea050;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Cart Sidebar Ã¢â€â‚¬Ã¢â€â‚¬ */
        .cart-sidebar {
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            width: 400px;
            height: 100%;
            background: #f7f7fb;
            z-index: 4000;
            box-shadow: -6px 0 32px rgba(124,58,237,0.10);
            flex-direction: column;
            animation: slideInRight 0.32s cubic-bezier(0.22,1,0.36,1) forwards;
        }
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to   { transform: translateX(0);   opacity: 1; }
        }

        .cart-header {
            padding: 20px 20px 16px;
            background: #fff;
            border-bottom: 1.5px solid #ede9fe;
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .cart-header-back {
            background: none;
            border: none;
            cursor: pointer;
            color: #7c3aed;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            padding: 4px;
        }
        .cart-header h2 {
            flex: 1;
            font-size: 18px;
            font-weight: 800;
            color: #1c1c1c;
            margin: 0;
        }
        .cart-header-count {
            font-size: 12px;
            color: #7c3aed;
            font-weight: 700;
            background: #ede9fe;
            border-radius: 12px;
            padding: 2px 10px;
        }

        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .cart-items::-webkit-scrollbar { width: 4px; }
        .cart-items::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 4px; }

        .cart-item {
            background: #fff;
            padding: 14px;
            border-radius: 16px;
            border: 1.5px solid #ede9fe;
            box-shadow: 0 2px 10px rgba(124,58,237,0.05);
            transition: box-shadow 0.2s;
        }
        .cart-item:hover { box-shadow: 0 4px 18px rgba(124,58,237,0.10); }

        .cart-item-top {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
        }
        .cart-item-img {
            width: 54px; height: 54px;
            border-radius: 12px;
            object-fit: cover;
            background: linear-gradient(135deg,#f5f3ff,#ede9fe);
            flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            color: #7c3aed;
            overflow: hidden;
        }
        .cart-item-img img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
        .cart-item-body { flex: 1; min-width: 0; }
        .cart-item-title {
            font-weight: 800;
            font-size: 14px;
            color: #1c1c1c;
            line-height: 1.3;
            margin-bottom: 2px;
        }
        .cart-item-sub {
            font-size: 11px;
            color: #999;
            line-height: 1.4;
            margin-bottom: 4px;
        }
        .cart-item-price {
            font-weight: 800;
            font-size: 15px;
            color: #7c3aed;
        }

        .cart-item-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .cart-details-btn {
            background: #f5f3ff;
            border: 1.5px solid #ddd6fe;
            color: #7c3aed;
            padding: 5px 12px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-family: inherit;
            transition: background 0.15s;
        }
        .cart-details-btn:hover { background: #ede9fe; }

        .cart-qty-ctrl {
            display: flex;
            align-items: center;
            background: #7c3aed;
            border-radius: 8px;
            overflow: hidden;
        }
        .cart-qty-ctrl button {
            background: none;
            border: none;
            color: #fff;
            width: 30px;
            height: 30px;
            font-size: 0.85rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s;
        }
        .cart-qty-ctrl button:hover { background: #6d28d9; }
        .cart-qty-ctrl span {
            font-weight: 800;
            font-size: 13px;
            color: #fff;
            min-width: 22px;
            text-align: center;
        }

        /* Bill details */
        .cart-bill-details {
            background: #fff;
            border-radius: 16px;
            padding: 16px;
            border: 1.5px solid #ede9fe;
            box-shadow: 0 2px 10px rgba(124,58,237,0.04);
        }
        .cart-bill-title {
            font-size: 11px;
            color: #7c3aed;
            font-weight: 800;
            margin-bottom: 12px;
            letter-spacing: 1px;
        }
        .bill-row {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #555;
            margin-bottom: 8px;
        }
        .bill-row del { color: #bbb; margin-right: 4px; font-size: 11px; }
        .bill-row.total-row {
            font-weight: 800;
            font-size: 15px;
            color: #1c1c1c;
            border-top: 1.5px solid #ede9fe;
            padding-top: 10px;
            margin-top: 4px;
        }

        .cart-policy-note {
            background: #f5f3ff;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 11px;
            color: #888;
            line-height: 1.5;
            border: 1px solid #ede9fe;
        }
        .cart-policy-note a { color: #7c3aed; font-weight: 700; text-decoration: none; }

        .cart-footer {
            padding: 16px 20px;
            background: #fff;
            border-top: 1.5px solid #ede9fe;
        }
        .cart-footer-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .cart-footer-label { font-size: 13px; color: #888; font-weight: 600; }
        .cart-footer-amount { font-size: 20px; font-weight: 900; color: #1c1c1c; }

        .checkout-btn {
            width: 100%;
            padding: 15px;
            background: #7c3aed;
            color: #fff;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            font-family: inherit;
            letter-spacing: 0.2px;
            transition: background 0.18s;
        }
        .checkout-btn:hover { background: #6d28d9; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Payment Modal (matches cart aesthetic) Ã¢â€â‚¬Ã¢â€â‚¬ */
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .payment-method:hover,
        .payment-method.active {
            border-color: var(--primary);
            background: #f0fbfc;
        }

        .pay-btn {
            width: 100%;
            padding: 15px;
            background: #28a745;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            margin-top: 20px;
        }

        .success-icon {
            font-size: 4rem;
            color: #28a745;
            margin-bottom: 20px;
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Animated booking confirmed full-screen overlay Ã¢â€â‚¬Ã¢â€â‚¬ */
        #successModal {
            position: fixed !important;
            inset: 0 !important;
            background: #fff !important;
            z-index: 9999 !important;
            display: none;
            align-items: center !important;
            justify-content: center !important;
            flex-direction: column !important;
        }
        #successModal.show { display: flex !important; }
        .bk-confirmed-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 28px;
            padding: 40px 24px;
        }
        .bk-circle {
            width: 120px;
            height: 120px;
        }
        .bk-circle-bg {
            fill: #29b6f6;
            transform-origin: center;
            animation: bkCirclePop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
        }
        .bk-tick {
            fill: none;
            stroke: #fff;
            stroke-width: 8;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-dasharray: 60;
            stroke-dashoffset: 60;
            animation: bkTickDraw 0.45s 0.35s cubic-bezier(0.65,0,0.35,1) forwards;
        }
        @keyframes bkCirclePop {
            from { transform: scale(0); opacity: 0; }
            to   { transform: scale(1); opacity: 1; }
        }
        @keyframes bkTickDraw {
            to { stroke-dashoffset: 0; }
        }
        .bk-title {
            font-size: 26px;
            font-weight: 900;
            color: #111;
            letter-spacing: -0.4px;
            text-align: center;
        }
        .bk-brand {
            font-size: 17px;
            color: #bbb;
            font-weight: 500;
            text-align: center;
            letter-spacing: 0.2px;
        }

        @media (max-width: 500px) {
            .cart-sidebar {
                width: 100%;
            }
        }

