/*
Theme Name: Atrapa el Gift
Template: storefront
*/

@import url("../storefront/style.css");
@import url("colors.css");
/*MENU*/
.site-header{
    position: fixed;
    width: 100%;
}
.site-header-cart.menu,
.woocommerce-product-search{
    display: none;
}
.main-navigation div.menu{
    width: 100% ;
}
.site-header .col-full{
    width: 30%;
    margin: 0;
}
.col-full{
    max-width: 100%;
}
@media(max-width: 768px){
    .site-header .col-full{
        width: 70%;
        margin-right: 0
    }
}
.added_to_cart.wc-forward {
    display: none !important;
}
#payment .place-order{
    margin-top: 0 !important;
}

.site-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 40px;
}


.loyalitix-header-title {
    font-size: 16px;
    font-weight: bold;
}

.loyalitix-header-user {
    font-size: 14px;
}

/*PAGINA DE LA TIENDA*/
.woocommerce-products-header__title.page-title,
.storefront-sorting{
    display: none;
}

/* Eliminar pseudo-elementos que interfieren con flexbox */
ul.products::before, 
ul.products::after {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products li.product {
    width: calc(50% - 1rem);
}
ul.products li.product{
    margin-bottom: auto !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 3em;
    margin: 0;
}
.woocommerce ul.products li.product .price,
.product.type-product .summary.entry-summary .price{
    color: #DF0023;
    margin-top: auto;
}

.woocommerce ul.products li.product .button{
    border-radius: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
}
.right-sidebar .content-area{
    width: 100%;
    margin-top: 100px;
}
.site-content>.col-full>.woocommerce>.woocommerce-message:first-child{
    margin-top: 50%;
    margin-bottom: 0;
}
/* Ajustar margin cuando existe banner woocommerce-message */
.woocommerce-message ~ .right-sidebar .content-area,
body:has(.woocommerce-message) .right-sidebar .content-area,
body:has(.woocommerce-message) .content-area {
    margin-top: 0 !important;
}


/*PAGINA DE PRODUCTO*/
.product .summary.entry-summary h1.product_title.entry-title{
    font-size: 18px;
    line-height: 16px;
    font-weight: 500;
    margin: 0 !important;
}
.product.type-product .summary.entry-summary .price{
    margin-bottom: auto;
    font-size: 14px;
}
.woocommerce-product-details__short-description{
    font-size: 14px;
    color: #000000 !important;
}
.single-product div.product{
    margin-top: 155px;
}
.single-product div.product form.cart{
    padding: 0;
}
 .reset_variations{
    display: none !important;
     visibility: hidden;
 }
.cfvsw-swatches-option.cfvsw-label-option.cfvsw-selected-swatch{
    background-color: #000000;
}
.cfvsw-swatches-option.cfvsw-label-option.cfvsw-selected-swatch .cfvsw-swatch-inner{
    color: #FFFFFF !important;
}
.woocommerce-variation-add-to-cart.variations_button,
.summary.entry-summary .cart{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.woocommerce-variation-add-to-cart.variations_button .quantity,
.summary.entry-summary .cart .quantity,
.summary.entry-summary .cart .quantity .input-text.qty.text,
.woocommerce-variation-add-to-cart.variations_button .quantity .input-text.qty.text{
    width: 100%;
}
.woocommerce-variation-add-to-cart.variations_button input,
.woocommerce-variation-add-to-cart.variations_button button,
.summary.entry-summary .cart .quantity input,
.summary.entry-summary .cart button,
.form-row.place-order .button.alt{
    border-radius: 20px;

}
.woocommerce-variation-add-to-cart.variations_button input,
.summary.entry-summary .cart .quantity input{
    border: 1px solid black;
    background-color: #FFFFFF;
}
.stock.in-stock,
.additional_information_tab,
.description_tab{
    display: none !important;
}
.summary.entry-summary .product_meta{
    display: none;
}
.storefront-handheld-footer-bar{
    display: none;
}
/*IMÁGENES DE PRODUCTO */

/*PÁGINA DE FINALIZACIÓN DE COMPRA*/
.entry-header .entry-title{
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}
.entry-header{
    margin-bottom: 25px !important;
}
body.woocommerce-checkout .entry-header,
body.woocommerce-orders .entry-header,
body.woocommerce-view-order .entry-header {
    margin-top: 0;
    padding-top: 24px;
}
.loyalitix-checkout-products .loyalitix-checkout-item{
    display: flex;
    flex-direction: row;
    gap: 12px;
}
.loyalitix-checkout-products .loyalitix-checkout-item .loyalitix-product-image{
    width: 120px;
    flex-shrink: 0;
}
.loyalitix-checkout-products .loyalitix-checkout-item .loyalitix-product-image img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.loyalitix-checkout-products .loyalitix-checkout-item .loyalitix-product-details h4{
    color: #000;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
}
.loyalitix-product-quantity p{
    font-size: 14px;
    margin-bottom: 0 !important;
}
.loyalitix-product-quantity p span{
    font-weight: 600;
}

.remove-product-link {
    font-size: 13px;
    color: #d7001d;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 5px;
}

.form-row.place-order .button.alt{
    padding-top: 11px;
    padding-bottom: 11px;
    color: #FFF;
    font-size: 20px !important;
    font-weight: 600;
    line-height: 16px;
}
.wc_payment_methods.payment_methods.methods { display: none !important; }
/* PAGINA DE RESUMEN DE COMPRA */
.order_details,
.woocommerce-customer-details address{
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.20);
}
.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received{
    text-align: center;
    margin-bottom: 0;
}
ul.order_details li{
    text-transform: lowercase;
    padding: 0 1.618em;
    color: #000000;
}
ul.order_details li span{
    text-transform: capitalize;
    font-weight: 600;
}
.order_details > li{
    border-bottom: none !important;
}
ul.order_details::before,
ul.order_details::after {
    display: none !important;
}
ul.order_details li{
    font-size: 14px;
}
ul.order_details li strong{
    display: inline;
    font-size: 14px;
    font-weight: 400;
}
.woocommerce-customer-details address{
    padding: 1em 1.618em;
    font-size: 14px;
    font-style: normal;
    color: #000000;
}
.woocommerce-customer-details address p{
    margin-bottom: 0 !important;
    color: #000000;
}

/*CHECKOUT PRODUCTO FÍSICO*/
form.checkout.woocommerce-checkout{
    display: flex;
    flex-direction: column;
}
#customer_details {
    order: 1;
}

#order_review {
    order: 2;
    width: 100%;
}
.woocommerce-billing-fields{
    margin-top: 30px;
}
.woocommerce-billing-fields h3{
    color: #000;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
}
.woocommerce form .form-row label,
.woocommerce form .form-row .required{
    color: #000000;
}
.woocommerce form .form-row label{
    margin-bottom: 10px;
    font-size: 14px;
}
.woocommerce form .form-row .input-text{
    border-radius: 8px;
    border: 1px solid #C8C8C8;
    background: #FFF;
    box-shadow: none !important;
}
#order_review .loyalitix-checkout-products {
    display: none !important;
}

/*MIS PEDIDOS*/
.woocommerce-MyAccount-navigation{
    display: none;
}

.woocommerce-MyAccount-content{
    width: 100%;
}
.loyalitix-orders-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 1rem;
}

.loyalitix-order-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 1rem;
}

.loyalitix-order-info {
    background: #f2f2f2;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 10px;
}

.loyalitix-order-info strong {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.loyalitix-order-info p {
    margin: 4px 0;
    font-size: 14px;
}

.loyalitix-order-link,
.hentry .entry-content a{
    text-decoration: none;
}

.loyalitix-order-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loyalitix-order-thumbnail img {
    border-radius: 8px;
    max-width: 120px;
    height: auto;
}
/*DETALLE DEL PEDIDO*/
.pedido-detalle-container {
    padding: 20px;
    text-align: center;
    margin-top: 0 !important;
}
.product-name {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
}

.product-image img {
    max-width: 160px;
    margin: auto;
}

.pedido-box {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 15px;
    margin: 15px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
    max-width: 400px;
}

.pedido-box h4 {
    font-weight: 600;
}
.select-licenses{
    margin-bottom: 10px;
    text-align: left;
    padding-left: 9px;
}
.select-licenses select{
    border-radius: 10px;
    padding: 5px 10px;
}
.pedido-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto 0;
}

.pedido-botones .btn {
    margin-bottom: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-primary {
    background-color: #002c6e;
    color: white;
}

.btn-secondary {
    background-color: #999999;
    color: white;
}

.pedido-box p{
    margin-bottom: 0;
}
.quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    border-radius: 15px;
    overflow: hidden;
}

.quantity input.qty {
    text-align: center;
    border: none !important;
    width: 40px;
    font-size: 1.2rem;
    pointer-events: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0 10px;
    cursor: pointer;
    color: #000;
}
.summary.entry-summary .cart button.qty-btn.plus,
.summary.entry-summary .cart button.qty-btn.minus{
    background-color: transparent !important;
    color: black;
    width: 30%;
}
.form-row.place-order{
    display: none !important;
}
#order_review .form-row.place-order{
    display: flex !important;
    padding: 1.41575em 0 !important;
}
.main-navigation .primary-navigation ul{
    display: flex;
}
/*Paginación en mis pedidos*/
.woocommerce-MyAccount-content .woocommerce-pagination {
    text-align: center !important;
    margin: 2em 0 !important;
    font-size: 16px !important;
}

.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers {
    display: inline-block !important;
    margin: 0 5px !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    background-color: #f1f1f1 !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
}

.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers:hover {
    background-color: #0073aa !important;
    color: #fff !important;
}

.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers.current {
    background-color: #0073aa !important;
    color: #fff !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    cursor: default !important;
}

.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers.dots {
    background-color: transparent !important;
    color: #999 !important;
    cursor: default !important;
    padding: 8px 6px !important;
}

.woocommerce-MyAccount-content .woocommerce-pagination .prev.page-numbers,
.woocommerce-MyAccount-content .woocommerce-pagination .next.page-numbers {
    background-color: #e2e2e2 !important;
    font-weight: bold !important;
}

.woocommerce-MyAccount-content .woocommerce-pagination .prev.page-numbers:hover,
.woocommerce-MyAccount-content .woocommerce-pagination .next.page-numbers:hover {
    background-color: #0073aa !important;
    color: #fff !important;
}

/*GESTIÓN DE PEDIDOS */
/* Tarjeta contenedora */
.lx-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, .06);
    padding: 20px;
    margin-top: 140px;
}

/* Header */
.lx-card__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.lx-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

/* Botón */
.lx-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e6e8eb;
    background: #1f6feb; color: #fff; font-weight: 600; cursor: pointer;
}
.lx-btn--ghost {
    background: #fff; color: #111827; border-color: #e5e7eb;
}
.lx-btn--ghost:hover { background: #f9fafb; }

/* Tabla */
.shop_table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: #fff; border-radius: 12px; overflow: hidden;
}
.shop_table thead th {
    background: #f6f7fb;
    color: #6b7280;
    font-size: 12px; text-transform: uppercase; letter-spacing: .02em;
    font-weight: 700; padding: 12px 16px; text-align: left;
    border-bottom: 1px solid #eef0f4;
}
.shop_table tbody td {
    padding: 14px 16px; border-bottom: 1px solid #f1f3f7;
    color: #111827; vertical-align: middle;
}
.shop_table tbody tr:hover { background: #fafbff; }

/* Select pill (status) */
.lx-status {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    border: 0; outline: 0; cursor: pointer;
    padding: 6px 28px 6px 12px;
    border-radius: 999px;
    font-weight: 700; font-size: 12px;
    position: relative;
    background: #eef2ff; color: #1e40af;
    margin-top: 20px;
}
.lx-status:disabled { opacity: .7; cursor: not-allowed; }

/* caret */
.lx-status::after {
    content: '▾'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
}

/* Mensaje inline */
.lx-status__msg {
    margin-left: 8px;
    margin-top: 20px;
    font-size: 12px;
}

/* Colores por estado (JS fija el data-status) */
.lx-status[data-status="processing"] { background:#e8f0ff; color:#1e3a8a; }
.lx-status[data-status="completed"]  { background:#e7f8ef; color:#065f46; }
.lx-status[data-status="on-hold"]    { background:#fff4e5; color:#92400e; }
.lx-status[data-status="cancelled"]  { background:#ffe7e7; color:#991b1b; }

/* Paginación mínima para parecerse */
.lx-pagination { margin-top: 12px; display:flex; align-items:center; gap: 8px; }
.lx-pagination .button {
    border-radius: 8px; padding: 6px 10px; border:1px solid #e5e7eb; background:#fff;
}
.storefront-product-pagination{
    display: none !important;
}
.content-area{
    margin-top: 140px;
}
/* === TIENDA: TARJETAS UNIFORMES === */
.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    min-height: 380px;
}

.woocommerce ul.products li.product img {
    width: 320px !important;
    height: 200px;
    object-fit: contain;
    margin-bottom: 0px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.woocommerce ul.products li.product .price {
    font-size: 16px;
    color: #DF0023;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .btn {
    display: block;
    margin: 0 auto;
    padding: 6px 14px;
    text-align: center;
    border-radius: 10px;
}

/* === Modal de Email Loyalitix === */
#notification-email-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#notification-email-modal .modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#notification-email-modal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#notification-email-modal h2 {
    margin-top: 0;
    font-size: 20px;
    color: #000;
    margin-bottom: 1rem;
}

#notification-email-modal input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

#notification-email-modal button[type="submit"] {
    background-color: var(--general-button-bg-color);
    color: var(--general-button-text-color);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
}

@media(max-width: 768px){
    .woocommerce ul.products {
    display: flex;
    flex-wrap: wrap !important;
    gap: 1rem;
    }
    .main-navigation .primary-navigation ul{
        display: none;
    }
    .main-navigation {
        transition: opacity 0.3s ease;
    }

    .main-navigation.toggled {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
        padding: 2rem;
        overflow-y: auto;
        opacity: 1;
        pointer-events: auto;
    }

    .main-navigation.closing {
        opacity: 0;
        pointer-events: none;
    }
    .main-navigation:not(.toggled) .primary-navigation {
        display: none;
    }

    .main-navigation.toggled .primary-navigation {
        display: block;
    }
    .main-navigation:not(.toggled) .handheld-navigation {
        display: none;
    }
    .main-navigation:not(.toggled) .handheld-navigation {
        display: none;
    }
    .woocommerce-pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 1rem 0;
    }

    .woocommerce-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 4px;
        min-width: 32px;
        text-align: center;
        line-height: 1.2;
    }

    .woocommerce-pagination .page-numbers.current {
        font-size: 13px;
        padding: 6px 10px;
    }

    .woocommerce-pagination .page-numbers.dots {
        padding: 6px 8px;
    }

    .woocommerce-pagination .prev.page-numbers,
    .woocommerce-pagination .next.page-numbers {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 32px;
    }
}