    /* compare betwwen product */
        /* شريط التحكم */

        /* ===== Tray ===== */
        .compare-tray {
            position: fixed;
            inset-inline: 8rem;
            width: fit-content;
            border: 2px solid #782569;
            /* يمين ويسار */
            bottom: 16px;
            z-index: 1050;
            background: #fff;
            /* border: 1px solid #E7EAF0; */
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(11, 34, 57, .08);
            padding: 14px;
            display: none;
            /* يظهر لما يكون فيه عناصر */
        }

        @media(max-width:756px) {
            .compare-tray {
                width: 95% !important;
                margin: auto;
                bottom: 9rem;
                inset-inline: 1rem;
                overflow: auto;
            }
        }

        .compare-tray.is-visible {
            display: block;
        }

        /* ===== Header actions ===== */
        .tray-top {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .tray-top .link-action {
            justify-self: start;
            color: #0d6efd;
            text-decoration: underline;
            cursor: pointer;
            padding: 10px 12px;
            border: 1px solid #e9eef5;
            border-radius: 12px;
            display: inline-block;
        }

        .btn-pill {
            padding: 10px 18px;
            border-radius: 999px;
            font-weight: 700;
            line-height: 1;
            border: 1px solid transparent;
        }

        .btn-pill.primary {
            background: #0d6efd;
            color: #fff;
        }

        .btn-pill.primary:hover {
            background: #0b5ed7;
            color: #fff;
        }

        .btn-pill.outline {
            background: #fff;
            color: white;
            /* border-color: #0d6efd; */
        }

        .btn-pill.outline:hover {
            background: #eef5ff;
        }

        /* ===== Cards row ===== */
        .tray-list {
            overflow: auto;
            padding-block: 4px;
        }

        .cards-row {
            display: flex;
            gap: 12px;
            flex-wrap: nowrap;
        }

        .cards-row>* {
            min-width: 280px;
        }

        /* عرض الكرت */
        @media (max-width:576px) {
            .cards-row>* {
                min-width: 82vw;
            }
        }

        /* ===== Card ===== */
        .compare-card {
            position: relative;
            display: flex;
            align-items: center;
            gap: 12px;
            border: 1px solid #E7EAF0;
            border-radius: 14px;
            background: #fff;
            padding: 12px 14px;
            min-height: 72px;
            /* توحيد الارتفاع */
            transition: box-shadow .2s ease, border-color .2s ease;
        }

        .compare-card:hover {
            box-shadow: 0 6px 18px rgba(11, 34, 57, .06);
            border-color: #dfe6ef;
        }

        .compare-card .remove-item {
            position: absolute;
            inset-block-start: 2px;
            inset-inline-end: 1px;

            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 1px solid #D7DBE2;
            background: #fff;
            line-height: 20px;
            text-align: center;
            padding: 0;
            cursor: pointer;
        }

        .compare-card .remove-item:hover {
            color: #dc3545;
            border-color: #dc3545;
        }

        .compare-card img {
            width: 56px;
            height: 56px;
            object-fit: contain;
            border-radius: 8px;
            background: #fff;
            flex: 0 0 auto;
        }

        .compare-card .title {
            font-weight: 800;
            font-size: 1.5rem;
            color: #0b2239;
            max-width: 190px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* نحجز فراغ للزر × حتى لا يتداخل مع النص */
        .compare-card .content {
            padding-inline-start: 32px;
        }

        /* ===== Warning ===== */
        .tray-warning {
            color: #ff7a00;
            margin-top: 8px;
            font-size: .92rem;
        }

        .tray-actions {
            padding: 20px;
            text-align: end;
        }

        .tray-actions button {
            width: fit-content !important;
            padding: 10px 2rem;
            background-color: #782569 !important;
            color: #fff;
            border: 1px solid #fff !important;
        }

