/* ============================================================
   PSYPACKS — Cart Styles
   Fuentes cargadas aquí para garantizar disponibilidad
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Imprima&family=Bebas+Neue&display=swap');

/* ════════════════════════════════════════════════════════════
   OVERLAY
════════════════════════════════════════════════════════════ */
.psy-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.32) !important;
    z-index: 99998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
}
.psy-overlay[aria-hidden="false"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ════════════════════════════════════════════════════════════
   DRAWER PANEL
════════════════════════════════════════════════════════════ */
.psy-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 372px !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    background: #FDFDFD !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -2px 0 24px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    /* Neutralizar cualquier estilo heredado de Astra/WC */
    font-family: 'Imprima', sans-serif !important;
    font-size: 14px !important;
    color: #1A1A1A !important;
}
.psy-drawer[aria-hidden="false"] {
    transform: translateX(0) !important;
}

/* Ocultar el drawer de Astra si existe */
.astra-cart-drawer,
.ast-cart-drawer,
#astra-cart-drawer,
.ast-mini-cart-drawer {
    display: none !important;
}

/* ── Cabecera ── */
.psy-drawer__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px 18px !important;
    border-bottom: 1px solid #F0F0F0 !important;
    flex-shrink: 0 !important;
}
.psy-drawer__title {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #1A1A1A !important;
    margin: 0 !important;
    padding: 0 !important;
}
.psy-drawer__badge {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #FDFDFD !important;
    background: #1A1A1A !important;
    padding: 1px 7px !important;
    border-radius: 100px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.6 !important;
}
.psy-drawer__close {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid #EBEBEB !important;
    border-radius: 50% !important;
    background: transparent !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #BBBBBB !important;
    font-size: 17px !important;
    line-height: 1 !important;
    transition: border-color 0.15s, color 0.15s !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}
.psy-drawer__close:hover {
    border-color: #1A1A1A !important;
    color: #1A1A1A !important;
}
.psy-drawer__close svg { display: block; }

/* ── Cuerpo scrollable ── */
.psy-drawer__body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 4px 24px 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: #E8E8E8 transparent !important;
    -webkit-overflow-scrolling: touch;
}
.psy-drawer__body::-webkit-scrollbar { width: 3px; }
.psy-drawer__body::-webkit-scrollbar-thumb { background: #E8E8E8; border-radius: 100px; }

/* ── Lista de items ── */
.psy-mini-items {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.psy-mini-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid #F2F2F2 !important;
    position: relative !important;
}
.psy-mini-item:last-child { border-bottom: none !important; }

/* Imagen */
.psy-mini-item__img {
    flex-shrink: 0 !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 8px !important;
    background: #F8F8F8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.psy-mini-item__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px !important;
    display: block !important;
    border: none !important;
    border-radius: 0 !important;
}
.psy-mini-item__img a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}

/* Info */
.psy-mini-item__info {
    flex: 1 !important;
    min-width: 0 !important;
}
.psy-mini-item__name {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1A1A1A !important;
    text-decoration: none !important;
    display: block !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
    padding-right: 24px !important;
}
.psy-mini-item__name:hover { color: #555 !important; }

/* Variantes */
.psy-mini-item__info .wc-item-meta,
.psy-mini-item__info dl.variation {
    margin: 2px 0 8px !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}
.psy-mini-item__info .wc-item-meta dt,
.psy-mini-item__info .wc-item-meta dd,
.psy-mini-item__info dl.variation dt,
.psy-mini-item__info dl.variation dd {
    display: inline !important;
    font-size: 10px !important;
    color: #999 !important;
    background: #F5F5F5 !important;
    border-radius: 100px !important;
    padding: 2px 8px !important;
    margin: 0 !important;
    border: none !important;
    font-family: 'Imprima', sans-serif !important;
}

/* Fila inferior qty + precio */
.psy-mini-item__bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 10px !important;
}
.psy-mini-item__price {
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    letter-spacing: 0.03em !important;
    color: #1A1A1A !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: baseline !important;
    gap: 5px !important;
}
.psy-mini-item__price del {
    color: #CC2222 !important;
    text-decoration: line-through !important;
    font-size: 12px !important;
    font-family: 'Bebas Neue', sans-serif !important;
}
.psy-mini-item__price del .woocommerce-Price-amount,
.psy-mini-item__price del bdi { font-size: 12px !important; color: #CC2222 !important; font-family: 'Bebas Neue', sans-serif !important; }
.psy-mini-item__price ins {
    text-decoration: none !important;
    color: #1A1A1A !important;
    font-size: 17px !important;
    font-family: 'Bebas Neue', sans-serif !important;
}
.psy-mini-item__price ins .woocommerce-Price-amount,
.psy-mini-item__price ins bdi { font-size: 17px !important; color: #1A1A1A !important; font-family: 'Bebas Neue', sans-serif !important; }
.psy-mini-item__solo {
    font-size: 11px !important;
    color: #BBBBBB !important;
    font-family: 'Imprima', sans-serif !important;
}

/* PsyPoints redeem — mismo look que precio normal: number + unit, derecha */
.psy-cart-redeem-price {
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    letter-spacing: 0.03em !important;
    color: #1A1A1A !important;
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    white-space: nowrap !important;
    text-transform: none !important;
}
.psy-cart-redeem-unit {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 11px !important;
    color: #888 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

/* Botón × eliminar — siempre negro */
.psy-mini-item__remove {
    position: absolute !important;
    top: 18px !important;
    right: 0 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 1px solid #1A1A1A !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #1A1A1A !important;
    font-size: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background 0.15s !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.psy-mini-item__remove:hover {
    background: #1A1A1A !important;
    color: #FDFDFD !important;
}

/* ── Qty controls — en el drawer ── */
.psy-drawer .psy-qty-wrap {
    display: inline-flex !important;
    align-items: stretch !important;
    border: 1px solid #E4E4E4 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}
.psy-drawer .psy-qty-btn {
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: none !important;
    font-size: 15px !important;
    color: #BBBBBB !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: background 0.12s, color 0.12s !important;
}
.psy-drawer .psy-qty-btn:hover {
    background: #F5F5F5 !important;
    color: #1A1A1A !important;
}
.psy-drawer .psy-qty-input {
    width: 32px !important;
    height: 28px !important;
    border: none !important;
    border-left: 1px solid #E4E4E4 !important;
    border-right: 1px solid #E4E4E4 !important;
    text-align: center !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    letter-spacing: 0.04em !important;
    color: #1A1A1A !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
}
.psy-drawer .psy-qty-input::-webkit-inner-spin-button,
.psy-drawer .psy-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Pie fijo ── */
.psy-drawer__foot {
    flex-shrink: 0 !important;
    padding: 0 24px 24px !important;
    border-top: 1px solid #EBEBEB !important;
}

/* ── Barra envío dentro del drawer ── */
.psy-drawer .psy-ship-bar {
    padding: 16px 0 14px !important;
    border-bottom: 1px solid #F2F2F2 !important;
    text-align: center !important;
    background: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    margin: 0 !important;
}
.psy-drawer .psy-ship-bar__text {
    font-family: 'Imprima', sans-serif !important;
    font-size: 12px !important;
    color: #999 !important;
    margin: 0 0 9px !important;
    line-height: 1.5 !important;
}
.psy-drawer .psy-ship-bar__text strong { color: #1A1A1A !important; font-weight: 700 !important; }
.psy-drawer .psy-ship-bar__track {
    height: 4px !important;
    background: #EEEEEE !important;
    border-radius: 100px !important;
    overflow: hidden !important;
    flex: unset !important;
}
.psy-drawer .psy-ship-bar__fill {
    height: 100% !important;
    background: #FFB2EF !important;
    border-radius: 100px !important;
    transition: width 0.5s ease !important;
}
.psy-drawer .psy-ship-bar--done .psy-ship-bar__text { color: #2d8a29 !important; }
.psy-drawer .psy-ship-bar--done .psy-ship-bar__text strong { color: #2d8a29 !important; }
.psy-drawer .psy-ship-bar--done .psy-ship-bar__fill { background: #52c41a !important; }

/* ── Trust pills ── */
.psy-mini-trust {
    display: flex !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 13px 0 12px !important;
    border-bottom: 1px solid #F2F2F2 !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 !important;
}
.psy-mini-trust__item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-family: 'Imprima', sans-serif !important;
    font-size: 10px !important;
    color: #AAAAAA !important;
    background: #F7F7F7 !important;
    border-radius: 100px !important;
    padding: 4px 10px !important;
    white-space: nowrap !important;
}
.psy-mini-trust__item svg { flex-shrink: 0; color: #BBBBBB; }

/* ── Subtotal ── */
.psy-mini-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    padding: 16px 0 14px !important;
}
.psy-mini-total__label {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #AAAAAA !important;
}
.psy-mini-total__amount {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    letter-spacing: 0.03em !important;
    color: #1A1A1A !important;
}

/* ── Botones ── */
.psy-mini-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.psy-btn-checkout {
    display: block !important;
    background: #1A1A1A !important;
    color: #FDFDFD !important;
    border: 2px solid #1A1A1A !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    padding: 15px !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.psy-btn-checkout:hover,
.psy-btn-checkout:focus {
    background: linear-gradient(135deg, #FFB2EF 0%, #73DEF1 100%) !important;
    border-color: #1A1A1A !important;
    color: #1A1A1A !important;
}
.psy-btn-viewcart {
    display: block !important;
    background: transparent !important;
    color: #AAAAAA !important;
    border: 1px solid #E8E8E8 !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    padding: 12px !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color 0.15s, border-color 0.15s !important;
    border-radius: 0 !important;
}
.psy-btn-viewcart:hover,
.psy-btn-viewcart:focus {
    color: #1A1A1A !important;
    border-color: #1A1A1A !important;
}

/* ── Estado vacío ── */
.psy-mini-empty {
    padding: 56px 24px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
}
.psy-mini-empty__icon { color: #DDDDDD !important; }
.psy-mini-empty__title {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #1A1A1A !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}
.psy-mini-empty__text {
    font-family: 'Imprima', sans-serif !important;
    font-size: 13px !important;
    color: #AAAAAA !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
.psy-mini-empty__link {
    display: inline-block !important;
    background: #1A1A1A !important;
    color: #FDFDFD !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    padding: 12px 28px !important;
    text-decoration: none !important;
    margin-top: 8px !important;
    transition: background 0.15s !important;
    border-radius: 0 !important;
}
.psy-mini-empty__link:hover { background: #333 !important; color: #FDFDFD !important; }


/* ════════════════════════════════════════════════════════════
   PÁGINA DE CARRITO
════════════════════════════════════════════════════════════ */

/* ── Barra envío (horizontal) ── */
.psy-cart-page .psy-ship-bar {
    margin-bottom: 40px !important;
    padding: 16px 24px !important;
    background: #FAFAFA !important;
    border: 1px solid #EFEFEF !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}
.psy-cart-page .psy-ship-bar__text {
    font-family: 'Imprima', sans-serif !important;
    font-size: 13px !important;
    color: #888 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}
.psy-cart-page .psy-ship-bar__text strong { color: #1A1A1A !important; font-weight: 700 !important; }
.psy-cart-page .psy-ship-bar__track {
    flex: 1 !important;
    height: 5px !important;
    background: #E8E8E8 !important;
    border-radius: 100px !important;
    overflow: hidden !important;
}
.psy-cart-page .psy-ship-bar__fill {
    height: 100% !important;
    background: #FFB2EF !important;
    border-radius: 100px !important;
    transition: width 0.5s ease !important;
}
.psy-cart-page .psy-ship-bar--done { background: #f0faf0 !important; border-color: #d4edd4 !important; }
.psy-cart-page .psy-ship-bar--done .psy-ship-bar__text { color: #2d8a29 !important; }
.psy-cart-page .psy-ship-bar--done .psy-ship-bar__text strong { color: #2d8a29 !important; }
.psy-cart-page .psy-ship-bar--done .psy-ship-bar__fill { background: #52c41a !important; }

/* ── Layout 2 columnas ── */
.psy-cart-layout {
    display: flex !important;
    gap: 48px !important;
    align-items: flex-start !important;
}
.psy-cart-items  { flex: 1 !important; min-width: 0 !important; }
.psy-cart-summary { flex: 0 0 290px !important; position: sticky !important; top: 100px !important; }

/* ── Tabla ── */
.psy-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
}
.psy-table th {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #CCCCCC !important;
    border: none !important;
    border-bottom: 1px solid #EBEBEB !important;
    padding: 0 10px 14px !important;
    background: none !important;
    text-align: left !important;
}
.psy-th-remove,
.psy-th-img { width: 1% !important; white-space: nowrap !important; }
.psy-th-total { text-align: right !important; }

.psy-table td {
    border: none !important;
    border-bottom: 1px solid #F4F4F4 !important;
    padding: 20px 10px !important;
    vertical-align: middle !important;
    background: none !important;
}

/* Imagen en tabla */
.psy-row .product-thumbnail {
    padding: 20px 10px !important;
}
.psy-row .product-thumbnail img,
.psy-row .product-thumbnail a img {
    width: 76px !important;
    height: 76px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    background: #F8F8F8 !important;
    padding: 6px !important;
    display: block !important;
    border: none !important;
}
.psy-row .product-thumbnail a {
    display: block !important;
    width: 76px !important;
    height: 76px !important;
}

/* Nombre */
.psy-product-name {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #1A1A1A !important;
    text-decoration: none !important;
    display: block !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
}
.psy-product-name:hover { color: #555 !important; }

/* Variantes en tabla */
.psy-row .wc-item-meta,
.psy-row dl.variation {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.psy-row .wc-item-meta dt,
.psy-row .wc-item-meta dd,
.psy-row dl.variation dt,
.psy-row dl.variation dd {
    display: inline !important;
    font-size: 10px !important;
    color: #999 !important;
    background: #F5F5F5 !important;
    border-radius: 100px !important;
    padding: 2px 9px !important;
    margin: 0 !important;
    border: none !important;
    font-family: 'Imprima', sans-serif !important;
}

.psy-row .product-price {
    font-family: 'Imprima', sans-serif !important;
    font-size: 14px !important;
    color: #999 !important;
}
.psy-row .product-subtotal { text-align: right !important; }
.psy-row .product-subtotal .amount {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #1A1A1A !important;
}

/* Botón × tabla — siempre negro */
.psy-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border: 1px solid #1A1A1A !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #1A1A1A !important;
    font-size: 13px !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: background 0.15s !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}
.psy-remove:hover { background: #1A1A1A !important; color: #FDFDFD !important; }

/* ── Qty controls en la página de carrito ── */
.psy-cart-page .psy-qty-wrap {
    display: inline-flex !important;
    align-items: stretch !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}
.psy-cart-page .psy-qty-btn {
    width: 34px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    font-size: 16px !important;
    color: #BBBBBB !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.12s, color 0.12s !important;
}
.psy-cart-page .psy-qty-btn:hover {
    background: #F5F5F5 !important;
    color: #1A1A1A !important;
}
/* WooCommerce qty input dentro de psy-qty-wrap */
.psy-cart-page .psy-qty-wrap .qty {
    width: 42px !important;
    height: 40px !important;
    border: none !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
    text-align: center !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    letter-spacing: 0.04em !important;
    color: #1A1A1A !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.psy-cart-page .psy-qty-wrap .qty::-webkit-inner-spin-button,
.psy-cart-page .psy-qty-wrap .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Acciones ── */
.psy-actions-row td { padding-top: 16px !important; border-bottom: none !important; }
.psy-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}
.psy-coupon { display: flex !important; gap: 6px !important; }
.psy-coupon input[type="text"] {
    border: 1px solid #E0E0E0 !important;
    border-radius: 6px !important;
    font-family: 'Imprima', sans-serif !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    width: 176px !important;
    outline: none !important;
    box-shadow: none !important;
    color: #1A1A1A !important;
    background: #FDFDFD !important;
    transition: border-color 0.15s !important;
    height: auto !important;
}
.psy-coupon input[type="text"]:focus { border-color: #1A1A1A !important; }
.psy-btn-coupon {
    background: transparent !important;
    color: #888 !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 6px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    white-space: nowrap !important;
}
.psy-btn-coupon:hover { color: #1A1A1A !important; border-color: #1A1A1A !important; }
.psy-btn-update {
    background: transparent !important;
    color: #CCCCCC !important;
    border: 1px solid #EBEBEB !important;
    border-radius: 6px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}
.psy-btn-update:not([disabled]):hover { color: #1A1A1A !important; border-color: #1A1A1A !important; }

/* ── Panel resumen ── */
.psy-cart-summary .cart_totals,
.psy-cart-summary .woocommerce-cart-totals {
    background: #FAFAFA !important;
    border: 1px solid #EFEFEF !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: none !important;
}
.psy-cart-summary .cart_totals h2,
.psy-cart-summary .woocommerce-cart-totals h2 {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #AAAAAA !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: none !important;
}
.psy-cart-summary .cart_totals table,
.psy-cart-summary .woocommerce-cart-totals table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
}
.psy-cart-summary .cart_totals table th,
.psy-cart-summary .cart_totals table td,
.psy-cart-summary .woocommerce-cart-totals table th,
.psy-cart-summary .woocommerce-cart-totals table td {
    border: none !important;
    border-bottom: 1px solid #EFEFEF !important;
    padding: 11px 0 !important;
    background: none !important;
    vertical-align: middle !important;
}
.psy-cart-summary .cart_totals table th,
.psy-cart-summary .woocommerce-cart-totals table th {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    color: #CCCCCC !important;
    width: 40% !important;
}
.psy-cart-summary .cart_totals table td,
.psy-cart-summary .woocommerce-cart-totals table td {
    font-family: 'Imprima', sans-serif !important;
    font-size: 14px !important;
    color: #666 !important;
    text-align: right !important;
}
.psy-cart-summary .cart_totals .order-total th,
.psy-cart-summary .cart_totals .order-total td,
.psy-cart-summary .woocommerce-cart-totals .order-total th,
.psy-cart-summary .woocommerce-cart-totals .order-total td {
    border-bottom: none !important;
    padding-top: 15px !important;
    color: #1A1A1A !important;
}
.psy-cart-summary .cart_totals .order-total th,
.psy-cart-summary .woocommerce-cart-totals .order-total th {
    font-size: 11px !important;
    color: #1A1A1A !important;
}
.psy-cart-summary .cart_totals .order-total .amount,
.psy-cart-summary .woocommerce-cart-totals .order-total .amount {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
}
.psy-cart-summary .wc-proceed-to-checkout { padding: 0 !important; margin-top: 20px !important; float: none !important; }
.psy-cart-summary .checkout-button {
    display: block !important;
    float: none !important;
    background: #1A1A1A !important;
    color: #FDFDFD !important;
    border: 2px solid #1A1A1A !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    padding: 16px !important;
    border-radius: 0 !important;
    width: 100% !important;
    text-align: center !important;
    transition: background 0.15s !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.psy-cart-summary .checkout-button:hover,
.psy-cart-summary .checkout-button:focus {
    background: linear-gradient(135deg, #FFB2EF 0%, #73DEF1 100%) !important;
    border-color: #1A1A1A !important;
    color: #1A1A1A !important;
}

/* ── Trust signals (página carrito) ── */
.psy-trust-cart {
    list-style: none !important;
    margin: 16px 0 0 !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #EFEFEF !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.psy-trust-cart li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Imprima', sans-serif !important;
    font-size: 11px !important;
    color: #BBBBBB !important;
}
.psy-trust-cart svg { flex-shrink: 0; color: #CCCCCC; }

/* ── Cross-sells ── */
.psy-cart-page .cross-sells { margin-top: 64px !important; padding-top: 44px !important; border-top: 1px solid #EBEBEB !important; }
.psy-cart-page .cross-sells h2 {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #1A1A1A !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    border: none !important;
}
.psy-cart-page .cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
}
.psy-cart-page .cross-sells ul.products::before,
.psy-cart-page .cross-sells ul.products::after { display: none !important; }
.psy-cart-page .cross-sells ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #EBEBEB !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #FDFDFD !important;
    display: flex !important;
    flex-direction: column !important;
    transition: border-color 0.15s, transform 0.15s !important;
}
.psy-cart-page .cross-sells ul.products li.product:hover {
    border-color: #C8C8C8 !important;
    transform: translateY(-2px) !important;
}
.psy-cart-page .cross-sells ul.products li.product a.woocommerce-loop-product__link {
    display: block !important;
}
.psy-cart-page .cross-sells ul.products li.product img {
    width: 100% !important;
    height: 130px !important;
    object-fit: contain !important;
    background: #F8F8F8 !important;
    padding: 12px !important;
    display: block !important;
    border: none !important;
    border-radius: 0 !important;
}
.psy-cart-page .cross-sells ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #1A1A1A !important;
    padding: 14px 16px 4px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
.psy-cart-page .cross-sells ul.products li.product .price {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #1A1A1A !important;
    padding: 4px 16px 14px !important;
    margin: 0 0 auto !important;
    display: block !important;
}
.psy-cart-page .cross-sells ul.products li.product .button {
    display: block !important;
    background: #1A1A1A !important;
    color: #FDFDFD !important;
    border: none !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 12px !important;
    border-radius: 0 !important;
    text-align: center !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    margin-top: auto !important;
    text-decoration: none !important;
}
.psy-cart-page .cross-sells ul.products li.product .button:hover { background: #333 !important; color: #FDFDFD !important; }

/* ── Carrito vacío ── */
.psy-cart-empty {
    text-align: center !important;
    padding: 88px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}
.psy-cart-empty__icon { color: #E0E0E0 !important; font-size: 56px !important; }
.psy-cart-empty__title {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #1A1A1A !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}
.psy-cart-empty__text {
    font-family: 'Imprima', sans-serif !important;
    font-size: 15px !important;
    color: #AAAAAA !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
.psy-btn-shop {
    display: inline-block !important;
    background: #1A1A1A !important;
    color: #FDFDFD !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    padding: 14px 40px !important;
    text-decoration: none !important;
    margin-top: 8px !important;
    transition: background 0.15s !important;
    border-radius: 0 !important;
}
.psy-btn-shop:hover { background: #333 !important; color: #FDFDFD !important; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .psy-cart-layout { flex-direction: column !important; gap: 32px !important; }
    .psy-cart-summary { flex: none !important; width: 100% !important; position: static !important; }
    .psy-cart-page .psy-ship-bar { flex-direction: column !important; text-align: center !important; }
}

@media (max-width: 768px) {
    .psy-cart-page .cross-sells ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Tabla responsive: ocultar columnas de precio/subtotal */
    .psy-table thead { display: none !important; }
    .psy-table,
    .psy-table tbody,
    .psy-table tr,
    .psy-table td { display: block !important; }
    .psy-table tr.psy-row {
        padding: 16px 0 !important;
        border-bottom: 1px solid #F4F4F4 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        position: relative !important;
    }
    .psy-row td { padding: 0 !important; border: none !important; }
    .psy-row .product-remove { position: absolute; top: 16px; right: 0; }
    .psy-row .product-thumbnail { flex-shrink: 0 !important; }
    .psy-row .product-name { flex: 1 !important; min-width: 0 !important; padding-right: 28px !important; }
    .psy-row .product-price { display: none !important; }
    .psy-row .product-quantity { width: auto !important; }
    .psy-row .product-subtotal { margin-left: auto !important; }
    .psy-actions-row td { padding-top: 12px !important; }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .psy-drawer { width: 440px !important; }
}

@media (max-width: 480px) {
    .psy-drawer { width: 100vw !important; }
    .psy-cart-page .cross-sells ul.products {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ════════════════════════════════════════════════════════════
   CORRECCIONES Y COMPLETADOS
════════════════════════════════════════════════════════════ */

/* ── Porcentaje en barra de envío (cart page) ── */
.psy-cart-page .psy-ship-bar__pct {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #CCCCCC !important;
    flex-shrink: 0 !important;
}
.psy-cart-page .psy-ship-bar--done .psy-ship-bar__pct {
    color: #52c41a !important;
}

/* ── Ocultar "incluye impuesto" ── */
.psy-cart-summary .includes_tax,
.psy-cart-summary small.tax_label,
.psy-cart-summary .woocommerce-Price-amount + small,
.cart_totals .tax-rate,
.cart_totals .tax-rate th,
.cart_totals .tax-rate td {
    display: none !important;
}

/* ── Ocultar calculadora de envío ── */
.psy-cart-summary .woocommerce-shipping-calculator,
.psy-cart-summary .shipping-calculator-button,
.psy-cart-summary a.shipping-calculator-button,
.psy-cart-summary .shipping-calculator-form,
.cart_totals .woocommerce-shipping-calculator {
    display: none !important;
}

/* ── Ocultar radio button cuando solo hay una opción de envío ── */
.psy-cart-summary .woocommerce-shipping-methods input[type="radio"] {
    display: none !important;
}

/* ── Envío gratis — badge verde ── */
.psy-cart-summary .woocommerce-shipping-methods .free_shipping label,
.psy-cart-summary .woocommerce-shipping-methods li label {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    color: #2d8a29 !important;
    background: #edfaed !important;
    border-radius: 100px !important;
    padding: 2px 9px !important;
    display: inline-block !important;
}

/* ════════════════════════════════════════════════════════════
   NUEVOS ESTILOS v1.1.0
════════════════════════════════════════════════════════════ */

/* Botón cerrar drawer — borde negro */
.psy-drawer__close {
    border: 1px solid #1A1A1A !important;
    color: #1A1A1A !important;
}
.psy-drawer__close:hover {
    background: #1A1A1A !important;
    color: #FDFDFD !important;
    border-color: #1A1A1A !important;
}

/* Toast */
.psy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1A1A1A;
    color: #FDFDFD;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border-radius: 100px;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    white-space: nowrap;
}
.psy-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Cross-sells en drawer */
.psy-drawer__crosssells {
    border-top: 1px solid #F2F2F2;
    padding: 16px 0 4px;
    margin-top: 4px;
}
.psy-drawer__cs-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555555;
    margin-bottom: 14px;
}
.psy-drawer__cs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.psy-cs-card {
    display: flex;
    align-items: center;
    gap: 10px;
}
.psy-cs-card__img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #F8F8F8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.psy-cs-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.psy-cs-card__img a {
    display: flex;
    width: 100%;
    height: 100%;
}
.psy-cs-card__info {
    flex: 1;
    min-width: 0;
}
.psy-cs-card__name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #1A1A1A;
    text-decoration: none;
    display: block;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.psy-cs-card__name:hover { color: #555; }
.psy-cs-card__price {
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    letter-spacing: 0.03em !important;
    color: #1A1A1A !important;
    line-height: 1.3 !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    align-items: baseline !important;
    gap: 5px !important;
}
/* Precio tachado (precio original) — derecha, pequeño, rojo */
.psy-cs-card__price del {
    color: #CC2222 !important;
    text-decoration: line-through !important;
    font-size: 11px !important;
    font-family: 'Bebas Neue', sans-serif !important;
}
.psy-cs-card__price del .woocommerce-Price-amount,
.psy-cs-card__price del bdi { font-size: 11px !important; color: #CC2222 !important; font-family: 'Bebas Neue', sans-serif !important; }
/* Precio actual — izquierda, negro, normal */
.psy-cs-card__price ins {
    text-decoration: none !important;
    color: #1A1A1A !important;
    font-size: 15px !important;
    font-family: 'Bebas Neue', sans-serif !important;
}
.psy-cs-card__price ins .woocommerce-Price-amount,
.psy-cs-card__price ins bdi { font-size: 15px !important; color: #1A1A1A !important; font-family: 'Bebas Neue', sans-serif !important; }
.psy-cs-add {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #E4E4E4;
    border-radius: 50%;
    background: transparent;
    color: #AAAAAA;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    padding: 0;
}
.psy-cs-add:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #FDFDFD;
}

/* ── Mensaje inline de stock agotado ── */
.psy-qty-stock-msg {
    display: block;
    font-family: 'Imprima', sans-serif;
    font-size: 10px;
    color: #CC4444;
    margin-top: 5px;
    animation: psyStockIn 0.15s ease;
}
@keyframes psyStockIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}
