﻿﻿ /*product aside menu
*/
.download-all {
    font-size: 12px;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 5px; /* المسافة بين الأيقونات */
}

.name-text {
    display: flex;
    align-items: center;
}

/* ⭐ ده اللي بيزق الأيقونة للطرف التاني */
.download-icon {
    margin-inline-start: auto;
    /*    margin-left: auto;*/
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 18px;
    color: var(--primary-base1);
    border: 1px solid rgba(245, 179, 1, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .download-icon:hover {
        background-color: #f5b301;
        color: #fff;
    }

.hover-hand {
    cursor: pointer;
}

#mainCategoryMenuContainer {
    background: linear-gradient( 135deg, #1b2533, #263144 ); /* اختياري */
    color: #fff;
    border-radius: 12px;
}

#mainCategoryMenuTitle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    min-width: 22px;
    padding: 10px;
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #1b2533; /* اختياري */
    padding: 10px;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    border-radius: 8px;
}

    .side-menu-item i {
        font-size: 16px;
        min-width: 22px;
    }

    .side-menu-item span {
        font-size: 13px;
    }

    .side-menu-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }


/*product aside search */
#searchSideContainer {
    background: #1b2533; /* اختياري */
    color: #fff;
    border-radius: 12px;
}

#mainTitle {
    color: var(--primary-base1);
    padding: 10px 14px;
}

#searchSideTitle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    color: var(--primary-base1);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    min-width: 22px;
    padding: 10px;
}

.side-btn {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
}

.side-select {
    background-color: var(--panel-bg) !important;
    border-color: var(--black-border) !important;
    color: var(--neutral-gray-base) !important;
    width: 100%;
    padding: 8px;
}


/*Products */

.sale-count {
    color: #94a3b8;
    font-size: 12px;
}

.stars span {
    font-size: 32px;
    cursor: pointer;
    color: #ccc; /* رمادي افتراضي */
    transition: color 0.2s;
}

    .stars span.active {
        color: #f5b301;
    }

.rate-value {
    margin: 10px 0;
    font-weight: bold;
}

#submitRateBtn {
    margin-top: 10px;
    padding: 8px 14px;
}

    #submitRateBtn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.rate-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.rate-box {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    text-align: center;
}

.rate-modal .modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    text-align: center;
    width: 320px; /* العرض الثابت */
    max-width: 90%; /* للموبايل */
}

.empty-state-wrapper {
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-card {
    width: 100%;
    max-width: 900px;
    padding: 60px 20px;
    background: linear-gradient(180deg, #1b2533, #141c28);
    border-radius: 20px;
    border: 2px dashed rgba(255,255,255,0.15);
    text-align: center;
    color: #cbd5e1;
}

/* Icon */
.empty-icon {
    font-size: 48px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Title */
.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* Subtitle */
.empty-subtitle {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

.side-search-hidden {
    display: none;
}

.products-header {
    width: 100%;
    margin-bottom: 20px;
}

.products-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-radius: 14px;
    background: #1b2533;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.products-header .title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.products-header .count {
    font-size: 15px;
    color: var(--primary-base1);
}

    .products-header .count strong {
        font-size: 18px;
        margin-inline-start: 6px;
    }

@media (max-width: 768px) {
    .products-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 16px;
    }
}

.empty-state {
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

    .empty-state img {
        width: 160px;
        opacity: 0.85;
        margin-bottom: 20px;
    }

    .empty-state h2 {
        font-size: 20px;
        color: #fff;
        margin-bottom: 6px;
    }

    .empty-state p {
        font-size: 14px;
        color: #94a3b8;
    }

.product-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    background: #f8f8f8;
}

    .product-header img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 12px;
    }

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.total {
    padding: 12px 14px;
    font-weight: bold;
    text-align: center;
    color: var(--primary-base1);
}

.product-meta {
    margin: 10px;
    gap: 10px;
}

/* Share Button */
.share-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .share-btn:hover {
        color: var(--primary-base1);
        border: 1px solid var(--primary-base1);
    }

p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Content column */
.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Line 2: type */
.detail-type {
    font-size: 13px;
    color: #fff;
}

.total-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 13px;
}

.action-col button {
    background-color: var(--primary-base1);
    padding: 8px 16px;
    font-size: 12px;
}

.favorite {
    cursor: pointer;
    color: grey;
    font-size: 13px;
    opacity: .5;
}

    .favorite.active {
        color: red;
        opacity: 1;
    }


.product-card {
    background: rgba(31, 46, 64, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(176, 141, 51, 0.15);
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
}

    .product-card,
    .product-card * {
        transition: all 0.35s ease;
    }

        .product-card:hover {
            border: 1px solid var(--primary-base1);
            box-shadow: 0 0 0 1px rgba(176,141,51,0.4), 0 12px 28px rgba(176,141,51,0.25);
        }

            .product-card:hover .product-image img {
                transform: scale(1.12);
            }

            .product-card:hover .product-title {
                color: var(--primary-base1);
            }

            .product-card:hover .meta-right > div {
                border: 1px solid var(--primary-base1);
                background: rgba(176,141,51,0.15);
            }

            .product-card:hover .share-btn {
                border: 1px solid var(--primary-base1);
            }


.product-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

    .product-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-meta-overlay {
    bottom: 0;
    inset-inline: 0;
    background: var(--primary-base2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 12px;
    color: #fff;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .meta-right > .togther {
        display: flex;
        align-items: center;
        background: rgba(255,255,255,0.15);
        padding: 0px 0px;
        border-radius: 20px;
        cursor: pointer;
    }

    /* Divider between rate and favorite */
    .meta-right .divider {
        width: 1px;
        height: 10px;
        background-color: var(--primary-base1);
        margin: 0 8px;
    }

.product-title {
    padding: 8px 14px;
    color: #fff;
    font-size: 14px;
}

    .product-title:hover {
        color: var(--primary-base1);
    }

    .product-title .icon {
        font-size: 15px;
    }

.product-desc {
    padding: 14px 8px;
    font-size: 12px;
    color: #94a3b8;
}

.product-details-wrapper {
    margin: 10px;
    background: #263144;
    border-radius: 12px;
    padding: 10px;
}

.details-header {
    color: var(--primary-base1);
    font-size: 12px;
    cursor: pointer;
}

    .details-header .arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .details-header.open .arrow {
        transform: rotate(180deg); /* السهم يصبح للأعلى */
    }

.detail-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid var(--primary-base1);
    background-color: #b08d3326;
    cursor: pointer;
    transition: all .25s ease;
}

    .detail-card:hover {
        border-color: var(--primary-base1);
        box-shadow: 0 4px 10px rgba(176, 141, 51, 0.15);
    }

/* PAID - selectable */
.detail-selectable {
    background: #1f2a3a;
    border: 1px solid rgba(255,255,255,.08);
}

    .detail-selectable:has(input:checked) {
        border-color: var(--primary-base1);
        background: linear-gradient(90deg, rgba(176,141,51,.2), rgba(176,141,51,.05));
    }

/* FREE or PURCHASED */
.detail-open {
    background: #263144;
    border: 1px solid rgba(176,141,51,.4);
}

.detail-name {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 12px;
}

.detail-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.detail-icon {
    color: var(--primary-base1);
}

.detail-price {
    color: var(--primary-base1);
    font-size: 11px;
}

.lock-icon {
    color: #94a3b8;
}

.total-action-row {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-base1);
}

.btn-fast-pay {
    background: var(--primary-base1);
    border: none;
    padding: 6px 14px;
    color: #000;
    border-radius: 6px;
    cursor: pointer;
}

/* ===============================
   CUSTOM GREEN CIRCULAR CHECKBOX
================================ */

.detail-check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--gray-base);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    padding: 5px 5px 6px 5px;
}

    /* Hover */
    .detail-check input[type="checkbox"]:hover {
        box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
    }

    /* Checked state */
    .detail-check input[type="checkbox"]:checked {
        background: none;
        border-color: #22c55e;
    }

        /* Check mark */
        .detail-check input[type="checkbox"]:checked::after {
            content: '';
            width: 3px;
            height: 6px;
            border: solid #22c55e;
            border-width: 0 1px 1px 0;
            transform: rotate(45deg);
            position: absolute;
        }

    /* Disabled */
    .detail-check input[type="checkbox"]:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
