

        :root {
            --black: #0b0b0b;
            --red: #dc2026;
            --white: #ffffff;
            --muted: #8a8a8a;
            --panel: #111217;
        }

        html,
        body {
            height: 100%
        }

        body {
            font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
            background: var(--white);
            color: #222;
            -webkit-font-smoothing: antialiased;
        }

        .top-strip {
            background: var(--black);
            color: var(--white);
            padding: 6px 0;
            font-size: 14px;
        }

        .top-strip .item {
            display: flex;
            align-items: center;
            gap: .6rem;
            justify-content: center;
        }

        .top-strip i {
            color: var(--red);
        }

        .progress-wrapper {
            background: #fff;
            padding: 12px 0;
            border-bottom: 1px solid #eee;
        }

        .checkout-progress {
            display: flex;
            gap: 24px;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        .stage {
            text-align: center;
            color: #333;
            width: 190px;
        }

        .stage .circle {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #111;
            color: #fff;
            border: 3px solid #222;
            margin: 0 auto 8px;
        }

        .stage.active .circle {
            background: var(--red);
            border-color: var(--red);
        }

        .stage.complete .circle {
            background: #198754;
            border-color: #198754;
        }

        .main {
            padding: 22px 0;
        }

        .card-panel {
            border-radius: 10px;
            background: #fff;
            border: 1px solid #e9e9e9;
            padding: 14px;
        }

        .card-panel-dark {
            border-radius: 10px;
            background: var(--panel);
            color: var(--white);
            padding: 14px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .preview-shell {
            background: #f7f7f7;
            border-radius: 10px;
            padding: 12px;
            min-height: 520px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .preview-canvas {
            width: 320px;
            height: 420px;
            position: relative;
            border-radius: 10px;
            background-size: cover;
            background-position: center;
            box-shadow: 0 18px 40px rgba(13, 20, 30, 0.08);
            transform-origin: center center;
        }

        .layer-item {
            position: absolute;
            transform-origin: center center;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            cursor: grab;
            background: transparent;
            overflow: visible;
        }

        .layer-item img {
            max-width: 100%;
            max-height: 100%;
            display: block;
            user-select: none;
            -webkit-user-drag: none;
        }

        .layer-text {
            white-space: nowrap;
            display: inline-block;
            padding: 2px 4px;
        }

        .option-card {
            border-radius: 8px;
            border: 1px solid #ececec;
            padding: 10px;
            cursor: pointer;
            transition: all .12s ease;
            background: #fff;
        }

        .option-card.active {
            border-color: var(--red);
            box-shadow: 0 8px 24px rgba(220, 32, 38, 0.08);
            transform: translateY(-4px);
        }

        .small-muted {
            color: var(--muted);
            font-size: 13px;
        }

        .toolbar {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }

        .zoom-controls {
            display: flex;
            gap: 6px;
            align-items: center;
        }

        .loader-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(11, 11, 11, 0.6);
            color: #fff;
            z-index: 999;
            display: none;
            flex-direction: column;
            gap: 10px;
            border-radius: 10px;
        }

        .inspector {
            margin-top: 12px;
            background: #fff;
            border-radius: 8px;
            padding: 10px;
            border: 1px solid #eee;
        }

        .inspector h6 {
            margin: 0 0 8px 0;
            font-size: 14px;
        }

        @media (max-width:991px) {
            .preview-shell {
                min-height: 420px;
            }

            .preview-canvas {
                width: 260px;
                height: 360px;
            }
        }

        @media (max-width:575px) {
            .preview-shell {
                min-height: 360px;
                padding: 8px;
            }

            .preview-canvas {
                width: 220px;
                height: 300px;
            }

            .stage {
                width: 130px;
                font-size: 12px;
            }
        }

        .btn-red {
            background: var(--red);
            color: #fff;
            border: none;
        }

        .btn-red:hover {
            background: #b51f31;
        }

        .layer-item.selected {
            outline: 3px dashed rgba(220, 32, 38, 0.45);
        }

        .list-group-item.active {
            background: linear-gradient(90deg, rgba(220, 32, 38, 0.08), rgba(220, 32, 38, 0.02));
            border-color: #f0c0c2;
        }

        .view-btns .btn {
            min-width: 76px;
        }




        
    /* --- Cart page styles (move to your CSS file in production) --- */
    .cart-page { padding: 30px 0; }
    .cart-header { text-align: center; margin-bottom: 24px; }
    .cart-wrapper { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }

    /* Left area (items) & right area (summary) */
    .cart-items { flex: 1 1 640px; min-width: 300px; }
    .cart-summary { width: 340px; min-width: 260px; }

    /* Desktop table view */
    .cart-table { width: 100%; border-collapse: collapse; }
    .cart-table thead th { text-align: left; padding: 12px 8px; font-weight: 600; border-bottom: 1px solid #e6e6e6; }
    .cart-table tbody td { padding: 12px 8px; vertical-align: middle; border-bottom: 1px solid #f1f1f1; }
    .product-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
    .product-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; display:block; color:#222; }
    .product-meta { font-size: 13px; color: #666; line-height:1.35; }
    .qty-control { display: flex; align-items: center; gap: 8px; }
    .qty-btn { width:28px; height:28px; border-radius:6px; border:1px solid #ddd; background:#fff; cursor:pointer; }
    .qty-input { width:56px; padding:6px 8px; border:1px solid #ddd; border-radius:6px; text-align:center; }

    /* Remove / small action */
    .btn-remove { background:#ea1c26; color:#fff; border:0; padding:8px 10px; border-radius:6px; cursor:pointer; }
    .btn-update { background:#2d72ff; color:#fff; border:0; padding:8px 10px; border-radius:6px; cursor:pointer; }

    /* Summary */
    .summary-card { border:1px solid #e6e6e6; padding:18px; border-radius:10px; background:#fff; position:sticky; top:18px; }
    .summary-row { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed #f2f2f2; }
    .summary-row:last-child { border-bottom:none; }
    .checkout-btn { display:block; width:100%; background:#ea1c26; color:#fff; padding:12px; border-radius:8px; text-align:center; font-weight:700; text-decoration:none; margin-top:12px; }

    /* Customization preview */
    .customization-list { margin-top:8px; padding-left: 14px; font-size:13px; color:#444; }
    .custom-preview { display:flex; gap:8px; align-items:center; margin-top:6px; }
    .custom-preview img { width:64px; height:64px; object-fit:contain; border-radius:6px; border:1px solid #eee; }

    /* Mobile: stacked cards */
    /* @media (max-width: 900px) {
    .cart-wrapper { flex-direction:column; }
    .cart-summary { width:100%; position:relative; order:2; }
    .cart-items { order:1; }
    .cart-table, .cart-table thead { display:none; }
    .cart-row { display:flex; gap:12px; padding:12px; border:1px solid #f0f0f0; border-radius:10px; margin-bottom:12px; background:#fff; align-items:flex-start; }
    .cart-row .product-info { flex:1; }
    .summary-card { position:static; }
    } */
    .cart-row-mobile { display: none; }

    /* Mobile stacked cards */
@media (max-width: 900px) {
    .cart-table { display: none; } /* hide table */
    .cart-row-mobile { display: block; margin-bottom: 12px; }
    .cart-row { display:flex; gap:12px; padding:12px; border:1px solid #f0f0f0; border-radius:10px; background:#fff; align-items:flex-start; }
    .cart-row img { width:80px; height:80px; object-fit:cover; border-radius:6px; }
    .product-info { flex:1; display:flex; flex-direction:column; gap:6px; }
    .price-qty { display:flex; justify-content:space-between; align-items:center; margin-top:6px; }
    .item-subtotal { font-weight:600; margin-top:6px; }
    .btn-remove { margin-top:6px; }
}

        