/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #08080a;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Category styles */
.category-section {
    margin: 48px 0;
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #141519;
    color: #f1d3ed;
    letter-spacing: -0.3px;
}

/* --- Grid Container --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* --- Card Principal --- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 460px;
    padding: 0;
    overflow: hidden;
    
    background: #08080a; 
    border: 1px solid #1c1d22;
    border-radius: 20px;
    
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Hover do Card --- */
.product-card:hover {
    border-color: #2b2c35;
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7), 
                0 0 0 1px rgba(145, 63, 255, 0.1);
}

/* --- Imagem de Fundo --- */
.product-card img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: calc(100% - 85px); 
    object-fit: cover;
    opacity: 0.85;
    
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.3s ease;
}

/* --- Hover da Imagem --- */
.product-card:hover img {
    transform: scale(1.03);
    opacity: 0.95;
}

/* --- Overlay de Esgotado --- */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 85px);
    background: rgba(8, 8, 10, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    pointer-events: none;
}

.product-card.out-of-stock:hover img {
    transform: none;
    opacity: 0.85;
}

/* --- Badges Superiores --- */
.card-badges-left {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-oferta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    
    background: #ef4444;
    color: #ffffff;
    border-radius: 6px;
    
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-oferta .arrow-left {
    width: 0; 
    height: 0; 
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
    border-right: 4.5px solid #ffffff;
}

.badge-digital {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #ffffff;
    
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.68rem;
    font-weight: 600;
}

.badge-digital .dot-blue {
    width: 5px;
    height: 5px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00f0ff;
}

.badge-esgotado {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    
    background: #1c1d22;
    color: #9496a1;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    
    font-size: 0.68rem;
    font-weight: 700;
}

.card-badge-right {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
}

.icon-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #eeeeee;
    
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Conteúdo Sobreposto --- */
.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 20px 18px 18px 18px;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    
    background: linear-gradient(to top, 
        #08080a 0%,
        #08080a 85px, 
        rgba(8, 8, 10, 0.98) 145px,
        rgba(8, 8, 10, 0.4) 220px,
        transparent 100%
    );
}

.platform-tag {
    margin-bottom: 6px;
    color: #bfa0ff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.product-card h3 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.product-card.out-of-stock .platform-tag,
.product-card.out-of-stock h3,
.product-card.out-of-stock .price {
    opacity: 0.5;
}

/* --- Bloco de Preço --- */
.price-row-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.product-card .price {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.badge-flash {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    
    color: #00ff87;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- Botão de Ação --- */
.product-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    
    background: linear-gradient(135deg, #913fff 0%, #772ed4 100%);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(145, 63, 255, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card .btn:not(.btn-disabled):hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(145, 63, 255, 0.4);
    transform: translateY(-1px);
}

.product-card .btn:not(.btn-disabled):active {
    transform: scale(0.97);
}

/* Estilo do Botão Esgotado desativado */
.product-card .btn.btn-disabled {
    background: #141519;
    color: #4c4e59;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1rem;
    opacity: 0.95;
}

.btn-disabled .btn-icon {
    opacity: 0.3;
}