/* =========================
   CATALOG.CSS (OVERRIDES)
   ========================= */

/* Asegura que el main use buen ancho y padding */
.catalog-page .catalog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(16px, 4vw, 40px);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Layout general del catálogo (si shop.css mete algo raro) */
.catalog-page .catalog-layout {
    width: 100%;
}

/* Mobile: sidebar arriba y grid abajo + padding correcto */
@media (max-width: 768px) {
    .catalog-page .catalog-container {
        max-width: none;
        margin: 0;
        padding-inline: 16px;
    }

    .catalog-page .catalog-layout {
        display: block !important;
    }

    .catalog-page .catalog-sidebar {
        width: 100% !important;
        margin-bottom: 24px;
    }

    .catalog-page .catalog-sidebar .sidebar-section {
        width: 100%;
    }

    .catalog-page .filter-dropdown {
        width: 100%;
    }
}

/* =========================
   FIX DETALLES / COMPRAR
   ========================= */

/* contenedor de acciones: 2 columnas */
.catalog-page .product-actions-grid,
.catalog-page .product-card__actions,
.catalog-page .card-actions {
    display: flex !important;
}

/* cada acción: icono + texto en una sola línea */
.catalog-page .product-actions-grid a,
.catalog-page .product-actions-grid button,
.catalog-page .product-card__actions a,
.catalog-page .product-card__actions button,
.catalog-page .card-actions a,
.catalog-page .card-actions button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* iconos: forzar inline-flex para que no salten arriba */
.catalog-page .product-actions-grid i,
.catalog-page .product-actions-grid svg,
.catalog-page .product-actions-grid img,
.catalog-page .product-actions-grid .icon,
.catalog-page .product-actions-grid .fa,
.catalog-page .product-actions-grid .material-icons,
.catalog-page .product-actions-grid .material-symbols-outlined,
.catalog-page .product-card__actions i,
.catalog-page .product-card__actions svg,
.catalog-page .product-card__actions img,
.catalog-page .product-card__actions .icon,
.catalog-page .product-card__actions .fa,
.catalog-page .product-card__actions .material-icons,
.catalog-page .product-card__actions .material-symbols-outlined,
.catalog-page .card-actions i,
.catalog-page .card-actions svg,
.catalog-page .card-actions img,
.catalog-page .card-actions .icon,
.catalog-page .card-actions .fa,
.catalog-page .card-actions .material-icons,
.catalog-page .card-actions .material-symbols-outlined {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Si el icono viene por pseudo-elemento (muy común) */
.catalog-page .product-actions-grid a::before,
.catalog-page .product-card__actions a::before,
.catalog-page .card-actions a::before {
    vertical-align: middle !important;
}

/* Button Icon Styles */
.btn-grid-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-grid-action .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-eye {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

/* Download Catalog Button */
.btn-download-catalog {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color, #1a1a1a);
    color: var(--bg-color, #ffffff);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--primary-color, #1a1a1a);
}

.btn-download-catalog:hover {
    background-color: transparent;
    color: var(--primary-color, #1a1a1a);
    transform: translateY(-2px);
}