/* Carrusel básico manual */
.fg-oc-wrapper {
    width: 100%;
    margin: 20px auto;
    position: relative;
    max-width: 1200px;
}

.fg-oc-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.fg-oc-controls {
    display: flex;
    align-items: center;
    position: relative;
}

.fg-oc-prev, .fg-oc-next {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
}

.fg-oc-prev:hover, .fg-oc-next:hover {
    background: #555;
}

.fg-oc-viewport {
    overflow: hidden;
    width: 100%;
}

.fg-oc-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

/*.fg-oc-item {
    flex: 0 0 calc(100% / 4);
    box-sizing: border-box;
    text-align: center;
}*/
.fg-oc-list[data-columns] .fg-oc-item {
    flex: 0 0 calc(100% / var(--fg-cols));
}

.fg-oc-list {
    --fg-cols: 4; /* valor por defecto */
}

.fg-oc-image img {
    width: 100%;
    border-radius: 8px;
}

.fg-oc-sale-badge {
    position: absolute;
    background: red;
    color: #fff;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    top: 10px;
    left: 10px;
}

.fg-oc-meta {
    margin-top: 10px;
}

/* Hace que el botón sea un slide completo dentro del carrusel */
.fg-oc-item.fg-oc-ver-todas {
    flex: 0 0 calc(100% / var(--fg-cols)) !important; /* Igual ancho que un producto */
    max-width: calc(100% / var(--fg-cols)) !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Apariencia del botón */
.fg-oc-ver-todas-content {
    background: #f5f5f5;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
}

.fg-oc-ver-todas-link {
    text-decoration: none;
    display: block;
    width: 100%;
}


/* Responsive: ajustar columnas según data-columns */
@media (max-width: 900px) {
    .fg-oc-item { flex: 0 0 calc(100% / 2); }
}
@media (max-width: 480px) {
    .fg-oc-item { flex: 0 0 100%; }
}

/* Hover animado para cada tarjeta */
.fg-oc-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fg-oc-item:hover {
    transform: scale(1.04);
    box-shadow: 0px 8px 18px rgba(0,0,0,0.15);
    z-index: 5;
}


