/**
 * Product Grouper — miniatura (selects de familia + fila de compra).
 * El ajuste fino de marca puede sobrescribirse en el custom.css del tema.
 */

/* Ocultar el botón de compra nativo del tema en tarjetas de familia:
   el widget renderiza su propia fila de compra ligada al hermano elegido. */
.js-product-miniature .pgm ~ .product-add-cart {
    display: none !important;
}

.pgm-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.pgm-field {
    flex: 1 1 0;
    min-width: 0;
}

.pgm-select {
    display: block;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #D9D9D9;
    border-radius: 40px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23502C1E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: #502C1E;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 11px 34px 11px 18px;
    cursor: pointer;
    text-overflow: ellipsis;
}

.pgm-select:focus,
.pgm-select:focus-visible {
    outline: none;
    border-color: #502C1E;
}

/* Fila de compra: hereda el pill del touchspin y el botón del tema (custom.css).
   Aquí solo aseguramos el layout. */
.pgm-cart .input-group-add-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}
