﻿.cg-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 992px) {
    .cg-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cg-products-grid {
        grid-template-columns: 1fr;
    }
}

/* باکس لودینگ شیک دارک */
.cg-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.cg-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #591875; /* یا رنگ تم سبز/آبی سایتت */
    animation: spin 0.8s linear infinite;
}

.cg-loading-text {
    margin-top: 15px;
    color: #591875;
    font-size: 0.9rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.paracake-loader-overlay {
    align-items: center;
    justify-content: center;
    min-height: 350px;
    width: 100%;
    margin: 20px 0;
    background: rgba(59, 18, 75, 0.3);
    border-radius: 12px;
}

.paracake-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.loader-logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    animation: logoPulse 1.2s ease-in-out infinite;
}

.loader-text {
    margin: 14px 0 16px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.spinner-ring {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spinRing 0.8s linear infinite;
}

@keyframes spinRing {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.cg-search-sidebar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.cg-search-sidebar input {
    flex: 1;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--nm-line);
    border-radius: 8px;
    background: var(--nm-soft);
    outline: none;
    font-size: 0.9rem;
    color: var(--nm-ink);
}

.cg-search-sidebar button {
    background-color: #6a1b9a; /* رنگ بنفش پاراکیک */
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.cg-search-sidebar button:hover {
    background-color: #4a148c;
}

