/* 
    DomoTechStore - Estilos específicos para Categorías
    Controla el layout de productos y elementos SEO
*/

/* Cabecera de Categoría */
.category-header {
    background-color: #f0f4f8;
    padding: 60px 0;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.category-header h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid de Productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Tarjeta de Producto */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 220px;
    background-color: #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    background-image: linear-gradient(45deg, #f5f5f5 25%, #e5e5e5 25%, #e5e5e5 50%, #f5f5f5 50%, #f5f5f5 75%, #e5e5e5 75%, #e5e5e5 100%);
    background-size: 20px 20px;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--dark);
    flex-grow: 0;
}

.product-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1; /* Empuja el precio y botón hacia abajo */
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-card .btn {
    width: 100%;
    text-align: center;
}

/* Nuevos estilos semánticos para renderAutosuficiente */
.product-card__no-results {
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.6;
}

.product-card__badge {
    background: #ff4747;
    color: white;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    display: inline-block;
    margin-bottom: 10px;
}

.product-card__icon {
    font-size: 3.5rem;
    text-align: center;
    margin: 20px 0;
}

.product-card__title {
    margin-bottom: 10px;
}

.product-card__description {
    font-size: 0.9rem;
    color: #94a3b8;
    min-height: 60px;
}

.product-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.product-card__prices {
    display: flex;
    flex-direction: column;
}

.product-card__price-old {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: line-through;
}

.product-card__price-current {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ff4747;
}

.product-card__shipping {
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 700;
    background: rgba(16,185,129,0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.product-card__button {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #ff4747, #ff8c00);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 800;
    text-decoration: none;
}

.product-card__button:hover {
    filter: brightness(1.1);
}

/* Bloque de Texto SEO */
.seo-text {
    margin-top: 80px;
    padding: 40px;
    background: var(--light);
    border-radius: 15px;
    border-left: 5px solid var(--primary);
}

.seo-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.seo-text p {
    margin-bottom: 15px;
    color: var(--text);
}

.seo-text p:last-child {
    margin-bottom: 0;
}