/* Catalogo Page Styles */

.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-container {
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.image-container img {
    display: block;
}

.game-card:hover .image-container img {
    transform: scale(1.05);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.price-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
}

.opcion-consola {
    border: 2px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2a2a2a;
    color: #fff;
}

.opcion-consola:hover {
    border-color: #007bff;
    background: #333;
}

.opcion-consola.selected {
    border-color: #007bff;
    background: #333;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    position: relative;
}

.opcion-consola.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
}

.opcion-consola.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
    background: #1a1a1a;
}

.precio-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

.precio-descuento {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

/* Gift Card Styles */
.gift-card-item {
    border: 2px solid #28a745 !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2) !important;
    transition: all 0.3s ease;
}

.gift-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3) !important;
}

.gift-card-item .card-body {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
}

.gift-card-item .btn-success {
    background: linear-gradient(135deg, #20c997, #1abc9c);
    border: none;
    font-weight: bold;
}

.gift-card-item .btn-success:hover {
    background: linear-gradient(135deg, #1abc9c, #17a2b8);
    transform: translateY(-1px);
}

/* Sobrescribir colores verdes globalmente para mejor visibilidad */
.text-success {
    color: #20c997 !important; /* Verde más claro */
}

.btn-success {
    background-color: #20c997 !important;
    border-color: #20c997 !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #1abc9c !important;
    border-color: #1abc9c !important;
}

.bg-success {
    background-color: #20c997 !important;
}

.badge.bg-success {
    background-color: #20c997 !important;
}

/* Paginación Styles */
.pagination {
    gap: 5px;
}

.pagination .page-link {
    color: #fff;
    background-color: #2a2a2a;
    border: 1px solid #444;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #1a1a1a;
    border-color: #333;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Estilo para los controles de primera/última página */
.pagination .page-link i {
    font-size: 0.9em;
}