/*Aside*/
aside.single-product {
    position: sticky;
    top: 15vh;
}
aside.single-product .widget_product_categories {
    margin: 0;
}
aside.single-product .widget_black_studio_tinymce p {
    padding: 0 1rem;
}
aside.widget-area h2.widget-title {
    color: var(--theme-color-2);
}
aside.widget-area ul.product-categories {
    padding: 0;
    margin: 0;
    list-style: none;
}
aside.widget-area ul.product-categories li {
    border-bottom: 1px solid #cccccc7d;
    line-height: 3;
}
aside.widget-area ul.product-categories li a {
    color: #777;
    line-height: 2;
    transition: .3s ease;
}
aside.widget-area ul.product-categories li a:hover {
    color: var(--theme-color-1);
    padding-left: 5px;
}
aside.widget-area section {
    background: #f8f8f8;
    padding: 1rem;
}
aside.widget-area ul.product-categories li a:before {
    content: "";
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 30px;
    display: inline-block;
    margin: 0px 10px -10px 0px;
}
aside.widget-area ul.product-categories li a:hover:before {
    filter: invert(13%) sepia(88%) saturate(4105%) hue-rotate(181deg) brightness(93%) contrast(101%);
}

aside.widget-area ul.children li:nth-child(1) a:before {
    background-image: url(img/img-categoria/servilleta.svg);
}
aside.widget-area ul.product-categories li.cat-item-63 a:before {
    background-image: url(https://misurbas.com.pe/wp-content/uploads/2020/03/hogar.png);
    background-size: contain;
    filter: grayscale(1);
}
aside.widget-area ul.product-categories li.cat-item-67 a:before {
    background-image: url(img/img-categoria/javon-liquido.svg);
}
aside.widget-area ul.product-categories li.cat-item-68 a:before {
    background-image: url(img/img-categoria/dispensador-jabon.svg);
}
aside.widget-area ul.product-categories li.cat-item-69 a:before {
    background-image: url(img/img-categoria/papel-jumbo.svg);
}
aside.widget-area ul.product-categories li.cat-item-70 a:before {
    background-image: url(img/img-categoria/dispensador-papel-toalla.svg);
}
aside.widget-area ul.product-categories li.cat-item-64 a:before {
    background-image: url(img/img-categoria/servilleta.svg);
}
aside.widget-area ul.product-categories li.cat-item-65 a:before {
    background-image: url(img/img-categoria/papel-toalla.svg);
}
aside.widget-area ul.product-categories li.cat-item-59 a:before {
    background-image: url(img/img-categoria/productos-institucionales.svg) !important;
    background-size: contain;
    filter: grayscale(1);
}

aside.widget-area ul.product-categories li.cat-item-66 a:before {
    background-image: url(img/img-categoria/papel-higienico.svg) !important;
}

aside.widget-area section span.count {
    float: right;
    color: var(--theme-color-2);
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--theme-color-1);
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--theme-color-2);
}
.woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item a, .woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item span {
    color: var(--theme-color-2);
}
.woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item a:hover {
    color: var(--theme-color-1);
    padding-left: 5px;   
}
.woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item--chosen a::before {
    color: var(--theme-color-1);
}
aside.widget-area section.widget_media_image {
    padding: 0;
}
aside.widget-area section.widget_media_image img {
    width: 100%;
}
/*Tienda*/
.woocommerce ul.products li.product .button {
    margin: 0px 10px;
    padding: 8px 6px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #000;
    font-weight: 500;
    transition: .3s ease;
}
.woocommerce ul.products li.product .quantity .qty {
    width: 40px;
    text-align: center;
    background: transparent;
    border-radius: 0;
}
.woocommerce ul.products li.product .yith-wcqv-button {
    border-radius: 0 10px 10px 0;
}
.woocommerce ul.products li.product .button:before {
    content: "";
    background-image: url(img/whatsapp.svg);
    background-size: 20px;
    background-repeat: no-repeat;
    width: 23px;
    height: 27px;
    display: inline-block;
    margin: 0px 5px -12px 0px;
    transition: .3s ease;
}
.woocommerce ul.products li.product .yith-wcqv-button:hover:before {
    filter: invert(45%) sepia(83%) saturate(2965%) hue-rotate(347deg) brightness(97%) contrast(94%);
}
/* Spin Buttons modified */
.woocommerce ul.products li.product input[type="number"]::-webkit-outer-spin-button, 
.woocommerce ul.products li.product input[type="number"]::-webkit-inner-spin-button {
    opacity: .8; /* shows Spin Buttons per default (Chrome >= 39) */
}
.woocommerce a.added_to_cart {
    display: none;
}
.woocommerce ul.products li.product .wc-buttons .cart,
.woocommerce ul.products li.product .wc-buttons {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.woocommerce ul.products li.product .wc-buttons .cart {
    background: #f0f0f0;
    border-radius: 10px 0px 0px 10px;
}
.woocommerce ul.products li.product .wc-buttons .add_to_cart_button {
    border-radius: 10px 0px 0px 10px;
}
.woocommerce ul.products li.product .wc-buttons .add_to_cart_button:before {
    content: "";
    background-image: url(img/whatsapp.svg);
    background-size: 16px;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: -5px 5px -4px 0px;
    transition: .3s ease;
}
.woocommerce ul.products li.product .wc-buttons .add_to_cart_button:hover:before {
    filter: invert(51%) sepia(97%) saturate(325%) hue-rotate(77deg) brightness(94%) contrast(95%);
}
.woocommerce ul.products li.product .wc-buttons .add_to_cart_button {order: 1;}
.woocommerce ul.products li.product .wc-buttons .quantity {order: 2;}
.woocommerce ul.products li.product .wc-buttons .btn-details {order:3;}
.woocommerce ul.products li.product .wc-buttons .btn-info-wc {order:4;}
.woocommerce ul.products li.product .wc-buttons .content-info-wc {
    position: absolute;
    display: none;
    top: 30px;
    background: rgba(0, 0, 0, 0.45);
    padding: 10px;
    text-align: justify;
}
.woocommerce ul.products li.product .wc-buttons .content-info-wc p {
    margin-bottom: 0;
    color: white;
}
.woocommerce span.onsale {
    background-color: var(--theme-color-1);
}
.woocommerce .woocommerce-breadcrumb {
    margin: 1em 0px 1em;
}
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
    background-color: var(--theme-color-1);
}
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
    background-color: var(--theme-color-2);
}
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background-color: var(--theme-color-1);
    color: white;
    transition: .3s ease;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
    background-color: var(--theme-color-2);
    color: white;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    text-align: center;
    border: 0;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 5rem !important;
}
.woocommerce ul.products li.product #img-content-product {
    width: 100%;
    /*height: 150px;*/
    overflow: hidden;
    transition: .3s ease;
}
.woocommerce ul.products li.product #img-hover-product {
    height: 100%;
    transition: .3s ease;
}
.woocommerce ul.products li.product #img-hover-product:hover {
    /*transform: scale(1.5) rotate(-5deg);*/
}
.woocommerce ul.products li.product #img-hover-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: white;
    border-radius: 10px;
}
.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {
    color: var(--theme-color-1);
    font-size: 1em;
    transition: .3s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    padding-bottom: 0px;
    margin-bottom: .5rem;
    position: absolute;
    left: 0;
    bottom: -70px;
    right: 0;
    padding: 0 8px;
	 height: 50px;
}
.woocommerce ul.products li.product .woocommerce-loop-category__title:hover, .woocommerce ul.products li.product .woocommerce-loop-product__title:hover, .woocommerce ul.products li.product h3:hover {
    color: var(--theme-color-2);
}
.woocommerce ul.products li.product .price {
    color: #ED1C24;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 0;
    display: none;
}
.woocommerce .woocommerce-result-count {
    padding: 5px 0;
    color: var(--theme-color-2);
    display: none;
}
.woocommerce .woocommerce-ordering select {
    border: 2px solid var(--theme-color-2);
    padding: 5px;
    color: var(--theme-color-2);
    display: none;
}
.woocommerce-info {
    border-top-color: var(--theme-color-2);
    margin-top: 1rem;
}
.woocommerce-info::before {
    color: var(--theme-color-2);
}
/*Single*/
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    border: 1px solid #e1e1e1;
}
.prev_next_buttons a {
    background: var(--theme-color-1);
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    transition: .3s ease;
}
.prev_next_buttons a:hover {
    background: var(--theme-color-2);
}
.prev_next_buttons a:nth-child(1) {
    margin-right: 1rem;
}
.woocommerce div.product .product_title {
    color: var(--theme-color-1);
    font-size: 1.4rem;
    border-bottom: 1px solid #999999;
    padding-bottom: 10px;
    margin-bottom: 1rem;
}
.woocommerce div.product .woocommerce-product-details__short-description p {
    color: #808080;
}
/* Form de cotización del producto individual: stepper + botón Cotizar
   en una fila limpia. Los enlaces Anterior/Siguiente ya NO van aquí
   (se movieron fuera del form, ver .ozado-prev-next más abajo). */
.woocommerce div.product .entry-summary form.cart {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    position: static;
    border-top: 1px solid #e2e6ea;
    margin: 1rem 0 1.2rem;
    padding-top: 1.2rem;
}
/* Stepper: apuntamos a .qib-button-wrapper (hijo directo del form), NO a
   .quantity. El .quantity es el input que va DENTRO del stepper; ponerle
   order ahí desordenaba a "- + 1". Sin order, el HTML ya da "- 1 +". */
.woocommerce div.product .entry-summary form.cart .qib-button-wrapper {
    flex: 0 0 auto;
    margin: 0;
}
.woocommerce div.product .entry-summary form.cart .button {
    flex: 1 1 auto;
    background: var(--theme-color-1, #005b77) !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 0 !important;
    border-radius: 10px;
    padding: 12px 22px;
    text-transform: none;
    text-align: center;
    transition: background 0.15s ease;
}
.woocommerce div.product .entry-summary form.cart .button:hover {
    background: #003e51 !important;
    color: #ffffff !important;
}

/* Navegación Anterior / Siguiente producto: fila propia, fuera del form. */
.ozado-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 1.5rem;
}
.ozado-prev-next a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--theme-color-1, #005b77);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ozado-prev-next a:hover {
    background: #f4f6f8;
    border-color: var(--theme-color-1, #005b77);
    color: var(--theme-color-1, #005b77);
}
.ozado-prev-next a[rel="prev"]::before { content: "←"; }
.ozado-prev-next a[rel="next"] { margin-left: auto; }
.ozado-prev-next a[rel="next"]::after { content: "→"; }
.woocommerce div.product .product_meta {
    display: grid;
}
.woocommerce div.product .product_meta span.posted_in {
    border: 1px solid #bbb;
    padding: 5px;
    margin-bottom: 1rem;
    color: var(--theme-color-1);
}
.woocommerce div.product .product_meta .tagged_as {
    border: 1px solid #bbb;
    padding: 5px;
    color: var(--theme-color-1);
}
.related h2.title-related {
    margin-bottom: 2rem !important;
}
h1.page-title,
.related h2.title-related {
    font-size: 1.8rem;
    color: var(--theme-color-1);
    border-bottom: 1px solid #005b771f;
    margin-bottom: 0rem;
    text-align: center;
    padding-bottom: 10px;
}
.woocommerce div.product p.price, .woocommerce div.product span.price {
    color: var(--theme-color-2);
    font-size: 1.5em;
    display: none;
}
.woocommerce div.product .flex-viewport {
    border: 2px solid var(--theme-color-1);
}
.woocommerce div.product div.summary {
    background: #f8f8f8;
    padding: 1rem 2rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--theme-color-2);
    color: white;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom: 1px solid var(--theme-color-2);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before {
    box-shadow: 2px 2px 0 var(--theme-color-2);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
    box-shadow: -2px 2px 0 var(--theme-color-2);
}
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    border-bottom: 1px solid var(--theme-color-2);
}
.woocommerce table.shop_attributes {
    border-top: 1px solid var(--theme-color-2);
}

/*Cart*/
#continue-wsp {
    background: #25D366;
}
.product-subtotal,
.product-price {
    display: none;
}
#add_payment_method table.cart img, .woocommerce-cart table.cart img, .woocommerce-checkout table.cart img {
    width: 60px;
}
.woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals {
    display: none !important;
}
.cart_totals  h2 {
    color: var(--theme-color-1);
    margin-bottom: 20px !important;
    margin-top: 20px;
    text-align: center;
}
.woocommerce table.shop_table {
    border: 1px solid var(--theme-color-2);
}
.woocommerce table.shop_table td {
    border-top: 1px solid var(--theme-color-2);
}
.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th,
#add_payment_method .cart-collaterals .cart_totals tr td, #add_payment_method .cart-collaterals .cart_totals tr th, .woocommerce-cart .cart-collaterals .cart_totals tr td, .woocommerce-cart .cart-collaterals .cart_totals tr th, .woocommerce-checkout .cart-collaterals .cart_totals tr td, .woocommerce-checkout .cart-collaterals .cart_totals tr th {
    border-top: 1px solid var(--theme-color-2);
}
.woocommerce-message {
    border-top-color: var(--theme-color-2);
    margin-top: 1rem;
}
.woocommerce-message::before {
    color: var(--theme-color-2);
}
/*Checkout*/
.woocommerce-checkout h3 {
    color: var(--theme-color-1);
    font-size: 2em;
}
.woocommerce form .form-row {
    width: 100%;
}
span.woocommerce-input-wrapper {
    width: 100%;
}
span.woocommerce-input-wrapper input {
    padding: 10px;
}
.select2-container--default .select2-selection--single {
    height: 40px;
    padding: 7px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 7px;
}
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 1rem;
}
h2.woocommerce-column__title,
h2.woocommerce-order-details__title {
    color: var(--theme-color-1);
}
.woocommerce .woocommerce-customer-details address {
    border: 2px solid var(--theme-color-2);
    line-height: 2;
}
.woocommerce ul.order_details li {
    border-right: 2px dashed var(--theme-color-2);
}
.woocommerce .woocommerce-order p.woocommerce-thankyou-order-received {
    font-size: 2rem;
    text-align: center;
    color: var(--theme-color-1);
    font-weight: bold;
    margin-top: 1rem;
    border-bottom: 2px solid var(--theme-color-2);
    padding-bottom: 1rem;
}
.woocommerce ul.order_details {
    margin: 0 0 2em;
    list-style: none;
    border-bottom: 2px solid var(--theme-color-2);
    padding-bottom: 1rem;
}
.woocommerce form .form-row label {
    margin-bottom: 0;
}
/*My account*/
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--theme-color-1);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    list-style: none;
    padding: 1rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    color: white;
    transition: .3s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--theme-color-2);
}
.woocommerce-account .addresses .title h3 {
    color: var(--theme-color-1);
    border-bottom: 2px solid var(--theme-color-2);
}
.woocommerce form .password-input, .woocommerce-page form .password-input {
    width: 100%;
}
