/* ═══════════════════════════════════════════
   PS Login — Estilos Mi cuenta
   Colores: crema #f9f4f0, rosado #F5D4CB, negro #1a1a2e
   ═══════════════════════════════════════════ */

/* ── Novedades ─────────────────────────────── */
.pslogin-news-wrap { padding: 0; }
.pslogin-news-heading { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 20px; }

.pslogin-news-featured {
    border: 1.5px solid #F5D4CB;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}
.pslogin-news-featured img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pslogin-news-featured-body { padding: 18px 20px; }
.pslogin-news-featured-body h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin: 8px 0 10px; }
.pslogin-news-featured-body p  { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 14px; }

.pslogin-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pslogin-news-card { border: 1.5px solid #F5D4CB; border-radius: 12px; overflow: hidden; background: #fff; }
.pslogin-news-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.pslogin-news-card-body { padding: 14px; }
.pslogin-news-card-body h4 { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 6px 0 6px; }
.pslogin-news-card-body p  { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 10px; }

.pslogin-news-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f9f4f0;
    color: #1a1a2e;
    border: 1px solid #F5D4CB;
}
.pslogin-news-btn {
    display: inline-block;
    background: #1a1a2e;
    color: #F5D4CB;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.pslogin-news-btn:hover { opacity: .85; color: #F5D4CB; }
.pslogin-news-empty { color: #888; font-size: 15px; }

@media (max-width: 600px) {
    .pslogin-news-grid { grid-template-columns: 1fr; }
    .pslogin-news-featured img { height: 160px; }
}

/* ── Menú móvil/tablet — botones login ──────── */
.pslogin-only-mobile { display: none !important; }

@media (max-width: 1024px) {
    .pslogin-only-mobile {
        display: block !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .pslogin-menu-guest-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 16px 0 8px !important;
        border-top: 1px solid #e8ddd8 !important;
        margin-top: 6px !important;
    }
    .pslogin-menu-login-pill {
        display: block !important;
        width: 100% !important;
        background: #1a1a2e !important;
        color: #F5D4CB !important;
        border-radius: 999px !important;
        padding: 13px 20px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        text-align: center !important;
        letter-spacing: .03em !important;
        box-sizing: border-box !important;
    }
    .pslogin-menu-login-pill:hover { opacity: .85 !important; color: #F5D4CB !important; }
    .pslogin-menu-reg-line {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        text-align: center !important;
        font-size: 13px !important;
        color: #aaa !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    .pslogin-menu-reg-link {
        color: #1a1a2e !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        text-decoration: underline !important;
        white-space: nowrap !important;
        display: inline !important;
    }
    .pslogin-menu-user-pill {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #1a1a2e !important;
        color: #F5D4CB !important;
        border-radius: 999px !important;
        padding: 13px 20px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 8px !important;
    }
}

/* ── Formulario WooCommerce login/registro ──── */
/* Fondo crema, botones negros con letras rosadas */

/* Botones de WooCommerce */
.woocommerce button[type=submit],
.woocommerce input[type=submit],
.woocommerce a.button,
.woocommerce .button,
.woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-form-register .woocommerce-form-register__submit {
    background: #000000 !important;
    color: #F5D4CB !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    width: 100% !important;
    font-size: 15px !important;
    cursor: pointer !important;
    text-shadow: none !important;
    box-shadow: none !important;
    letter-spacing: .02em !important;
}
.woocommerce button[type=submit]:hover,
.woocommerce input[type=submit]:hover,
.woocommerce a.button:hover,
.woocommerce .button:hover,
.woocommerce-form-login .woocommerce-form-login__submit:hover,
.woocommerce-form-register .woocommerce-form-register__submit:hover {
    background: #222222 !important;
    color: #F5D4CB !important;
}

/* Inputs WooCommerce */
.woocommerce-form-login input[type=text],
.woocommerce-form-login input[type=password],
.woocommerce-form-login input[type=email],
.woocommerce-form-register input[type=text],
.woocommerce-form-register input[type=password],
.woocommerce-form-register input[type=email],
.woocommerce form .input-text {
    background: #f9f4f0 !important;
    border: 1.5px solid #e8ddd8 !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    color: #1a1a2e !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus,
.woocommerce form .input-text:focus {
    border-color: #1a1a2e !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Página Mi cuenta cuando no está logueado */
.woocommerce-account .woocommerce {
    background: #fff !important;
}

/* ── Menú móvil — fix "Crear cuenta" en misma línea ── */
.pslogin-menu-reg-line {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    text-align: center !important;
    font-size: 13px !important;
    color: #aaa !important;
    margin: 0 !important;
}
.pslogin-menu-reg-link {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
