/* === WooCommerce Override Styles === */

/* --- Shop / Archive --- */
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background: rgba(232, 81, 46, 0.1) !important;
    border-radius: 999px !important;
    height: 6px !important;
    margin: 24px 0 !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background: #e8512e !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background: #e8512e !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    top: -5px !important;
    box-shadow: 0 2px 8px rgba(232, 81, 46, 0.3) !important;
    cursor: pointer !important;
}

.woocommerce .widget_price_filter .price_slider_amount {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
    background: #e8512e !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 8px 20px !important;
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(232, 81, 46, 0.2) !important;
    transition: all 0.3s !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover {
    background: #f2a1c6 !important;
}

.woocommerce .widget_price_filter .price_slider_amount .price_label {
    font-size: 11px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    color: rgba(232, 81, 46, 0.6) !important;
    letter-spacing: 0.1em;
}

.woocommerce .widget_price_filter .price_slider_amount .price_label span {
    color: #e8512e !important;
}

/* Product category widget */
.woocommerce .widget_product_categories ul.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .widget_product_categories ul.product-categories li {
    margin-bottom: 12px;
    padding: 0;
}

.woocommerce .widget_product_categories ul.product-categories li a {
    font-size: 11px;
    font-family: Raleway, sans-serif;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(232, 81, 46, 0.6);
    transition: all 0.2s;
    text-decoration: none;
}

.woocommerce .widget_product_categories ul.product-categories li a:hover {
    color: #e8512e;
    padding-left: 4px;
}

.woocommerce .widget_product_categories ul.product-categories li .count {
    font-size: 9px;
    color: rgba(232, 81, 46, 0.3);
    margin-left: 4px;
}

.woocommerce .widget_product_categories ul.product-categories li.current-cat a {
    color: #f2a1c6;
    font-weight: 900;
}

.woocommerce .widget_product_categories ul.product-categories li.cat-parent {
    position: relative;
}

.woocommerce .widget_product_categories ul.children {
    list-style: none;
    padding-left: 16px;
    margin-top: 8px;
}

/* Sort dropdown */
.woocommerce .orderby {
    background: transparent !important;
}

/* Products grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 40px 40px !important;
    margin: 0 !important;
}

@media (min-width: 640px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1280px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
}

/* === Cart Styles === */
.woocommerce-cart .cart-empty {
    display: none;
}

.woocommerce-cart .return-to-shop {
    display: none;
}

/* Cart totals */
.woocommerce-cart .cart_totals {
    float: none !important;
    width: 100% !important;
}

.woocommerce-cart .cart_totals table.shop_table {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce-cart .cart_totals table.shop_table tr th,
.woocommerce-cart .cart_totals table.shop_table tr td {
    border: none !important;
    padding: 0 0 16px !important;
    background: transparent !important;
}

.woocommerce-cart .cart_totals table.shop_table tr th {
    font-family: Raleway, sans-serif;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(232, 81, 46, 0.6);
    padding-left: 0 !important;
}

.woocommerce-cart .cart_totals table.shop_table tr td {
    text-align: right;
    font-family: Raleway, sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: #e8512e;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    font-family: Syncopate, sans-serif;
    font-size: 22px;
    color: #e8512e;
    padding-top: 16px !important;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    letter-spacing: -0.02em;
}

.woocommerce-cart .cart_totals table.shop_table tr.shipping th {
    font-family: Raleway, sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: rgba(232, 81, 46, 0.6);
}

.woocommerce-cart .cart_totals table.shop_table tr.shipping td {
    text-align: right;
}

.woocommerce-cart .cart_totals table.shop_table tr.shipping td .shipping-calculator-button {
    font-size: 10px;
    color: rgba(232, 81, 46, 0.4);
    text-decoration: underline;
}

.woocommerce-cart .wc-proceed-to-checkout {
    display: none !important;
}

.woocommerce-cart .coupon {
    display: none !important;
}

/* Remove default cart buttons */
.woocommerce-cart .cart-collaterals {
    display: none;
}

/* Cart item remove button — still functional via submit */
.woocommerce-cart .cart .cart-item [name="remove_item"] {
    background: none;
    border: none;
    cursor: pointer;
}

/* === Checkout Styles === */

/* Formulario de cupón superior en checkout */
form.checkout_coupon {
    background: #fdfbf7 !important;
    border: 1px solid rgba(232, 81, 46, 0.15) !important;
    border-radius: 2rem !important;
    padding: 32px !important;
    margin: 24px 0 32px !important;
    gap: 16px !important;
}

/* Aplicar flexbox solo cuando el formulario no está oculto por jQuery */
form.checkout_coupon:not([style*="display: none"]):not([style*="display:none"]) {
    display: flex !important;
    flex-direction: column !important;
}

@media (min-width: 640px) {
    form.checkout_coupon:not([style*="display: none"]):not([style*="display:none"]) {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}

form.checkout_coupon p:first-child {
    display: none !important; /* Ocultar el texto explicativo de WooCommerce */
}

form.checkout_coupon .form-row {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

form.checkout_coupon .form-row-first {
    width: 100% !important;
    flex: 1 1 auto !important;
}

form.checkout_coupon .form-row-last {
    width: 100% !important;
    flex: 0 0 auto !important;
}

@media (min-width: 640px) {
    form.checkout_coupon .form-row-first {
        width: 70% !important;
    }
    form.checkout_coupon .form-row-last {
        width: 25% !important;
    }
}

form.checkout_coupon input.input-text {
    width: 100% !important;
    background: #fff !important;
    border: 2px solid rgba(232, 81, 46, 0.05) !important;
    border-radius: 16px !important;
    padding: 16px 24px !important;
    outline: none !important;
    font-family: Raleway, sans-serif !important;
    color: #e8512e !important;
    font-size: 14px !important;
    min-height: 56px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

form.checkout_coupon input.input-text:focus {
    border-color: #e8512e !important;
    box-shadow: 0 0 0 1px rgba(232, 81, 46, 0.1) !important;
}

form.checkout_coupon button.button {
    width: 100% !important;
    background: #e8512e !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 18px 36px !important;
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(232, 81, 46, 0.15) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    min-height: 56px !important;
}

form.checkout_coupon button.button:hover {
    background: #f2a1c6 !important;
    box-shadow: 0 4px 12px rgba(242, 161, 198, 0.3) !important;
    transform: scale(1.02) !important;
}

.woocommerce-checkout #order_review {
    float: none !important;
    width: 100% !important;
}

.woocommerce-checkout .woocommerce-checkout-payment {
    background: transparent !important;
    border-radius: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #fbf4e7 !important;
    border-radius: 16px !important;
    margin: 8px 0 16px !important;
    padding: 16px !important;
    border: 1px solid rgba(232, 81, 46, 0.1) !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-top: 24px;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .input-checkbox {
    accent-color: #e8512e;
}

/* Checkout field grid system */
.woocommerce-billing-fields__field-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
}

.woocommerce-billing-fields__field-wrapper .form-row {
    margin: 0 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
}

@media (min-width: 768px) {
    .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-billing-fields__field-wrapper .form-row-last {
        width: calc(50% - 12px) !important;
        flex: 0 0 calc(50% - 12px) !important;
    }
}

.woocommerce-additional-fields {
    margin-top: 24px !important;
}

.woocommerce-additional-fields > h3 {
    display: none !important;
}

.marketshop-gift-checkbox {
    transition: all 0.3s ease !important;
}

/* Checkout field rows default */
.woocommerce-checkout .form-row {
    padding: 0 !important;
}

.woocommerce-checkout .form-row label {
    font-size: 10px;
    font-family: Raleway, sans-serif;
    font-weight: 900;
    color: rgba(232, 81, 46, 0.5);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding-left: 4px;
    margin-bottom: 10px;
    display: block;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single {
    border: 2px solid rgba(232, 81, 46, 0.05) !important;
    border-radius: 16px !important;
    height: 56px !important;
    padding: 0 24px !important;
    display: flex;
    align-items: center;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    color: #e8512e !important;
    font-family: Raleway, sans-serif !important;
    font-size: 14px !important;
    line-height: 56px !important;
    padding: 0 !important;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single .select2-selection__arrow {
    top: 16px !important;
    right: 16px !important;
}

/* Shipping methods on checkout */
.woocommerce-checkout #ship-to-different-address {
    font-size: 10px;
    font-family: Raleway, sans-serif;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e8512e;
}

.woocommerce-checkout #ship-to-different-address input {
    accent-color: #e8512e;
}

/* Hide default WooCommerce notices in our custom layout */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message {
    border-top-color: #e8512e !important;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    color: rgba(232, 81, 46, 0.8);
    background: #fbf4e7 !important;
    border-radius: 16px !important;
    padding: 16px 24px !important;
    margin-bottom: 24px !important;
}

.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-message::before {
    color: #e8512e !important;
}

/* Mobile filters */
.marketshop-mobile-filters.active {
    display: block !important;
}

/* Checkout input/select/textarea styling */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100% !important;
    background: #fff !important;
    border: 2px solid rgba(232, 81, 46, 0.05) !important;
    border-radius: 16px !important;
    padding: 16px 24px !important;
    outline: none !important;
    transition: all 0.3s !important;
    font-family: Raleway, sans-serif !important;
    color: #e8512e !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    min-height: 56px !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #e8512e !important;
    box-shadow: 0 0 0 1px rgba(232, 81, 46, 0.1) !important;
}

.woocommerce-checkout .form-row input.input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
    color: rgba(232, 81, 46, 0.2) !important;
}

.woocommerce-checkout .form-row select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: none !important;
    padding-right: 48px !important;
    cursor: pointer !important;
}

/* Select2 container for checkout */
.woocommerce-checkout .form-row .select2-container {
    width: 100% !important;
}

/* Label styling */
.woocommerce-checkout .form-row label {
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    color: rgba(232, 81, 46, 0.5) !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding-left: 4px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* Scrollbar hidden for order summary */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Quantity input in cart */
.cart .quantity {
    display: inline-flex !important;
}

.marketshop-qty-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #e8512e !important;
    background: transparent !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.marketshop-qty-btn:hover {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(232, 81, 46, 0.05) !important;
}

.marketshop-qty-display {
    width: 32px !important;
    text-align: center !important;
    font-family: "Syncopate", sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    color: #e8512e !important;
    user-select: none !important;
}

.marketshop-product-title,
.marketshop-product-title a {
    font-weight: 400 !important;
    font-family: "Syncopate", sans-serif !important;
}

.marketshop-product-subtotal,
.marketshop-product-subtotal .amount,
.marketshop-product-subtotal .woocommerce-Price-amount {
    font-weight: 400 !important;
    font-family: "Syncopate", sans-serif !important;
}

.marketshop-cart-total-row,
.marketshop-cart-total-row .amount,
.marketshop-cart-total-row .woocommerce-Price-amount {
    font-weight: 400 !important;
    font-family: "Syncopate", sans-serif !important;
}

/* Hide default browser number spinners on quantity inputs */
.woocommerce .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce .quantity input[type="number"]::-webkit-inner-spin-button,
.cart .quantity input[type="number"]::-webkit-outer-spin-button,
.cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.woocommerce .quantity input[type="number"],
.cart .quantity input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Constrain only WooCommerce product/content images, not header/footer */
.woocommerce .woocommerce-loop-product__inner img,
.woocommerce .product img,
.woocommerce-page .product img,
.woocommerce .woocommerce-product-gallery img {
    max-width: 100%;
    height: auto;
}

/* Ensure absolute product images inside card aspect ratio elements fill their container height and width correctly */
.aspect-\[4\/5\] img.absolute,
.aspect-square img.absolute {
    height: 100% !important;
    width: 100% !important;
}

/* Prevent WooCommerce general.css `img { height: auto; }` from overriding header image sizes */
.woocommerce-page #masthead img {
    max-height: 32px !important;
    width: auto !important;
}

@media (min-width: 48rem) {
    .woocommerce-page #masthead img {
        max-height: 48px !important;
    }
}

.woocommerce-page #masthead .custom-logo-link img,
.woocommerce-page #masthead .custom-logo {
    max-height: 32px !important;
    width: auto !important;
}

@media (min-width: 48rem) {

    .woocommerce-page #masthead .custom-logo-link img,
    .woocommerce-page #masthead .custom-logo {
        max-height: 48px !important;
    }
}

/* Prevent WooCommerce general.css `img { height: auto; }` from overriding footer image sizes */
.woocommerce-page footer img {
    max-height: 40px !important;
    width: auto !important;
}

@media (min-width: 48rem) {
    .woocommerce-page footer img {
        max-height: 48px !important;
    }
}

.woocommerce-page footer .custom-logo-link img,
.woocommerce-page footer .custom-logo {
    max-height: 40px !important;
    width: auto !important;
}

@media (min-width: 48rem) {

    .woocommerce-page footer .custom-logo-link img,
    .woocommerce-page footer .custom-logo {
        max-height: 48px !important;
    }
}

/* Constrain payment gateway images and align with text */
.woocommerce-checkout #payment .payment_methods li label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.woocommerce-checkout #payment .payment_methods li label img {
    max-height: 28px !important;
    width: auto !important;
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle;
}

/* Remove default WooCommerce wrapper output */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

.woocommerce-page .page-title {
    display: none;
}

/* Product category archive title */
.woocommerce-products-header {
    display: none;
}

/* Remove result count and ordering from default positions */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    display: none;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    display: none;
}

/* === Wishlist Page Styles === */
.wishlist-item .marketshop-wishlist-btn {
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.wishlist-item:hover .marketshop-wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-item .marketshop-wishlist-btn:hover {
    color: #f2a1c6;
}

.marketshop-wishlist-btn.processing {
    pointer-events: none;
    opacity: 0.6;
}

/* Wishlist button on single product */
.single-product .marketshop-wishlist-btn {
    cursor: pointer;
}

.single-product .marketshop-wishlist-btn:hover:not(.bg-brand-pink) {
    background: #e8512e !important;
    color: #fff !important;
    border-color: #e8512e !important;
}

.marketshop-wishlist-btn.bg-brand-pink {
    border-color: #f2a1c6 !important;
}

/* Mobile wishlist count */
#mobile-wishlist-count {
    transition: all 0.3s;
}

/* === My Account Styles === */
.woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr 1fr;
    }
}

.woocommerce-MyAccount-content .woocommerce-Address {
    background: #fbf4e7;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(232, 81, 46, 0.08);
}

.woocommerce-MyAccount-content .woocommerce-Address header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.woocommerce-MyAccount-content .woocommerce-Address h3 {
    font-family: Syncopate, sans-serif;
    font-size: 13px;
    color: #e8512e;
    letter-spacing: -0.02em;
    margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-Address .edit {
    font-size: 10px;
    font-family: Raleway, sans-serif;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232, 81, 46, 0.5);
    text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-Address .edit:hover {
    color: #e8512e;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
    font-style: normal;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    color: rgba(232, 81, 46, 0.7);
    line-height: 1.7;
}

/* Orders table */
.woocommerce-MyAccount-content .woocommerce-orders-table {
    background: transparent;
    border-radius: 0;
    border: none;
    font-size: 12px;
}

.woocommerce-MyAccount-content .woocommerce-orders-table thead th {
    font-family: Raleway, sans-serif;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232, 81, 46, 0.4);
    border-bottom: 2px solid rgba(232, 81, 46, 0.1);
    padding: 12px 8px;
    background: transparent;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody td {
    padding: 16px 8px;
    border-bottom: 1px solid rgba(232, 81, 46, 0.05);
    color: rgba(232, 81, 46, 0.8);
    font-family: Raleway, sans-serif;
    font-size: 12px;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody td a {
    font-family: Raleway, sans-serif;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e8512e;
    text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody td a:hover {
    color: #f2a1c6;
}

/* Order details */
.woocommerce-MyAccount-content .woocommerce-order-details {
    background: #fbf4e7;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(232, 81, 46, 0.08);
    margin-top: 24px;
}

.woocommerce-MyAccount-content .woocommerce-order-details h2 {
    font-family: Syncopate, sans-serif;
    font-size: 16px;
    color: #e8512e;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details {
    font-size: 12px;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details thead th {
    font-family: Raleway, sans-serif;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232, 81, 46, 0.4);
    border-bottom: 2px solid rgba(232, 81, 46, 0.1);
    padding: 12px 8px;
    background: transparent;
}

.woocommerce-MyAccount-content .woocommerce-table--order-details tbody td,
.woocommerce-MyAccount-content .woocommerce-table--order-details tfoot td,
.woocommerce-MyAccount-content .woocommerce-table--order-details tfoot th {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(232, 81, 46, 0.05);
    color: rgba(232, 81, 46, 0.8);
    font-family: Raleway, sans-serif;
    background: transparent;
}

/* Dashboard */
.woocommerce-MyAccount-content .woocommerce-Message {
    background: #fbf4e7;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(232, 81, 46, 0.08);
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content .woocommerce-Message a {
    font-family: Raleway, sans-serif;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e8512e;
    text-decoration: none;
}

/* Login form */
.woocommerce-form-login,
.woocommerce-form-register {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 0;
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 20px;
}

.woocommerce-form-login .form-row label,
.woocommerce-form-register .form-row label {
    font-size: 10px;
    font-family: Raleway, sans-serif;
    font-weight: 900;
    color: rgba(232, 81, 46, 0.5);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.woocommerce-form-login .form-row input.input-text,
.woocommerce-form-register .form-row input.input-text {
    width: 100%;
    background: #fff;
    border: 2px solid rgba(232, 81, 46, 0.08);
    border-radius: 16px;
    padding: 14px 20px;
    outline: none;
    font-family: Raleway, sans-serif;
    color: #e8512e;
    font-size: 14px;
    transition: all 0.3s;
}

.woocommerce-form-login .form-row input.input-text:focus,
.woocommerce-form-register .form-row input.input-text:focus {
    border-color: #e8512e;
    box-shadow: 0 0 0 1px rgba(232, 81, 46, 0.1);
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
    background: #e8512e !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 14px 36px !important;
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(232, 81, 46, 0.2) !important;
    transition: all 0.3s !important;
    width: 100%;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    background: #f2a1c6 !important;
    transform: translateY(-1px);
}

.woocommerce-form-login .lost_password {
    text-align: center;
    margin-top: 16px;
}

.woocommerce-form-login .lost_password a {
    font-size: 11px;
    font-family: Raleway, sans-serif;
    font-weight: 700;
    color: rgba(232, 81, 46, 0.5);
    text-decoration: underline;
}

/* Edit account form */
.woocommerce-MyAccount-content .edit-account fieldset {
    border: 2px solid rgba(232, 81, 46, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content .edit-account fieldset legend {
    font-size: 10px;
    font-family: Raleway, sans-serif;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e8512e;
    padding: 0 8px;
}

/* Pagination in My Account */
.woocommerce-MyAccount-content .woocommerce-pagination {
    margin-top: 24px;
}

.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers li a,
.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers li span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-family: Raleway, sans-serif;
    font-weight: 900;
    color: rgba(232, 81, 46, 0.5);
    border: 1px solid rgba(232, 81, 46, 0.1);
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers li span.current,
.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers li a:hover {
    background: #e8512e;
    color: #fff;
    border-color: #e8512e;
}

/* Responsive My Account */
@media (max-width: 767px) {
    .woocommerce-MyAccount-navigation ul {
        gap: 0;
    }

    .woocommerce-MyAccount-navigation ul li a {
        font-size: 8px;
        padding: 12px 12px;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table thead {
        display: none;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table tbody td {
        display: block;
        padding: 8px 4px;
        border: none;
        font-size: 11px;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table tbody td:before {
        content: attr(data-title) ": ";
        font-weight: 900;
        font-size: 9px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: rgba(232, 81, 46, 0.4);
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid rgba(232, 81, 46, 0.08);
    }
}

/* Centrado e interactividad de la imagen en el carrito */
.cart-item .relative a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.cart-item .relative img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 1rem !important;
    /* p-4 */
    transition: transform 0.7s ease !important;
}

.cart-item:hover .relative img {
    transform: scale(1.1) !important;
}

/* Sobreescritura de dimensiones del selector de cantidad en página de detalle de producto */
.cart .marketshop-qty-btn {
    width: 48px !important;
    height: 48px !important;
}

.cart .marketshop-qty-display {
    width: 48px !important;
}

/* === WooCommerce Notices (Alerts) === */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error {
    position: relative !important;
    padding: 18px 160px 18px 46px !important;
    /* Espacio para el icono a la izquierda (80px) y botón a la derecha (160px) */
    background: #fdfbf7 !important;
    /* Crema suave */
    border: 1px solid rgba(232, 81, 46, 0.15) !important;
    /* Borde naranja transparente */
    border-top: 3px solid #e8512e !important;
    /* Línea de borde superior acentuada */
    border-radius: 1.5rem !important;
    color: #e8512e !important;
    font-family: Raleway, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin-top: 30px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 4px 20px rgba(232, 81, 46, 0.03) !important;
    display: block !important;

    /* === NUEVAS REGLAS PARA ANCHO LIMITADO Y CENTRADO === */
    max-width: 1024px !important; /* Alineado al max-w-5xl */
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(100% - 2rem) !important; /* Espacio lateral de 16px en pantallas pequeñas */
}

/* Alinear el pseudo-elemento ::before al centro vertical del lado izquierdo */
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before,
.woocommerce-page .woocommerce-message::before,
.woocommerce-page .woocommerce-info::before,
.woocommerce-page .woocommerce-error::before {
    position: absolute !important;
    left: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Diferenciar por tipos si es necesario */
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error {
    border-top-color: #df4759 !important;
    color: #df4759 !important;
    background: #fff5f6 !important;
}

.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message {
    border-top-color: #f2a1c6 !important;
    /* Rosa premium */
    color: #e8512e !important;
}

/* El botón de acción "Ver carrito" u otros posicionado de forma absoluta a la derecha */
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button,
.woocommerce .woocommerce-message .button.wc-forward,
.woocommerce .woocommerce-info .button.wc-forward,
.woocommerce-page .woocommerce-message .button,
.woocommerce-page .woocommerce-info .button,
.woocommerce-page .woocommerce-error .button,
.woocommerce-page .woocommerce-message .button.wc-forward,
.woocommerce-page .woocommerce-info .button.wc-forward {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    background: #e8512e !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    border: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(232, 81, 46, 0.15) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.woocommerce .woocommerce-message .button:hover,
.woocommerce .woocommerce-info .button:hover,
.woocommerce .woocommerce-error .button:hover,
.woocommerce .woocommerce-message .button.wc-forward:hover,
.woocommerce-page .woocommerce-message .button:hover,
.woocommerce-page .woocommerce-info .button:hover,
.woocommerce-page .woocommerce-error .button:hover,
.woocommerce-page .woocommerce-message .button.wc-forward:hover {
    background: #f2a1c6 !important;
    /* Hover rosa */
    box-shadow: 0 4px 12px rgba(242, 161, 198, 0.3) !important;
    transform: scale(1.02) translateY(-50%) !important;
    /* Mantener la alineacion central del boton en hover */
}

/* Alineación móvil responsiva */
@media (max-width: 640px) {

    .woocommerce .woocommerce-message,
    .woocommerce .woocommerce-info,
    .woocommerce .woocommerce-error,
    .woocommerce-page .woocommerce-message,
    .woocommerce-page .woocommerce-info,
    .woocommerce-page .woocommerce-error {
        padding: 20px 20px 20px 48px !important;
        display: block !important;
    }

    .woocommerce .woocommerce-message::before,
    .woocommerce .woocommerce-info::before,
    .woocommerce .woocommerce-error::before,
    .woocommerce-page .woocommerce-message::before,
    .woocommerce-page .woocommerce-info::before,
    .woocommerce-page .woocommerce-error::before {
        top: 24px !important;
        transform: none !important;
    }

    .woocommerce .woocommerce-message .button,
    .woocommerce .woocommerce-info .button,
    .woocommerce .woocommerce-error .button,
    .woocommerce .woocommerce-message .button.wc-forward,
    .woocommerce .woocommerce-info .button.wc-forward,
    .woocommerce-page .woocommerce-message .button,
    .woocommerce-page .woocommerce-info .button,
    .woocommerce-page .woocommerce-error .button,
    .woocommerce-page .woocommerce-message .button.wc-forward,
    .woocommerce-page .woocommerce-info .button.wc-forward {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 16px !important;
    }

    .woocommerce .woocommerce-message .button:hover,
    .woocommerce .woocommerce-info .button:hover,
    .woocommerce .woocommerce-error .button:hover,
    .woocommerce .woocommerce-message .button.wc-forward:hover,
    .woocommerce-page .woocommerce-message .button:hover,
    .woocommerce-page .woocommerce-info .button:hover,
    .woocommerce-page .woocommerce-error .button:hover,
    .woocommerce-page .woocommerce-message .button.wc-forward:hover {
        transform: scale(1.02) !important;
    }
}

/* === Desactivación de Outline de Enfoque a Nivel General === */
*:focus,
*:focus-visible,
*:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* === restyle Mercado Pago and Payment Gateway elements === */
.woocommerce-checkout #payment,
.woocommerce-checkout-payment,
#marketshop-left-payment-container {
    font-family: Raleway, sans-serif !important;
}

/* Force buttons inside payment area to match our brand buttons */
.woocommerce-checkout-payment button,
.woocommerce-checkout-payment input[type="submit"],
.woocommerce-checkout-payment #place_order,
.woocommerce-checkout-payment #mp-custom-submit,
.woocommerce-checkout-payment .mercadopago-button,
.woocommerce-checkout-payment [class*="mercadopago"] button,
.woocommerce-checkout-payment [class*="mp-button"],
.woocommerce-checkout-payment [class*="mp-btn"] {
    background-color: #e8512e !important;
    background: #e8512e !important;
    color: #fff !important;
    border-radius: 1rem !important; /* 16px / rounded-2xl style */
    padding: 16px 24px !important;
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(232, 81, 46, 0.15) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.woocommerce-checkout-payment button:hover,
.woocommerce-checkout-payment input[type="submit"]:hover,
.woocommerce-checkout-payment #place_order:hover,
.woocommerce-checkout-payment #mp-custom-submit:hover,
.woocommerce-checkout-payment .mercadopago-button:hover {
    background-color: #f2a1c6 !important;
    background: #f2a1c6 !important;
    box-shadow: 0 4px 12px rgba(242, 161, 198, 0.3) !important;
}

/* Style the test mode warnings / alert boxes from Mercado Pago */
.woocommerce-checkout-payment div[class*="warning"],
.woocommerce-checkout-payment div[class*="alert"],
.woocommerce-checkout-payment div[class*="notice"],
.woocommerce-checkout-payment div[class*="banner"],
.woocommerce-checkout-payment .mp-banner-test-mode,
.woocommerce-checkout-payment [class*="test-mode"] {
    background-color: #fbf4e7 !important;
    background: #fbf4e7 !important;
    border: 1px solid rgba(232, 81, 46, 0.1) !important;
    border-left: 4px solid #e8512e !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    color: #e8512e !important;
    font-family: Raleway, sans-serif !important;
}

/* Target alert descriptions and titles inside payment warning boxes */
.woocommerce-checkout-payment div[class*="warning"] *,
.woocommerce-checkout-payment div[class*="alert"] *,
.woocommerce-checkout-payment div[class*="notice"] *,
.woocommerce-checkout-payment .mp-banner-test-mode * {
    color: #e8512e !important;
    font-family: Raleway, sans-serif !important;
}

/* Style links inside warnings */
.woocommerce-checkout-payment div[class*="warning"] a,
.woocommerce-checkout-payment div[class*="alert"] a,
.woocommerce-checkout-payment div[class*="notice"] a {
    color: #f2a1c6 !important;
    text-decoration: underline !important;
}

/* Clean up card brand badges and checkout container styling */
.woocommerce-checkout-payment [class*="container"] {
    border-color: rgba(232, 81, 46, 0.05) !important;
}

/* Fix any default purple backgrounds in Mercado Pago form steps or headings */
.woocommerce-checkout-payment [style*="color: rgb(124, 77, 255)"],
.woocommerce-checkout-payment [style*="color:#7c4dff"] {
    color: #e8512e !important;
}

/* === WooCommerce Checkout Login Form Premium Styling === */
form.woocommerce-form-login.login {
    background: #fff !important;
    border: 1px solid rgba(232, 81, 46, 0.1) !important;
    border-radius: 2rem !important;
    padding: 40px !important;
    margin: 0 auto 48px auto !important;
    box-shadow: 0 10px 30px rgba(232, 81, 46, 0.02) !important;
    font-family: Raleway, sans-serif !important;
    max-width: 650px !important;
    width: 100% !important;
}

form.woocommerce-form-login.login p {
    color: rgba(232, 81, 46, 0.7) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

form.woocommerce-form-login.login .form-row label {
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    color: rgba(232, 81, 46, 0.5) !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    display: block !important;
}

form.woocommerce-form-login.login .form-row input.input-text {
    width: 100% !important;
    background: #fff !important;
    border: 2px solid rgba(232, 81, 46, 0.05) !important;
    border-radius: 16px !important;
    padding: 16px 24px !important;
    outline: none !important;
    transition: all 0.3s !important;
    font-family: Raleway, sans-serif !important;
    color: #e8512e !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    font-size: 14px !important;
    min-height: 56px !important;
}

form.woocommerce-form-login.login .form-row input.input-text:focus {
    border-color: #e8512e !important;
    box-shadow: 0 0 0 1px rgba(232, 81, 46, 0.1) !important;
}

/* Stack inputs vertically for perfect alignment */
form.woocommerce-form-login.login .form-row-first,
form.woocommerce-form-login.login .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-bottom: 24px !important;
}

/* Password eye button positioning */
form.woocommerce-form-login.login .password-input {
    position: relative !important;
    display: block !important;
}

form.woocommerce-form-login.login .show-password-input {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.4 !important;
    transition: opacity 0.3s ease !important;
    /* Hide default browser/WooCommerce icon/text */
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

form.woocommerce-form-login.login .show-password-input::before {
    display: none !important;
    content: "" !important;
}

form.woocommerce-form-login.login .show-password-input:hover {
    opacity: 0.8 !important;
}

form.woocommerce-form-login.login .show-password-input::after {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8512e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

form.woocommerce-form-login.login .show-password-input.display-password::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8512e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.822 7.822L21 21m-2.228-2.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88'/%3E%3C/svg%3E") !important;
}

/* Remember me and lost password row layout */
form.woocommerce-form-login.login .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    color: rgba(232, 81, 46, 0.5) !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    margin-bottom: 20px !important;
}

form.woocommerce-form-login.login .woocommerce-form-login__rememberme input {
    accent-color: #e8512e !important;
}

form.woocommerce-form-login.login button.woocommerce-form-login__submit {
    display: block !important;
    width: 100% !important;
    background-color: #e8512e !important;
    background: #e8512e !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 18px 36px !important;
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(232, 81, 46, 0.15) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin: 20px 0 15px 0 !important;
}

form.woocommerce-form-login.login button.woocommerce-form-login__submit:hover {
    background-color: #f2a1c6 !important;
    background: #f2a1c6 !important;
    box-shadow: 0 4px 12px rgba(242, 161, 198, 0.3) !important;
}

form.woocommerce-form-login.login .lost_password {
    margin: 0 !important;
    text-align: center !important;
}

form.woocommerce-form-login.login .lost_password a {
    font-size: 10px !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 900 !important;
    color: rgba(232, 81, 46, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

form.woocommerce-form-login.login .lost_password a:hover {
    color: #e8512e !important;
    text-decoration: underline !important;
}

/* Reducir espacio superior en el checkout */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout .step-indicators {
    margin-top: 0 !important;
}