/**
 * Shop CSS - Styling pro produktové karty obchodu
 * Respektuje zlatou vizuální identitu (--brand, --brand-ink)
 * Kompatibilní s existujícím assets/style.css
 */

/* ========== PRODUKTOVÁ MŘÍŽKA ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

/* Responsivní layout */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========== PRODUKTOVÁ KARTA ========== */
.product-card {
    background: var(--card);
    border: 1px solid rgba(160, 123, 66, 0.2);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(160, 123, 66, 0.5);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(160, 123, 66, 0.15);
    transform: translateY(-4px);
}

/* ========== HERO OBRÁZEK ========== */
.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg2) 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ========== OBSAH KARTY ========== */
.product-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand);
    line-height: 1.3;
}

/* ========== KOMPONENTY ========== */
.product-components {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 14px 0;
}

.component-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
    transition: all 0.2s ease;
}

.component-tag:hover {
    background: var(--bg2);
    border-color: var(--brand);
    color: var(--brand);
}

/* ========== HRY A FPS ========== */
.product-games {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding: 10px;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.game-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 0;
    flex-shrink: 0;
}

.game-badge:hover {
    border-color: var(--brand);
    background: var(--card);
    transform: translateY(-1px);
}

.game-badge.placeholder .game-icon-placeholder {
    background: linear-gradient(135deg, var(--border) 0%, var(--surface) 100%);
    opacity: 0.3;
}

/* Ikonka hry */
.game-icon {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg2);
    flex-shrink: 0;
}

.game-icon-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* Název hry */
.game-name {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* FPS */
.game-fps {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========== TLAČÍTKO OBJEDNAT ========== */
.product-order-btn {
    width: 100%;
    margin-top: auto;
    padding: 12px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-start) 0%, var(--brand) 50%, var(--brand-end) 100%);
    color: var(--bg);
    font-weight: 600;
    border-radius: var(--button-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.product-order-btn:hover {
    background: var(--brand-hover);
    box-shadow: 0 0 20px var(--brand-glow);
    transform: translateY(-2px);
}

/* ========== PRÁZDNÝ STAV ========== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
}

/* ========== RESPONSIVNÍ ÚPRAVY ========== */
@media (max-width: 600px) {
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 14px;
    }
    
    .product-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .component-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .product-games {
        gap: 5px;
        padding: 8px;
    }
    
    .game-badge {
        gap: 5px;
        padding: 3px 6px;
    }
    
    .game-icon,
    .game-icon-placeholder {
        width: 20px;
        height: 20px;
    }
    
    .game-name {
        font-size: 0.7rem;
    }
    
    .game-fps {
        font-size: 0.75rem;
    }
}
