/**
 * Steam XMR Store - Comprehensive CSS Fixes
 * Version: 2.0.0 (July 26, 2025)
 * 
 * This file contains a complete set of fixes for:
 * 1. Responsive design
 * 2. Mobile product display
 * 3. Expandable purchases
 * 4. Pagination
 * 5. General layout improvements
 */

/* ===== Global Fixes ===== */

/* Hide all header texts per requirement */
.products_list_header {
    display: none !important;
}

/* Product name alignment fixes */
.product_name,
.expandable_product_name {
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 10px !important;
}

.product_title {
    text-align: left !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Expansion indicators */
.expandable_product_name:after {
    content: '+' !important;
    position: absolute !important;
    right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important; 
    width: 20px !important;
    height: 20px !important;
}

.expand_trigger:checked ~ .product_item_list .expandable_product_name:after {
    content: '−' !important;
}

/* ===== Purchases Page Styles ===== */
.purchases_grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 15px !important;
}

.purchase_item {
    border-radius: 3px !important;
    background: linear-gradient(135deg, rgba(42, 71, 94, 0.4) 0%, rgba(42, 71, 94, 0.2) 100%) !important;
    border-bottom: 1px solid rgba(199, 213, 224, 0.1) !important;
    margin-bottom: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.purchase_item:hover {
    background: linear-gradient(135deg, rgba(42, 71, 94, 0.5) 0%, rgba(42, 71, 94, 0.3) 100%) !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .product_name,
    .expandable_product_name {
        padding-left: 5px !important;
    }
    
    .products_list_header span:nth-child(3) {
        padding-left: 5px !important;
    }
    
    /* Asegurar que los botones BUY y LOGIN son consistentes */
    .btn_buy, 
    .login_btn {
        min-width: auto !important;
        width: auto !important;
        font-size: 11px !important;
        padding: 5px 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Mejorar los efectos al expandir filas */
.expand_trigger:checked ~ .product_item_list {
    background: rgba(42, 71, 94, 0.5) !important;
}

/* Asegurar contraste y visibilidad */
.product_title {
    color: #c7d5e0 !important;
}

.expand_trigger:checked ~ .product_item_list .product_title {
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Botón de retorno para páginas de error */
.return_btn {
    margin-top: 15px !important;
    display: inline-block !important;
    padding: 8px 20px !important;
    background: linear-gradient(to bottom, #4b6b8d 5%, #2a4763 95%) !important;
    border: none !important;
    border-radius: 2px !important;
    color: #c7d5e0 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.return_btn:hover {
    background: linear-gradient(to bottom, #5b7a9c 5%, #3a5773 95%) !important;
    color: #ffffff !important;
}

/* Estilos trasladados desde store.php */
/* Product number simplification - show only numbers */
.product_number {
    font-family: Arial, sans-serif !important; /* Remove monospace font */
    background: none !important; /* Remove background */
    color: #ffffff !important; /* Regular color */
}

/* Make all products clickable */
.product_item_list {
    cursor: pointer !important;
    position: relative !important;
}

/* Unify styles for all devices */
.expandable_product_name {
    width: 100% !important;
    cursor: pointer !important;
}

/* Store layout fixes */
.store_main_content {
    width: 100% !important;
    max-width: 100% !important;
}

.store_info {
    width: 100% !important;
}

.total_products {
    text-align: center !important;
    width: 100% !important;
}
/**
 * Final CSS Fix - Apply at the end to ensure consistent styling
 * Version: 1.0.0 (2025-07-26)
 */

/* Fix for product alignment across all screens */
.product_name {
    text-align: left !important;
    justify-content: flex-start !important;
}

.product_title {
    text-align: left !important;
}

/* Fix for header alignment */
.products_list_header span:nth-child(3) {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Mobile fixes */
@media (max-width: 768px) {
    .product_name {
        text-align: left !important;
        padding-left: 5px !important;
    }
    
    .products_list_header span:nth-child(3) {
        text-align: left !important;
        padding-left: 5px !important;
    }
}
