/* ==========================================
   1. RESET Y ESTILOS GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfbfa;
    color: #4a4a4a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   2. HEADER Y NAVEGACIÓN
   ========================================== */
.barra-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #f0ece9;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-marca .imagen-logo {
    height: 95px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-marca:hover .imagen-logo {
    transform: scale(1.03);
}

.menu-derecha {
    display: flex;
    align-items: center;
    gap: 30px;
}

.categorias {
    display: flex;
    gap: 25px;
    align-items: center;
}

.categorias a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #000000;
    padding-bottom: 4px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.categorias a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease-in-out;
}

.categorias a:hover::after,
.categorias a.activo::after {
    width: 100%;
}

.iconos-navegacion {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

.boton-icono {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: opacity 0.3s ease;
}

.boton-icono:hover {
    opacity: 0.7;
}

.icono-svg {
    width: 22px;
    height: 22px;
}

.carrito-contenedor {
    position: relative;
    display: flex;
    align-items: center;
    color: #000000;
    transition: opacity 0.3s ease;
}

.carrito-contenedor:hover {
    opacity: 0.7;
}

.contador-rojo {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #e07a5f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* Buscador flotante */
.contenedor-busqueda,
.contenedor-buscador {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0ece9;
    border-radius: 8px;
    z-index: 1001;
}

.contenedor-busqueda.activo,
.contenedor-buscador.activo {
    display: flex;
    align-items: center;
}

.contenedor-busqueda input,
.contenedor-buscador input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    width: 220px;
    color: #4a4a4a;
}

/* ==========================================
   3. BANNER CON TEXTO CURSIVO (Alex Brush)
   ========================================== */
.banner-imagen {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 280px;
    overflow: hidden;
}

.banner-fino {
    height: 35vh;
    min-height: 220px;
}

.imagen-portada {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.superposicion-texto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.frase-cursiva-blanca {
    font-family: 'Alex Brush', cursive;
    font-size: 80px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    margin: 0;
}

/* ==========================================
   4. GRILLA Y TARJETAS DE PRODUCTO
   ========================================== */
.seccion-coleccion {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.titulo-coleccion {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4a4a4a;
    margin-bottom: 40px;
}

.grilla-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tarjeta-producto {
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

.contenedor-imagen {
    position: relative;
    width: 100%;
    padding-top: 125%;
    background-color: #f7f5f2;
    overflow: hidden;
    border-radius: 4px;
}

.contenedor-imagen a,
.contenedor-imagen .enlace-detalle-producto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.contenedor-imagen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.contenedor-imagen:hover img {
    transform: scale(1.03);
}

/* Botón de favoritos interactivo */
.boton-favorito {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: transform 0.2s ease, background 0.3s ease;
    z-index: 2;
}

.boton-favorito svg {
    width: 16px;
    height: 16px;
    stroke: #b5838d;
    fill: none;
    transition: all 0.3s ease;
}

.boton-favorito:hover {
    transform: scale(1.1);
}

.boton-favorito.activo svg {
    fill: #e07a5f;
    stroke: #e07a5f;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.boton-favorito.activo {
    animation: heartbeat 0.4s ease-in-out;
}

.info-producto {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.detalles-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nombre-producto {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000000;
    text-transform: uppercase;
    line-height: 1.3;
}

.precio-producto {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
}

.boton-agregar-rapido {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #000000;
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.boton-agregar-rapido:hover {
    opacity: 0.6;
    transform: scale(1.08);
}

/* ==========================================
   5. BARRA DE BENEFICIOS
   ========================================== */
.barra-beneficios {
    background-color: #f5efe9;
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
}

.item-beneficio {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 300px;
}

.icono-beneficio-svg {
    width: 30px;
    height: 30px;
    stroke: #d8a48f;
    flex-shrink: 0;
}

.item-beneficio p {
    font-size: 12px;
    line-height: 1.5;
    color: #666666;
}

.item-beneficio strong {
    font-size: 13px;
    color: #4a4a4a;
    letter-spacing: 0.5px;
}

/* ==========================================
   6. RESPONSIVE DESIGN (NUNCA OCULTAR EL MENÚ)
   ========================================== */
@media (max-width: 992px) {
    .grilla-productos {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .barra-superior {
        padding: 10px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-marca .imagen-logo {
        height: 70px;
    }

    .menu-derecha {
        gap: 15px;
    }

    .categorias {
        gap: 18px;
    }

    .categorias a {
        font-size: 13px;
    }

    .grilla-productos {
        grid-template-columns: repeat(2, 1fr);
    }

    .frase-cursiva-blanca {
        font-size: 60px;
    }
}

@media (max-width: 580px) {
    .barra-superior {
        padding: 10px 15px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .menu-derecha {
        width: 100%;
        justify-content: space-between;
    }

    .categorias {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .categorias a {
        font-size: 12px;
    }

    .frase-cursiva-blanca {
        font-size: 44px;
    }

    .grilla-productos {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   7. MODAL DETALLE DE PRODUCTO (ESTILO MERCADO LIBRE)
   ========================================== */
.modal-producto-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-producto-overlay.activo {
    display: flex;
    opacity: 1;
}

.modal-producto-contenedor {
    background: #ffffff;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 35px;
    padding: 35px 30px;
    animation: modalAnimEntrada 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAnimEntrada {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-cerrar {
    position: absolute;
    top: 15px;
    right: 18px;
    background: #f7f5f2;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a4a4a;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.modal-cerrar:hover {
    background: #e2ddd8;
    transform: rotate(90deg);
}

.modal-cerrar svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

/* Galería de Fotos del Producto */
.galeria-producto {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.miniaturas-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    max-height: 480px;
    overflow-y: auto;
}

.miniatura-item {
    width: 65px;
    height: 75px;
    border-radius: 6px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.miniatura-item:hover {
    transform: scale(1.04);
}

.miniatura-item.activo {
    border-color: #222222;
}

.miniatura-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.imagen-principal-contenedor {
    flex: 1;
    background: #f9f8f6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/5;
    max-height: 480px;
    border: 1px solid #f0ece9;
}

.imagen-principal-contenedor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

/* Info y panel de compra estilo Mercado Libre */
.info-compra-producto {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.badge-condicion {
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-titulo-producto {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    line-height: 1.25;
    letter-spacing: 0.3px;
}

.calificacion-estrellas {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #d8a48f;
}

.calificacion-estrellas .opiniones-texto {
    color: #888888;
    font-size: 12px;
    margin-left: 4px;
}

.bloque-precio {
    padding: 10px 0;
    border-bottom: 1px solid #f0ece9;
}

.modal-precio {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-cuotas {
    font-size: 13px;
    color: #00a650;
    font-weight: 600;
    margin-top: 2px;
}

.bloque-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #00a650;
    font-weight: 600;
}

.bloque-stock svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.detalles-especificaciones {
    background: #faf8f5;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: #555555;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detalles-especificaciones li {
    list-style: none;
    display: flex;
    gap: 6px;
}

.detalles-especificaciones li strong {
    color: #222222;
}

.modal-descripcion {
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
    margin-top: 4px;
}

/* Selector de Cantidad */
.control-cantidad-contenedor {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 6px;
}

.control-cantidad-contenedor label {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

.selector-cantidad {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcd7d2;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.btn-cantidad {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-cantidad:hover {
    background: #f0ece9;
}

.input-cantidad {
    width: 35px;
    height: 32px;
    text-align: center;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    outline: none;
}

/* Botones de Acción */
.acciones-compra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-comprar-ahora {
    background-color: #222222;
    color: #ffffff;
    padding: 13px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-comprar-ahora:hover {
    background-color: #d8a48f;
    transform: translateY(-1px);
}

.btn-agregar-carrito-modal {
    background-color: #f7f5f2;
    color: #222222;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    border: 1px solid #e0dbd5;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}

.btn-agregar-carrito-modal:hover {
    background-color: #ece6df;
    border-color: #cfc7be;
}

/* Beneficios y confianza debajo de los botones */
.garantias-compra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #f0ece9;
    font-size: 12px;
    color: #777777;
}

.garantia-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.garantia-item svg {
    width: 16px;
    height: 16px;
    stroke: #00a650;
    flex-shrink: 0;
}

/* Notificación Toast */
.notificacion-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #222222;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notificacion-toast.activo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ==========================================
   CART DRAWER & MERCADO PAGO CHECKOUT
   ========================================== */

/* Cart Overlay & Drawer */
.pc-cart-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pc-cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.pc-cart-sidebar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(100%, 420px);
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-cart-overlay.visible .pc-cart-sidebar {
    transform: translateX(0);
}

.pc-cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0ede9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #222;
    letter-spacing: 0.5px;
}

.pc-cart-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.pc-cart-close:hover {
    color: #222;
}

.pc-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pc-cart-empty {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #777;
}

.pc-btn-ver-patrones {
    display: inline-block;
    margin-top: 10px;
    background: #222;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.pc-btn-ver-patrones:hover {
    background: #000;
}

.pc-cart-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f4f1ee;
    align-items: center;
}

.pc-cart-item-img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #faf8f5;
}

.pc-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc-cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

.pc-cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.pc-cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.pc-cart-qty-picker {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ded9d3;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pc-btn-qty {
    border: 0;
    background: #f8f6f3;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
}

.pc-btn-qty:hover {
    background: #ede8e1;
}

.pc-qty-val {
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    min-width: 24px;
    text-align: center;
}

.pc-btn-remove-item {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #a09a94;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.pc-btn-remove-item:hover {
    color: #e53935;
}

.pc-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0ede9;
    background: #faf9f7;
}

.pc-cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.pc-cart-info-envio {
    font-size: 12px;
    color: #00875a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.pc-btn-checkout {
    width: 100%;
    padding: 14px;
    background: #222;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.pc-btn-checkout:hover {
    background: #000;
    transform: translateY(-1px);
}

/* ==========================================
   MODAL DE CHECKOUT MERCADO PAGO - PURO CROCHET
   ========================================== */
.checkout-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(25, 20, 18, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.checkout-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.checkout-dialog {
    position: relative;
    width: min(100%, 480px);
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px 26px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f0ece9;
    box-shadow: 0 25px 60px rgba(35, 20, 10, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    animation: checkoutDialogPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes checkoutDialogPop {
    from {
        transform: scale(0.92) translateY(12px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.checkout-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #efeae6;
    background: #faf8f5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.checkout-close:hover {
    background: #222;
    color: #fff;
    border-color: #222;
    transform: rotate(90deg);
}

/* Header */
.checkout-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 4px;
}

.checkout-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #fdf5f2;
    color: #d87d60;
    border: 1px solid #fae2d8;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.checkout-heading {
    color: #222222;
    margin: 0 0 6px 0;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.checkout-subtitle {
    font-size: 13px;
    color: #77726d;
    margin: 0;
    line-height: 1.4;
}

/* Summary Card */
.checkout-summary-card {
    background: #faf8f5;
    border: 1px solid #ede8e1;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.checkout-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.checkout-summary-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-digital-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #f0ece6;
}

.checkout-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e8e2da;
    flex-shrink: 0;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.checkout-item-qty {
    color: #888;
    font-weight: 500;
}

.checkout-item-price {
    font-weight: 700;
    color: #222;
}

.checkout-divider {
    height: 1px;
    background: #eae5de;
    margin: 12px 0 10px 0;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-total-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.checkout-total-val {
    font-size: 20px;
    font-weight: 800;
    color: #d87d60;
    letter-spacing: -0.3px;
}

/* Email Input Section */
.checkout-form-group {
    margin-bottom: 20px;
}

.checkout-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.checkout-input-wrapper {
    position: relative;
}

.checkout-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #ded8d2;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: #222;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.checkout-input:focus {
    outline: none;
    border-color: #009ee3;
    box-shadow: 0 0 0 3.5px rgba(0, 158, 227, 0.15);
}

.checkout-instant-delivery-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 8px;
    padding: 8px 10px;
    background: #f4fbf6;
    border-radius: 8px;
    border: 1px solid #e1f5e8;
    font-size: 11.5px;
    color: #2b613b;
    line-height: 1.4;
}

/* Botón Mercado Pago */
.pc-btn-mp-pay {
    width: 100%;
    padding: 15px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #00aae4 0%, #0082ba 100%);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 158, 227, 0.32);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-btn-mp-pay:hover {
    background: linear-gradient(135deg, #00b6f4 0%, #0073a6 100%);
    box-shadow: 0 10px 24px rgba(0, 158, 227, 0.45);
    transform: translateY(-2px);
}

.pc-btn-mp-pay:active {
    transform: translateY(0);
}

.pc-btn-mp-pay.loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.mp-logo-svg {
    flex-shrink: 0;
}

.mp-arrow-svg {
    transition: transform 0.2s ease;
}

.pc-btn-mp-pay:hover .mp-arrow-svg {
    transform: translateX(4px);
}

/* Error Box */
.checkout-error-box {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fdf2f2;
    border: 1px solid #f8d7da;
    border-radius: 8px;
    color: #c53030;
    font-size: 12.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    animation: shakeError 0.3s ease-in-out;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Footer de Confianza */
.checkout-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0ede8;
    flex-wrap: wrap;
}

.checkout-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #777;
    font-weight: 500;
}

.checkout-trust-dot {
    color: #d0c9c2;
    font-size: 10px;
}

@media (max-width: 520px) {
    .checkout-dialog {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .checkout-heading {
        font-size: 20px;
    }

    .pc-btn-mp-pay {
        font-size: 14px;
        padding: 13px 16px;
    }

    .checkout-trust-dot {
        display: none;
    }

    .checkout-trust-footer {
        flex-direction: column;
        gap: 6px;
    }
}

/* Responsivo para el Modal */
@media (max-width: 820px) {
    .modal-producto-contenedor {
        grid-template-columns: 1fr;
        max-height: 92vh;
        gap: 25px;
        padding: 25px 20px;
    }

    .galeria-producto {
        flex-direction: column-reverse;
        align-items: center;
    }

    .miniaturas-lista {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        width: 100%;
        justify-content: center;
    }

    .miniatura-item {
        width: 55px;
        height: 65px;
    }

    .imagen-principal-contenedor {
        width: 100%;
        max-height: 360px;
    }
}

/* ==========================================
   ANIMACIONES ARTESANALES DE CROCHET (CARRITO)
   ========================================== */

/* Ovillo de lana volador */
.flying-yarn-ball {
    position: fixed;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 99999;
    filter: drop-shadow(0 4px 10px rgba(216, 125, 96, 0.45));
    will-change: transform, left, top, opacity;
}

.svg-yarn-ball {
    width: 100%;
    height: 100%;
    display: block;
}

/* Efecto de rebote del carrito al recibir el ovillo */
.cart-bounce-effect {
    animation: cartYarnBounce 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

@keyframes cartYarnBounce {
    0% {
        transform: scale(1) rotate(0deg);
    }
    20% {
        transform: scale(1.35) rotate(-12deg);
        color: #d87d60;
    }
    40% {
        transform: scale(1.18) rotate(8deg);
        color: #d87d60;
    }
    60% {
        transform: scale(1.26) rotate(-4deg);
    }
    80% {
        transform: scale(1.06) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Animación de pop en el contador rojo */
.badge-pop-anim {
    animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.35) both;
}

@keyframes badgePop {
    0% {
        transform: scale(0.6);
        background-color: #d87d60;
    }
    50% {
        transform: scale(1.6);
        background-color: #c85a38;
        box-shadow: 0 0 12px rgba(216, 125, 96, 0.7);
    }
    100% {
        transform: scale(1);
        background-color: #e07a5f;
    }
}

/* Chispas y destellos del tejido al caer en la bolsa */
.yarn-sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffd166 0%, #d87d60 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    animation: yarnSparkleFade 0.65s ease-out forwards;
}

@keyframes yarnSparkleFade {
    0% {
        transform: translate(0, 0) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Feedback táctil en el botón presionado */
.btn-item-added {
    animation: buttonAddedPulse 0.6s ease-out !important;
    background-color: #2e7d32 !important;
    color: #ffffff !important;
}

@keyframes buttonAddedPulse {
    0% { transform: scale(0.92); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Toast Artesanal / Notificación con Estilo Puro Crochet */
.notificacion-toast-artesanal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    border: 1px solid #ebdcd3;
    color: #2c2825;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(50, 30, 20, 0.15), 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
}

.notificacion-toast-artesanal.activo {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.toast-contenido {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-thumb-img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #ebdcd3;
    flex-shrink: 0;
}

.toast-yarn-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.toast-textos {
    display: flex;
    flex-direction: column;
}

.toast-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #d87d60;
}

.toast-titulo {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.toast-btn-ver {
    background: #222222;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.toast-btn-ver:hover {
    background: #d87d60;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .notificacion-toast-artesanal {
        left: 15px;
        right: 15px;
        bottom: 20px;
        max-width: none;
    }
}

