.product-loading[hidden] {
    display: none !important;
}

.product-loading {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    background: rgba(248, 250, 249, 0.88);
    cursor: progress;
}

.product-loading__panel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    margin: 20px;
    border: 1px solid #dcf0e3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(22, 101, 52, 0.12);
    color: #166534;
    font-size: 16px;
    font-weight: 600;
}

.product-loading__bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    overflow: hidden;
    background: #dbeafe;
}

.product-loading__bar span {
    display: block;
    width: 35%;
    height: 100%;
    background: #2563eb;
    animation: product-loading-progress 1s ease-in-out infinite;
}

@keyframes product-loading-progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(290%); }
}

.product-loading__spinner {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 4px solid #dcfce7;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: product-loading-spin 0.75s linear infinite;
}

@keyframes product-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .product-loading__spinner {
        animation: none;
    }
    .product-loading__bar span {
        width: 100%;
        animation: none;
    }
}
