.products-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 20;
}

.products-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00ffff;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    padding: 8px 16px;
    margin-bottom: 20px;
    transition: background-color 0.2s, color 0.2s;
}

.back-link:hover {
    background-color: #00ffff;
    color: #000;
}

/* ── Grid ─────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ── Card ─────────────────────────────────────── */
.product-card {
    background-color: rgba(0, 5, 5, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
    padding: 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.25), 0 0 50px rgba(0, 255, 255, 0.12);
}

.product-badge {
    width: 100%;
    background-color: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 14px;
    text-transform: uppercase;
    text-align: left;
}

/* ── Product image / icon fallback ────────────── */
.product-media {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-icon-fallback {
    font-size: 3.5rem;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Text ─────────────────────────────────────── */
.product-info {
    text-align: center;
    padding: 0 16px;
    flex: 1;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    line-height: 1.3;
}

.product-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ── CTA button ───────────────────────────────── */
.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #00ffff;
    border: 1px solid #00ffff;
    padding: 11px 24px;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    width: calc(100% - 32px);
    justify-content: center;
    margin-top: auto;
}

.product-btn:hover {
    background-color: #00ffff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.product-btn:active {
    transform: scale(0.98);
}

/* ── Skeleton loader ──────────────────────────── */
.skeleton {
    pointer-events: none;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

.skeleton-img {
    width: 100%;
    height: 180px;
    background: rgba(0, 255, 255, 0.07);
}

.skeleton-line {
    height: 12px;
    border-radius: 2px;
    background: rgba(0, 255, 255, 0.07);
    width: 75%;
    margin: 0 auto;
}

.skeleton-line.wide  { width: 85%; height: 14px; }
.skeleton-line.short { width: 55%; }

.skeleton-btn {
    width: calc(100% - 32px);
    height: 40px;
    background: rgba(0, 255, 255, 0.07);
    margin-top: auto;
}

/* ── Mobile ───────────────────────────────────── */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-page {
        padding: 15px;
    }

    .product-media {
        height: 160px;
    }
}
