/*
 Theme Name:   Hello commerce child
 Template:     hello-commerce
 Version:      1.0.0
*/

/* --- General --- */
strong, b {
    font-weight: 600 !important;
    color: inherit !important;
    text-shadow: none !important;
}

:focus-visible {
    outline: none !important;
}

/* --- Formularios web ---*/
.responsive-form {
    margin: 0 auto;
    width: 100%;
    color: #4A4947;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce form .form-row {
    width: 100%;
    margin-bottom: 0;
}

.woocommerce form .form-row p {
    margin-bottom: 0;
}

.woocommerce form .form-row::after, .woocommerce form .form-row::before, .woocommerce-page form .form-row::after, .woocommerce-page form .form-row::before {
    display: none;
}

.column-half, .column-full {
    float: left;
    position: relative;
    padding: 0.45rem;
    width: 100%;
    box-sizing: border-box;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.responsive-form input[type="text"],
.responsive-form input[type="email"],
.responsive-form .wpcf7-select {
    width: 100%;
    height: 45px!important; 
    border: 1px solid #4A4947;
    border-radius: 0!important;
    padding: 10px 14px;
    background: transparent !important;
    font-family: 'Montserrat', sans-serif;
    color: #4A4947;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.responsive-form .wpcf7-textarea {
    width: 100%;
    height: 110px !important;
    border: 1px solid #4A4947;
    border-radius: 0;
    padding: 10px 14px;
    background: transparent !important;
    font-family: 'Montserrat', sans-serif;
    color: #4A4947;
    box-sizing: border-box;
    overflow: auto;
    resize: vertical;
}

.responsive-form .wpcf7-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4947' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    padding-right: 40px; 
    cursor: pointer;
}

.responsive-form .checkbox-row span.wpcf7-list-item {
    margin: 0;
}

.responsive-form input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    background: transparent !important;
}

.submit-row {
    padding-top: 10px;
}

.label-text {
    margin-bottom: 10px!important;
}

.wpcf7-not-valid-tip {
    font-size: 14px!important;
}

.wpcf7-submit {
    width: 100% !important;
    background: #B17457 !important;
    border: 0px !important;
    font-weight: 400 !important;
    color: #fff !important;
    padding: 12px 24px!important;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.wpcf7-submit:hover {
    background: #A99280 !important;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border: none;
    background-color: #D9D2C2;
    padding: 10px;
}

@media only screen and (min-width: 48em) { 
    .column-half {
        width: 50%;
    }
}

/* --- WooCommerce Product Single --- */
.product .elementor-element ul {
    margin-bottom: 20px;
}
.woocommerce div.product div.images {
    margin-bottom: 0 !important;
}

@media(max-width: 768px) {
    .woocommerce-product-gallery,
    .woocommerce-product-gallery__wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .woocommerce-product-gallery .flex-control-thumbs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}
.woocommerce tbody tr th, .woocommerce table.variations th, .woocommerce tbody tr td, .woocommerce table.variations td {
	background-color: #FAF7F0!important;
}

/* Formulario de carrito */
.elementor-widget-woocommerce-product-add-to-cart form.cart,
.woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart form.cart,
.elementor-widget-wc-add-to-cart form.cart,
.woocommerce div.product .elementor-widget-wc-add-to-cart form.cart,
form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.woocommerce button.button.alt.disabled {
    background-color: rgb(177, 116, 87, 0.5) !important;
    opacity: 1!important;
}

.woocommerce div.product form.cart::after, 
.woocommerce div.product form.cart::before {
    display: none !important;
}

.woocommerce div.product form.cart .quantity {
    display: flex !important;
    align-items: center !important;
    order: 1 !important;
    gap: 5px !important;
    margin-bottom: 0 !important;
    margin-inline-end: 0!important;
}

.woocommerce div.product form.cart .pfcm-qty-suffix {
    order: 2 !important;
}

button.single_add_to_cart_button {
    flex-basis: 100% !important;
    order: 3 !important;
    margin-top: 20px !important;
    width: 100%;
}

.single-product.dialog-buttons-body .variations .label, .single-product.dialog-buttons-body .variations .value {
	background: none;
	padding: 0;
}

.single-product.dialog-buttons-body .variations .label label {
	font-family: Spectral, sans-serif;
	font-weight: 600!important;
	font-size: 24px;
	line-height: 28px;
	color: #4a4947;
}

.single_variation_wrap {
	width: 100%!important;
}

/* Estilos de botones */
.woocommerce div.product form.cart .button {
    margin-left: 0 !important;
    border: 1px solid #B17457 !important;
    color: #FFF !important;
    background-color: #B17457 !important;
}

.woocommerce div.product form.cart .button:hover {
    border: 1px solid #B17457 !important;
    color: #B17457 !important;
    background-color: transparent !important;
}

/* Responsive: Botón fijo en móvil */
@media (max-width: 768px) {
    .woocommerce div.product form.cart .button {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        z-index: 100 !important;
    }
}

/* --- Product "Tela" Quantity Slider --- */
.wc-quantity-slider-wrap {
    margin-bottom: 25px !important;
    width: 100% !important;
    max-width: 250px !important;
    height: 4px !important;
    border-radius: 4px !important;
}

.wc-quantity-range {
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 6px !important;
    background: #B1AEAC !important;
    border-radius: 15px !important;
    outline: none !important;
}

.wc-quantity-range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 13px !important;
    height: 13px !important;
    background: #B17457 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: none !important;
}

.wc-quantity-range::-moz-range-thumb {
    width: 13px !important;
    height: 13px !important;
    background: #B17457 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: none !important;
}

/* Ocultar elementos según tipo de producto */
.product-type-fabric_cm .generic-product-features, 
.product-type-fabric_cm #quantity-container, 
.product-type-fabric_cm .generic-product-add-btn {
    display: none !important;
}

.product-type-simple .specific-product-features, 
.product-type-simple .quantity, .product-type-variable .specific-product-features, 
.product-type-variable .quantity {
    display: none !important;
}

/* --- Product Archive --- */
.ue_checkbox_container {
    flex-direction: column !important;
}
.ue-range-wrapper .ue-range-num-input-wrapper {
  gap: 40px!important;
}
@media (max-width: 500px) {
	.uc-sort-filter {
		display: flex;
		flex-direction: column!important;
		align-items: flex-end!important;
	}
}

/* Products pagination */
.uc-posts-pagination {
	margin: 40px;
	justify-content: center;
}
.uc-posts-pagination .nav-links, .uc-posts-pagination {
	display: flex;
	flex-direction: row;
	justify-content: center;
}
.uc-posts-pagination .page-numbers {
	color: #4A4947;
	font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    font-weight: 400;
	width: 30px;
    height: 30px;
    border-radius: 20px;
    margin: 0px 10px 0px 0px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}
.uc-posts-pagination a.page-numbers:hover {
	color: #B17457;
}
.uc-posts-pagination .page-numbers.current {
	background-color: #B17457;
    color: #ffffff;
}


/* --- Woocommerce pages --- */
.woocommerce-MyAccount-content .title h2 {
    font-size: 18px!important;
    line-height: 22px!important;
    margin: 0!important;
}
.woocommerce-mini-cart__empty-message {
    font-size: 18px!important;
    line-height: 22px!important;
}

/* --- Tutoriales ---*/
/* Botón Principal */
.btn-ver-tutorial-prompt {
    display: inline-block;
    background-color: transparent;
    color: #b17457 !important;
    border: 1px solid #b17457;
    padding: 12px 30px;
    font-size: 15px;
    text-decoration: none !important;
    font-weight: 400;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-ver-tutorial-prompt:hover {
    background-color: #b17457;
    color: #ffffff !important;
}

/* Fondo oscuro del modal */
.tutorial-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Caja del contenido del modal */
.tutorial-modal-content {
    background: #fcfaf7;
    padding: 30px 25px;
    width: 100%;
    max-width: 400px;
    border-radius: 0px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Botón X para cerrar */
.tutorial-modal-close {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}
.tutorial-modal-close:hover {
    color: #4a4947;
}

.tutorial-modal-content .modal-title {
    margin-bottom: 15px;
    color: #4a4947;
    font-family: "Montserrat", Sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 22px;
}

/* Input del modal */
.tutorial-modal-content input[type="password"] {
    width: 100%;
    padding: 11px;
    margin-bottom: 15px;
    border: 1px solid #dcc6b9;
    border-radius: 0px;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    line-height: 16px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

/* Botón de validar del modal */
#btn-modal-validate {
    background-color: #b17457;
    color: white;
    border: none;
    padding: 11px 25px;
    border-radius: 0px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: background 0.2s;
}
#btn-modal-validate:hover {
    background-color: #925c42;
}

.woocommerce .qty[type=number] {
    width: fit-content;
}


.wc-quantity-range {
    width: 100% !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 6px !important;
    background: #B1AEAC !important;
    border-radius: 15px !important;
    outline: none !important;
}

.wc-quantity-range::-webkit-slider-runnable-track {
    height: 6px !important;
    overflow: hidden; 
    border-radius: 15px;
}

.wc-quantity-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px !important;
    width: 16px !important;
    border-radius: 50% !important;
    background: #B17457 !important;
    cursor: pointer;
    box-shadow: -407px 0 0 400px #B17457 !important;
}

.wc-quantity-range::-moz-range-progress {
    background-color: #B17457 !important;
    height: 6px !important;
    border-radius: 15px 0 0 15px !important;
}

.wc-quantity-range::-moz-range-thumb {
    height: 16px !important;
    width: 16px !important;
    border-radius: 50% !important;
    background: #B17457 !important;
    border: none !important;
    cursor: pointer;
}

/* --- Woocommerce --- */
/* Carrito */
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-name a, .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-price {
	font-size: 16px!important;
	line-height: 22px!important;
	color: #4A4947!important;
	font-weight: 400!important;
}
.elementor-menu-cart__subtotal {
	font-size: 16px;
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons  {
	display: flex;
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button {
	color: #B17457;
	border: 1px solid #B17457;
	background-color: rgba(255, 255, 255, 0);
	display: flex;
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button:hover {
	color: #FFF;
	background-color: #B17457;
}
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button span {
	font-size: 16px;
	line-height: 18px;
	font-weight: 400;
}
.woocommerce table:is(.shop_table,.shop_attributes), .woocommerce-cart .cart_totals table.shop_table>tbody tr:first-of-type>td, .woocommerce-cart .cart_totals table.shop_table>tbody tr:first-of-type>th, .woocommerce tbody>tr:nth-child(2n)>td, .woocommerce tbody>tr:nth-child(2n)>th {
	background: none!important;
}
.elementor-widget-woocommerce-cart .woocommerce a:not(.add_to_cart_button):not(.restore-item):not(.wc-backward):not(.wc-forward) {
	text-decoration: none;
	color: #4A4947!important;
}
.elementor-widget-woocommerce-cart .woocommerce a:not(.add_to_cart_button):not(.restore-item):not(.wc-backward):not(.wc-forward):hover {
	color: #B17457!important;
}

/* Checkout */
.wc-block-checkout__main input[type="text"], .wc-block-checkout__main input[type="email"], .wc-block-checkout__main select, .wc-block-checkout__main input[type="tel"] {
	height: 45px !important;
    border: 1px solid #4A4947;
    border-radius: 0 !important;
    padding: 10px 14px;
    background: #FAF7F0!important;
    font-family: 'Montserrat', sans-serif;
    color: #4A4947;
}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted, .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	border-radius: 0!important;
	border: none;
	box-shadow: none!important;
}
.wc-block-components-radio-control--highlight-checked:after {
	border: 1px solid rgba(74, 73, 71, 0.2)!important;
}
.wc-block-checkout__main a {
	color: #B17457;
}
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):focus {
	box-shadow: none;
	outline: none;
}
.wc-block-checkout__actions_row button {
	border: 1px solid #B17457;
	color: #B17457;
}
.wc-block-checkout__actions_row button:hover {
	background-color: #B17457;
	color: #FFF;
}

/* Mi cuenta */
.woocommerce-form-login {
	max-width: 600px;
	height: auto!important;
	margin-top: 5px!important;
}
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .login p:nth-child(3) {
	display: flex;
	flex-direction: column;
	row-gap: 10px;
}
.elementor-9 .elementor-element.elementor-element-3aa90e2 .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) h2, .elementor-9 .elementor-element.elementor-element-3aa90e2 .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) h3 {
	font-size: 22px;
	line-height: 24px;
	margin-bottom: 10px;
}
.woocommerce-MyAccount-content .button, .woocommerce-form .button {
	border: 1px solid #B17457!important;
	color: #B17457!important;
	background: none!important;
	font-family: "Montserrat", Sans-serif;
  font-size: 16px!important;
  font-weight: 400!important;
  text-decoration: none!important;
  line-height: 16px!important;
	border-radius: 0!important;
	padding: 16px 50px 16px 50px!important;
}
.woocommerce-MyAccount-content .button:hover, .woocommerce-form .button:hover {
	background-color: #B17457!important;
	color: #FFF!important;
}
