

        :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; }
}

        



    /* checkout page */
    .customRadioButton {
        height: 25px;
        width: 25px;
    }

    @media (max-width: 767px) {
        .customRadioButton {
            height: 20px !important;
            width: 20px !important;
        }

        .option {
            padding: 5px !important;
        }
    }

    .option-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        border-radius: 5px;
        border: 1px solid #ddd;
        cursor: pointer;
        width: 100%;
    }

    .option div {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .option i {
        font-size: 24px;
        color: #000000;
    }

    .option.selected {
        background-color: #e9f2ff;
        border-color: #007bff;
    }

    .accordion-button:not(.collapsed),
    .accordion-button:focus {
        outline: none;
        border-color: transparent;
        box-shadow: none;
        background-color: transparent;
    }

    .accordion-button::after {
        width: 11px;
        height: 11px;
        border-radius: 100%;
        background-color: var(--bs-danger);
        background-image: none !important;
    }

    .accordion-button.collapsed::after {
        background-color: var(--bs-gray-300);
    }

    .error {
        display: block;
        font-size: 14px;
        margin-top: 5px;
    }

    .form-control.is-invalid {
        border-color: #dc3545;
    }

    #loader {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 99;
        display: none;
    }

    #loader .spinner-border {
        width: 5rem;
        height: 5rem;
        border-width: 0.5rem;
    }

    .option-container.is-invalid {
        border: 2px solid #dc3545;
        border-radius: 5px;
    }

    .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-main {
        display: block;
        width: 100%;
        background: #000000;
        color: #fff;
        padding: 12px;
        border-radius: 8px;
        text-align: center;
        font-weight: 700;
        text-decoration: none;
        margin-top: 12px;
        border: none;
    }

    .product-thumb {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #eee;
    }

    .customization-list {
        margin-top: 8px;
        padding-left: 14px;
        font-size: 13px;
        color: #444;
    }

    .custom-preview {
        display: flex;
        gap: 8px;
        align-items: flex-start;
        margin-top: 6px;
        padding: 6px;
        background: #f8f9fa;
        border-radius: 4px;
    }

    .custom-preview img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        border-radius: 4px;
        border: 1px solid #eee;
    }

    .form-check a{
        text-decoration: none;
        color: #dc3545
    }

    .accordion-header{
        border: 1px solid #ededed;
    }


