/* ============================================
   BonosPremium Lanzarote - Main Styles
   ============================================ */

/* === COLOR VARIABLES === */
:root {
    --bp-primary: #039CDC;
    --bp-primary-dark: #027ba8;
    --bp-primary-light: #33b0e3;
    --bp-primary-rgb: 3, 156, 220;
    --bp-header-bg: linear-gradient(135deg, #039CDC, #027ba8);
    --bp-header-bg-mobile: #039CDC;
    --bp-footer-bg: #32373c;
    --bp-footer-text: rgba(255,255,255,.7);
    --bp-footer-title-color: #fff;
    --bp-text: #090909;
    --bp-text-white: #fff;
    --bp-text-black: #000;
    --bp-text-light: #555;
    --bp-text-muted: #999;
    --bp-bg: #f8f9fa;
    --bp-card-bg: #fff;
    --bp-border: #f0f0f0;
    --bp-wishlist-color: #e74c3c;
    --bp-button-bg: #039CDC;
    --bp-button-hover: #027ba8;
    --bp-sale-color: #039CDC;
    --bp-nav-sticky-top: 0;
    
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Arial", Sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bp-text);
    background: var(--bp-bg);
    overflow-x: hidden;
}
a { color: var(--bp-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--bp-primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
li { list-style: none; }
p { margin-bottom: 1rem;     text-align: justify; }
.container, .bp-container { max-width: 1200px; margin: 0 auto; }

/* === HEADER === */
.bp-header {
    background: #fff;
}

/* Top bar */
.bp-header-top { }
.bp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
}

/* Logo */
.bp-logo a { display: flex; align-items: center; gap: 8px; }
.bp-logo img { max-height: 70px; width: auto; }
.bp-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.bp-logo-text small {
    font-size: .7rem;
    font-weight: 400;
    opacity: .8;
    display: block;
}

/* Search */
.bp-header-search { flex: 1; max-width: 400px; }
.bp-search-form {
    display: flex;
    background: rgba(255,255,255,.15);
    border-radius: 0;
    overflow: hidden;
    transition: background .2s;
}
.bp-search-form:focus-within { background: rgba(255,255,255,.25); }
.bp-search-form input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    color: #fff;
    font-size: .85rem;
    outline: none;
}
.bp-search-form input::placeholder { color: rgba(255,255,255,.6); }
.bp-search-form button {
    background: transparent;
    border: none;
    padding: 0 15px;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    transition: color .2s;
}
.bp-search-form button:hover { color: #fff; }

/* Desktop search */
.bp-header-search-desktop { display: block; }
.bp-header-search-desktop .bp-search-form { background: rgba(255,255,255,.15); }
.bp-search-mobile { display: none; }

/* Header actions */
.bp-header-right { display: flex; align-items: center; gap: 8px; }
.bp-header-action { background: transparent; border: none; color: rgba(255,255,255,.85); font-size: 1.1rem; padding: 6px; transition: color .2s; position: relative; cursor: pointer; }
.bp-header-action:hover { color: #fff; }
.bp-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu toggle (mobile) */
.bp-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
}
.bp-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 0;
    transition: all .3s;
}

/* === NAVIGATION === */
.bp-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: all .3s;
}
.bp-nav.bp-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bp-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    border-bottom-color: transparent;
}

.bp-nav.bp-nav-sticky .bp-nav-menu a {
    color: var(--bp-text-white);
}

.bp-nav.bp-nav-sticky .bp-nav-menu a:hover,
.bp-nav.bp-nav-sticky .bp-nav-menu .current-menu-item a {
    color: #fff;
    background: rgba(255,255,255,.15);
}

.bp-nav-menu {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.bp-nav-menu li { flex-shrink: 0; }
.bp-nav-menu a {
    display: block;
    padding: 12px 18px;
    color: #555;
    font-size: .85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .2s;
    white-space: nowrap;
}
.bp-nav-menu a:hover,
.bp-nav-menu .current-menu-item a {
    color: var(--bp-primary);
    background: rgba(3,156,220,.05);
}

/* === PRODUCT GRID === */
.bp-shop-page .bp-container,
.post-type-archive-product .bp-container { }

/* Product */
.woocommerce-no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 0;
    margin: 30px 0;
}

.no-products-message .no-products-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.no-products-message h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.no-products-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.return-to-shop {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 10px 30px;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.return-to-shop:hover {
    background: #005a8c;
    color: #fff;
}

/* Page title */
.bp-page-title,
.page-title,
.woocommerce-products-header h1,
.bp-shop-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 25px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid var(--bp-primary) !important;
    position: relative;
}
.bp-page-title::after,
.page-title::after,
.woocommerce-products-header h1::after,
.bp-shop-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bp-primary-dark);
}

/* Products grid */
.bp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Product card */
.bp-product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    border: none;
    width: 100%;
    margin: 5px;
    animation: bp-fadeIn .4s ease-out;
}

@keyframes bp-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reset WooCommerce <li> inside our grid */
.bp-products-grid li.product,
.bp-products-grid li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Product name (under establishment) */
.bp-product-name {
    font-size: .82rem;
    font-weight: 400;
    color: var(--bp-text-black);
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 200;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

/* Product image */
.bp-product-image-wrap {
    position: relative;
    overflow: hidden;
    height: 270px;
    background: #f5f5f5;
    width: 100%;
    border-radius: 0;
}
.bp-product-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform .4s;
}
.bp-product-card:hover .bp-product-image-wrap img {
    transform: scale(1.05);
}

/* Wishlist button */
.bp-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bp-text-white);
    font-size: .9rem;
    transition: all .2s;
    backdrop-filter: blur(5px);
}
.bp-wishlist-btn:hover {
    color: var(--bp-primary);
    background: var(--bp-text-white);
}

/* Product info */
.bp-product-info { padding: 16px; }
.bp-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}
.bp-product-title a {
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-product-title a:hover { color: var(--bp-primary); }

/* Product description - 1 line */
.bp-single-summary {
    margin: auto 15px;
}
.bp-product-desc {
    font-size: .95rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product price */
.bp-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bp-price-original {
    font-size: .85rem;
    color: #999;
    text-decoration: line-through;
}
.bp-price-sale {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--bp-primary);
}

/* Product bottom row: price left, city right */
.bp-product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}
.bp-product-city {
    font-size: .75rem;
    color: var(--bp-text-black);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
}
.bp-product-city i { font-size: .7rem; color: var(--bp-primary); }

/* === SINGLE PRODUCT === */
.bp-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0;
}
.bp-single-gallery { position: relative; }
.bp-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.bp-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.bp-slider-track::-webkit-scrollbar { display: none; }
.bp-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.bp-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bp-dragging { cursor: grabbing !important; user-select: none; }
.bp-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.bp-slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .2s;
}
.bp-slider-dots span.active {
    background: #fff;
    transform: scale(1.3);
}
.bp-single-categories {
    font-size: .8rem;
    color: var(--bp-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    text-align: center;
}
.bp-single-categories a { color: var(--bp-primary); }
.bp-single-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    line-height: 1.3;
    text-align: center;
}
.bp-single-desc {
    font-size: .9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.bp-single-city {
    font-size: .85rem;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.bp-single-city i { color: var(--bp-primary); }
.bp-single-price {
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 15px 0;
    text-align: center;
}
.bp-single-price .bp-price-original { font-size: 1rem; }
.bp-single-price .bp-price-sale {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bp-primary);
}
.bp-single-cart { margin-bottom: 25px; }
.bp-single-cart .cart { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bp-single-cart .quantity input {
    width: 70px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    text-align: center;
}
.bp-single-cart .single_add_to_cart_button {
    background: var(--bp-primary) !important;
    border: none !important;
    padding: 14px 35px !important;
    border-radius: 0
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all .2s !important;
    color: #fff !important;
}
.bp-single-cart .single_add_to_cart_button:hover { background: #027ba8 !important; }
.bp-single-meta { font-size: .85rem; color: #888; }
.bp-single-meta .posted_in a { color: var(--bp-primary); }

/* Section titles */
.bp-section-title {
    font-size: 1.6rem;
    font-weight: 100;
}
.bp-color-primary { color: var(--bp-primary); }

/* Contact info */
.bp-contact-info {
    background: #fff;
    border-radius: 0;
    margin-top: 16px;
    padding: 15px;
    font-size: .85rem;
    line-height: 1.6;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.bp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: #555;
}
.bp-contact-item:last-child { margin-bottom: 0; }
.bp-contact-item i {
    width: 16px;
    color: var(--bp-primary);
    font-size: .9rem;
    margin-top: 3px;
}
.bp-contact-item a {
    color: var(--bp-primary);
    font-weight: 500;
}
.bp-contact-item a:hover { text-decoration: underline; }

/* Condiciones */
.bp-condiciones {
    font-size: .85rem;
    color: #666;
    line-height: 1.6;
    padding: 0 15px;
    margin-bottom: 15px;
    text-align: justify;
}
.bp-condiciones ul { padding-left: 40px; list-style: disc; }
.bp-condiciones li { list-style: disc; }

/* Map */
.bp-map-wrap {
    margin: 15px 0;
    border-radius: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .bp-single-product { grid-template-columns: 1fr; gap: 20px; padding: 0; }
    .bp-single-title { font-size: 1.25rem; padding: 0 15px; }
    .bp-single-name { font-size: 1.25rem; padding: 0 15px; font-size: 1rem; font-weight: 100; text-align: center; }
    .bp-single-desc { padding: 0 15px; }
    .bp-single-city { padding: 0 15px; }
    .bp-single-price { margin-left: 15px; margin-right: 15px; }
    .bp-single-price .bp-price-sale { font-size: 1.8rem; }
    .bp-cart-spacer {
        display: block;
        height: 90px;
        width: 100%;
    }
    .bp-single-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        padding: 12px 20px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        box-shadow: 0 -2px 20px rgba(0,0,0,.1);
    }
    .bp-single-cart .cart {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .bp-single-cart .quantity { flex: 0 0 auto; }
    .bp-single-cart .quantity input {
        width: 60px;
        padding: 12px;
        border: 2px solid #ddd;
        border-radius: 0;
        font-size: 1rem;
        text-align: center;
    }
    .bp-single-cart .single_add_to_cart_button {
        flex: 1;
        background: var(--bp-primary) !important;
        color: var(--bp-text-white, #fff) !important;
        border: none !important;
        padding: 14px 20px !important;
        border-radius: 0;
        font-weight: 700 !important;
        font-size: 1.05rem !important;
        text-align: center;
    }
    .bp-single-cart .single_add_to_cart_button:hover {
        background: var(--bp-primary-dark) !important;
    }
}

/* === CART / CHECKOUT === */
.bp-checkout-page .bp-container {
    padding-top: 0;
    padding-bottom: 0;
    max-width: 480px;
}

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

/* Checkout - flujo vertical app */
.bp-checkout-page .checkout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Form sections */
.bp-checkout-section {
    margin: 0 0 12px;
    background: #fff;
    border-radius: 0;
    padding: 20px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border: 1px solid #f0f0f0;
}
.bp-checkout-section h3 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--bp-primary);
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Form fields - app style */
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row {
    margin-bottom: 12px;
}
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label {
    font-size: .75rem;
    font-weight: 600;
    color: #999;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.woocommerce-billing-fields input,
.woocommerce-billing-fields textarea,
.woocommerce-billing-fields select,
.woocommerce-shipping-fields input,
.woocommerce-shipping-fields select,
.woocommerce-shipping-fields textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    background: #fff;
    transition: all .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.woocommerce-billing-fields textarea,
.woocommerce-shipping-fields textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
}
.woocommerce-billing-fields input:focus,
.woocommerce-billing-fields textarea:focus,
.woocommerce-billing-fields select:focus,
.woocommerce-shipping-fields input:focus,
.woocommerce-shipping-fields select:focus,
.woocommerce-shipping-fields textarea:focus {
    border-color: var(--bp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--bp-primary-rgb), .12);
}
.select2-container .select2-selection--single {
    border: none !important;
    border-bottom: 1.5px solid #e0e0e0 !important;
    border-radius: 0 !important;
    height: 42px !important;
    padding: 4px 0;
    background: transparent;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    font-size: 1rem;
}

/* Order review card */
.bp-checkout-card {
    background: #fff;
    border-radius: 0;
    padding: 20px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    border: 1px solid #f0f0f0;
    margin-bottom: 12px;
}
.bp-checkout-card h3 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--bp-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: none;
    margin-bottom: 12px;
    padding: 0;
}

/* Table - app style */
.bp-checkout-table {
    font-size: .85rem;
    margin-bottom: 15px;
}
.bp-checkout-table th,
.bp-checkout-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f7;
}
.bp-checkout-table th { font-weight: 600; color: #999; font-size: .75rem; text-transform: uppercase; }
.bp-total { font-size: 1.1rem; }

/* Payment methods - app style */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wc_payment_method {
    margin-bottom: 8px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 0;
    border: 1.5px solid #e8e8e8;
    transition: all .2s;
}
.wc_payment_method:hover {
    border-color: var(--bp-primary);
}
.wc_payment_method label {
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wc_payment_method input[type="radio"] {
    accent-color: var(--bp-primary);
    width: 18px;
    height: 18px;
}
.bp-payment-box {
    padding: 12px 0 0;
    font-size: .85rem;
    color: #666;
}

/* Place order button - app style */
.bp-place-order,
#place_order,
.checkout-button {
    width: calc(100% - 32px) !important;
    margin: 16px auto !important;
    display: block !important;
    background: var(--bp-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px !important;
    border-radius: 0;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(3,156,220,.3);
}
.bp-place-order:hover,
#place_order:hover,
.checkout-button:hover { background: var(--bp-primary-dark) !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(3,156,220,.4); }

/* Login toggle - app style */
/* Login toggle - app style collapsible */
.woocommerce-form-login-toggle {
    padding: 0 16px;
    margin-bottom: 0;
}
.woocommerce-form-login-toggle .woocommerce-info {
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    font-size: .9rem;
    color: #333 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all .2s;
}
.woocommerce-form-login-toggle .woocommerce-info::before {
    display: none !important;
}
.woocommerce-form-login-toggle .woocommerce-info a {
    color: var(--bp-primary) !important;
    font-weight: 600;
    font-size: .85rem;
}
.woocommerce-form-login-toggle .woocommerce-info:hover {
    background: #eee !important;
}

/* Login form - app style */
form.woocommerce-form-login {
    background: #f5f5f7;
    border-radius: 0 0 14px 14px !important;
    padding: 0 20px 20px !important;
    margin: 0 16px 12px !important;
    border: none !important;
    display: none;
    overflow: hidden;
    transition: all .3s ease;
}
form.woocommerce-form-login.bp-login-open {
    display: block;
    padding-top: 20px !important;
}
.woocommerce-form-login p { font-size: .8rem; color: #888; text-align: center; margin-bottom: 12px; }
.woocommerce-form-login .form-row { margin-bottom: 10px; }
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: .9rem;
    background: #fff;
    transition: border-color .2s;
}
.woocommerce-form-login input:focus {
    border-color: var(--bp-primary);
    outline: none;
}
.woocommerce-form-login .button {
    width: 100%;
    background: var(--bp-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: .95rem !important;
    cursor: pointer;
    transition: background .2s;
}
.woocommerce-form-login .button:hover {
    background: var(--bp-primary-dark) !important;
}

/* Coupon - app style collapsible */
.woocommerce-form-coupon-toggle {
    padding: 8px 16px;
}
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    font-size: .9rem;
    color: #333 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all .2s;
}
.woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none !important;
}
.woocommerce-form-coupon-toggle .woocommerce-info:hover {
    background: #eee !important;
}
.checkout_coupon {
    background: #f5f5f7;
    border-radius: 0 0 14px 14px !important;
    padding: 16px !important;
    margin: 0 16px 12px !important;
    border: none !important;
    display: none !important;
    gap: 8px;
}
.checkout_coupon.bp-coupon-open {
    display: flex !important;
}
}
.checkout_coupon input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: .85rem;
    background: #fff;
    min-width: 120px;
}
.checkout_coupon .button {
    background: var(--bp-primary) !important;
    color: #fff !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
}

/* Create account */
.woocommerce-account-fields {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Coupon inside sidebar (entre total y payment) */
.bp-checkout-coupon-wrap {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}
.bp-checkout-coupon-wrap .woocommerce-form-coupon-toggle {
    text-align: center;
    padding: 0;
}
.bp-checkout-coupon-wrap .woocommerce-form-coupon-toggle a {
    font-size: .8rem;
    color: var(--bp-primary);
    font-weight: 500;
}
.bp-checkout-coupon-wrap .checkout_coupon {
    background: #f5f5f7;
    border-radius: 12px !important;
    padding: 12px !important;
    margin: 8px 0 0 !important;
    border: none !important;
    display: flex;
    gap: 8px;
}
.bp-checkout-coupon-wrap .checkout_coupon input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: .85rem;
    background: #fff;
    min-width: 100px;
}
.bp-checkout-coupon-wrap .checkout_coupon .button {
    background: var(--bp-primary) !important;
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
}
.woocommerce-account-fields label { font-size: .85rem; }

/* Shipping fields */
.woocommerce-shipping-fields { margin-top: 0; }
.woocommerce-shipping-fields textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    background: #fff;
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
    transition: all .2s;
}
.woocommerce-shipping-fields textarea:focus {
    border-color: var(--bp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--bp-primary-rgb), .12);
}

/* Quantity buttons - primary color */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
}
.quantity .qty-minus,
.quantity .qty-plus {
    background: var(--bp-primary);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.quantity .qty-minus:hover,
.quantity .qty-plus:hover {
    background: var(--bp-primary-dark);
}
.quantity input.qty {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    height: 36px;
    font-size: .9rem;
    font-weight: 600;
    padding: 0;
}

/* Remove default WooCommerce borders */
.woocommerce form .form-row { padding: 0; margin: 0 0 12px; }
.woocommerce form .form-row .input-text, 
.woocommerce form .form-row select {
    border: 1.5px solid #e0e0e0;
    border-radius: 0;
    padding: 12px 14px;
    font-size: 1rem;
    background: #fff;
    font-family: inherit;
    transition: all .2s;
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--bp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--bp-primary-rgb), .12);
}

@media (max-width: 480px) {
    .bp-checkout-page .bp-container { padding: 0 16px; }
    .bp-checkout-section { padding: 16px 14px; }
    .bp-checkout-card { padding: 16px 14px; }
}

/* Empty cart */
.bp-checkout-empty {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 0;
}
.bp-btn-primary {
    display: inline-block;
    background: var(--bp-primary);
    color: #fff;
    padding: 14px 30px;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
}
.bp-btn-primary:hover { background: var(--bp-primary-dark); color: #fff; }


/* === MY ACCOUNT - APP STYLE === */
.bp-account-page .bp-container {
    max-width: 480px;
    padding: 0;
}
.bp-account-app {
    min-height: 100vh;
    background: #fff;
}

/* Profile header */
.bp-prof-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: var(--bp-primary);
    color: #fff;
}
.bp-prof-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.3);
    object-fit: cover;
}
.bp-prof-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.bp-prof-info p {
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    margin: 2px 0 0;
}

/* App-style menu */
.bp-prof-menu {
    padding: 8px 16px;
}
.bp-prof-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: #333;
    font-size: .95rem;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all .2s;
}
.bp-prof-menu-item:last-child { border-bottom: none; }
.bp-prof-menu-item:hover { background: #f5f5f7; }
.bp-prof-menu-item.active { color: var(--bp-primary); font-weight: 600; }
.bp-prof-icon { font-size: 1.2rem; width: 28px; text-align: center; }
.bp-prof-label { flex: 1; }
.bp-prof-arrow { color: #ccc; font-size: 1.3rem; font-weight: 300; }

/* Content area */
.bp-prof-content {
    padding: 0 20px 30px;
}
.bp-prof-content h2,
.bp-prof-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bp-primary);
}
.woocommerce-order-details { margin-top: 20px; }
.woocommerce-order-details table { width: 100%; font-size: .85rem; }
.woocommerce-order-details th,
.woocommerce-order-details td { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.woocommerce-MyAccount-orders thead th,
.woocommerce-MyAccount-orders td { padding: 8px 8px; font-size: .8rem; }
.woocommerce-MyAccount-orders .button {
    background: var(--bp-primary) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: .75rem !important;
    border: none !important;
}
.woocommerce-MyAccount-orders .button:hover { background: var(--bp-primary-dark) !important; }

/* Auth tabs */
.bp-auth-app {
    padding: 0;
}
.bp-auth-tabs {
    display: flex;
    background: #f5f5f7;
    margin: 0;
    padding: 4px;
    border-radius: 0;
}
.bp-auth-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    font-size: .9rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-radius: 10px;
    transition: all .2s;
}
.bp-auth-tab.active {
    background: #fff;
    color: var(--bp-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.bp-auth-panel {
    display: none;
    padding: 24px 20px 30px;
}
.bp-auth-panel.active { display: block; }

/* Floating label fields */
.bp-app-field {
    position: relative;
    margin-bottom: 20px;
}
.bp-app-input {
    width: 100%;
    padding: 16px 14px 6px;
    border: none;
    border-bottom: 1.5px solid #e0e0e0;
    border-radius: 0;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.bp-app-input:focus { border-color: var(--bp-primary); }
.bp-app-field label {
    position: absolute;
    top: 16px;
    left: 14px;
    font-size: 1rem;
    color: #999;
    transition: all .2s;
    pointer-events: none;
}
.bp-app-input:focus + label,
.bp-app-input:not(:placeholder-shown) + label {
    top: 0;
    font-size: .75rem;
    color: var(--bp-primary);
}
.bp-app-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: #666;
    margin-bottom: 20px;
    cursor: pointer;
}
.bp-app-check input { accent-color: var(--bp-primary); width: 18px; height: 18px; }

/* App button */
.bp-app-btn {
    width: 100%;
    padding: 16px;
    background: var(--bp-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(3,156,220,.3);
}
.bp-app-btn:hover { background: var(--bp-primary-dark); transform: translateY(-1px); }
.bp-app-links {
    text-align: center;
    margin: 16px 0 0;
    font-size: .8rem;
    color: #888;
}
.bp-app-links a { color: var(--bp-primary); font-weight: 500; }

@media (max-width: 768px) {
    .bp-prof-content { padding: 0 16px 30px; }
    .bp-auth-panel { padding: 24px 16px 30px; }
}

/* === THANK YOU === */
.bp-thankyou-wrap {
    background: #fff;
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid #f0f0f0;
    text-align: center;
}
.bp-thankyou-icon {
    width: 70px;
    height: 70px;
    background: #34c759;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
.bp-thankyou-title { font-size: 1.6rem; font-weight: 700; color: #222; margin-bottom: 5px; }
.bp-thankyou-sub { font-size: .95rem; color: #888; margin-bottom: 30px; }
.woocommerce-order-details {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px;
    background: #f8f9fa;
    border-radius: 0;
    padding: 20px;
}
.woocommerce-order-details h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.woocommerce-order-details table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.woocommerce-order-details th,
.woocommerce-order-details td { padding: 8px 0; border-bottom: 1px solid #eee; }
.woocommerce-order-details .order-total td { font-weight: 700; color: var(--bp-primary); }
.bp-thankyou-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.bp-btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--bp-primary);
    padding: 14px 30px;
    border-radius: 0
    font-weight: 600;
    border: 2px solid var(--bp-primary);
    text-decoration: none;
}
.bp-btn-secondary:hover { background: var(--bp-primary); color: #fff; }

@media (max-width: 768px) {
    .bp-account-grid { grid-template-columns: 1fr; }
    .bp-account-nav { border-right: none; border-bottom: 1px solid #f0f0f0; }
    .bp-thankyou-wrap { padding: 25px 15px; }
}

/* === FOOTER === */
.bp-footer {
    background: var(--bp-primary);
    color: rgba(255,255,255,.85);
    margin-top: 0;
    position: relative;
}

/* Wave shape - sits above footer */
.bp-footer-wave {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: -5px;
    overflow: hidden;
    line-height: 0;
}
.bp-wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: block;
}
.bp-footer-widgets { padding: 30px 0 30px; }
.bp-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-left: 20px;
}
.bp-footer-title {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,.1);
    position: relative;
}
.bp-footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--bp-primary);
}
.bp-footer-menu li { }
.bp-footer-menu a {
    color: rgba(255,255,255,.6);
    font-size: .85rem;
	padding-left: 20px;
    transition: all .2s;
}
.bp-footer-menu a:hover {
    color: var(--bp-primary);
    padding-left: 3px;
}
.bp-footer-contact p { margin-bottom: 10px; }
.bp-footer-contact a { color: rgba(255,255,255,.6); font-size: .85rem; }
.bp-footer-contact a:hover { color: var(--bp-primary); }
.bp-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.bp-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: .9rem;
    transition: all .2s;
}
.bp-footer-social a:hover {
    background: var(--bp-primary);
    color: #fff;
}

/* Footer bottom */
.bp-footer-bottom {
    background: rgba(0,0,0,.2);
    padding: 20px 0;
    text-align: center;
    font-size: .8rem;
}
.bp-footer-bottom p { margin-bottom: 5px; }
.bp-footer-brand {
    font-size: .75rem;
    opacity: .5;
}
.bp-footer-col {
    margin: auto 30px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .bp-header { background: var(--bp-primary); position: relative; }
    .bp-header-top { padding: 0; }
    .bp-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; padding: 6px 10px; }
    .bp-header-left { grid-column: 1; min-width: 90px; }
    .bp-header-right { grid-column: 3; display: flex; align-items: center; gap: 0; justify-content: flex-end; min-width: 90px; }
    .bp-logo { grid-column: 2; text-align: center; }
    .bp-logo-img { max-height: 34px; width: auto; display: block; max-width: 180px; margin: 0 auto; }
    
    .bp-menu-toggle { display: flex; padding: 6px 20px; cursor: pointer; }
    .bp-menu-toggle span { width: 22px; height: 2.5px; background: #fff; border-radius: 0; transition: all .3s; }
    
    /* User dropdown - full width */
    .bp-user-nav { position: static; }
    .bp-user-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bp-primary);
        z-index: 9999;
        padding: 0;
        margin: 0;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    .bp-user-nav-menu.open { display: block; }
    .bp-user-nav-menu li { margin: 0; padding: 0; }
    .bp-user-nav-menu a {
        display: block;
        padding: 14px 20px;
        color: var(--bp-user-menu-text, #fff);
        font-size: 1rem;
        font-weight: 500;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,.15);
        transition: all .2s;
    }
    .bp-user-nav-menu li:last-child a { border-bottom: none; }
    .bp-user-nav-menu a:hover {
        background: var(--bp-user-menu-text, #fff);
        color: var(--bp-primary);
    }
    
    .bp-header-action { font-size: 1.5rem; padding: 8px 14px; color: #fff; font-weight: 900; }
    .bp-header-action .fas, .bp-header-action .far { font-size: 1.5rem; color: #fff; font-weight: 900; }
    
    /* Hide desktop search, show mobile search */
    .bp-header-search-desktop { display: none; }
    .bp-search-mobile { display: inline-flex; }
    
    .bp-search-overlay { display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--bp-primary); z-index: 100; align-items: center; height: 65px; }
    .bp-search-overlay.open { display: flex; }
    .bp-search-overlay-inner { width: 100%; padding: 0 12px; }
    .bp-search-form-overlay { background: rgba(255,255,255,.2); border-radius: 0; display: flex; align-items: center; }
    .bp-search-form-overlay input[type="search"] { flex: 1; border: none; background: transparent; padding: 12px 10px; color: #fff; font-size: 1rem; outline: none; }
    .bp-search-form-overlay input::placeholder { color: rgba(255,255,255,.6); }
    .bp-search-form-overlay button { background: transparent; border: none; padding: 10px; color: rgba(255,255,255,.8); cursor: pointer; font-size: 1.1rem; }
    .bp-search-form-overlay button:hover { color: #fff; }
    .bp-search-close { font-size: 1.2rem !important; padding: 10px 14px !important; }
    
    .bp-nav { display: block; background: #fff; border-bottom: none; box-shadow: 0 2px 4px rgba(0,0,0,.06); overflow: hidden; }
    .bp-nav-menu { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; gap: 0; padding: 0 8px; }
    .bp-nav-menu::-webkit-scrollbar { display: none; }
    .bp-nav-menu a { padding: 8px 14px; border-bottom: none; white-space: nowrap; font-size: .82rem; color: #555; }
    .bp-nav-menu a:hover { color: var(--bp-primary); }

    /* Productos: 1 por fila */
    .bp-products-grid { grid-template-columns: 1fr !important; gap: 10px !important; padding: 0 15px !important; }
    .bp-product-card { width: 100%; border-radius: 0; margin: 0; }
    .bp-product-image-wrap { width: 100%; height: 270px; }
    .bp-product-image-wrap img { width: 100% !important; height: 100% !important; object-fit: cover; }
    .bp-product-info { padding: 12px 14px 16px; }
    .bp-product-title { font-size: 1.25rem; margin-bottom: 0px; }
    .bp-product-name { font-size: .85rem; }
    .bp-price-sale { font-size: 1.45rem; }
    .bp-price-original { font-size: .9rem; }
    .bp-product-city { font-size: .85rem; }
    .bp-wishlist-btn { width: 36px; height: 36px; font-size: 1.5rem; top: 8px; right: 8px; }
    .woocommerce-products-header { padding: 0 8px; }
    .woocommerce-products-header h1 { font-size: 1.3rem; }
    .woocommerce-result-count, .woocommerce-ordering { font-size: .8rem; }
    
    .woocommerce-ordering { margin: 0 8px 15px !important; float: none !important; }
    
    .single-product div.product { grid-template-columns: 1fr; gap: 15px; padding: 12px; }
    .single-product .summary h1 { font-size: 1.2rem; }
    .single-product .summary .price { font-size: 1.2rem !important; }
    
    .bp-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 12px; }
    .bp-footer-widgets { padding: 30px 0 20px; }
    .bp-footer-title { font-size: 1rem; }
    .bp-footer-menu a { font-size: .8rem; }
    
    /* Hide desktop search */
    .bp-header-search { display: none; }
}

@media (max-width: 480px) {
    .bp-products-grid { grid-template-columns: 1fr !important; gap: 10px !important; padding: 0 15px !important; }
    .bp-footer-grid { grid-template-columns: 1fr; }
    .bp-product-card { width: 100%; margin: 0; }
    .bp-product-title { font-size: 1rem; }
    .bp-price-sale { font-size: 1.3rem; }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.bp-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--bp-primary); /* o el color que prefieras */
  border-radius: 50%;
  animation: bp-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px; /* separación con el texto "Cargando..." */
}

@keyframes bp-spin {
  to {
    transform: rotate(360deg);
  }
}
