/* 
 Theme Name:   Ducatibox Child Theme
 Theme URI:    https://mgautoelevadores.com.ar
 Description:  Ducatibox personalizado
 Author:       c2720600
 Author URI:   https://mgautoelevadores.com.ar
 Template:     ducatibox
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/

.achatadas img {
	object-fit: contain !important;
	background-color: white;
}

/* PANEL */
.pxl-side-cart .pxl-hidden-template-wrap {
    width: min(420px, 95vw) !important;
    box-sizing: border-box;
	padding: 0; 
}


/* CADA PRODUCTO */
.pxl-side-cart .elementor-menu-cart__product {
    display: grid !important;
    grid-template-columns: 80px 1fr 20px;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    align-items: center;
    padding: 15px 0;
		margin-bottom:20px;
    border-bottom: 1px solid #eee;
}

/* IMAGEN */
.pxl-side-cart .elementor-menu-cart__product-image {
    grid-row: 1 / span 2;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón de registro */
.um input[type="submit"].um-button {
    background-color: #ff9f38;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    transition: all .3s ease;
    cursor: pointer;
		width: 100%;
}



/* Al pasar el mouse */
.um input[type="submit"].um-button:hover {
    background-color: #5548e0;
    transform: translateY(-2px);
}

/* Al hacer clic */
.um input[type="submit"].um-button:active {
    transform: translateY(0);
}

.pxl-side-cart .elementor-menu-cart__product-image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
}

/* NOMBRE */
.pxl-side-cart .elementor-menu-cart__product-name {
    margin: 0 !important;
}

.pxl-side-cart .elementor-menu-cart__product-name a {
    font-size: 14px;
    line-height: 1.3;
    display: block;
    text-decoration: none;
}

/* PRECIO */
.pxl-side-cart .elementor-menu-cart__product-price {
    font-size: 14px;
    margin: 0 !important;
}

/* BOTON X */
.pxl-side-cart .product-remove {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
}


.pxl-side-cart .elementor-menu-cart__footer-buttons {
		margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pxl-side-cart .elementor-menu-cart__footer-buttons a {
    width: 100%;
    text-align: center;
}

.elementor-kit-7 {
	font-weight:bold;
	
}

a {
    color: #EB7D2F;
}





//categorias

/* Caja general */
.widget_wpcategorieswidget .widget-content {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
}

/* Título */
.widget_wpcategorieswidget .widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}


/* Items */
.widget_wpcategorieswidget .cat-item {
    padding: 3px 0;
}

.widget_wpcategorieswidget .cat-item > a {
    display: inline-block !important;
    padding-right: 28px; 
	  color: #422873;
}

.widget_wpcategorieswidget .cat-item > a {
    transition: transform 0.5s ease;
}

.widget_wpcategorieswidget .cat-item > a:hover {
    transform: translateX(10px);
}


/* Subcategorías */
.widget_wpcategorieswidget .children .cat-item {
    padding: 10px 0;
		margin-left: 30px;
    border-bottom: none;
}

.widget_wpcategorieswidget .pxl-count {
    margin-left: 6px;
    position: static !important;
    float: none !important;
	
}

/* childrend*/
.cat-have-child ul.children {
		background-color: #ffffff;
}


/* Botón de registro */
.um .um-col-alt {
    width: 100% !important;
    max-width: 100% !important;
}

.um input[type="submit"].um-button,
.um .um-button {
    width: 100% !important;
    display: block !important;
}

/* Al pasar el mouse */
.um input[type="submit"].um-button:hover {
    background-color: #fca74c;
    transform: translateY(-2px);
}

/* Al hacer clic */
.um input[type="submit"].um-button:active {
    transform: translateY(0);
}

/* --- Arreglo de alineación vertical de la flechita del Select2 --- */
.select2-container .select2-selection--single {
    height: 100% !important;
    display: flex;
    align-items: center;
}


/* --- Color hover de las opciones del dropdown: naranja rgb(255,183,56) --- */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: rgb(255, 183, 56) !important;
    color: #fff !important;
}

/* Opcional: si querés que la opción ya seleccionada también tenga un tono relacionado */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(255, 183, 56, 0.15);
}

.woocommerce-checkout-review-order-table tr td,
.woocommerce-checkout-review-order-table tr th {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
    padding-top: 10px;
    padding-bottom: 10px;
}

.woocommerce-checkout-review-order-table .cart-item td.product-name {
    line-height: 1.4 !important;
    white-space: normal !important;
}

.woocommerce-checkout-review-order-table tfoot tr th,
.woocommerce-checkout-review-order-table tfoot tr td {
    position: static !important;
    top: auto !important;
}

/*----------------- CORRECION DE DESBORDE DEL CARRITO -------------------*/

/* Contenedor del panel: que no permita overflow horizontal */
.pxl-side-cart.pos-right {
    width: 380px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Todos los hijos directos deben respetar el ancho del padre */
.pxl-side-cart.pos-right * {
    box-sizing: border-box;
}

/* El wrap interno no debe exceder el ancho */
.pxl-hidden-template-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Los items del carrito: evitar que imagen + texto sumen más que el ancho disponible */
.elementor-menu-cart__product {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.elementor-menu-cart__product-image img {
    max-width: 60px;
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

/* Texto del producto: que se ajuste, no que empuje el ancho */
.elementor-menu-cart__product-details,
.elementor-menu-cart__product a {
    min-width: 0;
    flex: 1 1 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Botones: 100% del ancho disponible, nunca más */
.pxl-panel-header,
.pxl-panel-content,
.woocommerce-mini-cart__buttons,
.woocommerce-mini-cart__total {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.woocommerce-mini-cart__buttons a.button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}  

/*-------------------PERFIL-----------------*/

.um-button{
	background-color: rgb(235, 125, 47) !important
}

.um-account-link{
	background-color:white;
}

/*------------- ARCHIVE --------------------*/

/* Tarjeta del producto */
.elementor-products-grid ul.products.elementor-grid li.product {
    display: flex !important;
    padding: 1em !important;
}

/* Contenedor interno */
.woocommerce .woocommerce-product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Cabecera (imagen) */
.woocommerce .woocommerce-product-inner .woocommerce-product-header {
    margin-bottom: 1em;
}

/* Contenido de la tarjeta */
.woocommerce .woocommerce-product-inner .woocommerce-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 0 !important;
}

/* Imagen */
.woocommerce ul.products li.product a img {
    height: 220px !important;
}

.price{
	justify-content: end !important;
}

/* Select personalizado */
.nice-select,
.nice-select .current,
.nice-select .list .option {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Bloque de precio */
.woocommerce ul.products li.product .price,
.woocommerce-product-content .price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: auto !important;
    width: 100% !important;
    height: 100%;
}

/* Precio anterior */
.woocommerce ul.products li.product .price del,
.woocommerce-product-content .price del {
    order: 1 !important;
    font-size: 0.6em !important;
    opacity: 0.6 !important;
    color: #eb7d2f;
}

/* Precio actual */
.woocommerce ul.products li.product .price ins,
.woocommerce-product-content .price ins {
    order: 2 !important;
    margin-top: 2px;
    text-decoration: none !important;
    font-size: 0.9em !important;
    font-weight: bold !important;
}

.span .woocommerce-Price-amount .amount{
	color:#eb7d2f;
}

.mas-impuestos{
	font-size: 0.8em !important;
}

/* Texto "Impuestos incluidos" o "más impuestos" */
.woocommerce ul.products li.product .mas-impuestos,
.woocommerce-product-content .mas-impuestos {
    order: 3 !important;
    display: block;
    margin-top: none;
    font-size: 0.6em;
    color: #999;
    font-weight: normal;
}


/*------------------- MARGENES LATERALES DE LA FILA DE CATEGORIAS -----------------------*/

section.elementor-element-aa3d10d {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
section.elementor-element-aa3d10d > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/*------------------- FIX BOTÓN MENÚ MÓVIL vs WHATSAPP -----------------*/

@media (max-width: 767px) {


  /* El widget de WhatsApp (Join.chat) siempre abajo del todo */
  #joinchat {
    z-index: 9999 !important;
    bottom: 20px !important;
    right: 20px !important;
  }
}

/*------------------- ACHICAR LOGO EN MOBILE -----------------*/

@media (max-width: 767px) {

  .pxl-header-branding img {
    max-width: 70vw !important;   /* ajustá este número hasta que te guste el tamaño */
    height: auto !important;
    width: auto !important;
  }

  /* Si el logo sigue empujando o el header queda muy alto, achicamos también el contenedor */
  #pxl-header-main img {
    max-width: 70vw !important;   /* ajustá este número hasta que te guste el tamaño */
    height: auto !important;
    width: auto !important;
  }

	/*correccion de imagenes*/
  .pxl-header-branding {
    display: flex !important;
    align-items: center !important;
  }


  .elementor-element-9f55820 {
    display: none !important;
  }

	.elementor-element-2152c64{
		margin-top: 170px;
	}

	.elementor-element-873a328{
		display: none !important;
	}

	.  /* La celda "Cantidad" pasa a ser una fila flex: label a la izquierda, spinner a la derecha */
  .shop_table_responsive td.product-quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* El spinner en sí, pegado del todo a la derecha */
  .shop_table_responsive td.product-quantity .quantity {
    margin-left: auto !important;
    justify-content: flex-end !important;
  }
}

/*----------- CARRITO -----------*/
.woocommerce-Price-amount bdi {
    font-weight: bold;
}

.woocommerce table.shop_table_responsive tbody th::before,
.woocommerce table.shop_table_responsive tbody td::before {
    color: #000000;
}

.cart-subtotal bdi {
	font-weight: bold;
	color: black;
}

.woocommerce-Price-amount.amount > bdi {
   font-weight: bold;
}